Jump to content
Sign in to follow this  
walter

KERNEL4.4.132+ HEAD

Recommended Posts

 

你好

你能告訴我是否有4.4.132+ 的 linux-headers 檔案?我已經有了linux-headers-4.4.194_4.4.194-7_armhf.deb 的文件
 

 

Share this post


Link to post
Share on other sites

Building Linux headers for Tinker Board R2.0:

git clone https://github.com/TinkerBoard/debian_kernel.git
cd debian_kernel
make ARCH=arm distclean
make ARCH=arm miniarm-rk3288_defconfig
make ARCH=arm bindeb-pkg RK_KERNEL_DTS=rk3288-miniarm

to fix the errors during compilation:

error 1:

CC      arch/arm/kernel/vdso.o

arch/arm/kernel/vdso.c: In function ‘vdso_init’

arch/arm/kernel/vdso.c:182:6: warning: ‘memcmp’ reading 4 bytes from a region of size 1 [-Wstringop-overflow=]

error, forbidden warning: vdso.c:182

make[3]: *** [scripts/Makefile.build:278: arch/arm/kernel/vdso.o] Error 1

make[2]: *** [Makefile:1028: arch/arm/kernel] Error 2

make[1]: *** [scripts/package/Makefile:96: bindeb-pkg] Error 2

make: *** [Makefile:1316: bindeb-pkg] Error 2

cause: The current kernel sources provided are not compatible as of right now with GCC8. Until the kernel sources are patched, you need to use a gcc version that is compatible

fix: use gcc7 instead of gcc8

 

error 2:

CC      drivers/net/usb/qmi_wwan.o

drivers/net/usb/qmi_wwan.c: In function ‘qmi_wwan_tx_fixup’:

drivers/net/usb/qmi_wwan.c:32:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]

error, forbidden warning: qmi_wwan.c:32

make[5]: *** [scripts/Makefile.build:278: drivers/net/usb/qmi_wwan.o] Error 1

make[4]: *** [scripts/Makefile.build:484: drivers/net/usb] Error 2

make[3]: *** [scripts/Makefile.build:484: drivers/net] Error 2

make[2]: *** [Makefile:1028: drivers] Error 2

make[1]: *** [scripts/package/Makefile:96: bindeb-pkg] Error 2

make: *** [Makefile:1316: bindeb-pkg] Error 2

 

fix: edit the qmi_wwan_tx_fixup in /qmi_wwan.c, and start a new line for the if statement

else

        skb_reset_mac_header(skb);

 

if (skb_pull(skb, Eth_HLEN)) {

        return skb;

} else {

        Dev_err(&dev->intf->dev,”Packet Dropped “);

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...