Author Topic: How To Compile Modules?  (Read 23435 times)

VirtusRex

  • Full Member
  • ***
  • Posts: 126
    • View Profile
How To Compile Modules?
« Reply #30 on: June 29, 2007, 09:45:04 am »
Quote
Quote
Hey capn_fish,

I once updated my firmware on my linksys wcf12 compact flash card. I used the guide found on this page:

http://www.aircrack-ng.org/doku.php?id=pri...b87e59b4b29c33b

Maybe you can do the same with your card.

VirtusRex
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163938\"][{POST_SNAPBACK}][/a][/div]
Did you do it on your Z? If so, what ROM? My issue is that pdaXrom apparently doesn't support flashing cards ATM.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163939\"][{POST_SNAPBACK}][/a][/div]

No, I did it on my laptop running windows xp using a pcmcia to CF adapter.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #31 on: June 29, 2007, 03:17:40 pm »
I now have a 2.6.16 Cxx00 kernel that supports packet injection and the flashing of Wi-Fi cards. I'll get links to info on how to install it as well as the actual files up later.

I assume there's interest?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

VirtusRex

  • Full Member
  • ***
  • Posts: 126
    • View Profile
How To Compile Modules?
« Reply #32 on: June 29, 2007, 03:37:16 pm »
Yeah, sounds good.

VirtusRex

VirtusRex

  • Full Member
  • ***
  • Posts: 126
    • View Profile
How To Compile Modules?
« Reply #33 on: June 29, 2007, 03:48:25 pm »
Hey Capn_Fish,

I'm a little confuse about why your kernel needs to support packet injection?
I downloaded pdxaii13 5.4.5 and I've been using it with my C1000. So far I've managed to test packet injection on my home router and it works fine with my DWL-G122 usb wireless key. Does this mean pdaxii13 5.4.5 supports packet injection as well???

VirtusRex

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #34 on: June 29, 2007, 06:20:47 pm »
Well, Meanie did tweak it, so I would guess that that is a yes. It wouldn't be strange for him to have added it in.

EDIT: Oh, r198 doesn't support injection out of the box. You need to patch andrecompile the kernel to get such support. I suspect Meanie patched the drivers for ii13, as they are separate from the kernel.

As to why I need packet injection, I just want to get WEP cracking to work. It has eluded me for some time, which irks me.
« Last Edit: June 29, 2007, 06:23:40 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #35 on: June 29, 2007, 06:35:47 pm »
Here's the stuff (for Cxx00 r198; may work on other models/pdaXrom versions, but no guarentees). Just remove (or move to a safe place) /lib/modules/2.6.16, and untar the "lib" archive to /. Then, do a

Code: [Select]
nandlogical /dev/mtd1 WRITE 0x5a0000 0x160000 uImage
and reboot. You should have working packet injection, as well as support for flashing cards' firmware.

Remove the .txt extention from uImage.txt (so it becomes "uImage")

Sorry, I seem to not have the files other than the hostap-utils for flashing firmware. I'll get it soon (I don't want to retype this post).

EDIT: Added macchanger (only way I found to make my card work was changing its MAC)
EDIT2: I'm almost certain these are the right files (modules and uImage).
« Last Edit: September 22, 2007, 11:52:37 am by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #36 on: July 01, 2007, 11:46:57 am »
I've almost got a module compiled! It goes for a while, then complains about not being able to execute scrips/basic/fixdep. Is there a way around this?

EDIT: got around that be removing the file and recompiling it. Now it's complaining about scripts/mod/modpost. I removed it and tried to recompile it, but it doesn't work. Any workaround here?

EDIT2: OK the module is compiled! But no matter where I stick it, I can't modprobe it. I've been putting it in /lib/modules/2.6.16/<direcotry>, but it doesn't work. I'm probably missing somethig obvious...

EDIT3: OK, I figured it out...See the new packages thread for details and the module.

A dm9601.o file is created, but I thought it was supposed to be .ko? Or is that not a module?

Thanks.
« Last Edit: July 01, 2007, 10:54:24 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #37 on: July 01, 2007, 10:53:32 pm »
How do you cross compile with pdaX86? When I try to build stuff, it builds it for x86. The kernel built fine for armv5tel, and I can't find a runsdk.sh equivalent.

If this is really obviously documented somewhere, please let me know.

