OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Backtrack On An Sl-c1000, Backtrack on an SL-C1000
Allelectrix
post Jul 12 2008, 04:11 AM
Post #1





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



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:

cool.gif 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 ?



Go to the top of the page
 
+Quote Post
Capn_Fish
post Jul 12 2008, 06:41 AM
Post #2





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



Or you could just install things like NMAP, Kismet, Wireshark, etc. and have the same thing under Debian, Angstrom, or pdaX.
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 17 2008, 05:31 PM
Post #3





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



QUOTE(Capn_Fish @ Jul 12 2008, 02:41 PM) *
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 rolleyes.gif

Go to the top of the page
 
+Quote Post
Capn_Fish
post Nov 17 2008, 08:04 PM
Post #4





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



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. wink.gif
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 18 2008, 01:55 PM
Post #5





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



QUOTE(Capn_Fish @ Nov 18 2008, 04:04 AM) *
just pester me constantly until I get to it. wink.gif


LOL! biggrin.gif man, you REALLY rock ! smile.gif cool.gif 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 !
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 18 2008, 02:11 PM
Post #6





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



QUOTE(Capn_Fish @ Nov 18 2008, 04:04 AM) *
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


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 ! smile.gif 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. wink.gif


Oh ? tell me all please !

catch you again !
Go to the top of the page
 
+Quote Post
Capn_Fish
post Nov 19 2008, 04:37 AM
Post #7





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



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.
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 19 2008, 05:52 PM
Post #8





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



QUOTE(Capn_Fish @ Nov 19 2008, 12:37 PM) *
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 ! cool.gif

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 !





Go to the top of the page
 
+Quote Post
Capn_Fish
post Nov 19 2008, 06:17 PM
Post #9





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



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
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
sudo mkdir /OE
sudo chown yourusername:users /OE


1b. Download Bitbake:

CODE
cd /OE
wget http://download.berlios.de/bitbake/bitbake-1.8.10.tar.gz


2. Install Bitbake:

CODE
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
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
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
mkdir -p /OE/build/conf/
yourfavoriteeditor /OE/build/conf/local.conf


Contents:
CODE
# 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
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).
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 20 2008, 08:37 AM
Post #10





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



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 ! biggrin.gif

I'll keep in touch about my progress in this. all the best, for now biggrin.gif

Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 20 2008, 08:42 AM
Post #11





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



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 wink.gif

Go to the top of the page
 
+Quote Post
Capn_Fish
post Nov 20 2008, 12:36 PM
Post #12





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



QUOTE(Allelectrix @ Nov 20 2008, 10:42 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 wink.gif

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.
Go to the top of the page
 
+Quote Post
speculatrix
post Nov 20 2008, 03:34 PM
Post #13





Group: Admin
Posts: 3,281
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



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!
Go to the top of the page
 
+Quote Post
Allelectrix
post Nov 20 2008, 03:54 PM
Post #14





Group: Members
Posts: 85
Joined: 7-April 08
Member No.: 21,602



QUOTE(speculatrix @ Nov 20 2008, 11:34 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!


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 rolleyes.gif

Capn_Fish: What ? no kernel code needed ? Now I JUST MUST have a go at this ! What a seriously POWERFUL platform that is ! biggrin.gif


Go to the top of the page
 
+Quote Post
Capn_Fish
post Nov 20 2008, 06:28 PM
Post #15





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



QUOTE(Allelectrix @ Nov 20 2008, 05:54 PM) *
Capn_Fish: What ? no kernel code needed ? Now I JUST MUST have a go at this ! What a seriously POWERFUL platform that is ! biggrin.gif

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.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th December 2014 - 09:56 PM