OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: protechk on January 13, 2008, 03:30:39 pm
-
I would like to know if someone have an ipk with dm9601 module for Angstrom. Or if someone have a howto which explain how to compile a module.
I use an USB/Ethernet dongle with this chipset.
Thnks
-
Do you have a build environment set up? If so, you should be able to do "bitbake linux-module-dm9601" or whatever the package is called. I can't look it up because the Angstrom website is down.
EDIT: Maybe you have to recompile your kernel with different options. I'm not sure, nor am I sure how to do that. I'm new to OE/Bitbake.
EDIT: It looks like it is "kernel-module-dm9601," but it is only available for the Cxx0 series, not the Cxx00 series.
-
Do you have a build environment set up? If so, you should be able to do "bitbake linux-module-dm9601" or whatever the package is called. I can't look it up because the Angstrom website is down.
EDIT: Maybe you have to recompile your kernel with different options. I'm not sure, nor am I sure how to do that. I'm new to OE/Bitbake.
EDIT: It looks like it is "kernel-module-dm9601," but it is only available for the Cxx0 series, not the Cxx00 series.
would ther really be a difference ?
-
Nope, but the package search tool says it's only for the Cxx0. I rebuilt my image last night, and enabled DM9601 in the default config. I now have a DM9601 Spitz module, if somebody's interested.
-
I am interesting but what kernel do you use to compile it?
-
2.6.23, the default one that comes with Angstrom.
-
I now have a DM9601 Spitz module, if somebody's interested.
Hey, Capn_Fish, i'd like to test this module on my Z. Could you publish it?
-
No problem. Here you go.
-
Thanx a lot Capn_Fish!
However the ipk cannot be installed with ipkg, but after manual installation (ar -x ..., cp dm9601 ... , depmod) the module just works!
I tested it on SL-C1000 and SL-C3200, Angstrom 2007.12, kernel 2.6.23,
and some noname usb dongle (costs ~15E)
lsusb says:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
idVendor 0x0a46 Davicom Semiconductor, Inc.
idProduct 0x9601
bcdDevice 1.01
iManufacturer 1 DM9601 USB NNC
iProduct 2 Davicom CO., LTD
iSerial 3 9601
bNumConfigurations 1
[/div]
-
Unfortunately, my dongle doesn't work, but glad to hear the driver does.
-
Not to bring up an old topic, but I need hostap.ko and hostap_cs.ko compiled with prism2 download support. I was wondering if anyone could point me in the right direction to setup a build environment or maybe even compile them for me? I have been pulling my hair out trying to flash my wifi card. If this has been asked somewhere else, I do apologize. I did a quick search, but did not look into it that deeply.
**Quick update before I go to bed. I have a build environment set up and seems to be working. I am at a loss when it comes to compiling the module with download support. Any suggestions would be much appreciated. This would be my first time having a go at compiling a module and it seems to be the only choice I have at the moment. Thanks in advance.
-
You need to edit the build files with the options to enable these things, I believe.
There are also some modules I built for pdaXrom r198 a while back that support card flashing. I'll dig up the link if you'd like.
-
Unfortunately, I just reflashed from r198. I have the files, but I assumed that they would not work with Angstrom. From what I've read the kernels are quite different. I could be completely wrong, which is probably true as I do not know much about the Linux kernel and how modules are compiled
-
Unfortunately, I just reflashed from r198. I have the files, but I assumed that they would not work with Angstrom. From what I've read the kernels are quite different. I could be completely wrong, which is probably true as I do not know much about the Linux kernel and how modules are compiled
No, they won't work on Angstrom (with the normal kernel). You could flash the pdaX kernel with your current Angstrom install (after putting the modules in the correct place), reboot, flash the card, then flash your old kernel back. The kernel should work fine (at least well enough to allow you to flash the card), though I've not tested it with Angstrom.
EDIT: The kernel might be in the wrong format to just flash and have it work with Angstrom (I seem to remember a step when building it that made a 'uboot' kernel). You could try it anyway, though
-
Unfortunately, I just reflashed from r198. I have the files, but I assumed that they would not work with Angstrom. From what I've read the kernels are quite different. I could be completely wrong, which is probably true as I do not know much about the Linux kernel and how modules are compiled
No, they won't work on Angstrom (with the normal kernel). You could flash the pdaX kernel with your current Angstrom install (after putting the modules in the correct place), reboot, flash the card, then flash your old kernel back. The kernel should work fine (at least well enough to allow you to flash the card), though I've not tested it with Angstrom.
EDIT: The kernel might be in the wrong format to just flash and have it work with Angstrom (I seem to remember a step when building it that made a 'uboot' kernel). You could try it anyway, though
I would rather attempt to learn how to compile the module myself. I really have no idea how to go about doing so. I know I can bitbake hostap-module or something along those lines, but I have no idea what file to change to add prism2 download support and possibly packet injection, assuming that is part of the kernel module. Thanks for the idea though, I tried flashing your kernel after installing r198 and ended up with no wlan0 device. This confused me and I had been itching to try Angstrom anyways.
I've been searching the wiki to no avail. I'm sure it's in there and I'm probably not using the correct search terms, but I have the environment setup, with their instructions anyways. I assumed there would be some file inside the hostap package directory that might lead me in the right direction, but the only thing that I found were a bunch of .bb files that I had no clue how to change to suit my needs. Thanks for all the help and possibly anymore in advance.
**EDIT** Missing word
-
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).
-
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
-
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?
-
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
-
>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 (http://www.mail-archive.com/devel@lists.openmoko.org/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
-
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).
-
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
-
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.
-
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 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.
-
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!