LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   kernel config for arm/mtd/jffs2? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/kernel-config-for-arm-mtd-jffs2-636470/)

PatM 04-19-2008 12:51 PM

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.

PatM 04-19-2008 01:17 PM

Oops, I shoudl mention. I turned off module support in the kernel so everything is compiled in and I don't need an initrd.

PatM 04-20-2008 09:43 AM

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.

kamlendu 08-29-2008 01:35 PM

Hi,
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

kamlendu


All times are GMT -5. The time now is 07:00 PM.