Hi Alberto, On Wed, Nov 28, 2007 at 10:21:11AM +0100, Juan Alberto Mu?oz Susin wrote: > Hi Wolfgang, > > this is the console output at boot of my system. I'm usign MCF528x processor > and 2.6.x uClinux kernel of 2007/10/01. You can see the logs of root > partition mounting between "//************". > > I´m adding ramdisk driver in kernel driver configuration, "ROM file system > support" in kernel file systems, and "sysfs file system support" in Pseudo > filesystems menu of kernel file system configuration. If you don´t select > sysfs, you must specify the mtd partition used for root. Do you select this > option? If not, please read sysfs help.
I have both romfs and sysfs selected; I also just enabled mtd-ram (Map driver for platform device RAM (mtd-ram)) in the mtd configuration and "Physical system RAM" in the Self-contained MTD device drivers section that I had forgotten up to now - but there is still no success. Here is the log of my kernel: ttyS2 at 0xfc068000 (irq = 92) is a builtin ColdFire UART RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: module loaded nbd: registered device at major 43 Generic platform RAM MTD, (c) 2004 Simtec Electronics ASTRO5373L flash device: 2000000 at 0 ASTRO5373LFlash: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled Creating 7 MTD partitions on "ASTRO5373LFlash": 0x00000000-0x02000000 : "Complete Flash" 0x00000000-0x00080000 : "bootloader" 0x00080000-0x00280000 : "kernel" 0x00280000-0x00540000 : "root" 0x00540000-0x00800000 : "FPGA" 0x00800000-0x01fc0000 : "data" 0x01fc0000-0x02000000 : "Parameters" i2c /dev entries driver TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Cannot open root device "mtdblock3" or unknown-block(31,3) I did not yet figure out why the "Giving out..." messages are missing in my kernel... I leave your log below for comparison. (Another strange thing I just notice is that I forgot to change the kernel command line and the kernel is not able to mount the romfs in flash when I enable initrd, although the root device printed is correct and the partition listing is ok, too...) Best regards, Wolfgang > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > FEC ENET Version 0.2 > fec: PHY @ 0x1, ID 0x0022561b -- AM79C874 > eth0: ethernet 00:cf:52:55:fc:bc > PPP generic driver version 2.4.2 > > // ********************* > uclinux[mtd]: RAM probe address=0x1b715c size=0x2d0000 > Creating 1 MTD partitions on "RAM": > 0x00000000-0x002d0000 : "ROMfs" > mtd: Giving out device 0 to ROMfs > uclinux[mtd]: set ROMfs to be root filesystem > // ********************* > > Number of erase regions: 3 > Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard) > Primary Algorithm Table at 0040 > Alternative Vendor Command Set: 0000 (None) > No Alternate Algorithm Table > Vcc Minimum: 2.7 V > Vcc Maximum: 3.6 V > No Vpp line > Typical byte/word write timeout: 8 µs > Maximum byte/word write timeout: 256 µs > Full buffer write not supported > Typical block erase timeout: 512 ms > Maximum block erase timeout: 8192 ms > Chip erase not supported > Device size: 0x800000 bytes (8 MiB) > Flash Device Interface description: 0x0002 > - supports x8 and x16 via BYTE# with asynchronous interface > Max. bytes in buffer write: 0x1 > Number of Erase Block Regions: 3 > Erase Region #0: BlockSize 0x2000 bytes, 8 blocks > Erase Region #1: BlockSize 0x10000 bytes, 126 blocks > Erase Region #2: BlockSize 0x2000 bytes, 8 blocks > MCF5282 flash: Found 1 x16 devices at 0x0 in 16-bit bank > MCF5282 flash: Found 1 x16 devices at 0x800000 in 16-bit bank > Amd/Fujitsu Extended Query Table at 0x0040 > MCF5282 flash: CFI does not contain boot bank location. Assuming top. > number of CFI chips: 2 > cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. > MCF5282 flash device: 16MiB at 0xff000000 > Creating 7 MTD partitions on "MCF5282 flash": > 0x00000000-0x00010000 : "loader(64KB)" > mtd: Giving out device 1 to loader(64KB) > 0x00010000-0x00400000 : "kernel (4032KB)" > mtd: Giving out device 2 to kernel (4032KB) > 0x00400000-0x00480000 : "UserSpace1 (/user/) (512KB)" > mtd: Giving out device 3 to UserSpace1 (/user/) (512KB) > 0x00480000-0x00500000 : "UserSpace2 (/user1/) (512KB)" > mtd: Giving out device 4 to UserSpace2 (/user1/) (512KB) > 0x00500000-0x00800000 : "UserSpace3 (/user2/) (3MB)" > mtd: Giving out device 5 to UserSpace3 (/user2/) (3MB) > 0x00800000-0x00c00000 : "UserSpace4 (/user3/) (4MB)" > mtd: Giving out device 6 to UserSpace4 (/user3/) (4MB) > 0x00c00000-0x01000000 : "UserSpace5 (/user4/) (4MB)" > mtd: Giving out device 7 to UserSpace5 (/user4/) (4MB) > Netfilter messages via NETLINK v0.30. > nf_conntrack version 0.5.0 (256 buckets, 2048 max) > IPv4 over IPv4 tunneling driver > GRE over IPv4 tunneling driver > ip_tables: (C) 2000-2006 Netfilter Core Team > TCP cubic registered > NET: Registered protocol family 1 > NET: Registered protocol family 17 > > // ********************* > VFS: Mounted root (romfs filesystem) readonly. > // ********************* > > Freeing unused kernel memory: 64k freed (0x195000 - 0x1a4000) > > > > > -----Mensaje original----- > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > En nombre de Wolfgang Wegner > Enviado el: miércoles, 28 de noviembre de 2007 8:35 > Para: uClinux development list > Asunto: Re: [uClinux-dev] unable to use embedded initrd on MCF532x > > Hi Gavin, > On Wed, Nov 28, 2007 at 10:06:14AM +1300, Gavin Lambert wrote: > > > > So have you tried adding a root= option like it suggested? (I'm > > presuming one of the partitions listed above is the root partition; > > certainly you're not including the "root FS appended to kernel image" > > uClinux mapping > > driver.) > > I tried many different root= options of which I thought they might help. > > What is this "root FS appended to kernel image" driver you mention? > I can not find it anywhere, neither in the general configuration where the > initramfs settings are nor in the MTD section. > > I am more and more confused - is initramfs in newer uClinux completely > different than in the older kernels? I thought it is ramfs and handled by > ramdisk driver, and now you come up with a connection to mtd...? > > Regards, > Wolfgang > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
