Re: rootfs as JFFS2 on AT91SAM9260 | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
> I followed Ulf Samuelsson's advices but I don't know which options I should use > to configure the linux kernel. > I included JFFS2, SPI/Dataflash but what about CONFIG_MTD_PHYSMAP options? > My .config file is here: http://nbrouard.free.fr/.config > > I use U-Boot to flash my roofs.arm.jffs2 at 0xD0528000 and I launch the kernel > with the following command line: > mem=64M console=ttyS0,115200 initrd=$diskAddr,$diskSize \ > root=/dev/mtdblock6 rw rootfstype=jffs2 Which mtdblock device should be used? > > The console output when I start the board is here: http://nbrouard.free.fr/output > > Thanks Looks like your MACB Ethernet driver crashes. The maxim.org.za patches is not enough to get things running Apply the "experimental linux project" patches from www.at91.com Build your root file system, using buildroot which configures the root file system for JFFS2 using the right parameters (I hope). I think mtdblock6 is a bit high. IIRC, I have used mtdblock2 in the past.
The number of the mtd block device does not matter, as long as its an mtd partition that you defined in board-at91sam9260ek. The important thing is that /dev/mtdblockX exists. Here is how I build a jffs2 filesystem on the NAND Create a JFFS2 file system on the host
mkfs.jffs2 -o userfs.jffs2 -e 0x20000 -s 0x800 -d ./userfs -l -v -p sumtool -i userfs.jffs2 -o userfs_sum.jffs2 -e 0x20000 -p
Copy JFFS2 file system to the user partition
flash_eraseall -j /dev/mtd3 nandwrite -q /dev/mtd5 userfs_sum.jffs2 mount -t jffs2 mtd5 /mnt/flash -o sync
This requires that you enable sumtool in your linux kernel. If you want to use the jffs2 as rootfs then you need to supply the following bootargs mem=32M console=ttyS0,115200 root=/dev/mtdblock5 ro rootfstype=jffs2 debug This assumes that you have a valid rootfs programmed into mtd5 (rootfs.arm.jffs2 from buildroot). You have both an initrd and a jffs2 rootfs in your bootargs. That may explain why it is not working. Hope this helps, Michel ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux ARM Kernel] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]