Foonas-em:TFTPBoot-kuropro

From foonas
Jump to: navigation, search

Server Configuration and Image

Configure a tftp server on your platform of choice using 192.168.11.149 as its IP address. You should also have serial port access to the device so that you can issue commands to U-Boot. The root directory for your tftp server must contain the files you need to boot your LinkStation with, in this case uImage_2.6.25.1.

Download the latest firmware from here.

Using a Serial Port Connection

Using the serial port app of your choice (e.g. minicom), establish a connection to your LinkStation and power it up. You will see the usual:

=== KURO U-Boot. ===                                 
 ** LOADER **
 ** KUROBOX BOARD: KURO_BOX  LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Apr 10 2007 - 18:10:08) Marvell version: 1.12.1 - TINY


...
                                                                                
Soc: 88F5182 A2                                                                 
CPU: ARM926 (Rev 0) running @ 500Mhz                                             
Orion 1 streaming disabled                                                      
SysClock = 250Mhz , TClock = 166Mhz                                             
                                                                                
...                                   
                                                                                
Marvell Serial ATA Adapter                                                      
Intergrated Sata device found                                                   
  Device 0: OK                                                                  
Model: WDC WD2500JD-00HBC0                      Firm: 08.02D08 Ser#:      WD-WC6
            Type: Hard Disk                                                     
            Supports 48-bit addressing                                          
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)                  
                                                                                


hit any key to switch tftp boot.      
                                         

When you see the last line above stop the boot process by pressing any key twice or so.

You should see the UBoot prompt then:

Marvell>> 

You then must pass the correct boot parameters to UBoot, tftp the image into your LinkStation, and boot it, by entering each of these commands at the UBoot prompt:

setenv bootargs console=ttyS0,115200 root=/dev/ram0 rw
tftp 00800000 uImage_2.6.25.1
bootm 00800000

If successful you will see something like this:

Marvell>> setenv bootargs console=ttyS0,115200 root=/dev/ram0 rw
Marvell>> tftp 00800000 uImage_2.6.25.1
Using egiga0 device
TFTP from server 192.168.11.149; our IP address is 192.168.11.150
Filename 'uImage_2.6.25.1'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
...
         #################################################################
         ##################
done
Bytes transferred = 6078660 (5cc0c4 hex)
Marvell>> bootm 00800000
<<stop_sound>>
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.25.1
   Created:      2007-11-11   2:56:07 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6078596 Bytes =  5.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

kuropro login: 

You are now booted w/ a foonas-em image. You should be able to log in with username "root" and password "hydr0g3n" over your existing serial port connection or telnet it via its DHCP assigned address. Should DHCP fail it will default to the IP address of 192.168.11.150.

Using a dummy initrd (without serial port connection)

You can also boot foonas-em via tftp if you provide a dummy initrd. You may even use the stock one as it will be totally ignored because foonas-em will boot the initramfs instead of the initrd.

Personal tools