Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Nov 23, 2017 6:36 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jul 20, 2012 4:52 pm 
Offline
Newbie

Joined: Thu Nov 20, 2008 4:37 pm
Posts: 20
I recently got an LS2 and I'm trying to debian-ify it. I got up to the point of booting the 2.6.22 kernel before I realized that it was all sarge and it might be easier to use one of davy_gravy's tarballs. I repartitioned from foonas-em, expanded the tar and the kernel, and now I'm just not able to boot it.

Partitions: hda1 (5g) hda2 (512mb) hda3 (460g)

Kernels-
Code:
=> ext2ls ide 0:1 /boot
ext2ls ide 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
         5587343 vmlinuz-2.6.30.5
           49975 config-2.6.30.5
<SYM>         16 vmlinuz
           39949 config-2.6.23.17
         4362052 vmlinuz-2.6.23.17
          714128 System.map-2.6.23.17
          894598 System.map-2.6.30.5


My printenv:
Code:
NAS [192.168.11.150] 6666 (?) open


U-Boot 1.1.4 LiSt V2 (mips) 1.0.1 (Sep 20 2007 - 00:42:23)
stdin :   nc
stdout:   nc
stderr:   nc
IDE:    Bus 0: ...OK Bus 1: OK
  Device 0: Model: ST3500630A Firm: 3.AAF  Ser#: Q94GXWGM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Boot in 08 seconds ('s' to stop)...s
Boot in 07 seconds ('s' to stop)...
=> printenv
printenv
bootcmd=run bootcmd1
nfsboot=run nfsload nfsargs;bootm
bootdelay=10
baudrate=57600
autoload=no
stdin=nc
stdout=nc
stderr=nc
ipaddr=192.168.11.150
netmask=255.255.255.0
serverip=192.168.11.149
ncip=192.168.11.149
netretry=no
nc=setenv stdin nc;setenv stdout nc;setenv stderr nc
ser=setenv stdin serial;setenv stdout serial;setenv stderr serial
ldaddr=82000000
guaddr=81000000
hdpart=0:1
hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfil
e}
hdboot=run hdload boothd
flboot=setenv bootargs root=/dev/hda1;bootm bfc40000
emboot=setenv bootargs root=/dev/ram0;bootm bfc40000
rootpath=/opt/nfsroot/mipsel
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ip
addr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
nfsfile=vmlinuz
nfsload=nfs ${ldaddr} ${serverip}:${rootpath}/${nfsfile}
bootretry=30
bootcmd1=run hdboot;run flboot
bootcmd2=run flboot
bootcmd3=run emboot
ubpart=0:3
ubfile=share/u-boot/u-boot-v2-mips.flash.bin
ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfil
e}
ubsaddr=bfc00000
ubeaddr=bfc2ffff
ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldadd
r} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}
upgrade=run ubload ubflash
ethact=rc32434_eth
hdfile=boot/vmlinuz
filesize=55418F
bootargs=netconsole=6666@192.168.11.150/,@192.168.11.149/ root=/dev/sda1
boothd=setenv bootargs bootm ${ldaddr}


Environment size: 1437/65532 bytes


I'm must have messed up my environment somewhere along the line. Can anyone please compare or point out the error?


Top
   
PostPosted: Wed Oct 24, 2012 4:46 pm 
Offline
Newbie

Joined: Mon Jan 22, 2007 8:47 am
Posts: 10
Location: Finland
Your config seems to be logically just okay, but I've had problems if I try to boot a symbolic link, an actual file would boot just fine. You may try setting your hdfile to boot/vmlinuz-2.6.30.5 and then run hdboot. I worked around it by copying the kernel I want to boot/linux-2.6 and then telling u-boot to load that.

I found that having a working kernel in bootcmd1, and have your testing kernel at bootcmd2 or 3 isn't that bad idea after all.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


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