Amit Singh Tomar
Amit Singh Tomar

Reputation: 8610

Can I use Linux kernel image even after this build failure

I am new to Linux Kernel and trying to build my first Kernel image, I am building from 3.4.28 Linux Kernel on i686 Architecture for 32 bit.

After one and half hours of build process, I got the following errors

BUILD   arcarch/x86/boot/compressedh/x86/boot/bzImage

Setup is 16540 bytes (padded to 16896 bytes).
System is 4667 kB
CRC c2376a1f
Kernel: arch/x86/boot/bzImage is ready  (#1)
Building modules, stage 2.
MODPOST 3508 modules
ERROR: "__sync_fetch_and_and_4" [drivers/staging/line6/line6usb.ko] undefined!
ERROR: "__sync_fetch_and_or_4" [drivers/staging/line6/line6usb.ko] undefined!
WARNING: modpost: Found 28 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

But if I go and look in the "arch/x86/boot/compressed" directory, I find vmlinux.bin image with ELF header.

I wanted to know can I use this vmlinux binary for my purpose or is a complete successful build required to make this binary fully functional.

Upvotes: 2

Views: 617

Answers (3)

Ramesh Miriyala
Ramesh Miriyala

Reputation: 81

disable the module in kernel configuration.

by choosing like this

device drivers ----

 staging drivers  

Upvotes: 0

suneet saini
suneet saini

Reputation: 610

My answer is also same as JimR; the kernel module line6usb.ko is not so much important module. Firstly disable this module by first running mrproper then after make menuconfig. In the menuconfig find the driver in drivers staging and disable it. Later again cross compile the kernel.

Upvotes: 0

JimR
JimR

Reputation: 16123

As long as nothing relies on the kernel module line6usb.ko or any modules built after it you are likely ok.

Upvotes: 0

Related Questions