Author Topic: Backtrack On An Sl-c1000  (Read 18999 times)

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« on: July 12, 2008, 08:11:32 am »
Hi all,

I'm new to Linux, but learning stuff all the time...

was just wondering how difficult it would be to port all/most/majority of Backtrack
to the XScale ARM Machines SL-Cxx00 ?

has anyone thought about doing this ?

I would guess the firstmost consideration is storage space:

a) develop 4Gb SDIO driver for whatever kernel is chosen

then proceed with the creation of the software:

 choose a kernel 2.6 based ARM OS and install it
c) remove any excess software baggage from this install your not going to use
d) load cross-compiler environment into an x86 Machine running a distro like x86 SUSE.
e) load ARM GCC equivalent of your cross compiler to your destiantion Computer
f) setup kernel source tree on your destination computer
g) ARM patch and cross compile kernel for ARM and install on destination Computer
h) obtain all tarballs for all important programs running in the x86 CDROM version
    and cross compile them for ARM, then IPK them ready for installation on destination Computer

As you can see, I have an idea of the process, but I dont know how to go about exactly doing this.

this would be ideal, as the Sharp Pocket Computers offer such a lot of portable power in such a small package ?

what say you good people ?
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #1 on: July 12, 2008, 10:41:33 am »
Or you could just install things like NMAP, Kismet, Wireshark, etc. and have the same thing under Debian, Angstrom, or pdaX.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #2 on: November 17, 2008, 08:31:42 pm »
Quote from: Capn_Fish
Or you could just install things like NMAP, Kismet, Wireshark, etc. and have the same thing under Debian, Angstrom, or pdaX.

on the x86 version, all USB Wifi functions work, that is, Ad-Hoc, Managed, Monitor + Injection and Master modes, further, the Web Browser is superb and
does not disappear after 30 seconds of use .

All we need now is a mini x86 Computer like an OQO 01+ and we can bootstrap this OS from a USB stick.

