Changes

Jump to: navigation, search

Orange Pi Prime

82 bytes removed, 16:53, 23 June 2022
Compile device driver
<br>
Copy the OrangePi_misc.c to the directory of :<br>
<nowiki>*/lichee/linux-3.4.3910/driver/misc</nowiki><br>
<div>[[文件:Orange-pi-pc2-img83.png|800px]]</div>
<br>
Enter to */lichee/linux-3.4.3910/drivers/misc/, and modify makefile<br><div>[[文件:Orange-pi-pc2-img84.png|800px]]</div><br>
Modify Makefile on currently file, shown as following:
<div>[[文件:Orange-pi-i96-img53.png|800px]]</div>
<br>
$ ./build.sh<br>
After compiled the kernel, there will be an orangepi_misc.ko file generated on the directory of lichee/linux-3.410/output/lib/modules/3.410.3965<br>
<div>[[文件:Orange-pi-plus-2e-img27.png|800px]]</div>
<br>
There is will be a .ko module which generated after compiled file on the directory of OrangePi_misc.c on :<br>*/lichee/linux-3.410/output/lib/modules/3.410.3965/<divbr>[[文件:Orange-pi-plus-2e-img28It is generated after OrangePi_misc.c compilation.png|800px]]</div><br>Insert IInsert U disk (please note the SD card should have been written image) if the SD card system is mounted to the directory / dev / SDBsdb, SD card will have two sub mount points, respectively are / dev / sdb1 and /dev/sdb2. Two partition of SD card will automatically mount to the PC /media/ directory, the first partition is the boot partition and the second partition is the rootfs partition.
<div>[[文件:Orange-pi-i96-img55.png|800px]]</div>
<br>
Copy the OrangePi_misc.ko file to /media/*/lib/modules/3.410.3965.<br>$ cp OrangePi_misc.ko /media/*/lib/modules/3.410.3965<br>
<br>

Navigation menu