HiSilicon 3519AV100 development board guide
3519A development board environment setup and operation guide
Virtual machine download address
Link:https://pan.baidu.com/s/1ioAqYwwt596YZ2DFE6bMzg?pwd=xstr
ripping code: xstr
Extraction code: xstr
The 3519A development board comes with two types of flash, emmc and spi. The flashing steps are as follows:
(The Baidu Netdisk link for the SDK is at the bottom of this document)
1. emmc version:
1.1 Flash U-Boot
Set the address: setenv serverip 192.168.0.224;setenv ipaddr 192.168.0.222;sa;
Flashing commands:
注意:如果是空flash,就要通过Hitool来烧写,我们一般都是烧好的,可以直接通过uboot界面来烧写,除非不小心把flash擦除掉了
emmc 的uboot需要自己编译,按照<开发环境用户指南>这个文档来编译即可
1.2 Flashing the kernel
mw.b 42000000 ff 400000;tftp 42000000 uImage;mmc write 0 0x42000000 800 2000
mw.b 42000000 ff 400000;tftp 42000000 uImage;mmc write 0 0x42000000 800 2000
mw.b 42000000 ff 400000;tftp 42000000 uImage;mmc write 0 0x42000000 800 2000
mw.b 42000000 ff 400000;tftp 42000000 uImage;mmc write 0 0x42000000 800 2000
setenv bootargs 'mem=256M console=ttyAMA0,115200 root=/dev/mmcblk0p3 rootfstype=ext4 rw init=/linuxrc clk_ignore_unused blkdevparts=mmcblk0:1M(boot),4M(kernel),32M(rootfs),-(user)';setenv bootcmd 'mw.b 41000000 ff 0xC00000;mmc read 0 0x41000000 800 2000;bootm 0x41000000';sa;reset;
注意: emmc版本的内核需要自己编译,按照<开发环境用户指南>这个文档来编译即可,文件系统选择rootfs_hi3519av100_32M.ext4,emmc版本必须用ext4文件系统。
2. SPI version:
2. spi version:
1.1 Flash U-Boot
Set the address: setenv serverip 192.168.0.224;setenv ipaddr 192.168.0.222;sa;
Flashing commands:
注意:如果是空flash,就要通过Hitool来烧写,我们一般都是烧好的,可以直接通过uboot界面来烧写,除非不小心把flash擦除掉了
2.2 Flashing the kernel
2.2 Flash the kernel
Flash: mw.b 42000000 ff 400000;tftp 42000000 uImage_hi3519av100_smp;sf probe 0;sf erase 100000 400000;sf write 42000000 100000 400000
mw.b 42000000 ff 500000;tftp 42000000 rootfs_hi3519av100_64k.jffs2;sf probe 0;sf erase 500000 500000;sf write 42000000 500000 500000
mw.b 42000000 ff 500000;tftp 42000000 rootfs_hi3519av100_64k.jffs2;sf probe 0;sf erase 500000 500000;sf write 42000000 500000 500000
setenv bootargs 'mem=256M console=ttyAMA0,115200 clk_ignore_unused root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs)';setenv bootcmd 'sf probe 0;sf read 0x42000000 100000 400000; bootm 0x42000000';saveenv;reset;
注意: uboot 选择海思sdk自带的uboot,开发人员可以自行修改,spi版本的内核可以用海思自带,也可以用自己编译的,按照<开发环境用户指南>这个文档来编译即可,文件系统选择rootfs_hi3519av100_64k.jffs2,其他文件系统开发者可以自己尝试烧写使用。
Running the HiSilicon VENC sample to capture camera video
Run the HiSilicon venc sample to capture camera video data
1) Enter the /usr/ext/ko/ directory:
1) Go to the /usr/ext/ko/ directory:
cd /usr/ko
2) Run the following command to load the driver:
./load3519av100 -i -sensor0 imx334 -sensor1 imx334 -sensor2 imx334 -sensor3 imx334 -sensor4 imx334
3) Mount with the virtual machine:
3) Mount with the virtual machine:
ifconfig eth0 up;
ifconfig eth0 192.168.0.225;
mount -o nolock 192.168.0.92:/home/xstrive/hisi/ /mnt/
cd /mnt/Hi3519AV100_SDK_V2.0.2.0/smp/a53_linux/mpp/sample/venc/
4) Execute the program:
./sample_venc 0
5) Then select 0 and C in sequence
就开始录制摄像头的视频了,然后在sample_venc统计目录下会生成两个录像文件,可以通过vlc来播放。
2 Wi-Fi
2 WiFi function
Kernel changes:
The 3519A requires recompiling the kernel and changing the parameters so that USB 2.0 is enabled, in order to recognize the 8188 WiFi module:
2. 
2.
1. Networking support -> Wireless -> cfg80211 - wireless configuration API: just tick "cfg80211 wireless extensions compatibility".
2.Device Drivers -> Network device support -> wireless LAN ->
3.Networking support -> RF switch subsystem support.
4.Device Drivers ---> Network device support ---> Wireless LAN ---> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
4. Device Drivers ---> Network device support ---> Wireless LAN ---> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
Then compile the kernel, recompile the driver with the new kernel, then compile the wpa_supplicant and hostapd applications and copy them to the board to run.
3 Audio
Run the HiSilicon /sample/audio program, select the simultaneous input and output option, then plug a microphone and a speaker into the development board to play back the input sound.
4 SD card
The kernel supports SD card recognition by default. After plugging in an SD card, if it is a factory SD card you need to add a partition and then mount it.
Material download links
Link:https://pan.baidu.com/s/1T07nuDzEIo_zRKc7OfqiUA Passcode: gpan
Note:
The development board has no IP at first; you need to set one: ifconfig eth0 192.168.0.227