(1)clone create_ap at iris;(2)create eth0;(3)change sources.list of apt to tsinghua;(4)clone psdk at iris;

This commit is contained in:
tangchao0503
2023-03-21 17:24:12 +08:00
parent 441b422224
commit 7ff0a02288
2 changed files with 30 additions and 9 deletions

View File

@ -11,7 +11,10 @@ cd /home/300tc
#timedatectl | grep Time
timedatectl set-timezone "Asia/Shanghai"
#
#
sudo mv /etc/apt/sources.list /etc/apt/sources.list.back
sudo cp /home/pi/tc_ShellScripts/sources.list /etc/apt/sources.list
sudo apt update
sudo apt-get -y install build-essential
sudo apt -y install gdb
@ -32,7 +35,8 @@ sudo ln -sf /usr/local/bin/cmake /usr/bin/cmake
# create_ap
cd /home/300tc/library_source
sudo git clone https://github.com/oblique/create_ap.git
#sudo git clone https://github.com/oblique/create_ap.git
sudo git clone http://106.75.72.40:3000/tangchao0503/create_ap.git
cd create_ap
sudo make install
sudo apt-get -y install util-linux procps hostapd iproute2 iw haveged dnsmasq iptables
@ -43,6 +47,12 @@ sudo sed -i 's/PASSPHRASE=.*/PASSPHRASE=123456789/g' /etc/create_ap.conf
sudo systemctl enable create_ap.service
# create eth1 in order to OS identification the network interface
cp /etc/network/interfaces.d/eth0 /etc/network/interfaces.d/eth1
sudo sed -i 's/auto eth0.*/auto eth1/g' /etc/network/interfaces.d/eth1
sudo sed -i 's/allow-hotplug eth0.*/allow-hotplug eth1/g' /etc/network/interfaces.d/eth1
sudo sed -i 's/iface eth0 inet dhcp.*/iface eth1 inet dhcp/g' /etc/network/interfaces.d/eth1
# dhcp
sudo apt install -y isc-dhcp-server
sudo sed -i 's/INTERFACESv4=""*/INTERFACESv4="eth0"/g' /etc/default/isc-dhcp-server
@ -162,14 +172,14 @@ sudo sed -i '$a\/home/300tc/library/ffmpeg_build/lib/' /etc/ld.so.conf
sudo ldconfig
# psdk
cd /home/300tc/projects
sudo apt -y install unzip
sudo unzip Payload_SDK_V2.2.1-build.315.zip
sudo mv Payload_SDK_V2.2.1-build.315 Payload_SDK_V2.2.1_300tc #修改文件夹名
#sudo unzip Payload_SDK_V2.2.1-build.315.zip
#sudo mv Payload_SDK_V2.2.1-build.315 Payload_SDK_V2.2.1_300tc
sudo mkdir /home/300tc/projects/psdk
cd /home/300tc/projects/psdk
sudo cmake /home/300tc/projects_source/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project
cd /home/300tc/projects_source/
sudo git clone http://106.75.72.40:3000/tangchao0503/Payload_SDK_V2.2.1_300tc.git
sudo mkdir /home/300tc/projects_source/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/
cd /home/300tc/projects_source/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/
sudo cmake ..
sudo make