Difference between revisions of "Uboot firmimg.bin ppc"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Why?)
(Installation from Linux)
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{{Articles|Kurobox|LS1|HG}}
 
{{Articles|Kurobox|LS1|HG}}
 +
<div align="center" width="80%" style="border: 1px solid #CC9999; background-color: #FFCCCC; padding: 5px">
 +
{| style="padding: 10px"
 +
|-
 +
|align="center" nowrap |[[Image:Nuvola_apps_important.png|100px]]&nbsp;
 +
|align="left" width="100%"|<center>'''NOTE: <font color="red">YOU MUST HAVE U-BOOT INSTALLED BEFORE CONTINUING WITH THESE INSTRUCTIONS!'''</font color></center>
 +
|}</div>
 +
 +
 
==Why?==
 
==Why?==
 
The stock EM Mode on the ppc-based linkstations does not feature telnet/ftp access like the ppc based kurobox/kurobox HG. That's why a new firmimg.bin was created.
 
The stock EM Mode on the ppc-based linkstations does not feature telnet/ftp access like the ppc based kurobox/kurobox HG. That's why a new firmimg.bin was created.
Line 5: Line 13:
 
A firmimg.bin essentially is a gzipped vmlinux-kernel and a gzipped initrd merged into one new file with an additional header in front. The so called firmimgtool from http://www.geocities.jp/trstat/firmhack.html was used for disassembly and assembly of the file.  
 
A firmimg.bin essentially is a gzipped vmlinux-kernel and a gzipped initrd merged into one new file with an additional header in front. The so called firmimgtool from http://www.geocities.jp/trstat/firmhack.html was used for disassembly and assembly of the file.  
  
Linuxnotincluded not only ported UBoot to the ppc based Linkstations, he also [http://www.linuxnotincluded.pwp.blueyonder.co.uk/linkstation/kernel.html ported 2.4.33.3 to the ppc linkstations]]. This port is also a universal one which means that the same kernel works on the LS1/HG/HS, and this was really needed as all three had used different kernels.
+
Linuxnotincluded not only ported UBoot to the ppc based Linkstations, he also [http://www.linuxnotincluded.pwp.blueyonder.co.uk/linkstation/kernel.html ported 2.4.33.3 to the ppc linkstations]. This port is also a universal one which means that the same kernel works on the LS1/HG/HS, and this was really needed as all three had used different kernels.
 
+
Note: If you've just installed U-Boot onto your KuroboxHG, and you're running a 2.6 kernel, you'll find that the method described below for installing the firmimg.bin will not work. In this case you'll need to install it using U-Boot. Instructions on how to do this are coming soon.
+
  
 
==Features==
 
==Features==
Line 17: Line 23:
  
 
== Installation from Linux ==
 
== Installation from Linux ==
The stock firmwares do not provide telnet/ssh access. If you have serial connection you can use it for installation.
 
But it is much easier to use OpenLink/FreeLink as they provide telnet/ssh access.
 
  
Actually you should install UBoot and this 2.4.33.3 firmimg.bin at the same time...then you always can boot to the flash with telnet/ftp access and can setup the hdd from there.
+
'''Note: You should have uBoot installed before proceeding with installing a new firmimg.bin.  Failure to do so could brick your LinkStation or Kurobox.'''
 +
 
 +
The stock firmwares do not provide telnet/ssh access. If you have serial connection you can use it for installation, but it is much easier to use OpenLink/FreeLink as they provide telnet/ssh access.
 +
 
 +
Download this [http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin firmimg.bin] and transfer it to the standard share of the Linkstation. if you do not have this share anymore, or you have a Kurobox, transfer it somewhere on the box via samba or ftp and cd into that directory instead of /mnt/share.
  
Download this [http://downloads.nas-central.org/ALL_LS_KB_PPC/Bootloader/UBoot/FirmimgBins/linux-2.4.33.3-list.mg.2-v3/firmimg.bin firmimg.bin] and transfer it to the standard share of the Linkstation. if you do not have this share anymore or you have a kurobox transfer it somewhere on the box via samba or ftp and cd into that directory instead of /mnt/share.
+
Note: When the raw copy data command 'dd' is issued you may find your shell/terminal window locks up. If so, just start a new one, log in, navigate back to /mnt/share or wherever and carry on with the code.
  
 
=== [[LS1]], [[Kurobox]]  ===
 
=== [[LS1]], [[Kurobox]]  ===
  
For LinkStation 1 / KuroBox standard run:
+
For LinkStation 1 / Kurobox standard run:
 
  # cd /mnt/share/
 
  # cd /mnt/share/
 
  # dd if=firmimg.bin of=/dev/fl1 bs=1k
 
  # dd if=firmimg.bin of=/dev/fl1 bs=1k
Line 33: Line 41:
 
===[[HG]], [[HS]], [[Kurobox|Kurobox HG]] ===
 
===[[HG]], [[HS]], [[Kurobox|Kurobox HG]] ===
  
For LinkStation HG / KuroBox HG run:
+
For LinkStation HG / Kurobox HG run:
 
  # cd /mnt/share/
 
  # cd /mnt/share/
  # dd if=firmimg.bin of=/dev/mtd0 bs=1k
+
  # dd if=firmimg.bin of=/dev/mtdblock0 bs=1k
 
  # cmp firmimg.bin /dev/mtd0
 
  # cmp firmimg.bin /dev/mtd0
  

Latest revision as of 16:13, 26 January 2008

Nuvola apps important.png 
NOTE: YOU MUST HAVE U-BOOT INSTALLED BEFORE CONTINUING WITH THESE INSTRUCTIONS!


Contents

Why?

The stock EM Mode on the ppc-based linkstations does not feature telnet/ftp access like the ppc based kurobox/kurobox HG. That's why a new firmimg.bin was created.

A firmimg.bin essentially is a gzipped vmlinux-kernel and a gzipped initrd merged into one new file with an additional header in front. The so called firmimgtool from http://www.geocities.jp/trstat/firmhack.html was used for disassembly and assembly of the file.

Linuxnotincluded not only ported UBoot to the ppc based Linkstations, he also ported 2.4.33.3 to the ppc linkstations. This port is also a universal one which means that the same kernel works on the LS1/HG/HS, and this was really needed as all three had used different kernels.

Features

  • 2.4.33.3 kernel in flash
  • telnet-access
  • ftp-access
  • fdisk, chroot included
  • mount_disk script added for easier mounting of the hdd partitions.

Installation from Linux

Note: You should have uBoot installed before proceeding with installing a new firmimg.bin. Failure to do so could brick your LinkStation or Kurobox.

The stock firmwares do not provide telnet/ssh access. If you have serial connection you can use it for installation, but it is much easier to use OpenLink/FreeLink as they provide telnet/ssh access.

Download this firmimg.bin and transfer it to the standard share of the Linkstation. if you do not have this share anymore, or you have a Kurobox, transfer it somewhere on the box via samba or ftp and cd into that directory instead of /mnt/share.

Note: When the raw copy data command 'dd' is issued you may find your shell/terminal window locks up. If so, just start a new one, log in, navigate back to /mnt/share or wherever and carry on with the code.

LS1, Kurobox

For LinkStation 1 / Kurobox standard run:

# cd /mnt/share/
# dd if=firmimg.bin of=/dev/fl1 bs=1k
# cmp firmimg.bin /dev/fl1

HG, HS, Kurobox HG

For LinkStation HG / Kurobox HG run:

# cd /mnt/share/
# dd if=firmimg.bin of=/dev/mtdblock0 bs=1k
# cmp firmimg.bin /dev/mtd0

then, when you choose to boot to EM Mode you can login via telnet and you will see this screen:

EM Welcome Screen.JPG

Obviously there is no root password, fdisk and chroot is included and a script was added which mounts /dev/hda1 & /mnt/hda3 to /mnt/hda1 & mnt/hda3.