LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-14-2010, 10:38 PM   #1
meeramukundan
LQ Newbie
 
Registered: Dec 2009
Location: India
Distribution: Fedora11
Posts: 9

Rep: Reputation: 0
Error while porting AT91SAM9263-EK


Hi,
I am using a AT91SAM9263-EK .The board was already ported with bootloader,kernel and filesystem.I am new to porting embedded boards and wanted to port my own kernel and filesystem into its nand flash but I got stuck as below .Steps that followed :

Step 1 :Configured tftpsever in host.Created /tftpboot directory,copied uImage,ramdisk.gz into it.

Step 2 :Set the environment variables as follows

Quote:
bootdelay=3

baudrate=115200

ethact=macb0

ethaddr=12:34:56:78:90:22

bootcmd=run nf_kernel;run boot

ramdisk=run nf_kernel;run tftp_ramdisk;run ramdisk_evset; run boot

tftp_ramdisk=tftp 21100000 ramdisk.gz

boot=bootm 22200000

filesize=176FDC

fileaddr=22200000

ipaddr=192.168.1.56

serverip=192.168.2.239

nf_kernel=nand read 22200000 2100000 200000

bootargs mem=64M console=ttyS0 115200 root=/dev/mtdblock1 rw rootfstype=jffs2

ramdisk_evset=setenv bootargs mem=64M console=ttyS0 115200 root=/dev/ram0 initrd=0x211000000,0x600000

Step 3 :Transferred uImage via TFTP
Code:
U-Boot> tftp 22200000 uImage
< Trying to write uImage to nand >
Code:
U-Boot> nand erase
[QUOTE]NAND erase: device 0 whole chip

Skipping bad block at 0x02000000

Erasing at 0x3ffc000 -- 100% complete.

OK[/QUOTE
<Its showing a bad sector at location 2000000.>
Code:
U-Boot> nand write 22200000 2100000 200000

Quote:
NAND write: device 0 offset 0x2100000, size 0x200000

2097152 bytes written: OK
Step 4 : When I give command to run ramdisk to boot the board with ramdisk filesystem,
Code:
u-boot> run ramdisk
its showing loading ramdisk.gz from tftp success and will start uncompressing linux

Quote:
## Booting kernel from Legacy Image at 22200000 ...
Image Name: Linux 2.6.20

Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1535900 Bytes = 1.5 MB
Load Address: 20008000

Entry Point: 20008000

Verifying Checksum ... OK

Loading Kernel Image ... OK

OK Starting kernel ..
.

But finally its showing error,

Quote:
“No filesystem could mount root, tried: ext2 vfat romfs

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ''
I think the problem is filesystem have been corrupted.

My plan was to load my filesystem as follows:
After booting the board with ramdisk ,connect the USB device (that contain 9263-mtblock1.jffs2 and 9263-mtblock2.jffs2 filesystem images), mount it and write it to nand as follows

$ nandwrite -p /dev/mtd1 /mnt/nfs/9263-mtblock1.jffs2

Similarly
$ nandwrite -p /dev/mtd2 /mnt/nfs/9263-mtblock2.jffs2


But since I am stuck in booting the board with ramdisk,I cannot port my filesystem.
Can anyone help me how to proceed..
 
Old 02-16-2010, 07:03 AM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
Quote:
“No filesystem could mount root, tried: ext2 vfat romfs

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) ''
It seems that your kernel does not support jffs2. Did you compile that filesystem into your kernel?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Buildroot for at91sam9263 board parag_opensrc Linux - Embedded & Single-board computer 0 09-19-2009 01:57 AM
buildroot build failure for usb-a9263 - AT91SAM9263 MarkAren Linux - Newbie 0 07-02-2009 03:32 PM
how to work on GPIO with AT91SAM9263-EK in Linux aemindia Linux - Newbie 0 05-12-2009 06:46 AM
Porting ksh script from Solaris to Linux Gives unmatched if error markatharvestinfotec Programming 4 08-28-2008 01:51 PM
Solaris to Linux Porting - dbutils error jerald Red Hat 0 10-30-2007 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration