AR Drone loadable kernel modules

Mirumod, Macgyver, hull, cam, propeller, leg, cross, ball bearing mods... etc.
Post Reply
danimes
Battery Charged
Posts: 7
Joined: 23 Jun 2011, 16:13

AR Drone loadable kernel modules

Post by danimes » 04 Jul 2011, 00:10

How do I compile loadable kernel modules and where do I find them? The particular ones that I'm after are from the USB disk mod (http://www.ardrone-flyers.com/forum/vie ... ?f=8&t=829" onclick="window.open(this.href);return false;).
I got the linux kernel of the drone but can't figure out where the modules are or how to compile just a module to a ko file.
I'm also not sure all of them are there.
I got the sourcery toolchain working.

MAPGPS
Strange wobble
Posts: 201
Joined: 26 Oct 2010, 03:03

Re: AR Drone loadable kernel modules

Post by MAPGPS » 04 Jul 2011, 04:31

Attached ZIP file contains the ".config" file I used to build all driver modules (*.ko) needed in my AR.Drone test.
You can put it under the kernel source root directory, e.g.:
linux-2.6.27/.config

After "make", you can see the full path names of *.ko in the last section of the make outputs.
(Actually they are in the same directory as the driver source)

You can also run "make menuconfig" to select the modules (tag it as "M") you want to build, and it will generate your own ".config" file.
You do not have the required permissions to view the files attached to this post.

MAPGPS
Strange wobble
Posts: 201
Joined: 26 Oct 2010, 03:03

Re: AR Drone loadable kernel modules

Post by MAPGPS » 04 Jul 2011, 05:46

How To locate the menu option for dwc_otg.ko in "make menuconfig":

Use file Editor to:
1) Search files "Makefile" with string "dwc_otg", and get file:
drivers/parrot/usb/dwc_otg/Makefile
with "obj-$(CONFIG_USB_PARROT6)"

2) Search files "Kconfig" with string "USB_PARROT6", and get file:
drivers/parrot/usb/dwc_otg/Kconfig
with tristate "PARROT6 USB driver (Synopsys)"

3) Search files "Kconfig" with string "drivers/parrot/usb/dwc_otg/Kconfig", and get file:
drivers/parrot/Kconfig
under menu "Parrot drivers"

4) Search files "Kconfig" with string "drivers/parrot/Kconfig", and get file:
arch/arm/plat-parrot/Kconfig
(no menu section for it in this file, so we continue to search upper ...)

4) Search files "Kconfig" with string "arch/arm/plat-parrot/Kconfig", and get file:
arch\arm\Kconfig
under menu "System Type"

Config file "arch\arm\Kconfig" is the top one for ARM cross-compile,
so we can reverse to get the menu path:
--> System Type
--> Parrot drivers
--> PARROT6 USB driver (Synopsys)

silentstorm321f
Newcomer
Posts: 3
Joined: 09 Jan 2012, 08:38

Re: AR Drone loadable kernel modules

Post by silentstorm321f » 01 Apr 2012, 09:36

insmode dwc_otg failed.

dmesg
[ 100.110154] dwc_otg: Unknown symbol usb_hcd_resume_root_hub
[ 100.125053] dwc_otg: Unknown symbol usb_gadget_unregister_driver
[ 100.127169] dwc_otg: Unknown symbol __gnu_mcount_nc
[ 100.133044] dwc_otg: Unknown symbol kmalloc_caches

what's wrong with it? i'm not familiar with USB, i just modified it as E/S and I wrote.
embedded-software.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests