Buffalo NAS-Central Forums

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

All times are UTC+01:00




Post new topic  Reply to topic  [ 120 posts ]  Go to page Previous 14 5 6 7 8 Next
Author Message
PostPosted: Tue Sep 15, 2009 2:37 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Bauldrick,

I forgot to put up that newest kernel for LS2 ... its up here now:;
http://downloads.buffalo.nas-central.or ... 5v2.tar.gz


also, I tried out a minor patch on e2fsprogs so that the default inode is safe for our uboots, and incorporated that into a newer version of foonas-em (beta-ish).
http://downloads.buffalo.nas-central.or ... inode-safe
basically, one can just do a default mkfs.ext3 and it will be readable by our old uboots.

One of these days I'd like to give shihsung's uboot a whirl... :) next thing, I guess...

_________________
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 Sep 28, 2009 4:38 pm 
Offline
Newbie

Joined: Tue May 30, 2006 9:06 pm
Posts: 41
davy,

I followed your instruction to boot from foonas-em through tftp and installing lenny from to /dev/sda1. Booting to 2.6 kernel through tftp seems to work okay, but after I extracted the lenny and new kernel into /dev/sda1 and booting up .. it just won't fire up the kernel .. I could see the file using ext2ls just fine but booting up, I didn't get any further than the following:

Code:
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: SAMSUNG SP2514N  Firm: VF100-33 Ser#: 0SB81JA0112885
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Boot in 09 seconds ('s' to stop)...s

=> set bootargs 'root=/dev/sda1 rw netconsole=6666@192.168.11.150/,@192.168.11.149/'
set bootargs 'root=/dev/sda1 rw netconsole=6666@192.168.11.150/,@192.168.11.149/'
=> set hdfile boot/vmlinuz
set hdfile boot/vmlinuz
=> save
save
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
Flash erase: first = 10 @ 0xbfc30000
             last  = 10 @ 0xbfc30000
Flash erase: Done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
=> boot
boot
Loading 0:1:boot/vmlinuz

5587343 bytes read
## Booting image at 82000000 ...
Loading .text @ 0x80002000 (3644260 bytes)
Loading __ex_table @ 0x8037bb70 (6784 bytes)
Loading .notes @ 0x8037d5f0 (36 bytes)
Loading .rodata @ 0x8037e000 (331828 bytes)
Loading .init.rodata @ 0x803cf034 (256 bytes)
Loading .pci_fixup @ 0x803cf134 (1736 bytes)
Loading __ksymtab @ 0x803cf7fc (18920 bytes)
Loading __ksymtab_gpl @ 0x803d41e4 (9248 bytes)
Loading __kcrctab @ 0x803d6604 (9460 bytes)
Loading __kcrctab_gpl @ 0x803d8af8 (4624 bytes)
Loading __ksymtab_strings @ 0x803d9d08 (61219 bytes)
Loading __param @ 0x803e8c2c (5076 bytes)
Loading .data @ 0x803ea000 (102016 bytes)
Loading .data.cacheline_aligned @ 0x80403000 (1536 bytes)
Loading .init.text @ 0x80404000 (142984 bytes)
Loading .init.data @ 0x80426e88 (21880 bytes)
Loading .init.setup @ 0x8042c400 (864 bytes)
Loading .initcall.init @ 0x8042c760 (672 bytes)
Loading .con_initcall.init @ 0x8042ca00 (4 bytes)
Loading .exit.text @ 0x8042ca04 (3748 bytes)
Loading .init.ramfs @ 0x8042e000 (512 bytes)
Clearing .bss @ 0x8042f000 (166304 bytes)

Starting kernel @ 0x80006230...


UPDATE: using the other kernel in the /boot directory seems to work for me .. setenv hdfile boot/vmlinuz-2.6.23.17 .. so it seems that I have problem with 2.6.30.5 v2 & v8 ..


Top
   
PostPosted: Tue Sep 29, 2009 1:17 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
wiraone, are you able to tftp-boot the newer foonas-em images that I posted?
this is the newest one: http://downloads.buffalo.nas-central.or ... inode-safe


it sounds like you are encountering a problem w/ conversion from old to new kernel usage. Bauldrick & I spent hours and hours on that... it can be messy/tricky... Did you run tune2fs to stop the autofsck, as shown, and also run fsck after unmounting and before rebooting?

Also, can you post the output of
Code:
print
while in uboot?

_________________
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 Sep 29, 2009 1:27 am 
Offline
Newbie

Joined: Tue May 30, 2006 9:06 pm
Posts: 41
davy,

here is the output from print cmd
Code:
=> print
print
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} ${hdfile}
boothd=setenv bootargs root=/dev/hda1;bootm ${ldaddr}
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=${ipaddr}:${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} ${ubfile}
ubsaddr=bfc00000
ubeaddr=bfc2ffff
ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}
upgrade=run ubload ubflash
ethact=rc32434_eth
bootargs=root=/dev/sda1 rw netconsole=6666@192.168.11.150/,@192.168.11.149/
hdfile=boot/vmlinuz


I followed exactly the steps shown in your how-to (running tune2fs). Anyway, it seems that in the mid of fixing my LS2, the HD developed bad sectors .. no idea if that causes the latest kernel to fail loading .. probably the right time to find a replacement for the aging HD. Will get a replacement for it real soon and will try to load everything again.


