On Wed, Jul 7, 2010 at 10:21 PM, Brandon Rosenbaum
<[email protected]> wrote:
> I did try to use the Makefile included in magoroku's code to generate
> the .ko file, but that didn't work.
> So then I modified his Makefile to the following:
>
> obj-m := displaylink.o
> displaylink-y := displaylink-main.o displaylink-usb.o displaylink-
> blit.o displaylink-fb.o displaylink-ioctl.o
>
> all:
>        $(MAKE) -C /lib/modules/`uname -r`/build SUBDIRS=$(PWD) modules
> clean:
>        rm -f *.o *.ko *.mod.* .*.cmd Module.symvers
>        rm -rf .tmp_versions
>
> That worked in the sense that it made a .ko file.  So then I copied
> that to my Windows system (I'm running Ubuntu in a virtual machine and
> I haven't gotten USB devices to work properly yet).  Then I used adb
> to push the .ko file onto /system/lib/modules.
>
> After that, I tried to insmod the .ko file and it gave me an EXEC
> error failure.  I'm not sure if it was built wrong or if I need to
> rebuild the whole android source, which is what I am trying right now.
>
Hoping that you cross compiled for ARM, you might probably be ending
up with a kernel verison mismatch.
Are you sure you built your .ko module against your phone's kernel version?
May be doing a dmesg after trying insmod might help....

> NOTE:  this is on a rooted Motorola Droid running 2.1
>
>
> On Jul 7, 2:26 pm, "Sven Killig" <[email protected]> wrote:
>> > -----Original Message-----
>> > From: [email protected] [mailto:android-
>> > [email protected]] On Behalf Of Brandon Rosenbaum
>> > Sent: Wednesday, July 07, 2010 4:09 PM
>> > To: Android Linux Kernel Development
>> > Subject: [android-kernel] DisplayLink Android Driver
>>
>> > The part I am confused about is how to go about adding the driver to
>> > my phone. Do I need to download the Android source code, add the
>> > driver to that, and then build the whole thing? Or is it possible to
>> > just load the driver as a module?
>>
>> Perhapshttp://sven.killig.de/android/N1/2.2/usb_host
>> does help you.
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to