Difference between revisions of "User:CuriousMark"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Updating a kurobox)
 
Line 20: Line 20:
 
(thats downloading the uboot binary + the 2.4.33.3 firmimg.bin and the freelink rootfs to /mnt/ which should be the point where /dev/hda3 should be mounted to)
 
(thats downloading the uboot binary + the 2.4.33.3 firmimg.bin and the freelink rootfs to /mnt/ which should be the point where /dev/hda3 should be mounted to)
  
Since my kuro was only slightly updated, wget was not available to me.  Instead I downloaded those files to my PC and then put them on the share drive of the kuro using windows networking.  I then logged into the Kuro using telnet and moved them to the suggested directory.
+
''Since my kuro was only slightly updated, wget was not available to me.  Instead I downloaded those files to my PC and then put them on the share drive of the kuro using windows networking.  I then logged into the Kuro using telnet and moved them to the suggested directory.''
<code># cd /mnt/
+
<blockquote><code>
 +
# cd /mnt/
 
# mv /mnt/share/u-boot-lsppchd-flash-1.2.0-r2.bin u-boot-lsppchd-flash-1.2.0-r2.bin
 
# mv /mnt/share/u-boot-lsppchd-flash-1.2.0-r2.bin u-boot-lsppchd-flash-1.2.0-r2.bin
 
# mv /mnt/share/firmimg.bin firmimg.bin
 
# mv /mnt/share/firmimg.bin firmimg.bin
 
# mv/mnt/share/tmpimage-FL-1-21-LS1.tgz
 
# mv/mnt/share/tmpimage-FL-1-21-LS1.tgz
</code>
+
</code></blockquote>
  
 
ok, here is the flash map of the LS1/kurobox original.
 
ok, here is the flash map of the LS1/kurobox original.

Revision as of 05:05, 5 January 2008

Contents

CuriousMark's Kurobox as a TiVo MediaServer Page

I have had a Kurobox for some time now and it has served well as a basic file server. I have been wanting to upgrade it to act as a media server for my TiVo, but didn't know enough Linux to feel comfortable attacking the task. Also, the thought of putting together all the pieces seemed a bit daunting. With the recent advent of nearly automatic upgrades to uboot and modern Debian distributions, plus the arrival of pyTiVo on the scene, it seems like now is the time to quit procrastinating and get started.

Resources

The primary resource is NAS-Central and the wonderful people who are behind it. I started by asking in the forums. Here is the thread that this page is based on. It shows the false starts and mis-steps that I will leave out here in order to keep things readable and usable. My thanks to Andre, mindbender, and davy_gravy for their help and patience with this Linux newbie.

Installing U-Boot on a Kurobox HD

Here is Mindbender's directions with annotations and hints added.

how to install LNI uboot + 2.4.33.3-firmimg.bin + freelink to the original kurobox/LS1

Prerequisites:

cd /mnt/
wget http://downloads.nas-central.org/LS1_PPC/Bootloader/Uboot/Precompiled/u-boot-lsppchd-flash-1.2.0-r2.bin
wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin
wget http://downloads.nas-central.org/LS1_PPC/Distributions/Freelink/TmpImages/tmpimage-FL-1-21-LS1.tgz

(thats downloading the uboot binary + the 2.4.33.3 firmimg.bin and the freelink rootfs to /mnt/ which should be the point where /dev/hda3 should be mounted to)

Since my kuro was only slightly updated, wget was not available to me. Instead I downloaded those files to my PC and then put them on the share drive of the kuro using windows networking. I then logged into the Kuro using telnet and moved them to the suggested directory.

  1. cd /mnt/
  2. mv /mnt/share/u-boot-lsppchd-flash-1.2.0-r2.bin u-boot-lsppchd-flash-1.2.0-r2.bin
  3. mv /mnt/share/firmimg.bin firmimg.bin
  4. mv/mnt/share/tmpimage-FL-1-21-LS1.tgz

ok, here is the flash map of the LS1/kurobox original. http://nas-central.org/index.php/Inform ... PCFlashROM there you see the bootloader-device /dev/fl2 and the firmimg.bin device /dev/fl1.

you can install latest uboot without compiling by flashing the binary to /dev/fl2 http://nas-central.org/index.php?title= ... from_Linux

