Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Wed Aug 15, 2018 1:48 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 120 posts ]  Go to page Previous 1 2 3 4 5 68 Next
Author Message
PostPosted: Sun Aug 16, 2009 2:24 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
so I'd need to tftp foonas-em

would this be right, as it seems the image is not supported:

Code:
HD-HLAN# set bootargs root=/dev/ram0 rw ip=192.168.11.150 netconsole=6666@192.168.11.150/,@192.168.11.149/
set bootargs root=/dev/ram0 rw ip=192.168.11.150 netconsole=6666@192.168.11.150/,@192.168.11.149/
HD-HLAN# tftp 82000000 vmlinuz.gz
tftp 82000000 vmlinuz.gz
Using rc32434-eth device
TFTP from server 192.168.11.149; our IP address is 192.168.11.150
Filename 'vmlinuz.gz'.
Load address: 0x82000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
HD-HLAN# tftp 82000000 vmlinuz.gz
tftp 82000000 vmlinuz.gz
Using rc32434-eth device
TFTP from server 192.168.11.149; our IP address is 192.168.11.150
Filename 'vmlinuz.gz'.
Load address: 0x82000000
Loading: ########################--snip--
         ##########
done
Bytes transferred = 3376941 (33872d hex)
HD-HLAN# bootm 82000000
bootm 82000000
Wrong Image Format for bootm command
ERROR: can't get kernel image!



