Boot kernel using tftp

Setup tftp server

At the ubuntu host, install the tftp server:

sudo apt-get install tftpd

Add these lines to /etc/inetd.conf :

#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."
tftp            dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /srv/tftp

Place the kernel uImage at /srv/tftp.

Setup u-boot

At the device, setup the correct ip address and boot parameters:

# device ip:
setenv ipaddr "192.168.0.11"
setenv netmask "255.255.255.0"
setenv gatewayip "192.168.0.1"

# tftp server ip:
setenv serverip "192.168.0.24"

# load kernel from tftp server
setenv bootcmd "tftpboot 0xc0008000 uImage ; bootm 0xc0008000"

# sample bootargs to use root on NFS:
setenv bootargs "console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.0.24:/srv/rootfs/ok6410 ip=dhcp rw"
oe/boot_kernel_using_tftp.txt · Last modified: 2010-11-05 11:20 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0