Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Aug 20, 2018 3:12 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 58 posts ]  Go to page Previous 1 2 3 4 Next
Author Message
PostPosted: Sun Mar 29, 2009 2:32 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm... we might try using separate commands instead of the scripts in uboot...

but, I'm not sure that your uboot kernel and the dtb files will work together...

here is a kernel (+modules) that I'm running on my LS1 ... feel free to try it ,but it will require the sda1 instead of hda1, etc. in bootargs and other commands...

http://downloads.buffalo.nas-central.or ... 8.8.tar.gz


btw, it has ext4 support built in...

booting it requires just the uboot env var values & scripts that I posted above in this thread... mcp.php?i=main&mode=post_details&f=2&p=120536

_________________
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 Mar 29, 2009 7:01 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
I've copied the universal uboot kernel from my HG to the LS1, and it works. The server is back up for now. I'm gonna check for the reasons later. Phew :) Thank you all!

Those .dtb files, are they required for uboot 1.2.0 or for the kernel? IIRC, older kernels didn't have them? I want to continue using 2.6.18 for NFS speed reasons. Maybe this one is better off without a .dtb file?


Top
   
PostPosted: Sun Mar 29, 2009 3:10 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
the .dtb file is required for the new ubvot and kernels and there are two different files. one for the HG and one for the HD.

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


Top
   
PostPosted: Sun Mar 29, 2009 4:02 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Kuroguy, is this because a flat device tree, or is there some other reason? Is this due to a certain patch that was applied to the source, or is the change in the vanilla kernel source (or vanilla uboot source)?

Do you know what version this started with?

_________________
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 Mar 30, 2009 3:50 am 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
Yes, the .dtb file is specific to the flat device tree

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


Top
   
PostPosted: Mon Mar 30, 2009 6:53 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
My understanding is, these .dtb files provide some sort of hardware summary. IIRC, they were introcuded around 2.6.20.

The problem: I need kernel 2.6.18 for 32K NFS mounts, everything 2.6.{18...25} gives me just 8K. I can't boot 2.6.18-etch with uboot, neither with or without the .dtb file that works with 2.6.25.20 (variant-latest). I've tried the compressed version (make uImage) and the uncompressed converted image (mkimage) with and without the .dtb file.

While later kernels come with lyakh's arch/powerpc/boot/dts/kuroboxH[DG].dts, the contents of 2.6.18's arch/powerpc/boot/dts/ is:

mpc7448hpc2.dts
mpc8349emds.dts
mpc8540ads.dts
mpc8541cds.dts
mpc8548cds.dts
mpc8555cds.dts
mpc8641_hpcn.dts

Which one would be the right one? Should I just produce all of them and put them into /boot/ under their own name?


Top
   
PostPosted: Mon Mar 30, 2009 1:21 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
not sure ... those numbers seemed familiar to me ... http://buffalo.nas-central.org/images/f ... pc8241.txt at least 8241 did, since that is mentioned in JTAG ... not sure which one you want though since they aren't identical ...

_________________
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 Mar 30, 2009 2:38 pm 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
2.6.18 didn't require the .dtb file as we were compiling under /arch/ppc. we now compile under /arch/powerpc which (i think) requires the flat tree. either way, uboot still passes the bootargs necessary to load and execute a /arch/powerpc kernel even when you are booting an old kernel. I believe you'll need to change some of the uboot environment variables.

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


Top
   
PostPosted: Tue Mar 31, 2009 3:35 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
If I copy and paste the following into the uboot console, is it likely to get me anywhere?

hdfile=boot/uImage.test
boothd=setenv bootargs root=/dev/hda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32;bootm ${ldaddr} - 7f0000
run bootcmd1


Top
   
PostPosted: Tue Mar 31, 2009 10:47 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I'm not sure what the rest of your env vars look like... so, it might, but you can always test out your files w/ direct loads, bootarg-sets, and bootms - sort of like this:

Code:
ext2load ide 0:1 800000 /boot/uImage.test
setenv 'bootargs root=/dev/hda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32'
bootm ${ldaddr} - 7f0000


Is that 7f00000 from the dtb file? If so, I think you will have to load it too.
Code:
ext2load ide ${hdpart} 7f0000 boot/kuroboxHD.dtb

_________________
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: Wed Apr 01, 2009 8:12 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
I( posted the configuration earlier here)

No .dtb file for kernel 2.6.18. Here's what I get:

=> ext2load ide 0:1 800000 /boot/uImage.nfs
ext2load ide 0:1 800000 /boot/uImage.nfs

1642081 bytes read
=> setenv 'bootargs root=/dev/hda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32'
setenv 'bootargs root=/dev/hda1 netconsole=6666@192.168.11.150/,@192.168.11.149/ rtc-rs5c372.probe=0,0x32'
=> bootm ${ldaddr}
bootm ${ldaddr}
## Booting image at 00800000 ...
Image Name: Linux-2.6.18-kurobox
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1642017 Bytes = 1.6 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

and here it hangs indefinitely.


Top
   
PostPosted: Thu Apr 02, 2009 2:04 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
hmmm... I honestly don't know ... but I'll ping lyakh and timtimred about this ... one of them may know the answer...

_________________
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 Apr 02, 2009 5:50 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Thank you. Can't use the LS1 as a VCR anymore with reduced NFS speed :(


Top
   
PostPosted: Thu Apr 02, 2009 1:02 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Quote:
(06:45:45 AM) davygravy: lyakh: hi, wondering if you might know how to help andre out w/ this kernel/uboot problem: viewtopic.php?f=2&t=16356&start=15
(06:50:12 AM) lyakh: davygravy: which one? the thread is long with many stages. where exactly is the current problem described?
(06:51:50 AM) davygravy: sorry, right at the end - he's trying to make & boot a uImage for an older kernel
(06:53:21 AM) lyakh: davygravy: does booting a newer kernel with .dtb work for him?
(06:56:14 AM) davygravy: no sure - he says that he can boot the universal kernel (hg + ls1) ... I _think_ those all use a dtb file ...
(06:58:10 AM) lyakh: davygravy: in principle, uboot doesn't care. it just prepares and provides a dtb. If the kernel doesn't need it, it doesn't use it. So, I would try to use _exactly_ the same procedure as with a newer kernel, i.e., use and specify the same .dtb, but just use the old kernel
(07:00:01 AM) davygravy: lyakh: thanks, I'll pass this on to him :)
(07:00:06 AM) lyakh: np



andre, I'll also ask timtimred.

if push come to shove I'll try to build your kernel in bitbake and see if I can get it to work. It only takes about 20 min to build in OE.

are your sources posted (.ie w/ patch)?

_________________
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 Apr 02, 2009 1:33 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Thanks for your help, much appreciated! You could just use the binary:

http://hvkls.dyndns.org/downloads/kerne ... v14.tar.gz

alternatively, the uncompressed mkimage version:

http://hvkls.dyndns.org/downloads/tmp/u ... compressed

config:

http://hvkls.dyndns.org/downloads/tmp/c ... fs-v14.txt


The kernel is a Debian 2.6.18/sec'upd, compiled with the kurobox patch, the melfs patch (against the Buffalo byte swap), and tonyo's patch (to enable flashing in spite of 2.6). I've also applied the unionfs patch to the kernel I acutally want to load, but you shouldn't have to worry about that.

Uploading 431 MB @ 30 KB/s would take a long time, even compressed to like 140 MB...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 58 posts ]  Go to page Previous 1 2 3 4 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 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