Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2008-05-17, 10:03
thopiekar thopiekar is offline
 
Join Date: Feb 2008
Location: Solingen; Germany
Posts: 88
Thanks!: 52
Thanked 63 Times in 25 Posts
Send a message via Skype™ to thopiekar
Default Compiling a usb.ethernet-module (asix.ko)

hello @ all^^

I've got a strange problem with compiling a kernel.module
for my usb-ethernet-adapter

The reason for compiling the module is that my n800 freezes (when using the usbLAN.deb)
when I plug-in the usb-ethernet-adapter and when i plug it out
my n800 runs normaly after a little time...

so I started with installing scratchbox unter my Ubuntu Hardy Heron
and used the scripts:
# SDK installer script
# Scratchbox Installer script
from http://maemo.org/development/sdks/ma...inook_sdk.html

then I used this howto:
http://maemo.org/development/documen...for_maemo.html (by penguinbait [thanks again])
but I keep on the target:
Code:
[sbox-CHINOOK_ARMEL: ~] >
like qwerty12_N800 on IRC #maemo advised me to do so
and everything works fine...

after this "preliminary work" I used the readme from the *.zip-package of the driver:
http://www.asix.com.tw/download.php?...ail&PItemID=86

Code:
================
Getting Start
================

1. Copy ax88178-2.6.14 directory to your template directory
-> I unzip'd it to /scratchbox/users/thopiekar/home/thopiekar/AX88772_772A_LINUX2.6.14_REV105
because i didn't found the "/tmp/"-folder in sb...

Code:
2. Now, you should have a ax88178-2.6.14 directory in your template directory.
   Go to the ax88178-2.6.14 directory, and executing the following command to
   compiler AX88178 Driver.
 
			[root@localhost ax88178-2.6.14]# make
after:

Code:
[sbox-CHINOOK_ARMEL: ~] > cd ~/AX88772_772A_LINUX2.6.14_REV105
I ran "make" and got this output:
Code:
[sbox-CHINOOK_ARMEL: ~/AX88772_772A_LINUX2.6.14_REV105] > make
make -C /lib/modules/2.6.24-17-generic/build SUBDIRS=/home/thopiekar/AX88772_772A_LINUX2.6.14_REV105 modules
make: *** /lib/modules/2.6.24-17-generic/build: No such file or directory.  Stop.
make: *** [default] Error 2
I thought about the output:
Code:
... No such file or directory. ...
and realized that the reason could be, that "make" isn't able to find the kernel-sources (stored in: ~/maemo_kernel/kernel-source-rx-34-2.6.21.0)
so I searched for an fix and found the option -C in "man make"...

I checked it out and it seems to work...
Code:
[sbox-CHINOOK_ARMEL: ~/AX88772_772A_LINUX2.6.14_REV105] > make -C ~/maemo_kernel/kernel-source-rx-34-2.6.21.0
make: Entering directory `/home/thopiekar/maemo_kernel/kernel-source-rx-34-2.6.21.0'
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  MODPOST vmlinux
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 10 modules
make: Leaving directory `/home/thopiekar/maemo_kernel/kernel-source-rx-34-2.6.21.0'
But after this there was no "asix.ko" in the current folder (?)...
but the manual says there might be...
Code:
3. If the compilation well, the asix.ko will be created under the current directory.
I would be very appreciative if you can help me...
... and I now, that you have the knowledge^^

greez
Reply With Quote
  #2  
Old 2008-05-17, 10:04
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Re: Compiling a usb.ethernet-module (asix.ko)

Come on IRC and give me time, I'll go and compile it.
Reply With Quote
The Following User Says Thank You to qwerty12 For This Useful Post:
  #3  
Old 2008-05-17, 10:20
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Re: Compiling a usb.ethernet-module (asix.ko)

Ok, done.



Remove the .zip extension.

The asix.ko file is inside the tar.gz
Compiled against standard nokia kernel.
Attached Files
File Type: zip AX88772_772A_LINUX2.6.14_REV105.tar.gz.zip (39.2 KB, 1266 views)
Reply With Quote
The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:34.