-
Notifications
You must be signed in to change notification settings - Fork 22
/
uEnv_r2pro.txt
50 lines (38 loc) · 1.67 KB
/
uEnv_r2pro.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
board=bpi-r2pro
device=mmc
partition=1:2
bootenv=uEnv.txt
loadaddr=0xc00800
fit=bpi-r2pro.itb
#vars for distroboot (bootflow scan -lb)
fdt_addr_r=0x0a100000
kernel_addr_r=0x02080000
kernel_comp_addr_r=0x0c000000
kernel_comp_size=0x03000000
ramdisk_addr_r=0x0a200000
distro_bootcmd=bootflow scan -lb
ipaddr=192.168.0.19
serverip=192.168.0.10
#console=earlyprintk console=ttyS0,115200
root=/dev/mmcblk0p3 rootfstype=ext4 rootwait
bootopts=net.ifnames=0
#graphic=video=1920x1080 console=tty1 fbcon=map:0 drm.debug=0x7
buildargs=setenv bootargs "board=${board} ${console} root=${root} ${bootopts} ${graphic}"
checkenv=test -e ${device} ${partition} ${bootenv}
importenv=env import -t ${loadaddr} ${filesize}
loadbootenv=if fatload ${device} ${partition} ${loadaddr} ${bootenv};then run importenv;else echo "fatload (${bootenv}) failed";fi
resetenv=env default -a;printenv;
checksd=fatinfo ${device} 1:2
selectmmc=if run checksd; then echo Boot from SD ; setenv partition 1:2;else echo Boot from eMMC; setenv partition 0:2 ; fi;
loadkernel=fatload $device $partition $loadaddr ${fit}
useinitrd=setenv root "/dev/ram0 rw";setenv bootopts "${bootopts} initrd=${rdaddr},20M";
checkrd=if printenv initrd;then if fatload ${device} ${partition} ${rdaddr} ${initrd};then run useinitrd;fi;fi
newboot=run checkrd; run buildargs;if printenv fit;then if run loadkernel; then bootm $loadaddr; fi;fi;
reloadmenu=run selectmmc;if run checkenv; then run loadbootenv; else echo file not found; fi;bootmenu;
#bootmenu
bootmenu_0=1. Boot from SD/EMMC.=run newboot
bootmenu_1=2. Standard Boot.=run distro_bootcmd
bootmenu_default=0
#automatic reload from sd/emmc
bootdelay=0
bootcmd=setenv bootdelay 3; run reloadmenu;