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: AT91SAM9260 Buildroot
PostPosted: Mon Oct 11, 2010 1:31 pm 
Offline

Joined: Tue Oct 20, 2009 10:24 am
Posts: 4
I am working on AT91SAM9260EK board
and NAND flash

I have some very basic doubts .... :?:
i configured the buildroot using menuconfig/xconfig and was able to compile.
In the output images, i have
uImage ( compressed linux kernel ) and root.jffs2

i have already flashed the at91bootstrap and uboot to the NAND flash at respective address.
( readymade binaries from at91.com/)

i flash the root.jffs2 to the NAND at the 0x400000

i) When i boot the system, i get
U-Boot> Wrong Image Format for bootm command
Unknown command 'Wrong' - try 'help'

ii) Also tried
setenv bootargs 'mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2'
But same error
Wrong Image Format for bootm command
ERROR: can't get kernel image!

iii) In the Buildroot demo, there are
binaries of Linux Kernel, Boot-Env
Uboot and at91Bootstrap and also .jffs2.

Q) What all exactly does the .jffs2 image contain ?

Q) Do i need to generate binary file of the linux kernel ? If yes, how ?

Q) How do i use the uImage compressed linux kernel ?

Q) How would fresh binaries of Bootstrap and Uboot get generated after i choose them in the menuconfig ?

Whats really missing ?

Thanks a lot in advance,
AbhiAsh


Top
 Profile  
 
 Post subject: Re: AT91SAM9260 Buildroot
PostPosted: Tue Oct 12, 2010 3:12 pm 
Offline

Joined: Tue Oct 12, 2010 2:46 pm
Posts: 1
abhiash wrote:
i flash the root.jffs2 to the NAND at the 0x400000

i) When i boot the system, i get
U-Boot> Wrong Image Format for bootm command
Unknown command 'Wrong' - try 'help'

ii) Also tried
setenv bootargs 'mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2'
But same error
Wrong Image Format for bootm command
ERROR: can't get kernel image!


You can start from debugging bootm value from uboot prompt.

abhiash wrote:
iii) In the Buildroot demo, there are
binaries of Linux Kernel, Boot-Env
Uboot and at91Bootstrap and also .jffs2.

Q) What all exactly does the .jffs2 image contain ?

It contains the root filesystem with everything you configured using menuconfig/xconfig.

abhiash wrote:
Q) Do i need to generate binary file of the linux kernel ? If yes, how ?

It is uImage and you have already generated it.

abhiash wrote:
Whats really missing ?


As with most cases - statement of what exactly are you trying to achieve :)


Top
 Profile  
 
 Post subject: Re: AT91SAM9260 Buildroot
PostPosted: Wed Oct 13, 2010 11:09 am 
Offline

Joined: Tue Oct 20, 2009 10:24 am
Posts: 4
Hi Kait,

Thanks for your reply.
I flashed the uImage at 0x200000
and root.jffs2 at 0x400000
Also the uboot, uboot.env at 0x20000 and 0x60000 from the demo.

The uImage was corrupted while FTP transfer. Now it goes a step ahead but the CPU stalls at errors

VFS: Cannot open root device "mtd0" or unknown-block(0,0)

also with dev/mtdblock0 setting, i get the same error

Fot info:
bootcmd=nand read 0x22200000 0x00200000 0x00168CF8; bootm 0x22200000

I also made the mentioned changes in the
_defconfig file for NAND ...

CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_YOURBOARD=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_NAND=y

I cannot find my way out ....
If any idea, then do let me know

Thanks a lot.
abhiash


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 2 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: