Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

How to modify a Linux kernel driver and rebuild it?

$
0
0

Hi everyone,

 

I'm new on both Galileo and yocto Linux. I need to manually modify the stmmac driver in yocto Linux kernel (actually just add some debug message). Now I have been able to build the full yocto image and boot it from the SD card. Then I met several question:

 

1. I found there are two pieces of stmmac source code in the yocto_build directory:

 

meta-clanton_v1.0.1/yocto_build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8/drivers/net/ethernet/stmicro/stmmac/stmac_main.c

meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux/linux-yocto-clanton/3.8-r0/linux/drivers/net/ethernet/stmicro/stmmac/stmac_main.c

 

The codes in these 2 directories are not exactly same, which is the right one should be updted?

 

2. After I update the source, how could I rebuild the yocto image? I have updated above 2 files and reexecute "bitbake image-full-galileo" but it doesn't work, it there any other steps I need to do?


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>