Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Aug 16, 2018 4:27 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Aug 05, 2007 5:32 am 
Offline
Newbie

Joined: Sun Aug 05, 2007 4:15 am
Posts: 36
USE AT YOUR OWN RICK!!!

http://buffalo.nas-central.org/download/Us ... ce.tar.bz2
http://buffalo.nas-central.org/download/Us ... 0-ls2.diff
http://buffalo.nas-central.org/download/Us ... n-ls2.diff

I use ELDK mips-2005-03-06 release for compilation, DLC5 cable for flashing, and serial console cable for initial setup.

To compile openwince jtag:
bash> (cd include; ./configure; make install)
bash> (cd jtag; ./configure; make install)

To compile u-boot:
Modify CONFIG_IPADDR and CONFIG_SERVERIP in include/configs/rc32434.h
bash> export CROSS_COMPILE=mips_4KCle-
bash> make SILENT=1 rc32434_config
bash> make
bash> cp u-boot.bin /tftpboot/ls2-u-boot-rom.bin
bash> make distclean
bash> make ENV_ADDR=0xbfc50000 NC=1 SILENT=1 linkstation2_ram_config
bash> make
bash> mips_4KCle-strip u-boot
bash> cp u-boot /tftpboot/ls2-u-boot-ram

To compile linux:
bash> cp config.ok .config
bash> make oldconfig
bash> make depend
bash> make
bash> mips_4KCle-objcopy -O binary vmlinux vmlinux.bin
bash> mips_4KCle-readelf -l vmlinux # to show the load and entry addresses for mkimage
bash> mkimage -A mips -O linux -T kernel -C none -a <load address> -e <entry address> -n 2.4.20_mipsel_linkstation -d vmlinux.bin vmlinux.uboot
bash> cp vmlinux vmlinux.uboot /tftpboot

To flash with openwince jtag:
jtag> cable parallel 0x378 DLC5
jtag> detect
jtag> poke 0x58030038 0
jtag> poke 0x58010008 0x0ffffff4
jtag> detectflash 0x1fc00000
jtag> readmem 0x5fc00000 0x400000 /tftpboot/ls2-flash-backup.bin
jtag> flashmem 0x1fc00000 /tftpboot/ls2-u-boot-rom.bin

To setup u-boot:
power up the box with serial console connected
RC32434> protect off all
RC32434> erase bfc30000 bff8ffff
RC32434> set ethaddr <xx:xx:xx:xx:xx:xx>
RC32434> set bootcmd bootelf bfc60000
RC32434> set silent 1
RC32434> saveenv
RC32434> tftp 81000000 ls2-u-boot-ram
RC32434> cp.b 81000000 bfc60000
power cycle the box without the serial console cable and start netcat
LS2> set ethaddr <xx:xx:xx:xx:xx:xx>
LS2> set bootcmd ide reset\;ext2load ide 0 81000000 /boot/vmlinux.uboot\; bootm
LS2> saveenv
LS2> tftp 81000000 vmlinux
LS2> ide reset
LS2> bootelf
after the box comes up copy the vmlinux.uboot into /boot directory on /dev/hda1 patition

GOOD LUCK!!!


Last edited by shihsung on Tue Aug 07, 2007 7:23 am, edited 2 times in total.

Top
   
PostPosted: Sun Aug 05, 2007 9:24 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
unfortunately i cannot download a single patch.

are the links correct or broken?

i want to upload them to the downloadsection.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Sun Aug 05, 2007 11:07 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
uploaded everything to:
http://buffalo.nas-central.org/download/Users/shihsung/

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Wed Aug 08, 2007 6:49 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
JTAGTools works to read the flash. will try to write next:

Code:
Development_box ~ # jtag
JTAG Tools 0.6-cvs
Copyright (C) 2002, 2003 ETC s.r.o.
JTAG Tools is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for JTAG Tools.

Warning: JTAG Tools may damage your hardware! Type "quit" to exit!

Type "help" for help.

jtag> cable parallel 0x378 DLC5
Initializing Xilinx DLC5 JTAG Parallel Cable III on parallel port at 0x378
jtag> detect
IR length: 5
Chain length: 1
Device Id: 00000000001000010111000001100111
  Manufacturer: IDT
  Part:         79RC32434-i2c
  Stepping:     LS2
  Filename:     /usr/local/share/jtag/idt/79rc32434/79rc32434
jtag> poke 0x58030038 0
ImpCode=01000000010000000100000000000000
EJTAG version: 2.6
EJTAG Implementation flags: R4k ASID_8 NoDMA MIPS32
jtag> poke 0x58010008 0x0ffffff4
jtag> detectflash 0x1fc00000
Query identification string:
        Primary Algorithm Command Set and Control Interface ID Code: 0x0002 (AMD/Fujitsu Standard Command Set)
        Alternate Algorithm Command Set and Control Interface ID Code: 0x0000 (null)
Query system interface information:
        Vcc Logic Supply Minimum Write/Erase or Write voltage: 2700 mV
        Vcc Logic Supply Maximum Write/Erase or Write voltage: 3600 mV
        Vpp [Programming] Supply Minimum Write/Erase voltage: 0 mV
        Vpp [Programming] Supply Maximum Write/Erase voltage: 0 mV
        Typical timeout per single byte/word program: 128 us
        Typical timeout for maximum-size multi-byte program: 128 us
        Typical timeout per individual block erase: 1024 ms
        Typical timeout for full chip erase: 0 ms
        Maximum timeout for byte/word program: 256 us
        Maximum timeout for multi-byte program: 4096 us
        Maximum timeout per individual block erase: 16384 ms
        Maximum timeout for chip erase: 0 ms
Device geometry definition:
        Device Size: 4194304 B (4096 KiB, 4 MiB)
        Flash Device Interface Code description: 0x0002 (x8/x16)
        Maximum number of bytes in multi-byte program: 32
        Number of Erase Block Regions within device: 2
        Erase Block Region Information:
                Region 0:
                        Erase Block Size: 65536 B (64 KiB)
                        Number of Erase Blocks: 63
                Region 1:
                        Erase Block Size: 8192 B (8 KiB)
                        Number of Erase Blocks: 8
jtag> readmem 0x5fc00000 0x400000 /ls2-flash-backup.bin
address: 0x5FC00000
length:  0x00400000
reading:
addr: 0x60000000
Done.
jtag>

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited