移植2013Uboot启动信息如下:有些是自己添加的:仅供参考

来源:互联网 发布:php工程师需要具备 编辑:程序博客网 时间:2024/06/06 02:49

**

移植2013Uboot启动信息

如下:有些是自己添加的:仅供参考**;
注意自己的串口一定要修改,在配置文件中:s5p_goni_.h 或则smdkv210_single.h
Goni # Uart OK
DDR OK
OK

U-Boot 2013.10 (May 01 2017 - 20:06:45)for wdh210

(1000MHZ 是自己之后在初始时钟时候出来的,之前的是400Mhz)
CPU: S5PV210@1000MHz(OK!)
Board: Wdh210(wdh也是在代码中修改的。)
I2C: ready
DRAM: 512 MiB
2MMC: SAMSUNG SDHCI: 0(2是自己调试代码添加的)
* Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0

uboot命令行如下:重点内容

Goni # ?(命令行如下)
? - alias for ‘help’
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run ‘bootcmd’
bootd - boot default, i.e., run ‘bootcmd’
bootm - boot application image from memory
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
exit - exit script
false - do nothing, unsuccessfully
go - start application at address ‘addr’
help - print command description/usage
icache - enable or disable instruction cache
iminfo - print header information for application image
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loadx - load binary file over serial line (xmodem mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtdparts- define flash/nand partitions
mw - memory write (fill)
nm - memory modify (constant address)
pmic - PMIC
printenv- print environment variables
reginfo - print register information
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
source - run script from memory
test - minimal test like /bin/sh
true - do nothing, successfully
version - print monitor, compiler and linker version

二环境变量的打印:

标题Goni # printenv
baudrate=115200
bootargs=root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=3 ubi.mtd=6 rootfstype=cramfs console{meminfo} mtdpartsbootblock=9bootchart=setoptsinit=/sbin/bootchartd;runbootcmdbootcmd=runubifsbootbootdelay=10bootk=onenandread0x30007FC00xc000000x600000;bootm0x30007FC0boottrace=setenvoptsinitcalldebug;runbootcmdconsole=console=ttySAC2,115200n8flashboot=setbootargsroot=/dev/mtdblock{bootblock} rootfstype=rootfstypeubi.mtd={ubiblock} ubi.mtd=3 ubi.mtd=6 opts{lcdinfo} console{meminfo} mtdparts;runbootkmeminfo=mem=80Mmem=256M@0x40000000mem=128M@0x50000000mmcblk=/dev/mmcblk1p1mmcboot=setbootargsroot={mmcblk} rootfstype=rootfstypeubi.mtd={ubiblock} ubi.mtd=3 ubi.mtd=6 opts{lcdinfo} console{meminfo} mtdparts;runbootkmtdparts=mtdparts=samsungonenand:1m(bootloader),256k(params),2816k(config),8m(csa),7m(kernel),1m(log),12m(modem),60m(qboot),(UBI)opts=alwaysresume=1ramboot=setbootargsroot=/dev/ram0rwrootfstype=ext2{console} meminfoinitrd=0x33000000,8Mramdisk=8192rootfstype=cramfstftpboot=setbootargsroot=ubi0!rootfsrootfstype=ubifsrootflags=bulkread,nochkdatacrcubi.mtd={ubiblock} ubi.mtd=3 ubi.mtd=6 opts{lcdinfo} console{meminfo} mtdparts;tftp0x30007FC0uImage;bootm0x30007FC0ubi=enabledubiblock=8ubifsboot=setbootargsroot=ubi0!rootfsrootfstype=ubifsrootflags=bulkread,nochkdatacrcubi.mtd={ubiblock} ubi.mtd=3 ubi.mtd=6 opts{lcdinfo} console{meminfo} ${mtdparts}; run bootk
updateb=onenand erase 0x0 0x100000; onenand write 0x32008000 0x0 0x100000
updatek=onenand erase 0xc00000 0x600000;onenand write 0x31008000 0xc00000 0x600000
updateu=onenand erase 0x01560000 0x1eaa0000;onenand write 0x32000000 0x1260000 0x8C0000
verify=n

三:测试命令:
md.b 20000000 10
显示0x20000000 为初始地址的字节显示;
md(memory dispaly )
(md.[b | w | l ]) 都可以的


1 0