This shows you the differences between two versions of the page.
tutorials:dvk521:documentations:driver_porting_and_configuration [2013/11/22 16:51] waveshare [Porting Dallas’s 1-wire Driver] |
tutorials:dvk521:documentations:driver_porting_and_configuration [2013/12/23 14:50] (current) |
||
---|---|---|---|
Line 511: | Line 511: | ||
Modify the files permission: | Modify the files permission: | ||
#cd /home/waveshare/cubieboard/waveshare_demo/driver/io_control_dev | #cd /home/waveshare/cubieboard/waveshare_demo/driver/io_control_dev | ||
+ | {{.:Documentations-6_2.jpg}} | ||
#chmod 777 ./* | #chmod 777 ./* | ||
| | ||
1.2 Modify the Makefile | 1.2 Modify the Makefile | ||
#vi Makefile | #vi Makefile | ||
- | + | {{.:Documentations-6_3.jpg}} | |
Assign the KERNELDIR according to your actual kernel path. | Assign the KERNELDIR according to your actual kernel path. | ||
1.3 Clear the old files | 1.3 Clear the old files | ||
#make clean | #make clean | ||
- | + | {{.:Documentations-6_4.jpg}} | |
1.4 Compile | 1.4 Compile | ||
#make | #make | ||
Line 529: | Line 531: | ||
make: *** [modules] Error 1 | make: *** [modules] Error 1 | ||
As shown in the picture below: | As shown in the picture below: | ||
+ | {{.:Documentations-6_5.jpg}} | ||
It is caused by the different kernel version, can be just omitted. | It is caused by the different kernel version, can be just omitted. | ||
+ | {{.:Documentations-6_6.jpg}} | ||
Copy the new generated io_control.ko file to your own system and load it. | Copy the new generated io_control.ko file to your own system and load it. | ||