Top
   
PostPosted: Tue Sep 29, 2009 1:44 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
try these explicit commands...

Code:
set bootargs 'root=/dev/sda1 rw netconsole=6666@192.168.11.150/,@192.168.11.149/'
ext2load ide 0:1 82000000 boot/vmlinuz-2.6.30.5
bootm 82000000


does that do anything better?

Also, does the tftp-booting work OK for you?

_________________
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 Sep 29, 2009 1:54 am 
Offline
Newbie

Joined: Tue May 30, 2006 9:06 pm
Posts: 41
davy,

Will try that later the day but I'm surely need to get a replacement HD first. I'm getting the following errors:

Code:
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd c8/00:08:c7:0c:00/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: soft resetting link
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd c8/00:08:c7:0c:00/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: soft resetting link
ata1.00: configured for UDMA/100
ata1: EH complete
ata1.00: configured for UDMA/100
ata1: EH complete


tftp booting works great and I'm using foonas-em. I'll try the latest one as per your previous message.


Top
   
PostPosted: Tue Sep 29, 2009 2:07 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
kk, good luck...
you surely do have some sort of hdd failure, I guess.

Glad to know that tftp-booting foonas-em works fine, just make sure you don't use the "old" foonas-em (the official one at the foonas site) while you are trying to do this upgrade, as it can really confuse your machine and make it much harder to get it booting.

Mine is an "unofficial" release, but it gets past these rtc problems that cause a hang or constant rebooting...

_________________
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 Sep 29, 2009 12:15 pm 
Offline
Newbie

Joined: Tue May 30, 2006 9:06 pm
Posts: 41
davy_gravy wrote:
try these explicit commands...

Code:
set bootargs 'root=/dev/sda1 rw netconsole=6666@192.168.11.150/,@192.168.11.149/'
ext2load ide 0:1 82000000 boot/vmlinuz-2.6.30.5
bootm 82000000


does that do anything better?

Also, does the tftp-booting work OK for you?


davy,

Booted up using slax live CD on my PC and fixed all the problem with the filesystem .. using the previous booting method failed .. but using the above .. ext2load and bootm works. Is there anything particular that I need to do? How do I make it permanent so it could load up the 2.6.30.5 kernel?


Top
   
PostPosted: Tue Sep 29, 2009 12:19 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I see it now, missed it before.

One of your commands defined in the uboot env shows the problem:
Code:
boothd=setenv bootargs root=/dev/hda1;bootm ${ldaddr}


should read boothd=setenv bootargs root=/dev/sda1;bootm ${ldaddr}

that's a problem. I'm not sure if it is the only one, but it sure wouldn't work w/ the new kernel, since you need to tell the new kernel where to look for the rootfs.

_________________
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 Sep 29, 2009 12:51 pm 
Offline
Newbie

Joined: Tue May 30, 2006 9:06 pm
Posts: 41
davy_gravy wrote:
I see it now, missed it before.

One of your commands defined in the uboot env shows the problem:
Code:
boothd=setenv bootargs root=/dev/hda1;bootm ${ldaddr}


should read boothd=setenv bootargs root=/dev/sda1;bootm ${ldaddr}

that's a problem. I'm not sure if it is the only one, but it sure wouldn't work w/ the new kernel, since you need to tell the new kernel where to look for the rootfs.


That solved my problem ... cheers davy!!!


Top
   
PostPosted: Tue Nov 24, 2009 2:29 pm 
Offline
Newbie

Joined: Thu Dec 13, 2007 2:31 pm
Posts: 21
Hi Davy,

Do you have the header files for the 2.6.30.5 uploaded somewhere that I can download? I need to build a iscsitarget module.

Thanks


Top
   
PostPosted: Wed Nov 25, 2009 2:10 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
ramp,

I can take a look to see if I have that ... I'll have to reboot into Ubuntu and see if I saved it...

Exactly which (sub) directory is it that you want?

/linux-2.6.30.5/include???

If you let me know, then I'll be able to post a smaller tarball...

_________________
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: Sat Nov 28, 2009 3:24 am 
Offline
Newbie

Joined: Thu Dec 13, 2007 2:31 pm
Posts: 21
Thanks Davy. I used Shihsung's patchfile recompile the kernel successfully, so the hearder file is not needed any more, although it took me more than 12 hours to compile the kernel on LS2.
(by the way, can anybody teach me how to do the cross compiling on X86 for mipsel target? I tried but always failed at making the gcc...)


Top
   
PostPosted: Sat Nov 28, 2009 10:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
ramp, sorry to report back late ... yes, compiling natively is a long process...

I use openembedded and foonas ...

http://foonas.org/index.php/OpenEmbedded:Install

_________________
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: Thu Dec 03, 2009 3:59 am 
Offline
Newbie

Joined: Thu Dec 13, 2007 2:31 pm
Posts: 21
Hi Davy,

The kernel I built seems not able to boot.

I follow the Shihsung's procedure for compiling while use the LNI uboot (not able to boot the kernel binary by Shihsung either, but I can boot the lastest kernel you provide (2.6.30.5)

Is it true that the Shihsung's 2.6.30.x kernel can only be booted with his new u-boot?

Did you do something different than what Shihsung did for compiling the kernel? especially some makeimg part?

Thanks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 120 posts ]  Go to page Previous 14 5 6 7 8 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