Difference between revisions of "User:CuriousMark"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(CuriousMark's Kurobox as a TiVo MediaServer Page)
(My brand new Linkstation Live is here)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==CuriousMark's Kurobox becomes a TiVo MediaServer Page==
+
==I have published my first how-to==
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 taskAlso, the thought of putting together all the pieces seemed a bit dauntingWith 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.
+
I put out a page on how to configure SAMBA so that TiVo's TiVo Desktop software doesn't choke on the NASTheir software has a bug(feature) that makes it NAS unfriendlyA tweak to SAMBA is my workaround.  The Page is [[Make your NAS Compatible with TiVo Desktop]].  Please let me know if it is helpful to you on my discussion page.
 +
<BR>
  
===Resources===
+
==I now have a second how-to==
The primary resource is NAS-Central and the wonderful people who are behind it.  I started by asking in the forums.  [http://forum.nas-central.org/viewtopic.php?f=2&t=4546 Here is the thread] that this page is based onIt 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.
+
It was the mess I had here for a very long timeKeeping it here kept from being visible to those who might benefit so I put it out there, even though I still consider it incompleteYou can find it at [[Freelink+UBoot+kernel2.6 on Kurobox]].  Please make suggestions or improvements.
 +
<BR>
  
This wiki is also a treasure trove of information and searches have often led me to a page with just the information I needed.  It is good to see it growing and maturing.
+
==My brand new Linkstation Live is here==
 
+
It is now going to be the box upon which I plan to get TiVo server software running.  I was not successful with the Kurobox, but I think that was due to not having enough RAM (only 64MB) to get pyTivo or Galleon working well enough to considered a success.  The Live has 128M and I think it will do much betterFirst I need to explore and see whether to openlink or freelink it.  I am thinking since it has some pretty good software on it already, openlink will be the way to go.  For starters, I need to figure out what firmware version it has...
Here are Mindbender's directions with ''annotations and hints based on my experience'' added.
+
Installing Buffalo's NAS Navigator on my PC answered that. It is Firmware version 2.10, and is as current as it gets.
 
+
===how to install LNI uboot + 2.4.33.3-firmimg.bin + freelink to the original kurobox/LS1===
+
 
+
====Prerequisites:====<br>
+
Things to do to get the Kurobox ready and software needed.
+
 
+
First I needed a larger amount of space on the hard drive.  I had 2GiB set aside, but from reading here, found that 5 was better recommendation.  So I tried to fire up EM-Mode on the old Kuro and couldn't get it thereEchoing NGNG wasn't working like I remembered from a couple of years ago when I first set it up.  So I decided to just live with 2GiB.  Further down I found I could remedy that, and show how I changed the sizes.  I have placed the change where it is easy and quick to accomplish and doesn't interfere with any other tasks.
+
 
+
Next we need the uboot, flash kernel, and Freelink code.  Mindbender shows getting it like this:<br>
+
<code>cd /mnt/<br>
+
:wget http://downloads.nas-central.org/LS1_PPC/Bootloader/Uboot/Precompiled/u-boot-lsppchd-flash-1.2.0-r2.bin<br>
+
:wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin<br>
+
:wget http://downloads.nas-central.org/LS1_PPC/Distributions/Freelink/TmpImages/tmpimage-FL-1-21-LS1.tgz
+
</code><br>
+
That is downloading the uboot binary + the 2.4.33.3 firmimg.bin and the freelink rootfs to /mnt/ which should be the point to which /dev/hda3 should be mounted.
+
 
+
''Since my kurobox 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.  If you are working with a new drive, this may not be an option.  The Kurobox supports ftp, and that is another way to get the files onto the box.''
+
 
+
<code>cd /mnt/<br>
+
:mv /mnt/share/u-boot-lsppchd-flash-1.2.0-r2.bin u-boot-lsppchd-flash-1.2.0-r2.bin<br>
+
:mv /mnt/share/firmimg.bin firmimg.bin<br>
+
:mv/mnt/share/tmpimage-FL-1-21-LS1.tgz<br>
+
</code>
+
 
+
Now the code is where it belongs.
+
 
+
Here is a link to the flash map of the LS1/kurobox original.<br>
+
http//buffalo.nas-central.org/index.php/Information/PPCFlashROM<br>
+
There you will see the bootloader-device is "/dev/fl2" and the firmimg.bin device is "/dev/fl1".
+
 
+
====Updating Flash Memory and the boot partition====<br>
+
You can install the latest uboot without compiling by flashing the binary to /dev/fl2<br>
+
see http://buffalo.nas-central.org/index.php?title=U-boot_bootloader#Flashing_U-Boot_from_Linux for the full up directions and warnings.  ''This process was too daunting for me to try previously, so I am very glad that Mindbender provided the software and isntructions to just do it.''
+
 
+
This is the critical part of this guide. in case anything goes wrong when flashing uboot you will need jtag to recover the box. Be warned! It worked for me on three boxes.  ''It worked for me with no trouble either, but you should know you are doing this at your own risk, you really can brick your Kurobox.''
+
 
+
<U>installing uboot to /dev/fl2</U><br>
+
<Code>:dd if=u-boot-lsppchd-flash-1.2.0-r2.bin of=/dev/fl2 bs=1k</code>
+
 
+
In case you have cmp on board of your currently installed execute the cmp command also to be completely sure that it worked.<br>
+
''I did not have cmp and did not compare.  I ran into issues later and was able to compare from Freelink (as installed below) and found that Flashing worked flawlessly.  If you do wish to compare, install it to your kurobox before beginning.''<br>
+
<code>:# cmp u-boot-lsppchd-flash-1.2.0-r2.bin /dev/fl2<br>
+
:cmp: EOF on u-boot-lsppchd-flash-1.2.0-r2.bin</code><br>
+
''EOF on the file means it was a good comparison.  The flash device doesn't end at the end of file, so this result is expected.  Everything up to the end of file compared successfully.''
+
 
+
<U>installing the 2.4.33.3 firmimg.bin to /dev/fl1</U><br>
+
If you do this uboot update, I also recommend you flash the 2.4.33.3/telnet/ftp-enabled firmimg.bin to flash.  This has the functionality you are used to having on your kurobox.  ''This is an updated flash kernel that has some nice features that really makes many tasks a breeze compared to the kuro's old EM-Mode''<br>
+
http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/EM_Welcome_Screen.JPG <br>
+
''This is the kernel that will be used in EM-Mode and when you do a two flash uboot startup.''
+
 
+
<code>:dd if=firmimg.bin of=/dev/fl1 bs=1k</code>
+
 
+
Again, if you have cmp onboard, use it to make sure everything was written correctly.
+
 
+
Do both of the above flash operations at the same time without rebooting. Then when you reboot you will see the box behaving differently.  It should behave as shown in this youtube video by Mindbender:
+
:http://www.youtube.com/watch?v=pTPrrUYd8O8
+
 
+
Watch the video closely keeping your eyes on the disk fault light.  It will blink 1, 2 or 3 times to indicate which boot mode it will execute when the entry timer expires.  Each time you press the power button, the number of flashes will increment.  If you do nothing it will boot "single flash"At this point you effectively can only boot to 2 and 3 blink mode as you only have a bootable kernel in flash, but not on the hard drive in the /boot directory (thats why you are flashing the 2.4.33.3-firmimg.bin, btw.  If you don`t install the flash kernel, and reboot uboot will have problems finding 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 on the hard drive''The Kurobox software does not have a /boot directory, so this is exactly what happens.  A blank disk would also do the same.''
+
 
+
<U>Installing freelink to /dev/hda1</U><br>
+
Once you have booted into EM mode with uboot (three flashes of the Disk Fail light during the uboot portion of startup),  you can install freelink to /dev/hda1. Login via telnet, seeing the above welcome screen, and then you can do several things.  The first thing I did was to repartition the hard drive. 
+
<code>mount_disk<br>
+
cd /mnt/hda1<br>
+
rm -r *<br>
+
tar xzvf ../hda3/tmpimage-FL-1-21-LS1.tgz<br>
+
</code>
+
 
+
That should be all, when you reboot again you will be running Freelink.  ''This is now the beginning, Freelink needs configuring and addition of all the software you will want to make the box functional as a NAS and media server.''
+
 
+
===Installing U-Boot on a Kurobox HG===
+
 
+
Here are Mindbender's directions.
+
 
+
====how to install LNI uboot + 2.4.33.3-firmimg.bin to the kuroboxHG/LS HG/LS HS====
+
''This section is taken from Mindbender's post, but I have not tried it given that I only own an original Kurobox.  It should work just as well as the standard update did for me.''
+
 
+
====Prerequisites:====
+
<code>
+
cd /mnt/<br>
+
wget http://downloads.nas-central.org/LSHG_PPC/Bootloader/Uboot/Precompiled/u-boot-lsppchg-flash-1.2.0-r2.bin<br>
+
wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin<br>
+
</code>
+
(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 the latest uboot without compiling by flashing the binary to /dev/mtd1
+
http://buffalo.nas-central.org/index.php?title=U-boot_bootloader#Flashing_U-Boot_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...
+
<U>installing uboot to /dev/mtd1</U><br>
+
<code>
+
dd if=u-boot-lsppchd-flash-1.2.0-r2.bin of=/dev/mtd1 bs=1k<br>
+
</code><br>
+
in case you have cmp on board of your currently installed execute the cmp command also to be completely sure that it worked.
+
 
+
<U>installing the 2.4.33.3 firmimg.bin to /dev/mtd0</U><br>
+
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.
+
http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/EM_Welcome_Screen.JPG <br>
+
<code>
+
dd if=firmimg.bin of=/dev/mtd0 bs=1k<br>
+
</code><br>
+
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/documentation/README-webinstaller.html
+
 
+
''This did not go well for me at firstHere is my expanded set of directions that worked better.''
+
 
+
<U>Update Freelink before updating the kernel to 2.6</U><br>
+
I found that the web installer failed and asked me to reinstall several items using apt-get when I ran it on a virgin Freelink installation.  When I tried to do the re-installs, apt-get cried foul and failed saying I needed to run apt-get update first.  Upon running that, it had a failure and recommended running it again.  the second apt-get update worked with no error messages and then the re-installs worked fine.  After all of that, the web-installer ran without a hitch.  Here is a summary of the command lines and the order that should get things up and running quickest.
+
 
+
:<code>TBD<br>
+
:TBD
+
</code><br>
+
 
+
 
+
foonas is easier for testing
+
you can between also test
+
http://downloads.foonas.org/foonas/alpha/lsppchd/foonas-bootstrap-image-1.0-dev-lsppchd.rootfs-svn-1062.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.
+
 
+
Things left to do when upgrading to 2.6
+
remember that if you update to a 2.6 kernel using foonas you will have to modify /dev/fstab...in 2.4 all devices were called /dev/hdaX , in the current foonas 2.6-kernels they use the /dev/sdaX device.  The 2.6 kernel installed by Andre's web installer uses hdaX and no modification to /def/fstab is required when using it.
+

Latest revision as of 17:07, 1 September 2008

I have published my first how-to

I put out a page on how to configure SAMBA so that TiVo's TiVo Desktop software doesn't choke on the NAS. Their software has a bug(feature) that makes it NAS unfriendly. A tweak to SAMBA is my workaround. The Page is Make your NAS Compatible with TiVo Desktop. Please let me know if it is helpful to you on my discussion page.

I now have a second how-to

It was the mess I had here for a very long time. Keeping it here kept from being visible to those who might benefit so I put it out there, even though I still consider it incomplete. You can find it at Freelink+UBoot+kernel2.6 on Kurobox. Please make suggestions or improvements.

My brand new Linkstation Live is here

It is now going to be the box upon which I plan to get TiVo server software running. I was not successful with the Kurobox, but I think that was due to not having enough RAM (only 64MB) to get pyTivo or Galleon working well enough to considered a success. The Live has 128M and I think it will do much better. First I need to explore and see whether to openlink or freelink it. I am thinking since it has some pretty good software on it already, openlink will be the way to go. For starters, I need to figure out what firmware version it has... Installing Buffalo's NAS Navigator on my PC answered that. It is Firmware version 2.10, and is as current as it gets.