![]() ![]() Fortunately, you can get a copy from a running system. But to compile a kernel, we must have the exact build configuration of the currently running Linux system. We need to build the kernel first, and then build a kernel module. ![]() For more info, refer to this Linaro wiki page.įor instance, go to 4.9-2017.01/arm-linux-gnueabihf/ directory and download gcc-linaro-4.9.4-2017.01-x86_64_. There are three kinds of files: gcc-linaro-, runtime-gcc-linaro-, and sysroot-eglibc-linaro. In our case, it would be arm-linux-gnueabihf (ARM 32-bit, linux, little endian, hard float). Pick a version, and choose the appropriate architecture. Linaro’s prebuilt toolchain generally works well. Note that source for 3.2.0 is named linux-3.2.tar.gz, not linux-3.2.0.tar.gz. You must download the exact version which is running in the qemu. I will use this configuration as an example, but you can apply the same method for other environments. This guide will allow you to cross-compile a loadable kernel module (LKM a.k.a. Dev Cross compiling Linux ARM kernel modules ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |