Problem at the time Cross Compiling Camera Driver

Hi all,

When I am cross compiling the camera driver of Logitech QuickCam Pro 9000 for
BeagleBoard, I am getting the following error,

[root@localhost trunk]# make CROSS_COMPILE=arm-none-linux-gnueabi- all
Building USB Video Class driver…
make[1]: Entering directory /usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /opt/linux-uvc/trunk/uvc_driver.o cc1: error: unrecognized command line option "-mregparm=3" /opt/linux-uvc/trunk/uvc_driver.c:1: error: bad value (i686) for -march= switch Assembler messages: Error: unknown architecture i686’

Error: unrecognized option -march=i686
make[2]: *** [/opt/linux-uvc/trunk/uvc_driver.o] Error 1
make[1]: *** [module/opt/linux-uvc/trunk] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686’
make: *** [uvcvideo] Error 2
[root@localhost trunk]#

I am following the procedure given in the following link

http://liquidat.wordpress.com/2007/12/07/howto-logitech-quickcam-pro-9000-with-fedora-8/

I am using “arm-none-linux-gnueabi-” to cross compile by “arm-none-linux-gnueabi-gcc”
as by default it is taking gcc after “arm-none-linux-gnueabi-”.

Can any one help me how this problem will be solved

Thanks & Regards
Anirban Roy Choudhury

This message (including any attachment) is confidential and may be legally privileged. Access to this message by anyone other than the intended recipient(s) listed above is unauthorized. If you are not the intended recipient you are hereby notified that any disclosure, copying, or distribution of the message, or any action taken or omission of action by you in reliance upon it, is prohibited and may be unlawful. Please immediately notify the sender by reply e-mail and permanently delete all copies of the message if you have received this message in error.

Hi,

Anirban Roy Choudhury schrieb:

When I am cross compiling the camera driver of Logitech QuickCam Pro
9000 for
BeagleBoard, I am getting the following error,

[root@localhost trunk]# make CROSS_COMPILE=arm-none-linux-gnueabi- all

You have to set ARCH=arm as well if you haven't done this already.

Building USB Video Class driver...
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
  CC [M] /opt/linux-uvc/trunk/uvc_driver.o
cc1: error: unrecognized command line option "-mregparm=3"

This pretty much looks like it uses your host compiler which of course does not
understand the ARM specific parameters.

Greetings

Florian

Florian Boor wrote:

Hi,

Anirban Roy Choudhury schrieb:

When I am cross compiling the camera driver of Logitech QuickCam Pro
9000 for
BeagleBoard, I am getting the following error,

[root@localhost trunk]# make CROSS_COMPILE=arm-none-linux-gnueabi- all

You have to set ARCH=arm as well if you haven't done this already.

Building USB Video Class driver...
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
  CC [M] /opt/linux-uvc/trunk/uvc_driver.o
cc1: error: unrecognized command line option "-mregparm=3"

This pretty much looks like it uses your host compiler which of course does
not understand the ARM specific parameters.

No, it's the other way around. It's passing x86 flags to the ARM compiler,
probably because of the missing ARCH=arm.

Hi,

I have set the command ARCH=arm but still it is failed. See the error following

[root@localhost trunk]# set ARCH=arm
[root@localhost trunk]# make CROSS_COMPILE=arm-none-linux-gnueabi- all
Building USB Video Class driver…
make[1]: Entering directory /usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /opt/linux-uvc/trunk/uvc_driver.o cc1: error: unrecognized command line option "-mregparm=3" /opt/linux-uvc/trunk/uvc_driver.c:1: error: bad value (i686) for -march= switch Assembler messages: Error: unknown architecture i686’

Error: unrecognized option -march=i686
make[2]: *** [/opt/linux-uvc/trunk/uvc_driver.o] Error 1
make[1]: *** [module/opt/linux-uvc/trunk] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686’
make: *** [uvcvideo] Error 2
[root@localhost trunk]#

Thanks & Regards
Anirban Roy Choudhury

If you use the angstrom kernel you get UVC support builtin :slight_smile: