Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 04-19-2008, 12:51 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 27

Rep: Reputation: 15
kernel config for arm/mtd/jffs2?

Could someone post their .config for an arm based machine with NAND enabled?

I have an S3C2410 board with AMD29LV NOR (u-Boot) and 64MBs of K9F1208 NAND. I load u-boot from NOR and try to boot a JFFS2 rootfs on the second partition. After much messing about I finally got to the point where the kernel no longer flips out when I point it to the jffs2 partition (I was using the wrong page size with mkfs.jffs2 so oob was all messed up). I can boot to ramdisk and mount the jffs2 parition without complaint but I can't seem to get the kernel to use it as a rootfs as boot time. I just get the "can't open initial console" and kernel panic due to not syncing.

The bootargs I use are

console=ttySAC0 init=/bin/ash root=mtd1 rootfstype=jffs2

busybox is installed and there is a link to busybox from /bin/ash.

I'm thinking I'm probably just missing something in the filesystem or mtd section of the kernel config and I'm hoping that seeing a working config would help me figure out what it is.
Old 04-19-2008, 01:17 PM   #2
LQ Newbie
Registered: Mar 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Oops, I shoudl mention. I turned off module support in the kernel so everything is compiled in and I don't need an initrd.
Old 04-20-2008, 09:43 AM   #3
LQ Newbie
Registered: Mar 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Well, I found my problem and it wasn't anything to do with the kernel. There was no console node in /dev so its kind of hard for it to open a console 8)

mknod console c 5 1

Boots just fine!

Of course, I had to add a few other nodes like mtdblockx and mmcblk0px etc but console was the big problem.
Old 08-29-2008, 01:35 PM   #4
LQ Newbie
Registered: Jul 2007
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
I am usig the same board and face almost the same problem.
i have made the jffs2 file system but have used the defaut page size,ust reset the eraseblock size to 16k,i am a newbie and don not kno where is the messing done,because when i boot the kernel(with all the support for the jffs2 FS,it doesnot bootup,even I am not able to load the kernel o the ram, i dun kno if i have messed up the kernel compilation too)

the command used for jffs2 making is:

mkfs.jffs2 -o /root/rootfs.jffs2 -e 0x4000 -n -d/test/

/test is arbitary directory made

is that wrong.

in the /test i have copied the direcory structure.

can u please temme the configuration of the kernel for the same...
i will be waiting...

thanks i advance



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
JFFS2 [VFS mount root /dev/mtdblock2 ok] - kernel panic on running init process sud_vijay Linux - Kernel 0 03-05-2008 10:05 AM
make menuconfig/config/xconfig problems when try building for ARM target kondrara Linux - Software 0 11-28-2007 04:58 AM
Netlink (Kernel 2.6.10) on ARM skpseqence Programming 1 07-02-2007 02:05 AM
Redboot - Loading Kernel Image & File Jffs2 MKSrivastava Debian 1 04-21-2007 07:03 PM
ARM9 linux2.6.15 MTD jffs2 for help hall919 Linux - Hardware 0 12-05-2006 09:34 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:44 PM.

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