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  [ 3 posts ] 
Author Message
 Post subject: unmodified kernel giving compile error
PostPosted: Fri Nov 04, 2011 5:35 pm 
Offline

Joined: Thu Oct 27, 2011 7:12 pm
Posts: 25
I am compiling the linux-2.6.33.tar.bz2 kernel that I downloaded from this site: http://www.at91.com/linux4sam/bin/view/ ... inuxKernel

I first applied the patch 2.6.33-at91.patch.gz and then compiled with the following commands:

make menuconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

The second command has given me this error:

drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
drivers/input/touchscreen/eeti_ts.c:64:2: error: implicit declaration of function 'irq_to_gpio'
make[3]: *** [drivers/input/touchscreen/eeti_ts.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
>

How to solve this? I don't want to go in a modify things - I'm just trying to compile a provided kernel as-is.

Thanks.


Top
 Profile  
 
 Post subject: Re: unmodified kernel giving compile error
PostPosted: Sat Nov 05, 2011 12:33 pm 
Offline

Joined: Tue Jul 13, 2010 12:54 pm
Posts: 29
Did you copy the relevant board config file from arch/arm/configs to .config before doing
make menuconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
(cp arch/arm/configs/at91sam9g20ek_defconfig .config)

It should compile with a default board configuration, if you do not select any aditional features. Which board are you trying to compile for?


Top
 Profile  
 
 Post subject: Re: unmodified kernel giving compile error
PostPosted: Mon Nov 07, 2011 9:31 pm 
Offline

Joined: Thu Oct 27, 2011 7:12 pm
Posts: 25
No, I didn't. Thanks, that appears to be it. By the way, thanks for writing out the actual command to do the copy. It made it much easier than me trying to figure out where the file was, etc.

I am compiling for the at91sam9g20-ek board.

So after the make, I saw two files in arch/arm/boot:

Image (3218976 bytes)
zImage (1613300 bytes)

I replaced the pre-compiled binary that was working with both Image and zImage and when I booted up the board, this is what I saw in HyperTerminal:


NAND read: device 0 offset 0xa0000, size 0x200000
2097152 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot>


So neither of these images is correct. What do I do next?


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 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: