|
#kernel command arguments
|
earlyprintk=sunxi-uart,0x05000000
|
initcall_debug=0
|
console=ttyS0,115200
|
nand_root=/dev/nand0p4
|
mmc_root=/dev/mmcblk0p4
|
init=/init
|
loglevel=8
|
cma=8M
|
mac=
|
wifi_mac=
|
bt_mac=
|
specialstr=
|
keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
|
trace_buf_size=64M
|
trace_event=sched_wakeup,sched_switch,sched_blocked_reason,sched_cpu_hotplug,block,ext4
|
trace_enable=0
|
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
|
setargs_nand=setenv bootargs earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
|
setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
|
#nand command syntax: sunxi_flash read address partition_name read_bytes
|
#0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k)
|
boot_normal=sunxi_flash read 45000000 boot;bootm 45000000
|
boot_recovery=sunxi_flash read 45000000 recovery;bootm 45000000
|
boot_fastboot=fastboot
|
|
#uboot system env config
|
bootdelay=0
|
#default bootcmd, will change at runtime according to key press
|
bootcmd=run setargs_nand boot_normal#default nand boot
|