I have immensely enjoyed my travels with you and eviLjazz, you are both superb, but, if the USB Wifi issues cannot at least be resolved for
managed mode in my other threads, then I will be selling my SL-C1000, and saying farewell to you. my promises to you about you know what
are not forgotten and they will be kept too, I just need a little more time to sort that out, best wishes from me  
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #3 on: November 17, 2008, 11:04:30 pm »
I think Angstrom has the best chance of working for you. It DOES need a patched driver (which should be trivial to make, or, if you're OK with using an older kernel:

http://zaurus.aircrack-ng.org/akita/)

There's even a Bitbake file for it: http://gitweb.openembedded.net/?p=openembe...9c65008c3063c5b

After I get my build machine set up (again), I'll build it for you to test (Or, if you have a Linux box, you could do it faster).

EDIT: Never mind, that's the already-patched driver! All that needs to be done is to do a "bitbake  rt73-k2wrlz" and we're good! I'll let you know when I get my box set up, or just pester me constantly until I get to it.
« Last Edit: November 17, 2008, 11:09:59 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #4 on: November 18, 2008, 04:55:04 pm »
Quote from: Capn_Fish
just pester me constantly until I get to it.

LOL!    man, you REALLY rock !       I might just have to take you up on this offer ! lets hope we can get this issue sorted, it sure would be a
real kick ass WiFi feature to have good USB Wifi support in this PdaX OS !

1,000,000 Thanks !
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #5 on: November 18, 2008, 05:11:39 pm »
Quote from: Capn_Fish
I think Angstrom has the best chance of working for you. It DOES need a patched driver (which should be trivial to make, or, if you're OK with using an older kernel:

http://zaurus.aircrack-ng.org/akita/

whats the exact OS version this code can work with ? you got an OS file that the above programs can work with ?

Quote
There's even a Bitbake file for it: http://gitweb.openembedded.net/?p=openembe...9c65008c3063c5b

Bitbake ? whats that then ? sounds like you need to write a Tut for us greenheads, although my knowledge has grown immensely since we first
met,  it sounds like there is still a lot you can teach me. Teach me all you know ! I Wannado !
Quote
After I get my build machine set up (again), I'll build it for you to test (Or, if you have a Linux box, you could do it faster).

WOW! nice offer, but, lets both build it together, ! as you do yours, tell me also what to do, so I can build mine too !   I currently run Puppy on the
x86 as a HDD based writeable OS. I also have the Hardfloat Cross Compiler Environment and unified 2.4.20 kernel source code from eviLjazz there too.
Quote
EDIT: Never mind, that's the already-patched driver! All that needs to be done is to do a "bitbake  rt73-k2wrlz" and we're good! I'll let you know when I get my box set up, or just pester me constantly until I get to it.

Oh ? tell me all please !

catch you again !
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #6 on: November 19, 2008, 07:37:41 am »
It's quite easy. Follow the directions here:

http://www.angstrom-distribution.org/build...%A5ngstr%C3%B6m

And then, once everything is set up, just run "bitbake rt-whatever-the-name-is" and it builds that package for you. Just note that it takes a LONG time for the first package because it also builds the toolchain at that time.

Also know that I'm setting up my machine with OE/Bitbake already, so it's not really any extra work.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #7 on: November 19, 2008, 08:52:57 pm »
Quote from: Capn_Fish
It's quite easy. Follow the directions here:

http://www.angstrom-distribution.org/build...%A5ngstr%C3%B6m

And then, once everything is set up, just run "bitbake rt-whatever-the-name-is" and it builds that package for you. Just note that it takes a LONG time for the first package because it also builds the toolchain at that time.

Also know that I'm setting up my machine with OE/Bitbake already, so it's not really any extra work.

GREAT! thats super cool !  

I have only a couple of troubles now:

1.  can you write a simplified newbie Tut for all of us to learn how to set this up and post it in this forum ? Angstrom's setup instruction is
for Unixheads by the looks of it, alas, I am a Hardwarehead, a Z80MachineCodehead, and a BASIChead, so I find it next to impossible to follow that page. What is OpenEmbedded and where do you get it from ? can you provide a download URL ? Are we setting up on an x86 linux box ? and what is your chosen OS there ? are you able to package the installation of your Bitbake so that anyone can just 'nflate' and use it on their Linux Box ?

2. we need to get Bitbake to compile for the 2.6.24 Angstrom kernel. the existing rt73-k2wrlz drivers that are IPKed, are for the
2.6.23 kernel, and even then, I think they are not for the Zaurus but for a totally different machine too - this is on the Angstrom site BTW.

3. The driver code that Bitbake needs to compile is from ASPj's source code, which is more or less the code that you, eviLjazz and me
were compiling for the 2.4.20 kernel. his main code is available from here:

http://homepages.tu-darmstadt.de/~p_larbig/wlan/

Hope we can work together on this one ? like I said, teach me all ! thanks !
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #8 on: November 19, 2008, 09:17:49 pm »
3: That's the code that OE/Bitbake uses.

2: I know, hence needing to build it.

1: Sure. I'll just reiterate what's on the Angstrom website

Yes, you DO need a Linux box (not necessarily x86, but I assume the fastest box you have is x86, and that's what you want to use, or at least one with decent specs). I know Ubuntu works for this, and that Debian Sid has some issues (with the .dev branch of OE, though, so it's Unstable + Unstable = mostly working, don't worry if that's Greek to you).

Note that I assume you're following these directions pretty much to the letter (ie, step 2 assumes you are in /OE)

0. Install the necessary stuff:

Code: [Select]
apt-get install python m4 patch build-essential make python-psyco ccache perl diffstat git bison
You may want to manually make sure you get the right stuff installed:

http://wiki.openembedded.net/index.php/Required_Software

1a. Make the directory /OE (you can use a different directory, but it's something of a pain) and allow normal users to write to it (you could chown it, for example)

Code: [Select]
sudo mkdir /OE
sudo chown yourusername:users /OE

1b. Download Bitbake:

Code: [Select]
cd /OE
wget http://download.berlios.de/bitbake/bitbake-1.8.10.tar.gz

2. Install Bitbake:

Code: [Select]
tar -xf bitbake-1.8.10.tar.gz
3. Get the OE data and update it (you may want to make a script for the last two lines, calling it "update.sh" or something):

Code: [Select]
git clone git://git.openembedded.net/openembedded.git org.openembedded.stable
cd org.openembedded.stable
git checkout -b org.openembedded.stable origin/org.openembedded.stable
cd /OE/org.openembedded.stable
git pull

4. Set up the environment file:

Code: [Select]
cd /OE
wget http://www.angstrom-distribution.org/files/source-me.txt

5. Set up the build config (if /OE/build/conf/ doesn't exist, create it):

Code: [Select]
mkdir -p /OE/build/conf/
yourfavoriteeditor /OE/build/conf/local.conf

Contents:
Code: [Select]
# Where to store sources
DL_DIR = "/OE/downloads"

# Which files do we want to parse
 BBFILES := "/OE/org.openembedded.stable/packages/*/*.bb"
BBMASK = ""

# ccache always overfill $HOME....
CCACHE=""

# What kind of images do we want?
IMAGE_FSTYPES = "jffs2 tar.gz "

# Set TMPDIR instead of defaulting it to $pwd/tmp
TMPDIR = "/OE/${DISTRO}-stable/"

# For multicore CPU boxes:
#PARALLEL_MAKE="-j4"
#BB_NUMBER_THREADS = "2"
#for single-core boxes:
PARALLEL_MAKE="-j2"
BB_NUMBER_THREADS = "1"

# Set the Distro
DISTRO = "angstrom-2007.1"

# 'uclibc' or 'glibc' or 'eglibc'
ANGSTROM_MODE = "glibc"

MACHINE = "akita"

6a. Start building your kernel module:

Code: [Select]
source source-me.txt
cd /OE/org.openembedded.stable
./update.sh
bitbake rt73-k2wrlz

6b. Wait a good chunk of time (several hours; don't try to do anything useful on this box while it's working)

I hope that's clear enough...

If you want a detailed explanation as to what stuff does, let me know, and I'll tell you what I know (or have gathered).
« Last Edit: November 19, 2008, 09:24:57 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #9 on: November 20, 2008, 11:37:43 am »
Fantastic ! I can't wait to implement this information now ! I also now understand that OE is just a dev build environment for cross platform code
compiling.

Well, I owe you one now ! many thanks indeed !  

I'll keep in touch about my progress in this. all the best, for now  
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #10 on: November 20, 2008, 11:42:24 am »
While I remember, don't we need the kernel 2.6.24 source code to allow bitbake to compile the correct driver ?
if we do, where do we get that from ?

thanks again  
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #11 on: November 20, 2008, 03:36:05 pm »
Quote from: Allelectrix
While I remember, don't we need the kernel 2.6.24 source code to allow bitbake to compile the correct driver ?
if we do, where do we get that from ?

thanks again  
You don't. Bitbake/OE takes care of that for you! It builds the kernel, the module, anything you want, really. You can even build custom install images.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Backtrack On An Sl-c1000
« Reply #12 on: November 20, 2008, 06:34:03 pm »
I'm just about to put together a big server at work to run vmware, and one of the things I want to unleash is an angtrom build platform, to go along with the maemo/nokia tablet VM that you can download.

getting a build environment up seems to me to be hardest bit, once I've got "hello world" up, the rest is easy!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Allelectrix

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #13 on: November 20, 2008, 06:54:25 pm »
Quote from: speculatrix
I'm just about to put together a big server at work to run vmware, and one of the things I want to unleash is an angtrom build platform, to go along with the maemo/nokia tablet VM that you can download.

getting a build environment up seems to me to be hardest bit, once I've got "hello world" up, the rest is easy!

Looks like you and me are owing Capn_Fish because he's just laid all the build detail out in this thread, We bow Capn_Fish !
ah yes, 'hello world' that brings me back the to 'the good old days' of the Zilog Z80 and BASIC, my, how the Bit and the Byte
have moved on since then  

Capn_Fish: What ? no kernel code needed ? Now I JUST MUST have a go at this ! What a seriously POWERFUL platform that is !  
SL-C1000 running PdaXii13
Edimax EW-7318USg rt73 Chipset USB 802.11 g/b Wifi
ASPj Source Code rt73.o 2.4.20 kernel module with monitor + packet injection capability
Aircrack-ng 0.9
Miniature USB 2.0 Hub that attaches to rear of screen comfortably using velcro
2 x 500mA 12v DC - 5v DC Converters powering the USB Hub, WiFi Card and the Computer
12v DC 7Ah Sealed Lead Acid Rechargeable Cell powering the DC to DC Convertors

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Backtrack On An Sl-c1000
« Reply #14 on: November 20, 2008, 09:28:18 pm »
Quote from: Allelectrix
Capn_Fish: What ? no kernel code needed ? Now I JUST MUST have a go at this ! What a seriously POWERFUL platform that is !  
Well, you DO need a kernel/kernel source, but OE/Bitbake downloads, configures, and compiles it for you, so you don't actually "see" it.

The final packages are in one of the directories, BTW. Something like /OE/org.openembedded.stable/something/armv5te-linux-gnu/ipk/. It's not hard to find.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo