add layer meta-netboot to enable network boot over NBD (Network Block Device)
[AGL/meta-agl.git] / meta-netboot / README.porter
1 Below are the environment variables that can be set in the u-boot console to boot the porter board in various configurations
2
3 ################## Common options #####################
4 # these options are common to all configurations:
5
6 setenv 'bootkfile' 'uImage+dtb'
7 setenv 'bootkaddr' '0x40007fc0'
8
9 setenv 'bootifile' 'initramfs-netboot-image-porter.ext4.gz.u-boot'
10 setenv 'bootiaddr' '0x50000000'
11
12 setenv 'bootargs_console' 'console=ttySC6,38400 ignore_loglevel'
13 setenv 'bootargs_video' 'vmalloc=384M video=HDMI-A-1:1280x960-32@60'
14 setenv 'bootargs_extra' 'rw rootfstype=ext4 rootwait rootdelay=2'
15
16 ################ Boot on MMC (SDcard) #################
17
18 setenv 'bootargs_root' 'root=/dev/mmcblk0p1'
19 setenv 'bootmmc' '1:1'
20 setenv 'bootkload_sd' 'ext4load mmc ${bootmmc} ${bootkaddr} boot/${bootkfile}'
21 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; bootm ${bootkaddr}'
22
23 ################ Boot on MMC (SDcard) with initrd ######
24
25 setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384'
26 setenv 'bootmmc' '1:1'
27 setenv 'bootkload_sd' 'ext4load mmc ${bootmmc} ${bootkaddr} boot/${bootkfile}'
28 setenv 'bootiload_sd' 'ext4load mmc ${bootmmc} ${bootiaddr} boot/${bootifile}'
29 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; run bootiload_sd; bootm ${bootkaddr} ${bootiaddr}'
30
31 ################ Netboot through TFTP+NBD ##################
32 # replace <IP> addresses by appropriate addresses
33
34 setenv 'ipaddr' '<board_IP>'
35 setenv 'serverip' '<server_IP>'
36
37 setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384 ip=dhcp'
38 setenv 'bootkload_net' 'tftp ${bootkaddr} porter/${bootkfile}'
39 setenv 'bootiload_net' 'tftp ${bootiaddr} porter/${bootifile}'
40 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra} nbd.server=${serverip}; run bootkload_net; run bootiload_net; bootm ${bootkaddr} ${bootiaddr}'
41