Skip to content

Instantly share code, notes, and snippets.

@adukot
Created December 10, 2014 16:27
Show Gist options
  • Save adukot/2b2f771d24a71848c8a4 to your computer and use it in GitHub Desktop.
Save adukot/2b2f771d24a71848c8a4 to your computer and use it in GitHub Desktop.
U-Boot 2011.09-rc1 (Jul 03 2013 - 17:40:47) Allwinner Technology
CPU: SUNXI Family
Board: SUN7I-EVB
DRAM: 1 GiB
NAND: [NAND] set nand_good_block_ratio 840
3360 MiB
In: serial
Out: serial
Err: serial
--------fastboot partitions--------
-total partitions:4-
-name- -start- -size-
bootloader : 8000 10000
env : 18000 8000
boot : 20000 8000
UDISK : 28000 668000
-----------------------------------
no misc partition is found
Hit any key to stop autoboot: 0
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#
sunxi#help
? - alias for 'help'
base - print or set address offset
boot - boot default, i.e., run 'bootcmd'
boota - boota - boot android bootimg from memory
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
env - environment handling commands
exit - exit script
false - do nothing, unsuccessfully
fastboot- fastboot- use USB Fastboot protocol
fatdown - download data to a dos filesystem
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
go - start application at address 'addr'
help - print command description/usage
key_test- Test the key value and dump key registers
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nm - memory modify (constant address)
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
showvar - print local hushshell variables
sunxi_flash- sunxi_flash sub-system
test - minimal test like /bin/sh
true - do nothing, successfully
version - print monitor, compiler and linker version
sunxi#
sunxi#print
boot_fastboot=fastboot
boot_normal=fatload nand 0 0x43000000 script.bin && fatload nand 0 0x48000000 ${kernel} && bootm 0x48000000
boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800
bootcmd=run setargs_nand boot_normal
bootdelay=1
console=ttyS0,115200 console=tty1
fastboot_key_value_max=0x8
fastboot_key_value_min=0x2
init=/init
kernel=uImage
loglevel=8
mmc_root=/dev/mmcblk0p7
nand_root=/dev/nandd
partitions=bootloader@nanda:env@nandb:boot@nandc:UDISK@nandd
recovery_key_value_max=0x13
recovery_key_value_min=0x10
setargs_mmc=setenv bootargs coherent_pool=2M console=${console} root=${mmc_root} init=${init} loglevel=${loglevel} partitions=${partitions}
setargs_nand=setenv bootargs coherent_pool=2M console=${console} root=${nand_root} init=${init} loglevel=${loglevel} partitions=${partitions}
stderr=serial
stdin=serial
stdout=serial
Environment size: 896/131068 bytes
sunxi#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment