Skip to content

Instantly share code, notes, and snippets.

@deadman96385
Created February 8, 2023 22:55
Show Gist options
  • Save deadman96385/fff4110f79fdfde58ee9bbab00d783ef to your computer and use it in GitHub Desktop.
Save deadman96385/fff4110f79fdfde58ee9bbab00d783ef to your computer and use it in GitHub Desktop.
Calc-env
earlyprintk=sunxi-uart,0x01c28000
initcall_debug=0
console=ttyS0,115200
nand_root=/dev/nand0p5
mmc_root=/dev/mmcblk0p5
init=/init
loglevel=8
cma=8M
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}
setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} rootwait partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac}
boot_normal=sunxi_flash read 45000000 boot;boota 45000000 boot
boot_recovery=sunxi_flash read 45000000 recovery;boota 45000000 recovery
boot_fastboot=fastboot
recovery_key_value_max=0x13
recovery_key_value_min=0x10
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2
bootdelay=0
bootcmd=run setargs_nand boot_normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment