00c938bbaa20feb692797c64061d5ae88012c322
[AGL/meta-agl.git] / meta-netboot / README.renesas-gen3
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 ################## Gen3 options #####################
4 # these options are common to Renesas Gen3 configurations, take care which board
5 # you are using (h3ulcb, m3ulcb, salvator...):
6
7 setenv 'bootkfile' 'Image'
8 setenv 'bootkaddr' '0x48080000'
9
10 # For h3ulcb
11 setenv 'bootdfile' 'Image-r8a7795-h3ulcb.dtb'
12 # For m3ulcb
13 setenv 'bootdfile' 'Image-r8a7796-m3ulcb.dtb'
14 setenv 'bootdaddr' '0x48000000'
15
16 # For h3ulcb
17 setenv 'bootifile' 'initramfs-netboot-image-h3ulcb.ext4.gz'
18 # For m3ulcb
19 setenv 'bootifile' 'initramfs-netboot-image-m3ulcb.ext4.gz'
20
21 setenv 'bootiaddr' '0x5C3F9520'
22
23 setenv 'bootargs_console' 'console=ttySC0,115200 ignore_loglevel'
24 setenv 'bootargs_video' 'vmalloc=384M video=HDMI-A-1:1280x960-32@60'
25 setenv 'bootargs_extra' 'rw rootfstype=ext4 rootwait rootdelay=2'
26
27 ################ Boot on MMC (SDcard) #################
28
29 setenv 'bootargs_root' 'root=/dev/mmcblk1p1'
30 setenv 'bootmmc' '0:1'
31 setenv 'load_ker' 'ext4load mmc 0:1 ${bootkaddr} /boot/${bootkfile}'
32 setenv 'load_dtb' 'ext4load mmc 0:1 ${bootdaddr} /boot/${bootdfile}'
33 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; booti ${bootkaddr} - ${bootdaddr}'
34
35 ################ Boot on MMC (SDcard) with initrd ######
36
37 setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384'
38 setenv 'bootmmc' '1:1'
39 setenv 'bootkload_sd' 'ext4load mmc ${bootmmc} ${bootkaddr} boot/${bootkfile}'
40 setenv 'bootiload_sd' 'ext4load mmc ${bootmmc} ${bootiaddr} boot/${bootifile}'
41 setenv 'load_dtb' 'ext4load mmc 0:1 ${bootdaddr} /boot/${bootdfile}'
42 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; run bootiload_sd; setenv initrd_size ${filesize}; booti ${bootkaddr} ${bootiaddr}:${initrd_size} ${bootdaddr}'
43
44 ################ Netboot through TFTP+NBD ##################
45 # replace <IP> addresses by appropriate addresses. Example about h3ulcb
46 # PLEASE ADJUST TO YOUR BOARD
47
48 setenv 'ipaddr' '<board_IP>'
49 setenv 'serverip' '<server_IP>'
50
51 setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384 ip=dhcp'
52 setenv 'bootdaddr' '0x48000000'
53 setenv 'bootdfile' 'Image-r8a7795-h3ulcb.dtb'
54 setenv 'bootdload_net' 'tftp ${bootdaddr} h3ulcb/${bootdfile}'
55 setenv 'bootkaddr' '0x48080000'
56 setenv 'bootkfile' 'Image'
57 setenv 'bootkload_net' 'tftp ${bootkaddr} h3ulcb/${bootkfile}'
58 setenv 'bootiaddr' '0x5C3F9520'
59 setenv 'bootifile' 'initramfs-netboot-image-h3ulcb.ext4.gz'
60 setenv 'bootiload_net' 'tftp ${bootraddr} h3ulcb/${bootrfile}'
61 setenv 'load_net' 'run bootkload_net; run bootdload_net; run bootiload_net; setenv initrd_size ${filesize}'
62
63 setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra} nbd.server=${serverip}; run load_net; booti ${bootkaddr} ${bootiaddr}:${initrd_size} ${bootdaddr}'
64