this is the critical part of this guide. in case anything goes wrong when flashing uboot you ll need jtag. be warned. it worked for me on three boxes... installing uboot to /dev/fl2 Code: dd if=u-boot-lsppchd-flash-1.2.0-r2.bin of=/dev/fl2 bs=1k

in case you have cmp on board of your currently installed execute the cmp command also to be completely sure that it worked.

installing the 2.4.33.3 firmimg.bin to /dev/fl1 if you do this, i recommend to flash the 2.4.33.3/telnet/ftp-enabled firmimg.bin to flash....this has the functionality you are used to on your kurobox. Image Code: dd if=firmimg.bin of=/dev/fl1 bs=1k

again, if you have cmp onboard then use it to make sure everything got written correctly.

do both at the same time without rebooting. then you can reboot the first time...you ll see the box behaving differently...hopefully that way: http://www.youtube.com/watch?v=pTPrrUYd8O8

then you effectively can only boot to 2 and 3 blink mode as you only have a bootable kernel in flash (thats why you are flashing the 2.4.33.3-firmimg.bin btw...if you don`t and reboot uboot will have problems to find a kernel to boot). the 1-blink mode will work as well, but in reality it will be 2 blink mode as it defaults to the flash kernel if no kernel is found in /boot

Install freelink to /dev/hda1 you booted to EM mode with uboot....then you can install freelink to /dev/hda1. login via telnet. Code: mount_disk cd /mnt/hda1 rm -r * tar xzvf ../hda3/tmpimage-FL-1-21-LS1.tgz

that should be all.

how to install LNI uboot + 2.4.33.3-firmimg.bin to the kuroboxHG/LS HG/LS HS

Prerequisites: Code: cd /mnt/ wget http://downloads.nas-central.org/LSHG_PPC/Bootloader/Uboot/Precompiled/u-boot-lsppchg-flash-1.2.0-r2.bin wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin

(thats downloading the uboot binary + the 2.4.33.3 firmimg.bin to /mnt/ which should be the point where /dev/hda3 should be mounted to)

ok, here is the flash map of the LS HG/LS HS/kuroHG original. http://nas-central.org/index.php/Information/HGFlashROM there you see the bootloader-device /dev/mtd1 and the firmimg.bin device /dev/mtd0.

you can install latest uboot without compiling by flashing the binary to /dev/mtd1 http://nas-central.org/index.php?title= ... from_Linux

this is the critical part of this guide. in case anything goes wrong when flashing uboot you ll need jtag. be warned. it worked for me on three boxes... installing uboot to /dev/mtd1 Code: dd if=u-boot-lsppchd-flash-1.2.0-r2.bin of=/dev/mtd1 bs=1k

in case you have cmp on board of your currently installed execute the cmp command also to be completely sure that it worked.

installing the 2.4.33.3 firmimg.bin to /dev/mtd0 if you do this, i recommend to flash the 2.4.33.3/telnet/ftp-enabled firmimg.bin to flash....this has the functionality you are used to on your kurobox. Image Code: dd if=firmimg.bin of=/dev/mtd0 bs=1k

again, if you have cmp onboard then use it to make sure everything got written correctly.

do both at the same time without rebooting. then you can reboot the first time...you ll see the box behaving differently...hopefully that way: http://www.youtube.com/watch?v=pTPrrUYd8O8

then you effectively can only boot to 2 and 3 blink mode as you only have a bootable kernel in flash (thats why you are flashing the 2.4.33.3-firmimg.bin btw...if you don`t and reboot uboot will have problems to find a kernel to boot). the 1-blink mode will work as well, but in reality it will be 2 blink mode as it defaults to the flash kernel if no kernel is found in /boot

BOTH =

Update to latest 2.6-kernel last desirable thing to do is to update to a late 2.6 by running andre`s webinstaller with variant-uboot mode: http://hvkls.dyndns.org/downloads/docum ... aller.html

Things left to do when upgrading to 2.6 remember that if you update to a 2.6 kernel you will have to modify /dev/fstab...in 2.4 all devices were called /dev/hdaX , in the current 2.6-kernels they use the /dev/sdaX device.

foonas is easier for testing you can between also test http://downloads.foonas.org/foonas/alph ... 062.tar.gz it has the advantage that you do not need to provide a 2.6-kernel as it already has one included...and /etc/fstab is already modified the right way.....so you would only need to untar it to /dev/hda1 and then reboot to 1 blink mode.