Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 2G-IoT

34 bytes added, 14:35, 28 June 2022
Compile device driver
<div>[[File:Orange-pi-i96-img54.png|800px]]</div>
<br>
Back to the source code directory/trunk:<br>$ make bootimage<br>Make sure it have already finished make-engineer-configuration before execute this command, if not, please refer to last section about Linux source code compilation.<divbr>[[File:OrangeUpdate the new generated module file into Linux system.<br>It will show on *cd<br>/trunk/out/target/product/slt-piNollecA9V2VV8810P_ext4/obj/KERNEL/out/target/product/slt-pc2NollecA9V2VV8810P_ext4/obj/KERNEL/modules/lib/modules/3.10.62-img85rel5.0.2/ generated corresponding .ko file, it is the module that generated after OrangePi_misc.c compilation.png|800px]]</divbr>
<br>
$ ./build.sh<br>After compiled the kernel, there will be an orangepi_misc.ko file generated on the directory of lichee/linux-3.4/output/lib/modules/3.4.39<br><div>[[File:Orange-pi-prime-img16.png|400px]]</div><br>There is a .ko module which generated after compiled of OrangePi_misc.c on */lichee/linux-3.4/output/lib/modules/3.4.39/ <br><div>[[File:Orange-pi-pc2-img88.png|800px]]</div><br>Insert U disk (please note the SD card should have been written image) if the SD card system is mounted to the directory system of / dev/ sdbsdc, then SD card will have two sub mount pointsto rootfs, respectively are which is / dev / sdb1 sdc7, and /dev/sdb2. Two partition of SD card will automatically mount mounted to the PC /media/ directory, the first partition is the boot partition and the second partition is the rootfs partitionautomatic.
<div>[[File:Orange-pi-i96-img55.png|800px]]</div>
<br>
Copy the OrangePi_misc.ko directory file to :<br>/trunk/out/target/product/slt-NollecA9V2VV8810P_ext4/obj/KERNEL/out/target/product/slt-NollecA9V2VV8810P_ext4/obj/mediaKERNEL/*modules/lib/modules/3.410.62-rel5.390.2/into:<br>$ cp OrangePi_misc.ko /media/*/lib/modules/3.4.39<br>
<br>