【HI—SDK】-- Uboot调试

hisilicon # help
?       - alias for 'help'
base    - print or set address offset
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootss  - boot from snapshot image
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
ddr     - ddr training function
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
getinfo - print hardware information
go      - start application at address 'addr'
help    - print command description/usage
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - mmcinfo <dev num>-- 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)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sf      - SPI flash sub-system
tftp    - tftp  - download or upload image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version
System startup


U-Boot 2010.06 (Nov 30 2016 - 19:59:33)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x19
Block:64KB Chip:32MB Name:"MX25L(256/257)XX"
SPI Nor total size: 32MB
MMC:
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
int hifmc_ip_ver_check(void)
{
	if (hifmc_ip_ver == HIFMC_VER_100)
		return 0;

	printf("Check Flash Memory Controller v100 ...");
	hifmc_ip_ver = readl(CONFIG_HIFMC_REG_BASE + FMC_VERSION);
	if (hifmc_ip_ver != HIFMC_VER_100) {
		printf("\n");
		return -EFAULT;
	}
	printf(" Found\n");

	return 0;
}
System startup


U-Boot 2010.06 (May 19 2018 - 15:37:22)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xef 0x40 0x18
Disable failed1 : 2
Block:64KB Chip:16MB Name:"W25Q128(B/F)V"
SPI Nor total size: 16MB
MMC:
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial                                                                                                                                                                                         0
16384 KiB hi_fmc at 0:0 is now current device

## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.18.20
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2235474 Bytes = 2.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...
 # ping 192.168.0.88
ETH0: PHY(phyaddr=0, rmii) link UP: DUPLEX=FULL : SPEED=100M
MAC:   00-00-23-34-45-68
host 192.168.0.88 is alive
串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
################################# ---- 10%
############################### ---- 20%
############################### ---- 30%
############################### ---- 40%
############################### ---- 50%
############################### ---- 60%
############################### ---- 70%
############################### ---- 80%
############################### ---- 90%
############################## ---- 100%
Boot download completed!
￸     

System startup


U-Boot 2010.06 (Nov 30 2016 - 19:59:33)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x19
Block:64KB Chip:32MB Name:"MX25L(256/257)XX"
SPI Nor total size: 32MB
MMC:   
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial
start download process.

Boot Started successfully!

Send command:	getinfo version
version: 3.0.3
[EOT](OK)

Send command:	getinfo bootmode
spi
[EOT](OK)

Send command:	getinfo spi
Block:64KB Chip:32MB*1 
ID:0xC2 0x20 0x19 
Name:"MX25L(256/257)X"
[EOT](OK)

Send command:	sf probe 0
32768 KiB hi_fmc at 0:0 is now current device
[EOT](OK)

Send command:	sf erase 0x0 0x50000

Erasing at 0x10000 --  20% complete.
Erasing at 0x20000 --  40% complete.
Erasing at 0x30000 --  60% complete.
Erasing at 0x40000 --  80% complete.
Erasing at 0x50000 -- 100% complete.
[EOT](OK)

Send command:	sf write 0x81000000 0x0 0x50000

Writing at 0x10000 --  20% complete.
Writing at 0x20000 --  40% complete.
Writing at 0x30000 --  60% complete.
Writing at 0x40000 --  80% complete.
Writing at 0x50000 -- 100% complete.
[EOT](OK)
Boot burned successfully.
串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
#####################发送尾帧失败,请检查串口连接是否正常。
下载文件失败!
串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
################################# ---- 10%
############################### ---- 20%
############################### ---- 30%
############################### ---- 40%
############################### ---- 50%
############################### ---- 60%
############################### ---- 70%
############################### ---- 80%
############################### ---- 90%
############################## ---- 100%
Boot download completed!
     

System startup


U-Boot 2010.06 (Dec 06 2018 - 20:56:48)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x19
Block:64KB Chip:32MB Name:"MX25L(256/257)XX"
SPI Nor total size: 32MB
MMC:   
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial
start download process.

Boot Started successfully!

Send command:	getinfo version
version: 3.0.3
[EOT](OK)

Send command:	getinfo bootmode
spi
[EOT](OK)

Send command:	getinfo spi
Block:64KB Chip:32MB*1 
ID:0xC2 0x20 0x19 
Name:"MX25L(256/257)X"
[EOT](OK)

Send command:	sf probe 0
32768 KiB hi_fmc at 0:0 is now current device
[EOT](OK)

Send command:	sf erase 0x0 0x50000

Erasing at 0x10000 --  20% complete.
Erasing at 0x20000 --  40% complete.
Erasing at 0x30000 --  60% complete.
Erasing at 0x40000 --  80% complete.
Erasing at 0x50000 -- 100% complete.
[EOT](OK)

Send command:	sf write 0x81000000 0x0 0x50000

Writing at 0x10000 --  20% complete.
Writing at 0x20000 --  40% complete.
Writing at 0x30000 --  60% complete.
Writing at 0x40000 --  80% complete.
Writing at 0x50000 -- 100% complete.
[EOT](OK)
Boot burned successfully.

猜你喜欢

转载自blog.csdn.net/qingzhuyuxian/article/details/84837835