shihsung, if I leave it in uboot the box shuts itself off after about 25 seconds - that is now my only real problem (apart from loading a kernel other than yours, but thats probably something I'm doning incorrectly)

--edit--

here for example:

Code:
HD-HLAN# tftp 82000000 vmlinuz.gz
tftp 82000000 vmlinuz.gz
Using rc32434-eth device
TFTP from server 192.168.11.149; our IP address is 192.168.11.150
Filename 'vmlinuz.gz'.
Load address: 0x82000000
Loading: ###########################
###############


no more output, because the box has shutdown, with DIAG light flashing twice - correction flashing 5 times


Top
   
PostPosted: Sun Aug 16, 2009 2:36 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Bauldrick, if you can get it to bring uboot again, try all in one line
Code:
set bootargs root=/dev/ram0 rw ip=192.168.11.150 netconsole=6666@192.168.11.150/,@192.168.11.149/ ; tftp 82000000 vmlinuz ; bootelf 82000000 


or you can do what you were doing, except change bootm to bootelf

(just found this out ... never new it existed before ... I don't think it does in older uboot incarnations...)

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sun Aug 16, 2009 2:48 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
The box keeps shutting down whilst tftp'ing image

--edit--

I can however load foonas-em from hdd (it was late last night when trying :? )

LNI's uboot would load vmlinuz.gz I think, but shihsung's does not.

I still have to paste it in one in line in uboot prompt, as I dont get enough time before box shuts down :o

Place vmlinuz.gz in /boot and gunzip it:

Code:
ide reset; ext2load ide 0:1 82000000  /boot/vmlinuz; setenv bootargs netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/ram0 rw; bootelf 82000000


I'll probably forget about what I wrote in below post and keep everything as is

--another edit--

after booting foonas-em and running fsck on hda1, hda3 as suggested on page3, I reboot into 2.6.30.4-0.2-HD-HLAN and can login fine however - It appears (visually) as if its in xmas tree mode LINK light is on, the other 3 lights blinking continuosly (I'm beginning to bore myself here!! :D )


Top
   
PostPosted: Sun Aug 16, 2009 11:23 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
OK - because of this slight problem with shihsung's uboot (box shutting down if I stop autoboot) I thought I'd go back to LNI's uboot the easiest way I could think of.

I have mtd [0,1,2,3] dumps from before I installed shihsung' uboot, so thought I could just dd them back in - result:

Code:
root@LINKSTATION:/usr/src# dd if=mtd0.dump of=/dev/mtdblock0 bs=1k
dd: opening `/dev/mtdblock0': No such device or address
root@LINKSTATION:/usr/src# ls -l /dev/mtd*
crw-rw---- 1 root disk 90, 0 Feb 13  2004 /dev/mtd0
crw-rw---- 1 root disk 90, 2 Feb 13  2004 /dev/mtd1
crw-rw---- 1 root disk 90, 4 Feb 13  2004 /dev/mtd2
brw-rw---- 1 root disk 31, 0 Feb 13  2004 /dev/mtdblock0
brw-rw---- 1 root disk 31, 1 Feb 13  2004 /dev/mtdblock1
brw-rw---- 1 root disk 31, 2 Feb 13  2004 /dev/mtdblock2


You read from mtd*, and write to mtdblock* ?

Code:
root@LINKSTATION:/usr/src# dd if=/dev/mtd0 bs=1k of=mtd0.shihsung
4096+0 records in
4096+0 records out
4194304 bytes (4.2 MB) copied, 1.42382 s, 2.9 MB/s


Code:
root@LINKSTATION:/usr/src# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00010000 "physmap-flash.0"


So that mtd0 is entire flash 4.2MB. It is the same as my mtd3.dump

Code:
root@LINKSTATION:/usr/src# ls -l mtd*
-rw-r--r-- 1 root root  262144 Mar 22 16:54 mtd0.dump
-rw-r--r-- 1 root src  4194304 Aug 16 11:27 mtd0.shihsung
-rw-r--r-- 1 root root 3473408 Mar 22 16:54 mtd1.dump
-rw-r--r-- 1 root root  262144 Mar 22 16:55 mtd2.dump
-rw-r--r-- 1 root root 4194304 Mar 22 16:55 mtd3.dump


Top
   
PostPosted: Sun Aug 16, 2009 5:29 pm 
Offline
Newbie

Joined: Sun Aug 05, 2007 4:15 am
Posts: 36
Hi Bauldrick,

Please make sure there is no jumper installed on J2. There is only one serial port on RC32434. It is either used for debug console when J2 is installed, or used for communicating with the MicroController when J2 is NOT installed. If you have J2 installed, you need to press the reset button on the back of the box while powering up otherwise the MicroController shuts down the system in 25 seconds because the U-Boot doesn't sent it the suspend watchdog function command.

4.2 MB isn't right. The whole flash is only 4 MB. U-Boot should only occupy the first 0x40000 bytes where the first 0x30000 is the U-Boot itself and the other 0x10000 is used for storing the U-Boot environment variables. Are you using my kernel?

If you are using my kernel, you will need to append "mtdparts=physmap-flash.0:0x40000(uboot)" to bootargs to enable MTD. This would enable /dev/mtd0 for U-Boot partition. You will need to do "eraseall /dev/mtd0" to erase the partition before flashing it with "dd if=old-u-boot dd=/dev/mtd0".


Last edited by shihsung on Sun Aug 16, 2009 6:08 pm, edited 2 times in total.

Top
   
PostPosted: Sun Aug 16, 2009 6:06 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
shihsung wrote:
Are you using my kernel?


Yes, it's the only one I can get to boot, apart from foonas-em.

I have no modifications to the board at all


Top
   
PostPosted: Sun Aug 16, 2009 7:32 pm 
Offline
Newbie

Joined: Sun Aug 05, 2007 4:15 am
Posts: 36
Here's how I do U-Boot upgrades manually from U-Boot. Replace "2f9e0" with the size of your U-Boot shown after tftp transfer completed. BE VERY CAREFUL WHAT YOU TYPE. A TYPO CAN BRICK YOUR BOX.

Code:
shihsung@suse-kde:~> nc 192.168.1.200                            
192.168.1.200: inverse host lookup failed: Unknown host       
(UNKNOWN) [192.168.1.200] 6666 (ircu) open                     
rc32434-eth                                                   
HD-HLAN# fl                                                   

Bank # 1: CFI conformant FLASH (8 x 16)  Size: 4 MB in 71 Sectors
  AMD Standard command set, Manufacturer ID: 0xC2, Device ID: 0xA7A7
  Erase timeout: 16384 ms, write timeout: 1 ms                     

  Sector Start Addresses:
  BFC00000   RO   BFC10000   RO   BFC20000   RO   BFC30000 E RO   BFC40000 E
  BFC50000 E      BFC60000 E      BFC70000 E      BFC80000 E      BFC90000 E
  BFCA0000 E      BFCB0000 E      BFCC0000 E      BFCD0000 E      BFCE0000 E
  BFCF0000 E      BFD00000 E      BFD10000 E      BFD20000 E      BFD30000 E
  BFD40000 E      BFD50000 E      BFD60000 E      BFD70000 E      BFD80000 E
  BFD90000 E      BFDA0000 E      BFDB0000 E      BFDC0000 E      BFDD0000 E
  BFDE0000 E      BFDF0000 E      BFE00000 E      BFE10000 E      BFE20000 E
  BFE30000 E      BFE40000 E      BFE50000 E      BFE60000 E      BFE70000 E
  BFE80000 E      BFE90000 E      BFEA0000 E      BFEB0000 E      BFEC0000 E
  BFED0000 E      BFEE0000 E      BFEF0000 E      BFF00000 E      BFF10000 E
  BFF20000 E      BFF30000 E      BFF40000 E      BFF50000 E      BFF60000 E
  BFF70000 E      BFF80000 E      BFF90000 E      BFFA0000 E      BFFB0000 E
  BFFC0000 E      BFFD0000 E      BFFE0000 E      BFFF0000 E      BFFF2000 E
  BFFF4000 E      BFFF6000 E      BFFF8000 E      BFFFA000 E      BFFFC000 E
  BFFFE000 E
HD-HLAN# tftp 81000000 192.168.1.100:u-boot.bin
Using rc32434-eth device
TFTP from server 192.168.1.100; our IP address is 192.168.1.200
Filename 'u-boot.bin'.
Load address: 0x81000000
Loading: ##############
done
Bytes transferred = 195040 (2f9e0 hex)
HD-HLAN# prot off bfc00000 bfc2ffff
Un-Protected 3 sectors
HD-HLAN# erase bfc00000 bfc2ffff

... done
Erased 3 sectors
HD-HLAN# cp.b 81000000 bfc00000 2f9e0
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
HD-HLAN# cmp.b 81000000 bfc00000 2f9e0
Total of 195040 bytes were the same
HD-HLAN# reset


Top
   
PostPosted: Sun Aug 16, 2009 8:27 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
root@LINKSTATION:/usr/src# eraseall /dev/mtd0
Erased 256 Kibyte @ 0 -- 100% complete.
root@LINKSTATION:/usr/src# dd if=mtd0.dump of=/dev/mtd0 bs=1k
256+0 records in
256+0 records out
262144 bytes (262 kB) copied, 3.31115 s, 79.2 kB/s

--

Boot in 05 seconds ('s' to stop)...
Boot in 04 seconds ('s' to stop)...
Boot in 02 seconds ('s' to stop)...s

=> fl
fl

Bank # 1: Flash chip: MXIC MX29LV320T

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
No Vpp line
Typical byte/word write timeout: 16 us
Maximum byte/word write timeout: 512 us
Full buffer write not supported
Typical block erase timeout: 1024 ms
Maximum block erase timeout: 16384 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: 16384 ms

Size: 4 MiB in 71 Sectors
Sector Start Addresses:
BFC00000 (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) BFFF2000 (RO)
BFFF4000 (RO) BFFF6000 (RO) BFFF8000 (RO) BFFFA000 (RO) BFFFC000 (RO)
BFFFE000 (RO)
=>

=> prot off bfc00000 bfc2ffff
prot off bfc00000 bfc2ffff
Un-Protected 3 sectors
=> erase bfc00000 bfc2ffff
erase bfc00000 bfc2ffff

Flash erase: first = 0 @ 0xbfc00000
last = 2 @ 0xbfc20000
Flash erase: Done
Erased 3 sectors
=> cp.b 81000000 bfc00000 2f9e0
cp.b 81000000 bfc00000 2f9e0
Copy to Flash... done
=> cmp.b 81000000 bfc00000 2f9e0
cmp.b 81000000 bfc00000 2f9e0
Total of 195040 bytes were the same
=> reset

death march.......


Top
   
PostPosted: Sun Aug 16, 2009 10:43 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
:p

I can't connect.... I think I've trashed it :oops:


Top
   
PostPosted: Sun Aug 16, 2009 10:58 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm... :shock: I know the feeling of having to think about unbricking something ... maybe mindbender still has an extra Wiggler compatible adapter?

EDIT: that reminds me - I have a bricked HG here that I'm needing to solder on header pins and unbrick...

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Mon Aug 17, 2009 5:51 am 
Offline
Newbie

Joined: Sun Aug 05, 2007 4:15 am
Posts: 36
Oops! I wish I didn't post the manual U-Boot upgrade procedure above. :-( You know which step you missed right?

Well, when you open your box to unbrick it, please check whether you have J2 jumper installed.


Top
   
PostPosted: Mon Aug 17, 2009 11:17 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
shihsung wrote:
You know which step you missed right?


Which one?

It is 'alive' at 192.168.1.200, I just can't speak to it :lol:


Top
   
PostPosted: Mon Aug 17, 2009 8:08 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I've found 6 things that need to be changed in the lsmipsel-lenny-v2.tar.gz image as I go through fixes
    replace the Lenny 2.13 /sbin/hwclock with the Squeeze's 2.15 (doesn't hang forever on rtc format change)
    replace the current kernel+module set w/ a very wide/complete reroll (v11)
    fix the LC /etc/environment problem (or maybe just leave this for the user to set?)
    a nice motd Debian swirl
    rename /etc/exports to /etc/exports-quickstart
    add /etc/samba/smb.conf-quickstart

I've confirmed that the Squeeze hwclock does avoid the problem of the "forever hanging boot", in which there is no disk chatter, and netconsole shows an interminable error list:
Code:
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
rtc-rs5c348 spi0.2: retrieved date/time is not valid.
The Squeeze hwclock does show some of these errors, but then exits out and the boot continues (although it is delayed by 15 seconds or so).



For documentation:
- recheck/update install instructions & streamline for the casual user...
- include shihsung's suggestion of & expand upon that towards all the other nonswap partitions:
Code:
      tune2fs -i 0 -c 0 /dev/sda1
     tune2fs -i 0 -c 0 /dev/sda3
though this will have to be done after the first bootup in Debian, as foonas-em doesn't have tune2fs in its BusyBox binary. Or, we could easily post a static binary for the user to execute while in foonas-em, until a new foonas-em is built.
- directions for changing bootcmd2 so that it will boot the foonas-em image at /boot-em/vmlinuz.gz
- clean up 3 Fixes for RTC Switchover Problems



Anything anyone can think of to add in/do? :?:

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Tue Aug 18, 2009 12:24 am 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
I'll just clarify my situation in the hope ( :roll: ) I've got a setting wrong.

That flash seemed to go through (I omitted the tftp part the paste).

I presume I need your (shihsung) network setting, so I have my router on 192.168.1.10, PC 192.168.1.100, Linkstation (uboot) 192.168.1.200 << (I think anyrate)

As soon as I turn the box on I can ping 192.168.1.200

Code:
PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.                    
64 bytes from 192.168.1.200: icmp_seq=1 ttl=64 time=0.129 ms   


As soon as I turn the box on wireshark see's:

Code:
46   22.826399   0.0.0.0   255.255.255.255   UDP   Source port: ircu  Destination port: ircu


Click on Follow UDP stream shows:

rc32434-eth
HD-HLAN#

If nothing else it doesn't shut down after 25 seconds anymore, is happily sat there :lol:

Unfortunately, I can't connect to it via netcat and it ain't loading /boot/vmlinux.uboot


Top
   
PostPosted: Tue Aug 18, 2009 12:43 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Quote:
Unfortunately, I can't connect to it via netcat and it ain't loading /boot/vmlinux.uboot


Baulderick, have you tried renaming that file in your tftp folder to his default filename? (no aliases, just a copy under a different name ...

vmlinux-2.6.30.4-0.2.uboot

maybe it would pull it in automatically?

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 120 posts ]  Go to page Previous 1 2 3 4 5 68 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:
Powered by phpBB® Forum Software © phpBB Limited