-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuboot.env.in
26 lines (26 loc) · 1.28 KB
/
uboot.env.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
arch=arm
baudrate=115200
board=hikey
board_name=hikey
bootcmd=run snappy_boot
bootdelay=0
cpu=armv8
kernel_file=kernel.img
fdtfile=hi6220-hikey.dtb
initrd_file=initrd.img
kernel_addr_r=0x00080000
fdt_addr_r=0x02000000
ramdisk_addr=0x04000000
loadfiles=run loadkernel; run loadfdt; run loadinitrd
loadkernel=fatload mmc 1:1 ${kernel_addr_r} ${snap_kernel}/${kernel_file}
loadfdt=fatload mmc 1:1 ${fdt_addr_r} ${snap_kernel}/dtbs/${fdtfile}
loadinitrd=fatload mmc 1:1 ${ramdisk_addr} ${snap_kernel}/${initrd_file}; setenv initrd_size ${filesize}
mmcargs=setenv bootargs "console=ttyAMA3,115200n8 root=${mmcroot}"
snappy_ab=a
snappy_boot=if test "${snap_mode}" = "try"; then setenv snap_mode "trying"; saveenv; if test "${snap_try_core}" != ""; then setenv snap_core "${snap_try_core}"; fi; if test "${snap_try_kernel}" != ""; then setenv snap_kernel "${snap_try_kernel}"; fi; elif test "${snap_mode}" = "trying"; then setenv snap_mode ""; saveenv; fi; run loadfiles; setenv mmcroot "/dev/disk/by-label/writable ${snappy_cmdline} snap_core=${snap_core} snap_kernel=${snap_kernel}"; run mmcargs; booti ${kernel_addr_r} ${ramdisk_addr}:${initrd_size} ${fdt_addr_r}
snappy_cmdline=net.ifnames=0 init=/lib/systemd/systemd ro panic=-1 fixrtc
snappy_trial_boot=0
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon