Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - radiochickenwax

Pages: 1 [2] 3 4 ... 11
Debian / Kernel Conf File For Kernel
« on: July 11, 2008, 04:07:11 pm »
Quote from: 2or0
Quote from: radiochickenwax
Quote from: 2or0
If you have "mkimage", just give a command as following:
Code: [Select]
mkimage -A arm -O linux -T kernel -C none -a 0xa0008000 -e 0xa0008000 -n "Linux 2.6" -d zImage kernel.img

Where do I get "mkimage"?  I was trying the wrong one from the "jigdo" package. The right one seems to only come with u-boot which needs to be compiled specifically for zaurus?

I got it from pdaxrom stuff. I think any of them should work.

Sorry for being dense about this, but where can I find "mkimage" from pdaxrom stuff?  I tried looking in the liveCD and the builder, but no luck.

The closest thing I've found is

from the builder, but this gives me:

copying i386-generic-glibc configuration
cp: cannot stat `config/i386-generic-glibc.ptxconfig': No such file or directory
make: *** [i386-generic-glibc_config] Error 1

when trying to run....

Debian / Building An Optimized Debian
« on: July 06, 2008, 03:30:54 pm »
Quote from: Capn_Fish
You mean rebuild it with Z-specific flags, or actually go edit the code?

rebuild with Z-specific flags.. kdrive, xfbdev... the one in the yonggun/andromeda combo is still from angstrom?  

I haven't tried rebuilding yet, but it's always failed for me in past roms

Debian / Building An Optimized Debian
« on: July 06, 2008, 10:47:56 am »
Quote from: Capn_Fish
I was thinking that we could take the most commonly used packages (base system, X, GTK, Epiphany, etc.), build them with Zaurus-specific CFLAGS, then stick them in a repo.

At this point, I'd be happy if someone would just optimize an Xorg/Xfbdev build and make it available... or better yet, explain how to do it.

Debian / Building An Optimized Debian
« on: July 06, 2008, 01:06:31 am »
Quote from: Capn_Fish
My impression is that you can squeeze a good amount of speed out of apps just by recompiling them with the correct optimizations. If you've tried Angstrom and Debian one after the other, you can see it.

Oh, I agree, I wasn't saying that you couldn't...  I'm just saying that you could get  *a lot more* speed by modding the sources than by just optimizing the compilation, and that changing the source is a lot harder to do... that's all....

I'm up for helping to build another rootfs... that's what this thread is all about right?  So... where to start?  I'm still stuck on the kernel and u-boot personally, but you could begin compiling using the method described above.

Debian / I Want It Compiled !
« on: July 05, 2008, 10:08:52 pm »

Having trouble compiling this kernel module to connect to windows mobile phones:

Code: [Select]
svn co
The build breaks with:

Code: [Select]
/usr/src/usb-rndis-lite/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/usr/src/usb-rndis-lite/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'

I don't know if/how this conflicts with the current version of cdc_ether.c  or not.

any help would be greatly appreciated


I got the code to compile by changing some of the yonggun kernel .configs, and recompiling the kernel natively... (the cross-compiled build wouldn't work somehow).  However, by doing this, I broke some things that let USB read mass storage devices, and I still can't connect to the rndis phone... which is my goal....


Okay, it works,  I'd upload to the other thread in awhile, but I think anyone interested in this would need all the rebuilt modules as well.  Nice, EDGE access everywhere now.

Debian / Building An Optimized Debian
« on: July 05, 2008, 09:48:51 pm »
Quote from: Capn_Fish
Maybe we should try to hack together a livecd that runs distcc on the non-Zaurus boxes for easy setup?

would that be a lot of work?

Quote from: Capn_Fish
I've got maybe 3 machines I could set up (a P4 2.6 GHz with 1.25 GB RAM, a PM 1.6 GHz with 768 MB RAM, and a C7 1 GHz with 1 GB RAM). EDIT: Maybe a PD 3 GHz with 3 GB RAM as well.

That would speed the C/C++ compiling up I'd think

Is it even possible to specify CFLAGS/CXXFLAGS when doing using "apt-get source --compile?"

It's done by default on zDevil's rootfs. I think.

What confuses me at this point is what to compile, and how to optimize.. other than setting the CFLAGS/CXXFLAGS.  I'm not a very experienced programmer, especially in things like bash, C, C++...  

Maybe you can squeeze *a little* more speed out of just rebuilding, but overall, I think more of the code would need to be patched to get *a lot* more speed out of it. As Donald Knuth says,  "if you optimize everything, you'll never be happy"

On this note, I've been trying for a few days to compile the usb-rndis-lite kernel module and having no luck.

For Sale / Wanted / For Sale: Enfora Quad-band Gsm/gprs Modem
« on: July 05, 2008, 05:45:34 am »
Quote from: speculatrix
If you really want 3G speeds you're going to have to tether your zaurus to a mobile phone using USB or bluetooth.

Yeah, I'm trying to do that... need to build kernel module:

I'm almost there... cross compiler breaks on each build, and native building is pretty slow...  it would be nice to just ditch my phone though.

Was thinking about buying the sparkfun deal someday if prices drop:

Debian / Building An Optimized Debian
« on: July 04, 2008, 05:00:39 am »
Okay, all C/C++ compilation is transferred to laptop from zaurus in this manner, but all of the other commands (texinfo, bash scripts,etc).. are done on zaurus... seems to work....still takes a long time to compile emacs even with a faster computer and more RAM.  Maybe I should add more machines to the setup....  

Trouble with emacs is that so much of it is written in lisp, which distcc doesn't really help with.

Not sure what you wanted to compile... hopefully this might help

Debian / Building An Optimized Debian
« on: July 04, 2008, 04:06:19 am »
Okay, I'm going to try to write this as I go... and try to compile stock emacs22 from zaurus using distcc and my debian/ubuntu laptop

From debian based "desktop" laptop PC:

Install distcc
Code: [Select]
apt-get install distcc
Install arm cross-compiler
Code: [Select]

Install to "/usr/local/"
Code: [Select]
tar -xvjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Code: [Select]
mv arm-2008q1 /usr/local

 make a directory for the links to the cross gcc,
Code: [Select]
mkdir /home/radiochickenwax/distcc make some links so that distcc uses the laptop's ARM cross compilers
Code: [Select]
ln -s  /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-gcc /home/radiochickenwax/distcc/gcc
ln -s  /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-g++ /home/radiochickenwax/distcc/g++
ln -s  /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-c++ /home/radiochickenwax/distcc/c++

still on laptop,add the paths to the cross-compiler to the system path:
Code: [Select]
export PATH=/home/radiochickenwax/distcc:$PATHthe above should override the default (x86) compilers

I'm going to do this compiliation over USB, since I don't have a wifi card handy.  The important thing is that we know the IP addresses of both zaurus and slave/laptop.  I'm using the setup from
where the laptop is
and the zaurus is

start the "distcc" server to accept commands from zaurus (
Code: [Select]
distccd --daemon -a me warning:
distccd[13340] (dcc_preferred_user) Warning: no such user as "distcc"

Now, from the zaurus:

Code: [Select]
apt-get install distcc
link the distcc compilers to override the standard zaurus compilers and build over network: (similar to laptop setting)

Code: [Select]
mkdir /root/distcc/
ln -s  /usr/bin/distcc /root/distcc/gcc
ln -s  /usr/bin/distcc /root/distcc/g++
ln -s  /usr/bin/distcc /root/distcc/c++
export PATH=/root/distcc:$PATH
Indicate where laptop is
Code: [Select]
get sources, configure, compile over network (check with "top" command on laptop to see if cross compiler is working):

Code: [Select]
cd /usr/src
cvs -z3 co -rEMACS_22_2 emacs
cd emacs
./configure && make bootstrap && make && make install

cross fingers, and see if this works....  

Note, I wanted to rebuild emacs22 from stock source because I'm having trouble getting images to display inline on the repo version.  Before trying this I did
Code: [Select]
apt-get --compile source and that applied a bunch of patches that I didn't want.

  I just thought I'd try/mention this method since you mentioned using distcc.  I'll reply later to this thread what happens with emacs22.

Debian / Kernel Conf File For Kernel
« on: July 03, 2008, 06:44:01 pm »
Quote from: 2or0
If you have "mkimage", just give a command as following:
Code: [Select]
mkimage -A arm -O linux -T kernel -C none -a 0xa0008000 -e 0xa0008000 -n "Linux 2.6" -d zImage kernel.img

Where do I get "mkimage"?  I was trying the wrong one from the "jigdo" package. The right one seems to only come with u-boot which needs to be compiled specifically for zaurus?

Debian / Titchy-phoneui For Zaurus Sl-c3100
« on: July 03, 2008, 04:26:02 pm »
Anyone get this to work to make calls yet?

Debian / Building An Optimized Debian
« on: July 03, 2008, 04:18:57 pm »
Quote from: Capn_Fish
EDIT3: I just saw that Crosstool supports Distcc. Maybe using Distcc running in an ARM QEMU emulation would work best?

Remember this "semi" Native Compilation With Distcc, a short howto ?

But instead of using the cross-compiler from that thread use the one from this thread:


The "deb"s should be easily built in this manner, but I haven't tried it yet.
What do you think?

Debian / Kernel Conf File For Kernel
« on: July 03, 2008, 04:01:17 pm »
Quote from: abm_y4k
Sorry I've not did any image for uboot... maybe you can ask 2or0. He is very helpful.

Sent him PM. Thanks again for your help this far, very useful info.

Quote from: abm_y4k
uboot is not stable... why not use sharp?

Because I would like to port debian to other pxa boards besides zaurus, and u-boot can help to do this.  Unfortunately, I'm not very well versed with its mechanics, and I realize this probably isn't the thread for extensive u-boot discussion, although if I find a way to build the kernel for zaurus' u-boot, I think this is a reasonable place to put that info.

Debian / Kernel Conf File For Kernel
« on: July 03, 2008, 01:23:58 am »
Quote from: abm_y4k
You need to modify the kernel .config file and recompile it:

CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw  fbcon=rotate:1 dyntick=enable debug"

change root=<device you want to boot it at>

Thanks! but I still don't think I'm building for uBoot properly, since there is no "uImage" in "arch/arm/boot" despite the output

Code: [Select]
make uImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- gives

Code: [Select]
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
/usr/bin/mkimage [OPTIONS]

 -f        Specify an input MD5 file. MD5s must be in jigdo's
                     pseudo-base64 format
 -j      Specify the input jigdo file