Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Jan 18, 2018 6:19 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 187 posts ]  Go to page Previous 18 9 10 11 12 13 Next
Author Message
PostPosted: Thu Mar 13, 2008 1:32 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Hi,

I want warm up this thread ;-)

I've an LS2 too and want u-boot it. I've not flashed the u-boot yet but booted the RAM build and it loads successfully. Following informations give u-boot:
Quote:
=> bdinfo
boot_params = 0x83E4FFB0
memstart = 0x80000000
memsize = 0x04000000
flashstart = 0xBFC00000
flashsize = 0x00400000
flashoffset = 0x00000000
ethaddr = 00:0D:0B:74:3D:51
ip_addr = 192.168.11.150
baudrate = 57600 bps
=> coninfo
List of available devices:
serial 80000003 SIO
nc 80000003 SIO stdin stdout stderr
=> flinfo

Bank # 1: Flash chip: STMICRO M29W324DB

CFI Query Results:
Primary Vendor Command Set: 0x0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0x0040
Alternate Vendor Command Set: 0x0000 (None)
No Alternate Algorithm Table
Vcc Min.: 2.7 V
Vcc Max.: 3.6 V
Vpp Min.: 11.5 V
Vpp Max.: 12.5 V
Typical byte/word write timeout: 16 us
Maximum byte/word write timeout: 256 us
Full buffer write not supported
Typical block erase timeout: 1024 ms
Maximum block erase timeout: 8192 ms
Chip erase not supported
Device size: 0x400000 bytes (4 MiB)
Flash Device Interface description: 0x0002
- x8 / x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 1
Number of Erase Block Regions: 2

Actual values used by U-Boot:
Word write timeout: 2 ms
Buffer write timeout: 2 ms
Sector erase timeout: 8192 ms

Size: 4 MiB in 71 Sectors
Sector Start Addresses:
BFC00000 (RO) BFC02000 (RO) BFC04000 (RO) BFC06000 (RO) BFC08000 (RO)
BFC0A000 (RO) BFC0C000 (RO) BFC0E000 (RO) BFC10000 (RO) BFC20000 (RO)
BFC30000 (RO) BFC40000 (RO) BFC50000 (RO) BFC60000 (RO) BFC70000 (RO)
BFC80000 (RO) BFC90000 (RO) BFCA0000 (RO) BFCB0000 (RO) BFCC0000 (RO)
BFCD0000 (RO) BFCE0000 (RO) BFCF0000 (RO) BFD00000 (RO) BFD10000 (RO)
BFD20000 (RO) BFD30000 (RO) BFD40000 (RO) BFD50000 (RO) BFD60000 (RO)
BFD70000 (RO) BFD80000 (RO) BFD90000 (RO) BFDA0000 (RO) BFDB0000 (RO)
BFDC0000 (RO) BFDD0000 (RO) BFDE0000 (RO) BFDF0000 (RO) BFE00000 (RO)
BFE10000 (RO) BFE20000 (RO) BFE30000 (RO) BFE40000 (RO) BFE50000 (RO)
BFE60000 (RO) BFE70000 (RO) BFE80000 (RO) BFE90000 (RO) BFEA0000 (RO)
BFEB0000 (RO) BFEC0000 (RO) BFED0000 (RO) BFEE0000 (RO) BFEF0000 (RO)
BFF00000 (RO) BFF10000 (RO) BFF20000 (RO) BFF30000 (RO) BFF40000 (RO)
BFF50000 (RO) BFF60000 (RO) BFF70000 (RO) BFF80000 (RO) BFF90000 (RO)
BFFA0000 (RO) BFFB0000 (RO) BFFC0000 (RO) BFFD0000 (RO) BFFE0000 (RO)
BFFF0000 (RO)

Booting the unencrypted vmlinuz does also work.

Now, I want do now following things:

  • Flash U-Boot: So far I read, with the new version there shouldn't no problem any more. Right? Means, there should be no problems (and if, maybe I've an defect flash)
  • Flash Foonas-EM: I read, that I can simply the flash via
    Code:
    cat <image> > /dev/mtd1
    (I would take the image from http://downloads.foonas.org/foonas-em/0 ... /lsmipsel/). Is there anything, what can be happend in this case, what could brick the box? If I understand it right: If something goes wrong here, only the EM wouldn't be unbootable, or?

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Thu Mar 13, 2008 2:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
as far as i know you can use to boot foonas-em via tftp via the uboot netconsole in case you have the wrong flash chip.

so far there is no real information about howto install foonas-em to flash:
http://foonas.org/index.php/Foonas-em:Install-lsmipsel
but i think this missing docs are on purpose so far that newbies do not kill their boxes without knowing what they do at all.

in your position i would open the box and check which flash chip is inside.

_________________
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: Thu Mar 13, 2008 2:22 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Hmm ... that information
Quote:
=> flinfo

Bank # 1: Flash chip: STMICRO M29W324DB
could be maybe wrong (displayed by u-boot) ?

Another question for me is:
Quote:
One of these (ST Micro) has issues writing to flash from uboot and linux 2.6, however should work in the vendor supplied 2.4 kernel.
Does this mean, that flashing from linux 2.6 in combination with uboot would be fail or only that flashing from uboot OR linux 2.6 would be fail? If the last one, I can first flash u-boot, boot then with stock vmlinuz and can then flash em - right? If this is done, I can boot an linux 2.6 and all is good.

Okay - maybe stupid questions, but I want really be safe, that's all okay and that I needn't unbrick my LS2 - also I think, other people can profit by this informations.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Thu Mar 13, 2008 3:01 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
I have a dump of mtd0,1,2,3 uboot and foonas -em for my MX chip, I've since cat'd the stock mtd0,1,2,3 back in and then back to uboot and foonas-em - would people be able to use that providing they've MX chip (dmesg shows you)?

If someone using ST chip dumps there mtd0,1,2,3 when they've got uboot , foonas-em would people be able to use that if available, or is that stupidly dangerous and not work?


Top
   
PostPosted: Thu Mar 13, 2008 5:36 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
I think, the whole thing is easy enough for people with basic knowledge, when the needed informations are summarized. If it's too "easy", maybe many people without basic knowledge brick their boxes.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Fri Mar 14, 2008 9:10 am 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
prodigy7 wrote:
Hmm ... that information
Quote:
=> flinfo

Bank # 1: Flash chip: STMICRO M29W324DB
could be maybe wrong (displayed by u-boot) ?

Another question for me is:
Quote:
One of these (ST Micro) has issues writing to flash from uboot and linux 2.6, however should work in the vendor supplied 2.4 kernel.
Does this mean, that flashing from linux 2.6 in combination with uboot would be fail or only that flashing from uboot OR linux 2.6 would be fail? If the last one, I can first flash u-boot, boot then with stock vmlinuz and can then flash em - right? If this is done, I can boot an linux 2.6 and all is good.

Can some help me, answere this? ;-)

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Fri Mar 14, 2008 11:17 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
programming the flash from within the stock kernel should work reliable as it is done from the original firmware when reflashing.

i just do not know enough about the LS2 flash layout. foonas-em needed to be split to fit in flash on ppc boxes (see http://foonas.org/index.php/Foonas-em:Install-lsppc for more info, the LS2 also has 4 MB flash in total as far as i know)....i am not sure if there is enough room for foonas-em in one continuous piece. that needs investigation.

but one thing is a fact:
if you try to mess with flash it is mandatory that you install uboot first. with the original bootloader your box is only reviveable via jtag if there is any problem in flash...and not only if the bootloader is bad.

read the following textfiles:
http://buffalo.nas-central.org/download ... EUBOOT.TXT
http://buffalo.nas-central.org/download ... KERNEL.TXT

after reading this i now think that all you have to do for now is to
1) install uboot following http://buffalo.nas-central.org/download ... EUBOOT.TXT
you should be able to boot to the original kernel (if you do not symlink to the 2.6.22 kernel)
2) from within the original 2.4 kernel it should be possible to flash the decrypted vmlinuz to flash without risking to brick it as you can control uboot via the netconsole anyway.

anyone can confirm that that works? especially on a box with the evil flash chip?

because if that works it could also be possible to flash foonas-em from there maybe?

_________________
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: Fri Mar 14, 2008 12:00 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Okay - if I understand it right, u-boot installation should be safe and if the fact is clear, I can later flash foonas-em.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Fri Mar 14, 2008 1:54 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Now - i flashed successfully u-boot. Kernel 2.4 does also successfully boot and currently I compile an 2.6.22 for my own use.
Now the only thing, which are open on my LS2 tasklist is, getting infos for flashing em-boot without bricking the LS.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Fri Mar 14, 2008 2:12 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
lets look at this page:
http://buffalo.nas-central.org/index.ph ... elFlashROM
/dev/mtd1 is 0x350000 in size....how big is that translated to MB? is it more than 3.2 MB?

here is the foonas-em kernel with built-in initramfs:
http://downloads.foonas.org/foonas-em/0 ... vmlinuz.gz

its 3.2 MB in size....try to load it via tftp first.

_________________
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: Fri Mar 14, 2008 2:20 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
Code:
[14:20]   lennert: 0x350000 = 3392 KiB


3.2 MB = 3276 KB

looks foonas-em could fit nicely into /dev/mtd1 if flashed from the original 2.4 kernel.

_________________
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: Fri Mar 14, 2008 2:38 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
Okay - I'll try booting via tftp - if this is okay, I'll try flashing.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Fri Mar 14, 2008 3:09 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
good luck!

i send you a jtag10 adapter if anything goes wrong.

_________________
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: Sat Mar 15, 2008 8:39 pm 
Offline
Regular Member

Joined: Mon Nov 07, 2005 4:37 pm
Posts: 205
Location: Germany
I compiled now an own 2.6.22 kernel (i tried foonas-em not yet) and the kernel boots fine. The only thing: The red led blinks - what does this mean? All works good else.

_________________
LS2 (U-Boot + Freelink) | Kurobox (U-Boot + Deboostraped) | LS Pro Duo (Freelink)


Top
   
PostPosted: Mon Mar 17, 2008 3:24 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
I see your sig says debootstrap, that means hda1 and hda3 are the wrong way round ? (hda1 is the large space?)avr_evtd expects hda3 to be the bigger, change the settings in avr_evtd and see if that helps.

Does your on/off button work?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 187 posts ]  Go to page Previous 18 9 10 11 12 13 Next

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:
cron
Powered by phpBB® Forum Software © phpBB Limited