- Linux Device Driver Development Cookbook
- Rodolfo Giometti
- 203字
- 2021-06-24 13:54:10
Adding the kernel
After OS files, we need also kernel images to get a running kernel and, in the previous section, we got the kernel image into the arch/arm64/boot/Image file and the device tree binary into the arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtb file, which are ready to be transferred into our freshly created microSD:
- Let's copy them into the /boot directory as done here:
$ sudo cp arch/arm64/boot/Image \
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtb \
/media/$USER/root/boot/
If the /boot directory was not present in the microSD and the preceding command returned an error, you can recover by using the following command and rerun the preceding cp command:
$ sudo mkdir /media/$USER/root/boot
$ sudo mkdir /media/$USER/root/boot
Then, the /boot directory should look like this:
$ ls /media/$USER/root/boot/
armada-3720-espressobin.dtb Image
- The preceding files are sufficient to boot the system; however, to also install kernel modules and headers files, which are useful for compiling new software, we can use the next commands after all Debian files have been installed into the microSD (to avoid overwriting with Debian files):
$ sudo -E make modules_install INSTALL_MOD_PATH=/media/$USER/root/
$ sudo -E make headers_install INSTALL_HDR_PATH=/media/$USER/root/usr/
Well, now we are finally ready to tie it all up and run our new Debian system, so let's unmount the microSD and plug it into the ESPRESSObin.
推薦閱讀
- Social Media Mining with R
- Kali Linux滲透測試全流程詳解
- Learning Android Intents
- FreeRTOS實時內核應用指南
- 白話區塊鏈
- Python基礎教程(第3版)
- Linux使用和管理指南:從云原生到可觀測性
- 無蘋果不生活 The New iPad隨身寶典
- Application Development in iOS 7
- 從實踐中學習Kali Linux無線網絡滲透測試
- Cassandra 3.x High Availability(Second Edition)
- Kali Linux高級滲透測試(原書第3版)
- Windows 7實戰從入門到精通
- Windows 7使用詳解(修訂版)
- 完美應用Ubuntu(第2版)