On Wednesday, October 2, 2013 6:02:22 PM UTC+3, joeyme...@gmail.com wrote:
>
> How can I setup TFTP server for the Beaglebone Black?
>

I have BB white and this is my uEnv.txt where I load kernel+fdt from tftp 
and rootfs from nfs:

hostname=a335bone

kernel_addr_r=0x80200000
expand_bootfile=setenv bootfile ${hostname}/uImage

fdt_addr_r=0x80F80000
expand_fdtfile=setenv fdtfile ${hostname}/am335x-bone.dtb

ipaddr=192.168.42.11
serverip=192.168.42.1
gatewayip=192.168.42.1
netmask=255.255.255.0
netdev=eth0

# --> uImage from tftp
kernel_netload=tftp ${kernel_addr_r} ${bootfile}
# <-- uImage from tftp

# --> fdt from tftp
fdt_netload=tftp ${fdt_addr_r} ${fdtfile}
# <-- fdt from tftp

# --> uImage + fdt from tftp
netload=run kernel_netload fdt_netload
# <-- uImage + fdt from tftp

# --> generic bootargs
bootargs=console=ttyO0,115200n8
# <-- generic bootargs

# --> rootfs from mmcblk0p2
#mmcroot=/dev/mmcblk0p2 ro
#mmcrootfstype=ext4 rootwait
#mmc_to_bootargs=setenv bootargs ${bootargs} root=${mmcroot} 
rootfstype=${mmcrootfstype}
#
#mmcboot=echo Booting from mmc...; run mmc_to_bootargs
#
# --> generic
#compose_default=run expand_bootfile; echo bootfile: ${bootfile}; run 
expand_fdtfile; echo fdtfile: ${fdtfile}; ping ${serverip}
# <-- generic
#
#compose_mmcboot=run mmcboot
#
#uenvcmd=run compose_default; run netload; run compose_mmcboot; printe 
bootargs; bootm ${kernel_addr_r} - ${fdt_addr_r}
# <-- rootfs from mmcblk0p2

# --> rootfs from nfs
nfsroot=/opt/eldk-5.3/armv7a/rootfs-sato-sdk
ips_to_bootargs=setenv bootargs ${bootargs} 
ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
nfs_to_bootargs=setenv bootargs ${bootargs} 
nfsroot=${serverip}:${nfsroot},v3,tcp
default_to_bootargs=setenv bootargs ${bootargs} noinitrd nohlt panic=1
compose_bootargs=run ips_to_bootargs; run nfs_to_bootargs; run 
default_to_bootargs
nfsboot=echo Booting from nfs...; run compose_bootargs

# --> generic
compose_default=run expand_bootfile; echo bootfile: ${bootfile}; run 
expand_fdtfile; echo fdtfile: ${fdtfile}; ping ${serverip}
# <-- generic

compose_nfsboot=run nfsboot

uenvcmd=run compose_default; run netload; run compose_nfsboot; printe 
bootargs; bootm ${kernel_addr_r} - ${fdt_addr_r}
# <-- rootfs from nfs 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to