Jump to content

Generate Kernel Module


Guest

Recommended Posts

I try to generate a module but I can't find the .ko in the deb package generated.

It would be great to describe how to make a patch too.

 

cd ~/crosscompile/

apt-get -y install git git clone
https://github.com/igorpecovnik/lib --depth 1
cp lib/compile.sh .
cp lib/patch/kernel/sun7i-default/user.patch userpatches/kernel/

 
Set required modules to "m" in the following config file :

cd ~/crosscompile/output/linux-sun8i-default.config
 
./compile.sh

In this script kernel configure = "no" (in order to not erase config file)

 

cd ~/crosscompile/output/debs/

ar vx linux-image-sun8i_5.27_armhf.deb

tar -tzvf data.tar.xz

ls -al ~/crosscompile/output/debs/lib/modules/3.4.113-sun8i/kernel/drivers/media/rc

 

I have kernel modules but not all modules expected in this folder...

Is a command line forgotten? Which one ?

Link to comment
Share on other sites

I have some problems compiling kernel :

 

[ o.k. ] This script will try to update
Already up-to-date.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
/root/crosscompile/lib/general.sh: line 499: syntax error near unexpected token `('
/root/crosscompile/lib/general.sh: line 499: `        grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386'

 

Yesterday it was compiling well.....

I opened an issue, I hope I did a right thing :

https://github.com/igorpecovnik/lib/issues

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines