Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Unable to compile linux-2.6.32 with 2.6.32-at91.patch
PostPosted: Tue Nov 23, 2010 12:35 pm 
Offline

Joined: Tue Nov 23, 2010 11:15 am
Posts: 3
I have downloaded and extracted the linux-2.6.32.tar.bz2 and applied the 2.6.32-at91.patch.gz on the Linux source.
The original .config has been replaced with at91sam9260ek_defconfig

I get the following error when compiling the kernel:
arch/arm/mach-at91/at91sam9260_devices.c:1472: error: redefinition of 'at91_add_device_cf'
arch/arm/mach-at91/at91sam9260_devices.c:342: note: previous definition of 'at91_add_device_cf' was here
make[1]: *** [arch/arm/mach-at91/at91sam9260_devices.o] Error 1
make: *** [arch/arm/mach-at91] Error 2

What am I doing wrong?


Top
 Profile  
 
 Post subject: Re: Unable to compile linux-2.6.32 with 2.6.32-at91.patch
PostPosted: Wed Nov 24, 2010 12:03 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Try examining the source on the lines reported. To understand if you have selected/defined some conflicting option for the build. Edit the code if you need to.


Top
 Profile  
 
 Post subject: Re: Unable to compile linux-2.6.32 with 2.6.32-at91.patch
PostPosted: Wed Nov 24, 2010 11:03 am 
Offline

Joined: Tue Nov 23, 2010 11:15 am
Posts: 3
The patch inserts a code section for handling “Compact Flash / PCMCIA”, but this (at91_add_device_cf function) is already defined in the “CF/IDE” section in the at91sam9260_devices.c file.

Do I need to patch the kernel in order to run on an “Atmel AT91SAM9260-EK” CPU?


Top
 Profile  
 
 Post subject: Re: Unable to compile linux-2.6.32 with 2.6.32-at91.patch
PostPosted: Thu Feb 17, 2011 8:47 pm 
Offline

Joined: Thu Feb 17, 2011 8:43 pm
Posts: 1
Hello,

Did you resolved this issue?
I am also trying to compile and it fails at the same place.
It is not clear for me if I just need the 2.6.32-at91.patch patch against the kernel.org or if an http://www.arm.linux.org.uk/ patch as to be applied instead or also?

Thanks,

Pierre


Top
 Profile  
 
 Post subject: Re: Unable to compile linux-2.6.32 with 2.6.32-at91.patch
PostPosted: Mon Mar 14, 2011 7:23 pm 
Offline

Joined: Tue Nov 23, 2010 11:15 am
Posts: 3
No, problem still unresolved. Didn't get any help in this forum :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: