hisi3519 development platform configuration process

1. Virtual Machine installed tftp server.
##########################
the TFTP Server the Install and Setup
the Install Packages Standard Package following.

sudo apt-get install xinetd tftpd tftp
Create /etc/xinetd.d/tftp and put this entry

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
Restart the xinetd service.

newer systems:

sudo service xinetd restart
older systems:

sudo /etc/init.d/xinetd restart
Now our tftp server is up and running.

Testing our tftp server
Create a file named test with some content in /tftpboot path of the tftp server

Obtain the ip address of the tftp server using ifconfig command

Now in some other system follow the following steps.

tftp 192.168.1.2
tftp> get test
Sent 159 bytes in 0.0 seconds

tftp> quit

cat test

##########################
1-2. Installing the server NAS
nfs service is file sharing between Linux and Linux, nfs services building easier.
Now how to set up nfs service ubuntu16.04 system, ubuntu is even simpler to build than Red Hat.
1, installation services nfs
the sudo APT the install nfs-Kernel-Server
the sudo the install nfs-Common APT

2, modify the configuration file
sudo vim / etc / exports
  the content is as follows:
/ * Home (RW, Sync, the no_root_squash)
#OR / Home / Andrew / w
  mean expression paragraphs below, the actual modification
/ home: * shared directory: specify which users can access all of ping * 10.67 * * specify the network segment, the segment with the user's host. users can mount 10.67.112.183 only the user can mount
(ro, sync, no_root_squash): permissions
ro: read only
rw: read-write
sync: synchronize
no_root_squash: not reduce the root user's permissions to view other options man 5 exports

3, restart nfs service
sudo /etc/init.d/nfs-kernel-server restart
  This, nfs services to build better.
  The following describes how a client accesses the server
1, the client and the server checks whether the network connectivity (ping command)
  the ping + host IP
2, view server shared directory
  showmount -e + Host IP
showmount -e 10.67.112.183
Export List for 10.67. 112.183:
/ Home *
3, the local directory is mounted to
Mount 10.67.112.183:/home / mnt
4, access
  access to local mnt directory, you can access the shared directory of the server.

##########################
2. Reference 'Hi3519AV100 SDK installation and upgrade instructions .pdf' -> 2.1.2 Procedure -> Step 1. tftp server
to put related files '/ tftpboot' folder below

3. Set the virtual machine used in bridge mode, a common computer access. Configure the virtual machine to a fixed ip (such as 192.168.0.100), maintaining the same network segment with the computer.
Now assume that computer ip is 192.168.0.200

4. The reference 'Hi3519AV100 SDK installation and upgrade instructions .pdf' -> 2.1.2 Procedure -> Step 2. parameters
#serveripserverip (i.e. server ip tftp server), ipaddripaddr ipaddr (veneer ip) and ethaddrethaddr ethaddr (board MAC address)
setenv ServerIP 192.168.0.100
setenv ipaddr 192.168.0.101
setenv ethaddr 10:. 11: 12 is: 13 is: 14: 15
setenv Netmask 255.255.255.0
setenv gatewayip 192.168.0.1
of ping 192.168.0.100

5. Step 3
. # 2-programming Boot U
mw.b 42 million FF 80000
TFTP 0x42000000 U-Boot-hi3519av100.bin
NAND ERASE 0 80000; 80000 0 42 million NAND Write
# 3 kernel programming
mw.b 42 million FF 400000
TFTP uImage_hi3519av100_smp 42 million
NAND ERASE 100000 400000; 100000 400000 NAND Write 42 million
. # file system programming. 4
mw.b 42 million FF 2,000,000
TFTP 42 million rootfs_hi3519av100_2k_4bit.yaffs2
# (0x9cf9c0 actual file size is displayed in the file is loaded serial terminal)
NAND 500000 2,000,000 ERASE; 500000 0x9cf9c0 NAND write.yaffs 42 million
. set # startup parameter. 5 (note that linux-4.9.y kernel default file system read-only necessary to add bootargs rw option, the file system is readable and writable)
setenv bootargs' MEM Console ttyAMA0,115200 clk_ignore_unused = 256M =
the root = / dev / RW rootfstype mtdblock2 = YAFFS2
= hinand mtdparts: 1M (Boot), 4M (Kernel), 32M (the rootfs) '
setenv the bootcmd' 0x42000000 NAND Read 100000 400000; the bootm 0x42000000 '
the saveenv
. #. 6 reboot the system
reset

##########################
# 4.1 opened under the Linux network
# Step 1. Set Network
ifconfig eth0 hw ether 10: 11: 12: 13 : 14: 15;
the ifconfig eth0 192.168.0.101 Netmask 255.255.255.0;
route the Add default GW 192.168.0.1
of ping 192.168.0.100
of ping 192.168.0.200
# step 2. Mount the NFS file system operation command:
Mount NFS -o -t NOLOCK rsize = 32768 tcp -o -o, wsize = 32768 192.168.0.100:/home/andrew/w / mnt
# 4.3 open telnet service
telnetd &

Run # 4.4 MPP service
# 1. On the serial port into mpp / ko directory, load the driver, for example:
CD /mnt/Hi3519AV100_SDK_V2.0.1.0/smp/a53_linux/mpp/ko
./load3519av100 -i -sensor0 imx334 imx334
# step 2. enter the appropriate sample program execution in each sample directory (sample need to successfully compiled on the server)
cd ../sample/svp/nnie/
./sample_nnie_main 7

Guess you like

Origin www.cnblogs.com/luoyanghero/p/11287222.html