• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2#kernel command arguments
3earlyprintk=sunxi-uart,0x05000000
4initcall_debug=0
5console=ttyAS0,115200
6nand_root=/dev/nand0p4
7nand_rootbak=/dev/nand0p5
8ubinand_root=/dev/ubi0_4
9mmc_root=/dev/mmcblk0p4
10mmc_rootbak=/dev/mmcblk0p5
11nor_root=/dev/mtdblock2
12root_partition=rootfs
13mtd_name=sys
14#rootfstype=ubifs,rw
15init=/init
16loglevel=8
17selinux=0
18cma=256M
19mac=
20wifi_mac=
21bt_mac=
22specialstr=
23keybox_list=hdcpkey,widevine
24#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
25setargs_nor=setenv bootargs  earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} init=${init} partitions=${partitions} cma=${cma} selinux=${selinux}
26setargs_nand=setenv bootargsubi.mtd=${mtd_name} 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} selinux=${selinux} specialstr=${specialstr} gpt=1 rootfstype=${rootfstype}
27setargs_nand_ubi=setenv bootargs earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} ubi.mtd=${mtd_name} ubi.block=0,${root_partition} root=${ubinand_root} init=${init} partitions=${partitions} cma=${cma} mac_addr=${mac} selinux=${selinux} specialstr=${specialstr} snum=${snum}
28setargs_mmc=setenv  bootargs earlyprintk=${earlyprintk} clk_ignore_unused 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} selinux=${selinux} specialstr=${specialstr} gpt=1
29#nand command syntax: sunxi_flash read address partition_name read_bytes
30#0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k)
31boot_normal=sunxi_flash read 45000000 boot;bootm 45000000
32boot_recovery=sunxi_flash read 45000000 recovery;bootm 45000000
33boot_fastboot=fastboot
34#recovery key
35recovery_key_value_max=0x13
36recovery_key_value_min=0x10
37#fastboot key
38fastboot_key_value_max=0x8
39fastboot_key_value_min=0x2
40
41#uboot system env config
42bootdelay=0
43#default bootcmd, will change at runtime according to key press
44bootcmd=run setargs_nand boot_normal#default nand boot
45