Thanks.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
How To Compile Modules?
« Reply #38 on: July 02, 2007, 04:09:19 am »
I've made some notes as a reminder for myself (and for anyone who might find them usefull).
They are avalible on my home page in the "Zaurus" menu on the left and then "Issues" and "Documentation" submenus on the top.

In particular this and also this documents contain some usefull information.
The runsdk.sh should be in the /opt/cross tree somewhere .... I've made a copy of it in /usr/local/bin so that it's in the default path.
Just incase you cannot find it this is what it should be like (this is for the pdaxrom cross sdk current version) :
Code: [Select]
#!/bin/bash
. /etc/profile
export PATH=/opt/cross/arm/3.4.6-xscale-softvfp/bin:$PATH
export QTDIR=/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/qt
export KDEDIR=/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/qt
export X11INC=/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include
export X11LIB=/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib
export PKG_CONFIG_PATH=/opt/cross/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/lib/pkgconfig
export CROSS_COMPILE=armv5tel-cacko-linux-
export CROSS=$CROSS_COMPILE
export ARCH=arm
echo "Type exit for leave armv5tel-cacko-linux cross environment."
/bin/bash

Hope this helps.
« Last Edit: July 02, 2007, 04:11:08 am by louigi600 »
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #39 on: July 02, 2007, 10:15:40 pm »
New kernel and modules. Now with IPTables support and probably a bunch of extra junk. Includes the packet injection and firmware flashing (for the flashing, not tested but I' fairly sure I got it in there) support.

DL the junk.tar.gz file to somewhere and untar it. Follow the instrutions in the last post to flash the kernel, then remove your /lib/modules/2.6.16 folder, cd to /, and untar the lib.tar.gz file (which is in the junk.tar.gz file).

This is necessary to use the Firestarter package I just put up in the new packages thread.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #40 on: October 01, 2007, 08:54:33 pm »
How large is the demand for a fastfpe pdaX latest kernel with packet injection support? Post/PM me away if you want it.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
How To Compile Modules?
« Reply #41 on: February 12, 2008, 06:47:58 am »
@Capn Fish

Do you know whether ist works for Meanies pdaXii13v2. There is the kernel 2.4 available.

From where do I execute the command "nandlogical /dev/mtd1 WRITE 0x5a0000 0x160000 uImage" ?


Thanks
climber
SL-C3100 & pdaXii13v2

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #42 on: February 12, 2008, 07:37:55 am »
It probably will not work with pdaX11i3, but you never know. If nothing on the system (besides kernel modules) is kernel-specific, flashing it may be OK.

You can run the Nandlogical command from wherever (the example given was from the directory containing uImage).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
How To Compile Modules?
« Reply #43 on: February 14, 2008, 02:24:12 am »
Ok, I did a zbackup from my pdaXii13v2. I will try it on pdaXrom_r198 to get it working. These are the steps which I'm
planing to do. Please correct me if I'm wrong

1.) Flash my Zaurus SL-C3100 with pdaXrom_r198

2.) Reboot and do some settings

3.) Booted up off the pdaXrom installer and ran  in a shell "nandlogical /dev/mtd1 WRITE 0x5a0000 0x160000 uImage" inside the directory containing    
     uImage

4.) Install the following apps:   apps
     a.) hostap-utils_0.4.7-r3_armv5te.ipk
     b.) kernel-module-hostap-2.6_2.6.16-r41_akita.ipk
     c.) aircrack-ng_0.9.1-r2_armv5te.ipk

     ???? I'm not sure if I need to install the kernel-module-hostap or if it's included in your file?

5.) Modify the script "airoscript.sh" to my settings as described in the readme.

6.) ?????????


Could this work or do I miss something? On which ROM did you get it successful working (pdaXrom; Angstrom; Cacko)?



Thanks
climber
« Last Edit: February 14, 2008, 02:28:28 am by climber »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
How To Compile Modules?
« Reply #44 on: February 14, 2008, 07:52:34 am »
You can flash the kernel from the normal OS. By installing the HostAP package, you got RID of the patched drivers (assuming it's unpatched) Try:

-Install r198
-flash kernel
-untar modules to /
-reboot
-install aircrack and stuff from my feed

That's what worked for me IIRC. The Aircrack packages on the site are for Angstrom/OZ.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo