Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Jul 22, 2018 7:27 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Installation of UBoot
PostPosted: Fri Feb 15, 2008 12:20 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
Hi,

I'm running kernel 2.6 on my HG with help of Andre's webinstaller. Now, to be more flexible (and try to get Lenny to work), I'd like to install UBoot. Trouble is: The only instructions I can find involve recompiling UBoot. But in the download section, I can find two binaries (u-boot-hg.ram.bin and u-boot-lsppchg-flash-1.2.0-r2.bin) that seem ready to run.

My question is: Which one should I use, and how do I install it? I'd like to not kill my system, obviously, so I thought I'd ask first before trying!

Thanks!
Koen


Top
   
PostPosted: Fri Feb 15, 2008 12:56 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
uboot installation is covered on this 3 pages so far:

Compiling and install instructions for binaries , linuxnotincluded did port uboot:
http://www.linuxnotincluded.pwp.blueyon ... -boot.html

this 2 pages cover uboot installation via the binaries + gentoo/freelink/foonas:
http://buffalo.nas-central.org/index.ph ... from_Linux
http://buffalo.nas-central.org/index.ph ... PPC_Gentoo
http://buffalo.nas-central.org/index.ph ... uriousMark

the uboot bootloader page should be enhanced with some info from the last 2 links.

_________________
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 Feb 15, 2008 2:06 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
Thanks for the pointers! It looks much better than the stuff I found myself.

I quickly browsed through them, and am still not sure how to handle this: I now run the default variant of Andre's 2.6 kernel. As I understand, I need the uboot version for uboot. Now, after installing uboot, how would I get my system to boot to install the uboot variant? Or can I still just boot the old 2.4 kernel after uboot installation, and then run the webinstaller?


Top
   
PostPosted: Fri Feb 15, 2008 2:40 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
1) boot to 2.4 to have flash write access
2) install uboot + 2.4.33.3 firmimg.bin
3) reboot
check if you can boot to the hddrootfs in 2 blink mode.
http://youtube.com/watch?v=pTPrrUYd8O8
it might be possible that it boots. 1 blink mode will not work as it needs the uboot variant.
if it works touch /boot/variant-uboot and try to update with the webinstaller. i think the webinstaller takes care of the rest.

in case you cannot boot to 1 blink and 2 blink modes you can at least remove the installed kernel in /boot by
4) boot to 3 blink mode (-> em mode + flash kernel (2.4)) and telnet into 192.168.11.150
5) if you use the stock partitions use "mount_disk" to mount the 1rst and the 3rd partition to /mnt/hda1 & /mnt/hda3
7) cd /mnt/hda1/boot and remove the kernel there.

1 blink mode should default to load the flash kernel if there is no kernel in /boot on /dev/hda1. then you can hopefully boot to the OS on the hdd and use andre`s webinstaller to update the 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 Feb 15, 2008 8:28 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
I tried, but failed rather quickly: I booted in 2.4.20 (Linux LinkStation 2.4.20_mvl31-ppc_linkstation), ssh'ed into the box, downloaded the binary files, and tried to flash u-boot, which didn't work:

LinkStation:~# dd if=u-boot-lsppchg-flash-1.2.0-r2.bin of=/dev/mtd1 bs=1k
dd: writing `/dev/mtd1': Input/output error
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.187642 seconds, 0.0 kB/s

No idea what's wrong, /dev/mtd1 seems to be just fine:

LinkStation:~# ls /dev/mtd1 -la
crw-rw---- 1 root root 90, 2 Feb 12 08:31 /dev/mtd1

Any idea what's going on?

Thanks!
Koen


Top
   
PostPosted: Sat Feb 16, 2008 12:26 am 
Offline
Site Admin
User avatar

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

do you have an LS1 or an HG? the process is different ...

_________________
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 Feb 16, 2008 12:59 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
It's a HG. I checked again, and it seems like I followed the right instructions. For LS1, one should flash to /dev/fl2, for HG, it's /dev/mtd1.

I have no idea what to do with this error message... :(


Top
   
PostPosted: Sat Feb 16, 2008 1:15 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
try /dev/mtdblock1 instead!

_________________
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 Feb 16, 2008 8:24 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
Yes, /dev/mtdblock1 (and /dev/mtdblock0) worked just fine! I flashed both binaries, rebooted, touched /boot/variant-uboot, reran the webinstaller, rebooted again, and all works just as before. So I guess I'm ready for the next phase; to fool around with u-boot.

Just a quick question about that: Is it possible to configure u-boot from within a running 2.4 or 2.6 kernel? I'd like to set it to the right IP address, so I can use netcat to control u-boot, without first having to fiddle with network cables and settings.

Thanks for all the help!


Top
   
PostPosted: Mon Mar 03, 2008 11:35 pm 
Offline
Newbie

Joined: Thu Aug 17, 2006 3:13 pm
Posts: 63
Just a quick reply to myself: http://www.denx.de/wiki/view/DULG/HowCanIAccessUBootEnvironmentVariablesInLinux mentions two utilities (fw_setenv and fw_printenv, which is actually the same binary) that do just that. Unfortunately, they are not available on my system, so if anyone knows where to get pre-compiled versions of this util, please let me know!


Top
   
PostPosted: Mon Mar 03, 2008 11:57 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
I believe they are part of U-boot Utils. You may be able to compile them using the PPC Dev tools, or it might take the DENX setup to compile them... not sure.

You can set your env vars from the uboot side quite easily, using netcat. See this article for details: http://buffalo.nas-central.org/index.ph ... rk_Utility

EDIT: they are in the UBoot source in tools/env/

_________________
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  [ 11 posts ] 

All times are UTC+01:00


Who is online

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