meta-agl-bsp: extend qemux86-64 hardware support
[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 Renesas Gen3 ULCB boards.
2
3 Adjust board type with the following identifiers:
4
5 * 'm3ulcb' for Renesas Gen3 Starter Kit Pro
6 * 'h3ulcb' for Renesas Gen3 Starter Kit Premium
7
8 ################## Common options #####################
9 # these options are common to all configurations:
10
11 ##### board info
12
13 # choose board
14 setenv board m3ulcb
15 setenv soc r8a7796
16 # or
17 setenv board h3ulcb
18 setenv soc r8a7795
19
20 ##### boot mode
21 # choose bootmode:
22 # netboot
23 setenv bootmode net
24 # or sdcard
25 setenv bootmode sd
26 # or sdcard with initrd
27 setenv bootmode sdi
28
29 ##### sdcard options
30 # which sdcard slot to use
31 setenv bootmmc '0:1'
32
33 ##### netboot options
34 # replace <IP> and <NUM> by appropriate addresses
35 setenv ipaddr '<board_IP>'
36 setenv serverip '<server_IP>'
37 setenv ethact ravb
38 setenv ethaddr DE:AD:C0:FF:EE:<NUM>
39
40 ################## Internal variables #####################
41
42 # kernel file
43 setenv set_bootkfile 'setenv bootkfile Image'
44 setenv bootkaddr 0x48080000
45
46 # dtb file
47 setenv set_bootdfile 'setenv bootdfile Image-${soc}-${board}.dtb'
48 setenv bootdaddr 0x48000000
49
50 # initrd
51 setenv set_bootifile 'setenv bootifile initramfs-netboot-image-${board}.ext4.gz'
52 setenv bootiaddr 0x5C3F9520
53 setenv bootisize 3A6AB6
54
55 # kernel args
56 setenv bootargs_console 'console=ttySC0,115200 ignore_loglevel'
57 setenv bootargs_video 'vmalloc=384M video=HDMI-A-1:1920x1080-32@60'
58 setenv bootargs_extra 'rw rootfstype=ext4 rootwait rootdelay=2'
59
60 # final boot command
61 setenv bootcmd 'run bootcmd_${bootmode}'
62
63 ################ Boot on MMC (SDcard) #################
64
65 setenv bootkload_sd 'ext4load mmc ${bootmmc} ${bootkaddr} boot/${bootkfile}'
66 setenv bootiload_sd 'ext4load mmc ${bootmmc} ${bootiaddr} boot/${bootifile}'
67 setenv bootdload_sd 'ext4load mmc ${bootmmc} ${bootdaddr} boot/${bootdfile}'
68
69 # without initrd
70 setenv bootargs_root_sd 'root=/dev/mmcblk1p1'
71 setenv bootload_sd 'run set_bootkfile; run bootkload_sd; run set_bootdfile; run bootdload_sd'
72 setenv bootcmd_sd 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root_sd} ${bootargs_extra}; run bootload_sd; booti ${bootkaddr} - ${bootdaddr}'
73
74 # with initrd
75 setenv bootargs_root_sdi 'root=/dev/ram0 ramdisk_size=16384'
76 setenv bootload_sdi 'run set_bootkfile; run bootkload_sd; run set_bootdfile; run bootdload_sd; run set_bootifile; run bootiload_sd'
77 setenv bootcmd_sdi 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root_sdi} ${bootargs_extra}; run bootload_sdi; booti ${bootkaddr} ${bootiaddr}:${bootisize} ${bootdaddr}'
78
79 ################ Netboot through TFTP+NBD ##################
80
81 setenv bootkload_net 'tftp ${bootkaddr} ${board}/${bootkfile}'
82 setenv bootdload_net 'tftp ${bootdaddr} ${board}/${bootdfile}'
83 setenv bootiload_net 'tftp ${bootiaddr} ${board}/${bootifile}'
84
85 setenv bootargs_root_net 'root=/dev/ram0 ramdisk_size=16384 ip=dhcp'
86 setenv bootload_net 'run set_bootkfile; run bootkload_net; run set_bootdfile; run bootdload_net; run set_bootifile; run bootiload_net'
87
88 setenv bootcmd_net 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root_net} ${bootargs_extra} nbd.server=${serverip}; run bootload_net; booti ${bootkaddr} ${bootiaddr}:${bootisize} ${bootdaddr}'
89
90