Describe Boards/hix5hd2 here.

here is wiki page to describe HiSilicon hix5hd2 board. (aka. Hi3716cv200)

More details need to be added.

Where to get source code

uboot: 
https://github.com/hisilicon/boot-hix5hd2.git
#make s40 

// In case uboot is broken, here is tools to recover:
#git clone https://github.com/hisilicon/burn-boot
#cp boot-hix5hd2/fastboot-burn.bin .
#chmod 777 /dev/ttyUSB0
#./burn-boot.py
power off board -> power on board, then burn-boot.py will detect power on signal to trigger download  fastboot-burn.bin.
After fastboot-burn.bin is running in memory, flash to mmc.
 
kernel: 
ssh://git@git.linaro.org/landing­teams/working/hisilicon/kernel.git 
branch "hix5hd2" 
#make hix5hd2_defconfig 
#make menuconfig, adding ramfs 
#make ­j8;  
#cp arch/arm/boot/zImage ~/tftpboot 
#cp arch/arm/boot/dts/hix5hd2­dkb.dtb ~/tftpboot 
 
//debug with zImage & dtb 
tftp 0x1000000 zImage
tftp 0x2000000 hix5hd2-dkb.dtb
bootz 0x1000000 -  0x2000000
 
OR 
#cat arch/arm/boot/zImage arch/arm/boot/dts/hix5hd2­dkb.dtb  > ~/tftpboot/z 
#tftp 0x1000000 z; go 0x1000000 

How to burn

//partition table: 
//blkdevparts=mmcblk0:1M(boot),4M(hix5hd2dtb),8M(kernel),64M(rootfs),­(others) 
1M(boot): 0 ­ 0x800 (0x800 x blk( 512 bytes) = 1M) 
4M(hix5hd2dtb): 0x800 ­ 0x2800 
8M(kernel): 0x2800 ­ 0x6800 
64M(rootfs): 0x6800 ­ 0x26800 

//update boot 
#tftp 0x1000000 fastboot-­burn.bin 
#mmc write 0 0x1000000 0 0x800; 
#reset 
 
//set env accordingly, for example 
#fastboot# setenv serverip 192.168.1.10 
#fastboot# setenv ipaddr 192.168.1.100 
#fastboot# saveenv  
 
 
//uboot can get bootargs from env and pass to dtb, update bootargs  

#setenv bootargs  'console=ttyAMA0,115200 root=/dev/mmcblk0p4 rootfstype=ext4 rootwait rw 
blkdevparts=mmcblk0:1M(boot),4M(hix5hd2dtb),8M(kernel),64M(rootfs3),­(others)' 
#setenv bootcmd 'mmc read 0 0x1000000 0x2800 0x4000;mmc read 0 0x2000000 0x800 
0x2000;bootz 0x1000000 - 0x2000000' 
#saveenv  
 
//download hix5hd2dtb 
#tftp 0x1000000 hix5hd2­dkb.dtb; 
#mmc write 0 0x1000000 0x800 0x2000; 
 
//download kernel and rootfs 
#mmc write 0 0x1000000 0x2800 0x4000 
 
//load kernel into memory 
#mmc read 0 0x1000000 0x2800 0x4000; 

//load dtb into memory 
#mmc read 0 0x2000000 0x800 0x2000; 
 
 
//boot kernel with dtb 
bootz 0x1000000 -  0x2000000
 
 
//how to change mac­address, only takes effect one time
#tftp 0x2000000 hix5hd2­dkb.dtb 
#fdt addr 0x2000000 
#fdt list /soc/ethernet@f9841000 
#fdt set /soc/ethernet@f9841000 mac­address [00 11 22 33 44 55] 
#fdt list /soc/ethernet@f9841000 

next time, reboot the board. 
uboot: #reset 
kernel: #reboot 

Boards/hix5hd2 (last modified 2014-08-22 09:46:12)