Compiling white-light Modules from source

Here's how I was able to compile modules from the Western Digital sources in Ubuntu Jaunty 9.04 (64-bit).

Keep in mind that you're going to need (at least) the following packages installed on our workstation: bison, flex, texinfo, libc6-dev-i386, build-essential .

1. tar -xzvf WD-MyBookWorld-v1.00.16-GPL.tar.gz
2. cd WD-MyBookWorld-v1.00.16-GPL/kernel/
3. tar -xzvf kernel-source.tar.gz
4. cd kernel-source
5. tar -xjvf buildroot-20080225.tar.bz2
6. cp -rf buildroot-patches/* buildroot/
7. cd buildroot
8. ./snapshot.patch . .
9. make defconfig
10. vim "target/makedevs/makedevs.mk" , Remove -Werror from
11. create the file "libusb-0.1.12-nocirc.patch" in "package/libusb/" , enter:

--- libusb-0.1.12/configure.in.orig    2006-03-04 03:53:04.000000000 +0100
+++ libusb-0.1.12/configure.in    2008-05-23 16:08:59.000000000 +0200
@@ -149,6 +149,7 @@
 fi

 # Checks for programs.
+AC_PROG_CXX
 AC_LANG_CPLUSPLUS
 AC_PROG_CC
 AM_PROG_CC_C_O

12. cd to WD-MyBookWorld-v1.00.16-GPL/kernel/kernel-source/buildroot, run make
13. Eventaully it dies compiling gdb. To fix remove -Werror from "WD-MyBookWorld-v1.00.16-GPL/kernel/kernel-source/buildroot/toolchain_build_arm/gdbhost-6.6/bfd/Makefile"
14. run make again
15. Pretty soon thereafter, make will die. To fix remove -Werror from "WD-MyBookWorld-v1.00.16-GPL/kernel/kernel-source/buildroot/toolchain_build_arm/gdbhost-6.6/opcodes/Makefile"
16. run make again
17. cd ..
18. source ./setup-paths.sh
19. cd kernel-0.4.6
20. make oxnas_810_eabi_dse_defconfig
21. make menuconfig (Here's where you can adjust the existing modules and add your own)
22. make modules

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License