- Download the Linux kernel v2.6.32.9 source tarball as released by Motorola: http://sourceforge.net/projects/droidx.motorola/files/DroidX%20Source%20GB/VRZ_MB810_4.5.605/
- Get either native or crosscompiling GCC binaries:
- Mentor Sourcery CodeBench Lite ARM EABI - was CodeSourcery G++ Lite; requires annoying email registration
- Android NDK - Now with GCC 4.6
- Ubuntu ARMHF Crosscompiler - strangely, not in Debian, but 4.7 available in quantal
- $ make ARCH=arm mapphone_defconfig
- Edit .config, delete entries in need of change
(note: if building ext4 module, do not enable POSIX ACL support, or insmod will fail) - $ make ARCH=arm oldconfig
- $ make ARCH=arm SUBARCH=armv7-a CROSS_COMPILE=[prefix of GCC arm crosscompiler] [path/to/module1.ko] [other/path/to/module2.ko]
- Copy modules to Droid X, mount /system rw, and place in /system/lib/modules.
2012/08/11
Droid X Linux Kernel Module Building
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment