-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuboot.env.in
30 lines (21 loc) · 1.11 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
27
28
29
30
os_type=linux
mmc_dev=0
mmc_part=1
mmc_root=/dev/disk/by-label/writable
mmc_root_fstype=ext4 rootwait
kernel_addr_r=0x42000000
kernel_file=kernel.img
fdt_addr_r=0x43000000
ramdisk_addr_r=0x43300000
ramdisk_file=initrd.img
snappy_trial_boot=0
snap_mode=regular
# Load
load=run load_kernel; run load_initrd; run load_fdt
load_kernel=load mmc ${mmc_dev}:${mmc_part} ${kernel_addr_r} ${snap_kernel}/${kernel_file}
load_initrd=load mmc ${mmc_dev}:${mmc_part} ${ramdisk_addr_r} ${snap_kernel}/${ramdisk_file}; setenv ramdisk_size ${filesize}
load_fdt=load mmc ${mmc_dev}:${mmc_part} ${fdt_addr_r} ${snap_kernel}/dtbs/${fdtfile}
# Helpers
build_bootargs=setenv bootargs root=${mmc_root} rootfstype=${mmc_root_fstype} snap_core=${snap_core} snap_kernel=${snap_kernel} ${kernel_args}
# Snappy
snappy_boot=if test "${snap_mode}" = "try"; then setenv snap_mode "trying"; saveenv; setenv snap_core "${snap_try_core}"; setenv snap_kernel "${snap_try_kernel}"; elif test "${snap_mode}" = "trying"; then setenv snap_mode ""; saveenv; fi; run load; run build_bootargs; bootz ${kernel_addr_r} ${ramdisk_addr_r}:${ramdisk_size} ${fdt_addr_r}