Burning of uboot, kernel and file system of day4_hi3516a

1. File transfer between Windows and Linux hosts:
log in to the Linux virtual host under Windows through smb
step1 Log in as root user under Linux
step2 Start the smb service: service smb start
step3 Windows is running: \ \192.168.1.2 (virtual machine ip)
[ Note: The host and virtual machine ip are in the same network segment

2. Use the burning tool FastBoot3.1 (BVT) that comes with HiSilicon for burning
Use mode: Burn by Partition
step1 Make *.xml file (used to save your own configuration information)
here named hi3516a_partition_table.xml
step2 Connect hi3516a Step3
Set the corresponding parameters from the network port and serial port of the development board to the corresponding position of the PC , such as:
Serial Port——COM4
Server IP——192.168.1.67 (PC’s ip)
Mac Address——Automatically generate
IP Address——192.168.1.10 ( Development board)
Subnet Mask——255.255.255.0 (consistent with the main PC)
Gateway——192.168.1.1 (consistent with the PC)
step4 Burn
[Note] When burning, u-boot, uImage and *.yaffs files should be combined with FastBoot3. 1(BVT) in the same directory

3.烧录成功时串口打印文件
【ComLog】
U-Boot 2010.06 (Aug 14 2017 - 17:33:31)
NAND: Check nand flash controller v610. found
Special NAND id table Version 1.36
Nand ID: 0x2C 0xDA 0x90 0x95 0x06 0x00 0x00 0x00
Block:128KB Page:2KB Chip:256MB*1 OOB:64B ECC:4bit/512
256 MiB
Check spi flash controller v350… Found
Can’t find a valid spi flash chip.
Can’t find a valid spi flash chip.
* Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
start download process.
version: 3.0.3
(OK)

nand
(OK)

Check spi flash controller v350… Found
Can’t find a valid spi flash chip.
Can’t find a valid spi flash chip.
no find spi
(OK)

Block:128KB Chip:256MB*1 Page:2KB OOB:64B ECC:4bits/512Byte
ID:0x2C 0xDA 0x90 0x95 0x06 0x00 0x00 0x00
Name:”NAND 256MiB 3,3”
(OK)

NAND erase: device 0 offset 0x0, size 0x200000
Erasing at 0x0 – 6% complete.
Erasing at 0x20000 – 12% complete.
Erasing at 0x40000 – 18% complete.
Erasing at 0x60000 – 25% complete.
Erasing at 0x80000 – 31% complete.
Erasing at 0xa0000 – 37% complete.
Erasing at 0xc0000 – 43% complete.
Erasing at 0xe0000 – 50% complete.
Erasing at 0x100000 – 56% complete.
Erasing at 0x120000 – 62% complete.
Erasing at 0x140000 – 68% complete.
Erasing at 0x160000 – 75% complete.
Erasing at 0x180000 – 81% complete.
Erasing at 0x1a0000 – 87% complete.
Erasing at 0x1c0000 – 93% complete.
Erasing at 0x1e0000 – 100% complete.
OK
(OK)

NAND write: device 0 offset 0x0, size 0x40000
262144 bytes written: OK
(OK)
(OK)
(OK)
(OK)
(OK)
(OK)
(OK)

ETH0: PHY(phyaddr=1, rgmii) link UP: DUPLEX=FULL : SPEED=1000M
MAC: 00-00-23-34-45-66
host 192.168.1.67 is alive
(OK)

ETH0: PHY(phyaddr=1, rgmii) link UP: DUPLEX=FULL : SPEED=1000M
MAC: 00-00-23-34-45-66

TFTP from server 192.168.1.67; our IP address is 192.168.1.10
Download Filename ‘uImage_3516_mingyang’.
Download to address: 0x81000000
Downloading: *#################################################
done

Bytes transferred = 2965920 (2d41a0 hex)
(OK)

NAND erase: device 0 offset 0x200000, size 0x300000
Erasing at 0x200000 – 4% complete.
Erasing at 0x220000 – 8% complete.
Erasing at 0x240000 – 12% complete.
Erasing at 0x260000 – 16% complete.
Erasing at 0x280000 – 20% complete.
Erasing at 0x2a0000 – 25% complete.
Erasing at 0x2c0000 – 29% complete.
Erasing at 0x2e0000 – 33% complete.
Erasing at 0x300000 – 37% complete.
Erasing at 0x320000 – 41% complete.
Erasing at 0x340000 – 45% complete.
Erasing at 0x360000 – 50% complete.
Erasing at 0x380000 – 54% complete.
Erasing at 0x3a0000 – 58% complete.
Erasing at 0x3c0000 – 62% complete.
Erasing at 0x3e0000 – 66% complete.
Erasing at 0x400000 – 70% complete.
Erasing at 0x420000 – 75% complete.
Erasing at 0x440000 – 79% complete.
Erasing at 0x460000 – 83% complete.
Erasing at 0x480000 – 87% complete.
Erasing at 0x4a0000 – 91% complete.
Erasing at 0x4c0000 – 95% complete.
Erasing at 0x4e0000 – 100% complete.
OK
(OK)

NAND write: device 0 offset 0x200000, size 0x2e0000
3014656 bytes written: OK
(OK)

Block:128KB Chip:256MB*1 Page:2KB OOB:64B ECC:4bits/512Byte
ID:0x2C 0xDA 0x90 0x95 0x06 0x00 0x00 0x00
Name:”NAND 256MiB 3,3”
(OK)
(OK)

ETH0: PHY(phyaddr=1, rgmii) link UP: DUPLEX=FULL : SPEED=1000M
MAC: 00-00-23-34-45-66
host 192.168.1.67 is alive
(OK)

ETH0: PHY(phyaddr=1, rgmii) link UP: DUPLEX=FULL : SPEED=1000M
MAC: 00-00-23-34-45-66

TFTP from server 192.168.1.67; our IP address is 192.168.1.10
Download Filename ‘filesystem_2k_4bit_3516_fw.yaffs2’.
Download to address: 0x81000000
Downloading: *#################################################
done
Bytes transferred = 21172800 (1431240 hex)
(OK)

NAND erase: device 0 offset 0x500000, size 0x6400000
Erasing at 0x500000 – 0% complete.
Erasing at 0x5e0000 – 1% complete.
Erasing at 0x6e0000 – 2% complete.
Erasing at 0x7e0000 – 3% complete.
Erasing at 0x8e0000 – 4% complete.
Erasing at 0x9e0000 – 5% complete.
Erasing at 0xae0000 – 6% complete.
Erasing at 0xbe0000 – 7% complete.
Erasing at 0xce0000 – 8% complete.
Erasing at 0xde0000 – 9% complete.
Erasing at 0xee0000 – 10% complete.
Erasing at 0xfe0000 – 11% complete.
Erasing at 0x10e0000 – 12% complete.
Erasing at 0x11e0000 – 13% complete.
Erasing at 0x12e0000 – 14% complete.
Erasing at 0x13e0000 – 15% complete.
Erasing at 0x14e0000 – 16% complete.
Erasing at 0x15e0000 – 17% complete.
Erasing at 0x16e0000 – 18% complete.
Erasing at 0x17e0000 – 19% complete.
Erasing at 0x18e0000 – 20% complete.
Erasing at 0x19e0000 – 21% complete.
Erasing at 0x1ae0000 – 22% complete.
Erasing at 0x1be0000 – 23% complete.
Erasing at 0x1ce0000 – 24% complete.
Erasing at 0x1de0000 – 25% complete.
Erasing at 0x1ee0000 – 26% complete.
Erasing at 0x1fe0000 – 27% complete.
Erasing at 0x20e0000 – 28% complete.
Erasing at 0x21e0000 – 29% complete.
Erasing at 0x22e0000 – 30% complete.
Erasing at 0x23e0000 – 31% complete.
Erasing at 0x24e0000 – 32% complete.
Erasing at 0x25e0000 – 33% complete.
Erasing at 0x26e0000 – 34% complete.
Erasing at 0x27e0000 – 35% complete.
Erasing at 0x28e0000 – 36% complete.
Erasing at 0x29e0000 – 37% complete.
Erasing at 0x2ae0000 – 38% complete.
Erasing at 0x2be0000 – 39% complete.
Erasing at 0x2ce0000 – 40% complete.
Erasing at 0x2de0000 – 41% complete.
Erasing at 0x2ee0000 – 42% complete.
Erasing at 0x2fe0000 – 43% complete.
Erasing at 0x30e0000 – 44% complete.
Erasing at 0x31e0000 – 45% complete.
Erasing at 0x32e0000 – 46% complete.
Erasing at 0x33e0000 – 47% complete.
Erasing at 0x34e0000 – 48% complete.
Erasing at 0x35e0000 – 49% complete.
Erasing at 0x36e0000 – 50% complete.
Erasing at 0x37e0000 – 51% complete.
Erasing at 0x38e0000 – 52% complete.
Erasing at 0x39e0000 – 53% complete.
Erasing at 0x3ae0000 – 54% complete.
Erasing at 0x3be0000 – 55% complete.
Erasing at 0x3ce0000 – 56% complete.
Erasing at 0x3de0000 – 57% complete.
Erasing at 0x3ee0000 – 58% complete.
Erasing at 0x3fe0000 – 59% complete.
Erasing at 0x40e0000 – 60% complete.
Erasing at 0x41e0000 – 61% complete.
Erasing at 0x42e0000 – 62% complete.
Erasing at 0x43e0000 – 63% complete.
Erasing at 0x44e0000 – 64% complete.
Erasing at 0x45e0000 – 65% complete.
Erasing at 0x46e0000 – 66% complete.
Erasing at 0x47e0000 – 67% complete.
Erasing at 0x48e0000 – 68% complete.
Erasing at 0x49e0000 – 69% complete.
Erasing at 0x4ae0000 – 70% complete.
Erasing at 0x4be0000 – 71% complete.
Erasing at 0x4ce0000 – 72% complete.
Erasing at 0x4de0000 – 73% complete.
Erasing at 0x4ee0000 – 74% complete.
Erasing at 0x4fe0000 – 75% complete.
Erasing at 0x50e0000 – 76% complete.
Erasing at 0x51e0000 – 77% complete.
Erasing at 0x52e0000 – 78% complete.
Erasing at 0x53e0000 – 79% complete.
Erasing at 0x54e0000 – 80% complete.
Erasing at 0x55e0000 – 81% complete.
Erasing at 0x56e0000 – 82% complete.
Erasing at 0x57e0000 – 83% complete.
Erasing at 0x58e0000 – 84% complete.
Erasing at 0x59e0000 – 85% complete.
Erasing at 0x5ae0000 – 86% complete.
Erasing at 0x5be0000 – 87% complete.
Erasing at 0x5ce0000 – 88% complete.
Erasing at 0x5de0000 – 89% complete.
Erasing at 0x5ee0000 – 90% complete.
Erasing at 0x5fe0000 – 91% complete.
Erasing at 0x60e0000 – 92% complete.
Erasing at 0x61e0000 – 93% complete.
Erasing at 0x62e0000 – 94% complete.
Erasing at 0x63e0000 – 95% complete.
Erasing at 0x64e0000 – 96% complete.
Erasing at 0x65e0000 – 97% complete.
Erasing at 0x66e0000 – 98% complete.
Erasing at 0x67e0000 – 99% complete.
Erasing at 0x68e0000 – 100% complete.
OK
(OK)

?
NAND erase: device 0 offset 0x500000, size 0x6400000
Erasing at 0x500000 – 0% complete.
Erasing at 0x5e0000 – 1% complete.
Erasing at 0x6e0000 – 2% complete.
Erasing at 0x7e0000 – 3% complete.
Erasing at 0x8e0000 – 4% complete.
Erasing at 0x9e0000 – 5% complete.
Erasing at 0xae0000 – 6% complete.
Erasing at 0xbe0000 – 7% complete.
Erasing at 0xce0000 – 8% complete.
Erasing at 0xde0000 – 9% complete.
Erasing at 0xee0000 – 10% complete.
Erasing at 0xfe0000 – 11% complete.
Erasing at 0x10e0000 – 12% complete.
Erasing at 0x11e0000 – 13% complete.
Erasing at 0x12e0000 – 14% complete.
Erasing at 0x13e0000 – 15% complete.
Erasing at 0x14e0000 – 16% complete.
Erasing at 0x15e0000 – 17% complete.
Erasing at 0x16e0000 – 18% complete.
Erasing at 0x17e0000 – 19% complete.
Erasing at 0x18e0000 – 20% complete.
Erasing at 0x19e0000 – 21% complete.
Erasing at 0x1ae0000 – 22% complete.
Erasing at 0x1be0000 – 23% complete.
Erasing a

NAND write: device 0 offset 0x500000, size 0x1431240
data length:0x1394800, include bad block length: 0x13a0000
21172800 bytes written: OK
(OK)

4. Address space description

  |      2M       |       3M      |      100M      |         151M           |
  |---------------|---------------|----------------|------------------------|
  |     boot      |     kernel    |     rootfs     |        other           |

5. Serial burning method
setenv serverip 192.168.1.10 //Virtual machine ip
setenv ipaddr 192.168.1.2 //Single board ip
setenv ethaddr 08:00:3E:26:0A:5B
setenv netmask 255.255.255.0
setenv gatewayip 192.168.1.1
ping 192.168.1.67 // host IP
mw.b 82 million FF 200000
TFTP 82 million U-Boot-hi3516a.bin
NAND ERASE 0 200000
NAND 82 million 0 200000 Write
RESET
mw.b 82 million FF 500000
TFTP 82 million uImage_hi3516a
NAND ERASE 200000 500000
NAND Write 200000 500000 82 million
mw.b 82000000 ff 6400000
tftp 82000000 rootfs_Hi3516a_2k_4bit.yaffs2
nand erase 500000 6400000
nand write.yaffs 82000000 500000 96d200 //96d200 is the actual size of the rootfs file
# 设置启动参数
setenv bootargs ‘mem=256M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=yaffs2 mtdparts=hinand:2M(boot),3M(kernel),100M(rootfs),151M(test)’
setenv bootcmd ‘nand read 0x82000000 0x100000 0x500000;bootm 0x82000000’
save
reset

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324650581&siteId=291194637