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  [ 9 posts ] 
Author Message
 Post subject: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Thu Jun 07, 2012 2:33 pm 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
Guys
I have spent US$ 750,00 for a Development kit which I have been struggling for 2 weeks without been able to load a linux kernel generated by me in it. I have try several versions from 2.6.30 to 2.6.35 with no success. Can anybody help me ?

This is a partial list of the kernel generation:

Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/piggy.gzip.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
UIMAGE arch/arm/boot/uImage
Image Name: Linux-2.6.35.7
Created: Tue Jun 12 18:13:36 2012
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2445596 Bytes = 2388.28 kB = 2.33 MB
Load Address: 0x70008000
Entry Point: 0x70008000
Image arch/arm/boot/uImage is ready

Here is the loading in the board:

TFTP from server 192.169.0.1; our IP address is 192.169.0.2
Filename 'uImage'.
Load address: 0x21400000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################
done

bootm
## Booting kernel from Legacy Image at 21400000 ...
Image Name: Linux-2.6.35.7
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2445596 Bytes = 2.3 MB
Load Address: 70008000
Entry Point: 70008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.



Many thanks
Marcio


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Sat Jun 16, 2012 4:51 pm 
Offline

Joined: Sat Jun 16, 2012 4:03 pm
Posts: 3
Perhaps this is a problem with the Machine Type number. uBoot passes this number to the kernel, and the kernel checks if the number provided by uBoot matches its own machine type number. If they don't match, the kernel doesn't boot.

The machine type for the 9M10/9G45 is:

MACH_TYPE_AT91SAM9M10G45EK 1830

Please see linux-2.6.xx/arch/arm/tools/mach-types
and uboot/include/asm/mach-types.h

To solve this, you can, for example, recompile uboot with
make at91sam9m10g45ek_nandflash_config
make

and configure the kernel (make menuconfig) with the correct "System Type" options.


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Tue Jun 19, 2012 12:25 am 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
Thank you very much for your answer.

Uboot can load and run thedemo Linux code for the AT91SAM9M10-G45_EK plataform. I have tried to recomplie the kernel with the MACH_TYPE_AT91SAM9M10G45EK set and I got the following compile error:

CC arch/arm/mach-at91/hx170dec.o
arch/arm/mach-at91/hx170dec.c: In function 'hx170dec_isr':
arch/arm/mach-at91/hx170dec.c:601: error: 'SIGIO' undeclared (first use in this function)
arch/arm/mach-at91/hx170dec.c:601: error: (Each undeclared identifier is reported only once
arch/arm/mach-at91/hx170dec.c:601: error: for each function it appears in.)
arch/arm/mach-at91/hx170dec.c:601: error: 'POLL_IN' undeclared (first use in this function)
make[1]: *** [arch/arm/mach-at91/hx170dec.o] Error 1
make: *** [arch/arm/mach-at91] Error 2

Any clue?


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Thu Jun 21, 2012 12:03 am 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
Has anybody managed to compile and load a kernel in the AT91SAM9M10-G45_EK platform ? Is there any official support for this platform ? I am almost 15 days trying to compile and load a kernel to it. I have gone through all available "guide" to use it and I either cannot compile or Uboot cannot the generated module. I am just about to move my project to Samsung processor.


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Thu Jun 21, 2012 2:16 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
marcio@netopen.com.br wrote:
Is there any official support for this platform ?

Probably not on the forum, the typical route to seek support would be from your local ATMEL representative and/or FAE.

I don't have a G45, but have not had any problems using buildroot on SuSE to build kernels for 9260's and 9G20's. From your message to date I can't ascertain what you build environment is.

I'll try to build a 2.3.60 from the at91sam9m10g45ek_defconfig on the FTP site.


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Fri Jun 22, 2012 12:08 am 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
Thanks for your help.
I have tried to do everything from the beginning and I sitll cannot generate the kernel. Please, tell me what I am doing wrong.

wget http://www.kernel.org/pub/linux/kernel/ ... 35.tar.bz2
tar xvjf linux-2.6.35.tar.bz2
wget ftp://ftp.linux4sam.org/pub/Android4SAM ... .6.35.diff
cd linux-2.6.35
patch -p1 < ../linux-2.6.35.diff
cd ..
wget ftp://ftp.linux4sam.org/pub/Android4SAM ... .5_r1.diff
cd linux-2.6.35
patch -p1 < ../linux-2.6.35_Android-2.3.5_r1.diff
cd ..
cd linux-2.6.35
make mrproper
make ARCH=arm at91sam9m10_android_ubifs_defconfig
make ARCH=arm menuconfig
make uImage ARCH=arm CROSS_COMPILE=/opt/Boardcon/4.3.3/bin/gcc'


The result is :

/home/CameraKit/linux-2.6.35/scripts/gen_initramfs_list.sh: Cannot open 'root'


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Sat Jun 23, 2012 5:18 pm 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
After remove 'root' from the CONFIG_INITRAMFS parameter I could finally compile the 2.6.35 kernel.
Image Name: Linux-2.6.35.7
Created: Sat Jun 23 11:39:53 2012
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2481180 Bytes = 2423.03 kB = 2.37 MB
Load Address: 0x70008000
Entry Point: 0x70008000
Image arch/arm/boot/uImage is ready

I copy the image to my tftpboot directory.

cp arch/arm/boot/uImage /tftpboot/.

load the kernel into the board memory.
U-Boot> tftp 0x200000 uImage
macb0: link up, 100Mbps full-duplex (lpa: 0xcde1)
Using macb0 device
TFTP from server 192.169.0.1; our IP address is 192.169.0.2
Filename 'uImage'.
Load address: 0x200000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############################
done
Bytes transferred = 2481244 (25dc5c hex)

bootm 0x200000
U-Boot> bootm ox200000
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Can anybody help me. I bought this development board one month ago to supposely speed up time to market and I couldn still compile and run a sungle kerne,


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Sat Jun 23, 2012 8:55 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 330
Location: USA
marcio@netopen.com.br wrote:
U-Boot> tftp 0x200000 uImage


I doubt that you have any SDRAM at 0x200000.

Boot the demo kernel for an example of where to load the kernel and what to expect. Or look at your first post in this thread for a more reasonable load address.

Regards


Top
 Profile  
 
 Post subject: Re: AT91SAM9M10-G45_EK Linux 2.6.35 does not load
PostPosted: Mon Jun 25, 2012 2:35 pm 
Offline

Joined: Sun Sep 20, 2009 9:38 pm
Posts: 64
Thanks blue_z!
You were corrected. I have entered the wrong address. Now I can load and run the generated kernel.
I was so upset with this development kit that I could not see this silly mistake.
Many thanks


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: