Hoodoo
Member
THE DRIVER DISCUSSED HERE IS IRRELEVANT FOR ANY PANDORA OS VERSION STARTING FROM ZAXXON HOTFIX 6 RELEASE CANDIDATE! THE DEVICES MENTIONED HERE SHOULD BE SUPPORTED OUT OF THE BOX!
This week I tried to build a usb wifi driver for rtl8192cu.
I followed the wiki guide for firmware compatibility, i.e.
Prepared the OS for building:
- Installed qemu
- Installed Debian Squeeze to virtual machine
- Installed git, build-essential, bzip2, unzip, curl, libmpfr-dev
- symlinked /usr/lib/libmpfr.so to /usr/lib/libmpfr.so.1
- got djwillis toolchain and untared it to /usr/local
Got the kernel:
- git clone git://openpandora.org/pandora-kernel.git
- git checkout --track -b pandora-27-omap1 origin/pandora-27-omap1
Got the patches:
- git://git.openpandora.org/openpandora.oe.git
- lloked into openpandora.oe/recipes/linux/omap3-pandora-kernel_2.6.27-pandora.bb for patches list and applied them (all succeeded)
- copied the config from reciopes to /pandora-kernel/.config
Built the kernel:
- make && make modules && make prepare && make modules_prepare
Edited the makefile:
- redefined $CROSS_COMPILE to arm-angstrom-linux-gnueabi-, $ARCH to arm, $KVER to 2.6.27.46.omap1, $KSRC to path to kernel source
Built the module:
-make
Copied the resulting .ko file to pandora: /lib/modules/2.6.27.46.omap1/kernel/drivers/net/usb/
Edited modules.dep
Tried to modprobe the driver and got a bunch of 'Unknown symbol' errors in dmesg.
What did I do wrong?
------------------------------------------------
Nothing. In hotfix5 it would be a real hairy voodoo to build a working driver, if possible. The kernel in hotfix6 has a compatibility layer backported from mainline and this driver works fine.
This week I tried to build a usb wifi driver for rtl8192cu.
I followed the wiki guide for firmware compatibility, i.e.
Prepared the OS for building:
- Installed qemu
- Installed Debian Squeeze to virtual machine
- Installed git, build-essential, bzip2, unzip, curl, libmpfr-dev
- symlinked /usr/lib/libmpfr.so to /usr/lib/libmpfr.so.1
- got djwillis toolchain and untared it to /usr/local
Got the kernel:
- git clone git://openpandora.org/pandora-kernel.git
- git checkout --track -b pandora-27-omap1 origin/pandora-27-omap1
Got the patches:
- git://git.openpandora.org/openpandora.oe.git
- lloked into openpandora.oe/recipes/linux/omap3-pandora-kernel_2.6.27-pandora.bb for patches list and applied them (all succeeded)
- copied the config from reciopes to /pandora-kernel/.config
Built the kernel:
- make && make modules && make prepare && make modules_prepare
Edited the makefile:
- redefined $CROSS_COMPILE to arm-angstrom-linux-gnueabi-, $ARCH to arm, $KVER to 2.6.27.46.omap1, $KSRC to path to kernel source
Built the module:
-make
Copied the resulting .ko file to pandora: /lib/modules/2.6.27.46.omap1/kernel/drivers/net/usb/
Edited modules.dep
Tried to modprobe the driver and got a bunch of 'Unknown symbol' errors in dmesg.
What did I do wrong?
------------------------------------------------
Nothing. In hotfix5 it would be a real hairy voodoo to build a working driver, if possible. The kernel in hotfix6 has a compatibility layer backported from mainline and this driver works fine.
Last edited by a moderator: