Author Topic: Angstrom And Dm9601 Module  (Read 25281 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #15 on: December 15, 2008, 05:24:05 pm »
I think it's patched for packet injection by default. You should be able to enable download support by editing either the module Bitbake file or the default kernel config (I'm not sure where that is off the top of my head, but it's fairly easy to find, linux-2.6.x/defconfig.DEVICE or something, perhaps).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Hacdan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Angstrom And Dm9601 Module
« Reply #16 on: December 17, 2008, 10:20:25 pm »
Just a quick question, I have everything setup and it is telling me gcc cannot compile. I don't have the exact error code due to dealing with a family situation at the moment. I was just wondering if anyone else was having trouble to get gcc compiled. It's for akita. Thanks again

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #17 on: December 18, 2008, 07:42:48 am »
In my experience "gcc cannot create executables" means that you've got bad options set somewhere (like trying to do -march=iwmmxt when it doesn't support it). I don't know if you did anything like that, but it's something to look into.

Also, can you build other packages?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Hacdan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Angstrom And Dm9601 Module
« Reply #18 on: December 18, 2008, 09:39:32 pm »
Quote from: Capn_Fish
In my experience "gcc cannot create executables" means that you've got bad options set somewhere (like trying to do -march=iwmmxt when it doesn't support it). I don't know if you did anything like that, but it's something to look into.

Also, can you build other packages?

No, it seems as if it needs to compile gcc for arm before it can compile any other packages? That is where it has failed every time is at gcc.

Here's the error I've been getting:
dave@Ubuntu-VM:~/oe/org.openembedded.stable/packages/hostap$ bitbake hostap-modules          
NOTE: Handling BitBake files: \ (4976/4976) [100 %]
NOTE: Parsing finished. 4750 cached, 0 parsed, 226 skipped, 0 masked.
NOTE: build 200811272340: started

OE Build Configuration:
BB_VERSION     = "1.8.10"
OE_REVISION    = "<unknown>"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "akita"
DISTRO         = "angstrom"
DISTRO_VERSION = "2007.12-r19"
TARGET_FPU     = "soft"

NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 2.5 of glibc not available (for item virtual/arm-angstrom-linux-gnueabi-libc-for-gcc)
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 140 of 322 (ID: 293, /oe/org.openembedded.stable/packages/gcc/gcc-native_3.4.4.bb, do_compile)
NOTE: Running task 148 of 322 (ID: 121, /oe/org.openembedded.stable/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb, do_patch)
NOTE: package gcc-native-3.4.4: started
NOTE: package gcc-native-3.4.4-r7: task do_compile: started
NOTE: package linux-libc-headers-2.6.20: started
NOTE: package linux-libc-headers-2.6.20-r9: task do_patch: started
NOTE: package linux-libc-headers-2.6.20-r9: task do_patch: completed
NOTE: package linux-libc-headers-2.6.20: completed
NOTE: Running task 149 of 322 (ID: 118, /oe/org.openembedded.stable/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb, do_configure)
NOTE: package linux-libc-headers-2.6.20: started
NOTE: package linux-libc-headers-2.6.20-r9: task do_configure: started
ERROR: function do_compile failed
ERROR: see log in /oe/angstrom-stable//work/i686-linux/gcc-native-3.4.4-r7/temp/log.do_compile.6144
NOTE: Task failed: /oe/angstrom-stable//work/i686-linux/gcc-native-3.4.4-r7/temp/log.do_compile.6144
NOTE: package gcc-native-3.4.4-r7: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package gcc-native-3.4.4: failed
ERROR: Build of /oe/org.openembedded.stable/packages/gcc/gcc-native_3.4.4.bb do_compile failed
ERROR: Task 293 (/oe/org.openembedded.stable/packages/gcc/gcc-native_3.4.4.bb, do_compile) failed
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /oe/org.openembedded.stable/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb, do_configure (6291)
NOTE: package linux-libc-headers-2.6.20-r9: task do_configure: completed
NOTE: package linux-libc-headers-2.6.20: completed
NOTE: Tasks Summary: Attempted 147 tasks of which 146 didn't need to be rerun and 1 failed.
ERROR: '/oe/org.openembedded.stable/packages/gcc/gcc-native_3.4.4.bb' failed

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #19 on: December 19, 2008, 08:57:24 am »
>dave@Ubuntu-VM:~/oe/org.openembedded.stable/packages/hostap$ bitbake hostap-modules          

Ah, you're using ubuntu...

http://www.mail-archive.com/devel@lists.op...g/msg03391.html

Second thing, don't use 'dash' as shell. Some recipes are broken (gtk+ etc.) so you need 'bash' to compile properly.



About the topic, to compile the module you just edit the kernel defconfig and add:

CONFIG_USB_NET_DM9601=m

Ant

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #20 on: December 19, 2008, 02:43:34 pm »
If you're using Ubuntu 8.10, the normal GCC doesn't really work. I had to use GCC 4.2 and co to get the environment to build OK.

EDIT: Oh, and Qemu (which is apparently necessary) doesn't really build with GCC 4.x, so I just installed the binary version from the Qemu website (you DO need to do a "touch /path/to/qemu.d_compile or whatever the stamp file is).
« Last Edit: December 19, 2008, 02:45:06 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #21 on: December 19, 2008, 04:55:53 pm »
In openembedded the default is to create glibc binary locales.
These can be created on the target (but 128mb are usually required...) or at buildtime using qemu.
But quemu does not build yet with gcc4...so to ease the things a bit, gcc-3.4x-native is built, just to successfully compile qemu.
This way, you don't need to install gcc3 on your buildhost! Presto!

Regards

Ant


P.S.
If it still fails, move to openembedded .dev branch

Hacdan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Angstrom And Dm9601 Module
« Reply #22 on: December 20, 2008, 06:32:10 pm »
I am very open to any other operating system suggestions as they are all running in a VM on my MacBook Pro, so if Fedora or openSuse or possibly Gentoo would be a better OS for compiling within, I'll gladly take the time to install and setup the environment. As for the suggestions I will be trying them once I get home. Currently still dealing with a family matter and probably will for the next few months. I'll try to check in with progress, though, as often as I can.

Hacdan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Angstrom And Dm9601 Module
« Reply #23 on: February 08, 2009, 11:08:53 pm »
I really hate to break down and ask, but out of frustration could someone possibly compile the hostap driver with download support for Angstrom 2007-12(?) Akita? Kernel version is 2.6.24. I am so frustrated with this and I'm pulling my hair out with bitbake trying to find how to change the correct files for download support. I can compile packages just fine, but finding the correct file to modify has been a struggle that I cannot seem to overcome at this point. I'm currently running pdaXrom r198 with Capn_Fish's modified kernel and I have no wlan0 interface, or any interface for that matter before or after installing his modified kernel(besides lo). I would like to get back to Angstrom, but this card still having the old firmware is causing quite the trouble. Thanks in advance for any advice or possibly a compiled hostap driver.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Angstrom And Dm9601 Module
« Reply #24 on: February 09, 2009, 06:03:11 pm »
Quote from: Hacdan
I really hate to break down and ask, but out of frustration could someone possibly compile the hostap driver with download support for Angstrom 2007-12(?) Akita? Kernel version is 2.6.24. I am so frustrated with this and I'm pulling my hair out with bitbake trying to find how to change the correct files for download support. I can compile packages just fine, but finding the correct file to modify has been a struggle that I cannot seem to overcome at this point. I'm currently running pdaXrom r198 with Capn_Fish's modified kernel and I have no wlan0 interface, or any interface for that matter before or after installing his modified kernel(besides lo). I would like to get back to Angstrom, but this card still having the old firmware is causing quite the trouble. Thanks in advance for any advice or possibly a compiled hostap driver.
I might find time sometime, but my build box is currently buried...

Anyway, it SHOULD be as easy as changing the "akita.defconfig" or "defconfig.akita" (I can't remember which). The file is in the linux-rp-2.6.24 dir, IIRC. All you need to do is open it, find the lines looking like "HOSTAP_FIRMWARE_DOWNLOAD is undefined" and change them to "HOSTAP_FIRMWARE_DOWNLOAD=y". It's pretty obvious, IIRC.

Hope that helps you.

It also occurred to me that you probably don't need to install my whole kernel, just the modules. They worked for me, so I also might try redownloading them.

Hope that helps you.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Hacdan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Angstrom And Dm9601 Module
« Reply #25 on: February 09, 2009, 06:46:01 pm »
Thank you so much. I would really like to know where the documentation on how to do such things as you mentioned above. I could not seem to find it on the Angstrom Wiki or on OpenEmbedded. I suppose I do not know exactly what I'm looking for, but I did look.

I got everything compiled, works like a charm. Card is up to date. Now the new problem, packet injection is not working for me. I saw that you(Capn_Fish) were having the same problem on the mail list for Angstrom, but somehow you solved it. The "solution" never made it to the mailing list, at least not in the archives I was looking at. I was wondering if you could offer any insight, or anyone else for that matter. Thanks again! Finally wpa working with my Z. =)

**EDIT** I don't know what I did to get packet injection working, but it is. I upgraded to a later version of Aircrack-ng and Voila. Thanks for all the help from everyone that has taken part in this thread. Happy WEP cracking I go. Maybe even WPA. My 63 Character Key should make the Z sweat a lil. Thanks again!
« Last Edit: February 09, 2009, 07:55:09 pm by Hacdan »