Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Extended 4-Ch PCIe Gen 2 × 1 Expander, Stable Performance, Driver-Free
Support list:click here
For other devices, you need to rebuild the kernel
You can directly refer to:Click it
Ubuntu PC is required to build the kernel
Hereby environment:Ubuntu-20.04.2.0-desktop-amd64 :
Install dependencies
sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev
Install cross-compilation tools
sudo apt install neovim wget https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
Add the line export PATH=$PATH:~/gcc-linaro/bin to .bashrc
nvim ~/.bashrc
Update the environment parameters
source ~/.bashrc
Clock the linux repo
git clone --depth=1 https://github.com/raspberrypi/linux
Generate the .config file
cd linux make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfig
Configure the file and add the driver
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig
Build the kernel
make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs
sudo su passwd
Modify sshd_config file:
sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password to #PermitRootLogin yes restart Raspberry Pi
sudo reboot
sudo sshfs root@192.168.x.x:/ /mnt/pi-ext4 sudo sshfs root@192.168.x.x:/boot /mnt/pi-fat32 #192.168.x.x should be the IP of Raspberry Pi sudo env PATH=$PATH make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/pi-ext4 modules_install sudo cp arch/arm64/boot/Image /mnt/pi-fat32/kernel8.img sudo cp arch/arm64/boot/dts/broadcom/*.dtb /mnt/pi-fat32/ sudo cp arch/arm64/boot/dts/overlays/*.dtb* /mnt/pi-fat32/overlays/ sudo cp arch/arm64/boot/dts/overlays/README /mnt/pi-fat32/overlays/ sudo apt install make
If you get the read: Connection reset by peer error, please detect the ssh public key and test it again
ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.x.x #192.168.x.x should be the IP of the Raspberry Pi