User Tools

Site Tools


tutorials:cb2:misc:lubuntu_nand_change_boot_params

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:cb2:misc:lubuntu_nand_change_boot_params [2013/09/26 12:52]
soloforce moved to new namespace
— (current)
Line 1: Line 1:
-====== u_boot_env_gen ====== 
- 
- 
-for lubuntu nand images, the boot parameters is stored at /dev/nandb. 
- 
-<​code>​ 
-root@cubieboard2:​~#​ strings /dev/nandb 
-bootdelay=1 
-bootcmd=run setargs_nand boot_normal 
-console=ttyS0,​115200 
-nand_root=/​dev/​system 
-mmc_root=/​dev/​mmcblk0p7 
-init=/init 
-loglevel=5 
-setargs_nand=setenv bootargs console=${console} init=${init} loglevel=${loglevel} 
-setargs_mmc=setenv bootargs console=${console} init=${init} loglevel=${loglevel} 
-boot_normal=boota 40007800 
-boot_recovery=sunxi_flash read 40007800 recovery;​boota 40007800 
-boot_fastboot=fastboot 
-recovery_key_value_max=0x13 
-recovery_key_value_min=0x10 
-fastboot_key_value_max=0x8 
-fastboot_key_value_min=0x2 
-</​code>​ 
- 
-A way to change it is,  
-  - Dump the boot params to a file uEnv.txt 
-  - Change as you want 
-  - Convert uEnv.txt to a image with u_boot_env_gen tool ([[http://​dl.cubieboard.org/​software/​a20-cubieboard/​lubuntu/​|download]]) 
-  - dd back the image to /dev/nandd 
- 
- 
- 
  
tutorials/cb2/misc/lubuntu_nand_change_boot_params.1380171153.txt.gz · Last modified: 2013/12/23 14:50 (external edit)