Re: crosscompilling

Hi,

I have crosscompiled COMEDI for an IPAQ PDA, which also has an intel xscale 
processor.

1) I installed the gcc 3.2.3 toolchain for arm, downloaded from 
http://www.handhelds.org, and added the bin directory of the toolchain to my 
PATH environment variable

2) I downloaded the linux kernel for my PDA and the patches from 
http://www.arm.linux.org.uk and installed it 
in /usr/local/pda-kernel/linux-2.4.19-rmk6-pxa1-hh13/. I had also to 
configure and compile it.

3) It is necessary to define several variables, so that makefile and configure 
work properly:

export CC=arm-linux-gcc
export Cxx=arm-linux-g++
export CPP=arm-linux-cpp
export LD=arm-linux-ld
export AR=arm-linux-ar

4) It is also necessary to edit the configure script to avoid the 
autoconfiguration of the kernel version (because it is based on the local 
system kernel). I tweaked it so that correct kernel version (2.4) was 
configured.

5) go to comedi directory and run the configure script with the following 
options:

./configure --host=arm-linux 
--with-linux-dir=/usr/local/pda-kernel/2.4.19-rmk6-pxa1-hh13 
--prefix=/usr/local/pda-kernel/instalacion 
--exec-prefix=/usr/local/pda-kernel/instalacion

6) make and make install. The files will be installed 
in /usr/local/pda-kernel/instalacion. If you want another directory, change 
the options above. You will see several depmod errors, this is because the 
make install try to test the compiled module, just ignore them.

7) A similar process should be followed for comedilib, except that it is not 
necessary to specify the kernel directory. 

I am not sure, but I think that the USB capability of ARM processor is to act 
as an USB device and not as an USB host. If this is true, it would imply that 
you can connect your system to a PC via USB, but you can not connect USB 
devices to your system. 

I hope this is useful. If you have any problem and try to contact me, please 
consider the following:  I am going to be on holidays for about 10 days, but 
I will reply you as soon as I come back.


Best Regards,

Jose


===============================================
Jose Manuel Cano Garcia
Departamento de Tecnologia Electronica.
Universidad de Malaga.
ETSI Telecomunicacion. Campus de Teatinos.
29071 - Malaga - Spain
===============================================

On Thursday 12 August 2004 12:57, Kinell Björn wrote:
> Hi
>
> I'm trying to get the driver for USB-DUX working on an BitsyX card. My
> question is how do I make the driver compatible with that architecture?
>
> configure --help   didnt say much except that I should define the path to
> the kernel source which I did. Should I define my crosscompiler somewhere? 
>  Do I need to edit the makefiles?
>
>
> This message contains information that may be confidential and/or
> privileged and is the property of Bofors Defence AB. It is intended for the
> sole use of the individual or organization named above. If you are not the
> intended recipient or an authorized representative of the intended
> recipient, you are not authorized to read, print, retain, copy,
> disseminate, distribute, or use this message or any part thereof. If you
> receive this message in error, please notify the sender immediately by
> return e-mail and delete all copies of this message from your system.
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2004-08-13Z08:56:02