SD card
Sometimes after the relevant code is changed, you want to verify whether it can work normally. If it takes a long time to compile the code, you can copy it to the board through the SD card to verify:
- Insert the SD card into the card reader, insert the card reader into the Ubuntu host, and copy the relevant driver code files to the SD card.
- It is assumed that your board already has the relevant script to restart and automatically mount the SD card. You can view the mount details with the df -h command.
- Go to the mount point and find the newly added corresponding script, and then execute the script, such as sh xxx.sh.
network
First, there is a file called net_config under /etc/init.d of the root file system. This file configures the relevant network configuration of the board. Add your configuration as follows:
#!/bin/sh
# configure network
# getting ip mode
# dhcp: default, get ip from server
# static: static IP, we need to configure following variable
# eth0
ipaddr0=192.168.1.123
netdev0=eth0
netmask0=255.255.255.0
gateway0=192.168.1.1
Can be connected to the board via MobaXterm
After entering, enter root, enter the password and press Enter.
Then press CTRL+C to enter the root directory. At this point, you will enter the root file system of the board.