海思调试记录

硬件:

HI3536V100

4片H5TQ4G63CFR

SPI nor FLASH :MX25L25635FMI-10G_16P

(选择3 Byte mode(default))

.\265编解码\Hi3536 V100R001C02SPC030\01.software\board\document_cn

目录下文件:Hi3536 SDK 安装以及升级使用说明.txt

烧写Uclibc映像文件到SPI Flash。(以32M SPI Flash为例)
    1)地址空间说明(其中,m表示master arm;s表示slave arm)
        |      1M       |      4M       |      6M       |      1M       |      4M       |      6M       |
        |---------------|---------------|---------------|---------------|---------------|---------------|
        |     boot(m)   |     kernel(m) |     rootfs(m) |     boot(s)   |     kernel(s) |     rootfs(s) |


        以下的操作均基于图示的地址空间分配,您也可以根据实际情况进行调整。
    2)烧写主u-boot
        mw.b 0x42000000 0xff 0x100000
        tftp 0x42000000 master/image_uclibc/u-boot-hi3536.bin
        sf probe 0
sf erase 0x0 0x100000
sf write 0x42000000 0x0 0x100000
        reset    
    3)烧写主内核
        mw.b 0x42000000 0xff 0x400000
        tftp 0x42000000 master/image_uclibc/uImage_hi3536
        sf probe 0
sf erase 0x100000 0x400000
sf write 0x42000000 0x100000 0x400000
    4)烧写主文件系统
        mw.b 0x42000000 0xff 0x600000
        tftp 0x42000000 master/image_uclibc/rootfs_hi3536_64k.jffs2
        sf probe 0
sf erase 0x500000 0x600000
sf write 0x42000000 0x500000 0x600000
    5)烧写从u-boot
        mw.b 0x42000000 0xff 0x100000
        tftp 0x42000000 slave/image_uclibc/u-boot-hi3536.bin
        sf probe 0
sf erase 0xb00000 0x100000
sf write 0x42000000 0xb00000 0x100000
    6)烧写从内核
        mw.b 0x42000000 0xff 0x400000
        tftp 0x42000000 slave/image_uclibc/uImage_hi3536
        sf probe 0
sf erase 0xc00000 0x400000
sf write 0x42000000 0xc00000 0x400000
    7)烧写从文件系统
mw.b 0x42000000 0xff 0x600000
        tftp 0x42000000 slave/image_uclibc/rootfs-SLV_FULL_REL.cramfs.initrd.img
        sf probe 0
sf erase 0x1000000 0x600000
sf write 0x42000000 0x1000000 0x600000
    8)设置启动参数
        setenv bootargs 'mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),6M(rootfs)'
        setenv bootcmd 'sf probe 0;sf read 0x42000000 0x100000 0x400000;bootm 0x42000000'
        setenv slave_autostart 1
        setenv slave_bootcmd 'sf probe 0;sf read 0x81000000 0xb00000 0x80000;sf read 0x82000000 0xc00000 0x400000;sf read 0x83000000 0x1000000 0x600000;bootm 0x81000000 0x82000000 0x83000000'
        setenv slave_bootargs 'mem=96M console=ttyAMA0,115200'

        sa

使用Hitool工具烧写,则不需要使用指令烧写

烧写内核文件后

海思调试记录_第1张图片

 

 

连接终端

海思调试记录_第2张图片

 

查看env(环境变量):printenv

海思调试记录_第3张图片

 

设置env变量中的启动参数

 setenv bootargs 'mem=128M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),6M(rootfs)'
        setenv bootcmd 'sf probe 0;sf read 0x42000000 0x100000 0x400000;bootm 0x42000000'
        setenv slave_autostart 1
     setenv slave_bootcmd 'sf probe 0;sf read 0x81000000 0xb00000 0x80000;sf read 0x82000000 0xc00000 0x400000;sf read 0x83000000 0x1000000 0x600000;bootm 0x81000000 0x82000000 0x83000000'
        setenv slave_bootargs 'mem=96M console=ttyAMA0,115200'
        sa

海思调试记录_第4张图片

 

 

 

 

 

 

HI3519V101

 

海思调试记录_第5张图片

串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
################################# ---- 10%
################################ ---- 20%
################################ ---- 30%
################################ ---- 41%
################################ ---- 51%
################################ ---- 61%
################################ ---- 72%
################################ ---- 82%
################################ ---- 92%
####################### ---- 100%
Boot download completed!
Boot burned successfully.

System startup


U-Boot 2010.06 (Sep 07 2018 - 01:53:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
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
Hit any key to stop autoboot:  1 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:    3098182 Bytes = 3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... 

 

 

 

海思调试记录_第6张图片

串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
################################# ---- 10%
################################ ---- 20%
################################ ---- 30%
################################ ---- 41%
################################ ---- 51%
################################ ---- 61%
################################ ---- 72%
################################ ---- 82%
################################ ---- 92%
####################### ---- 100%
Boot download completed!

System startup


U-Boot 2010.06 (Sep 07 2018 - 01:53:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
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
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:    sf probe 0
16384 KiB hi_fmc at 0:0 is now current device
[EOT](OK)

Send command:    getinfo spi
Block:64KB Chip:16MB*1 
ID:0xC2 0x20 0x18 
Name:"MX25L128XX"
[EOT](OK)

Send command:    sf probe 0
16384 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)

Send command:    reset
reset success!
Boot burned successfully.

 

 

你可能感兴趣的:(ARM)