mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* bootargs
@ 2011-03-03 12:22 Vanalme Filip
  2011-03-03 12:33 ` bootargs Sascha Hauer
  0 siblings, 1 reply; 14+ messages in thread
From: Vanalme Filip @ 2011-03-03 12:22 UTC (permalink / raw)
  To: barebox

In the current phase, I can boot the kernel, but it panics when trying to mount the root filesystem.
I downloaded a root filesystem from the server into the dedicated NAND partition : tftp rootfs.jffs2 /dev/nand0.root.bb
This seems to be OK.

However, I have doubts about the bootargs I'm passing to the kernel :

commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)

Does this look OK ?

These are the last lines of the console output when booting the kernel :

IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
IP-Config: Complete:
     device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
     host=10.0.49.70, domain=televic.com, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
VFS: Unable to mount root fs via NFS, trying floppy.
List of all partitions:
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

The line " VFS: Unable to mount root fs via NFS, trying floppy." looks incorrect to me. I do not mention NFS in my bootargs, so...
At "List of all partitions:", shouldn't I have a list of the four partitions I mention in the bootargs ?

This may also be useful :

barebox:/ devinfo
devices:
|----imx_serial0
|----cs0
|----ramfs0
|----devfs0
|----mem0 (defaultenv)
|----mem1 (mem)
|----imx_spi1
|----mc137830 (pmic)
|----mem2 (ram0)
|----imx_nand0
|----nand0 (nand0, nand_oob0, self_raw, env_raw, nand0.barebox, nand0.bareboxenv, nand0.kernel, nand0.root) <=======
|----fec_imx0
|----miidev0 (phy0)
|----eth0

drivers:
imx_serial
     ramfs
     devfs
   fec_imx
    miidev
  imx_nand
 cfi_flash
   imx_spi
     imxfb
   mc13783
       mem

(This might as well be a kernel related issue and therefor maybe not fitting in barebox's mailing list - if so, sorry...)


Filip


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-03 12:22 bootargs Vanalme Filip
@ 2011-03-03 12:33 ` Sascha Hauer
  2011-03-03 14:00   ` bootargs Vanalme Filip
  0 siblings, 1 reply; 14+ messages in thread
From: Sascha Hauer @ 2011-03-03 12:33 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

On Thu, Mar 03, 2011 at 01:22:41PM +0100, Vanalme Filip wrote:
> In the current phase, I can boot the kernel, but it panics when trying to mount the root filesystem.
> I downloaded a root filesystem from the server into the dedicated NAND partition : tftp rootfs.jffs2 /dev/nand0.root.bb
> This seems to be OK.
> 
> However, I have doubts about the bootargs I'm passing to the kernel :
> 
> commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
> 
> Does this look OK ?

Yes, looks good.

> 
> These are the last lines of the console output when booting the kernel :
> 
> IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> IP-Config: Complete:
>      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
>      host=10.0.49.70, domain=televic.com, nis-domain=(none),
>      bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
> VFS: Unable to mount root fs via NFS, trying floppy.
> List of all partitions:
> No filesystem could mount root, tried:  jffs2
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Do you have enabled the mxc_nand driver in the kernel and also mtd
command line partitioning (CONFIG_MTD_CMDLINE_PARTS)?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-03 12:33 ` bootargs Sascha Hauer
@ 2011-03-03 14:00   ` Vanalme Filip
  2011-03-03 14:13     ` bootargs Sascha Hauer
  0 siblings, 1 reply; 14+ messages in thread
From: Vanalme Filip @ 2011-03-03 14:00 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: donderdag 3 maart 2011 13:33
> To: Vanalme Filip
> Cc: barebox@lists.infradead.org
> Subject: Re: bootargs
> 
> On Thu, Mar 03, 2011 at 01:22:41PM +0100, Vanalme Filip wrote:
> > In the current phase, I can boot the kernel, but it panics when trying to mount the
> root filesystem.
> > I downloaded a root filesystem from the server into the dedicated NAND partition
> : tftp rootfs.jffs2 /dev/nand0.root.bb
> > This seems to be OK.
> >
> > However, I have doubts about the bootargs I'm passing to the kernel :
> >
> > commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3
> rootfstype=jffs2 earlyprintk
> mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
> >
> > Does this look OK ?
> 
> Yes, looks good.
> 
> >
> > These are the last lines of the console output when booting the kernel :
> >
> > IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> > IP-Config: Complete:
> >      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
> >      host=10.0.49.70, domain=televic.com, nis-domain=(none),
> >      bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
> > VFS: Unable to mount root fs via NFS, trying floppy.
> > List of all partitions:
> > No filesystem could mount root, tried:  jffs2
> > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> 
> Do you have enabled the mxc_nand driver in the kernel and also mtd
> command line partitioning (CONFIG_MTD_CMDLINE_PARTS)?

[Filip] 
I have CONFIG_MTD_CMDLINE_PARTS=y and CONFIG_MTD_NAND_MXC=y.

> 
> Sascha
> 
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-03 14:00   ` bootargs Vanalme Filip
@ 2011-03-03 14:13     ` Sascha Hauer
  2011-03-03 14:23       ` bootargs Vanalme Filip
  0 siblings, 1 reply; 14+ messages in thread
From: Sascha Hauer @ 2011-03-03 14:13 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

On Thu, Mar 03, 2011 at 03:00:07PM +0100, Vanalme Filip wrote:
> > -----Original Message-----
> > From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> > Sent: donderdag 3 maart 2011 13:33
> > To: Vanalme Filip
> > Cc: barebox@lists.infradead.org
> > Subject: Re: bootargs
> > 
> > On Thu, Mar 03, 2011 at 01:22:41PM +0100, Vanalme Filip wrote:
> > > In the current phase, I can boot the kernel, but it panics when trying to mount the
> > root filesystem.
> > > I downloaded a root filesystem from the server into the dedicated NAND partition
> > : tftp rootfs.jffs2 /dev/nand0.root.bb
> > > This seems to be OK.
> > >
> > > However, I have doubts about the bootargs I'm passing to the kernel :
> > >
> > > commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3
> > rootfstype=jffs2 earlyprintk
> > mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
> > >
> > > Does this look OK ?
> > 
> > Yes, looks good.
> > 
> > >
> > > These are the last lines of the console output when booting the kernel :
> > >
> > > IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> > > IP-Config: Complete:
> > >      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
> > >      host=10.0.49.70, domain=televic.com, nis-domain=(none),
> > >      bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
> > > VFS: Unable to mount root fs via NFS, trying floppy.
> > > List of all partitions:
> > > No filesystem could mount root, tried:  jffs2
> > > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> > 
> > Do you have enabled the mxc_nand driver in the kernel and also mtd
> > command line partitioning (CONFIG_MTD_CMDLINE_PARTS)?
> 
> [Filip] 
> I have CONFIG_MTD_CMDLINE_PARTS=y and CONFIG_MTD_NAND_MXC=y.

Hm. Can you post the complete boot log?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-03 14:13     ` bootargs Sascha Hauer
@ 2011-03-03 14:23       ` Vanalme Filip
  2011-03-03 14:34         ` bootargs Jon Ringle
  2011-03-03 14:43         ` bootargs Sascha Hauer
  0 siblings, 2 replies; 14+ messages in thread
From: Vanalme Filip @ 2011-03-03 14:23 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: donderdag 3 maart 2011 15:14
> To: Vanalme Filip
> Cc: barebox@lists.infradead.org
> Subject: Re: bootargs
> 
> On Thu, Mar 03, 2011 at 03:00:07PM +0100, Vanalme Filip wrote:
> > > -----Original Message-----
> > > From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> > > Sent: donderdag 3 maart 2011 13:33
> > > To: Vanalme Filip
> > > Cc: barebox@lists.infradead.org
> > > Subject: Re: bootargs
> > >
> > > On Thu, Mar 03, 2011 at 01:22:41PM +0100, Vanalme Filip wrote:
> > > > In the current phase, I can boot the kernel, but it panics when trying to mount
> the
> > > root filesystem.
> > > > I downloaded a root filesystem from the server into the dedicated NAND
> partition
> > > : tftp rootfs.jffs2 /dev/nand0.root.bb
> > > > This seems to be OK.
> > > >
> > > > However, I have doubts about the bootargs I'm passing to the kernel :
> > > >
> > > > commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3
> > > rootfstype=jffs2 earlyprintk
> > > mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
> > > >
> > > > Does this look OK ?
> > >
> > > Yes, looks good.
> > >
> > > >
> > > > These are the last lines of the console output when booting the kernel :
> > > >
> > > > IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> > > > IP-Config: Complete:
> > > >      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
> > > >      host=10.0.49.70, domain=televic.com, nis-domain=(none),
> > > >      bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
> > > > VFS: Unable to mount root fs via NFS, trying floppy.
> > > > List of all partitions:
> > > > No filesystem could mount root, tried:  jffs2
> > > > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-
> block(2,0)
> > >
> > > Do you have enabled the mxc_nand driver in the kernel and also mtd
> > > command line partitioning (CONFIG_MTD_CMDLINE_PARTS)?
> >
> > [Filip]
> > I have CONFIG_MTD_CMDLINE_PARTS=y and CONFIG_MTD_NAND_MXC=y.
> 
> Hm. Can you post the complete boot log?
> 
> Sascha

[Filip] 
barebox 2010.12.0-00073-gfad11e8-dirty (Mar  3 2011 - 09:28:01)

Board: Freescale i.MX27 PDK 3Stack
NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
PMIC Power
Enable FEC
Reset FEC
Malloc space: 0xa7b00000 -> 0xa7f00000 (size  4 MB)
Stack space : 0xa7af8000 -> 0xa7b00000 (size 32 kB)
running /env/bin/init...

Hit any key to stop autoboot:  0
loaded zImage from /dev/nand0.kernel.bb with size 1996448
commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
arch_number: 1430
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-rc4-00029-g6148a47 (filip@thc-ubuntu-2) (gcc version 4.1.2) #6 PREEMPT Thu Mar 3 14:45:02 CET 2011
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX27PDK
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125808k/125808k available, 5264k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0028000   ( 128 kB)
      .text : 0xc0028000 - 0xc03bb294   (3661 kB)
      .data : 0xc03bc000 - 0xc03dff20   ( 144 kB)
Preemptable hierarchical RCU implementation.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
3-Stack Debug board detected, rev = 0x0200
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource mxc_timer1
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 245
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler cfq registered (default)
i2c-core: driver [adp8860_bl] using legacy suspend method
i2c-core: driver [adp8860_bl] using legacy resume method
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled, bootconsole disabled
console [ttymxc0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
FEC Ethernet Driver
fec_enet_mii_bus: probed
smsc911x: Driver version 2008-10-21.
smsc911x-mdio: probed
eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
net eth1: MAC Address: 00:11:22:33:44:55
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: imx-keypad as /devices/platform/imx-keypad/input/input0
i2c /dev entries driver
i.MX SDHC driver
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:1f, irq=-1)
net eth1: SMSC911x/921x identified at 0xc886e000, IRQ: 256
Sending DHCP requests .
PHY: 1:1f - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
IP-Config: Complete:
     device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
     host=10.0.49.70, domain=televic.com, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
VFS: Unable to mount root fs via NFS, trying floppy.
List of all partitions:
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> 
> 
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-03 14:23       ` bootargs Vanalme Filip
@ 2011-03-03 14:34         ` Jon Ringle
  2011-03-03 14:42           ` bootargs Vanalme Filip
  2011-03-03 14:43         ` bootargs Sascha Hauer
  1 sibling, 1 reply; 14+ messages in thread
From: Jon Ringle @ 2011-03-03 14:34 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 194 bytes --]

On Thu, Mar 3, 2011 at 9:23 AM, Vanalme Filip <F.Vanalme@televic.com> wrote:

> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(2,0)
>

Do you have CONFIG_MTD_BLOCK?

[-- Attachment #1.2: Type: text/html, Size: 458 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-03 14:34         ` bootargs Jon Ringle
@ 2011-03-03 14:42           ` Vanalme Filip
  0 siblings, 0 replies; 14+ messages in thread
From: Vanalme Filip @ 2011-03-03 14:42 UTC (permalink / raw)
  To: Jon Ringle; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 463 bytes --]

From: jonringle@gmail.com [mailto:jonringle@gmail.com] On Behalf Of Jon Ringle
Sent: donderdag 3 maart 2011 15:35
To: Vanalme Filip
Cc: Sascha Hauer; barebox@lists.infradead.org
Subject: Re: bootargs

On Thu, Mar 3, 2011 at 9:23 AM, Vanalme Filip <F.Vanalme@televic.com<mailto:F.Vanalme@televic.com>> wrote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Do you have CONFIG_MTD_BLOCK?
[Filip] I have CONFIG_MTD_BLOCK=y

[-- Attachment #1.2: Type: text/html, Size: 3370 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-03 14:23       ` bootargs Vanalme Filip
  2011-03-03 14:34         ` bootargs Jon Ringle
@ 2011-03-03 14:43         ` Sascha Hauer
  1 sibling, 0 replies; 14+ messages in thread
From: Sascha Hauer @ 2011-03-03 14:43 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

On Thu, Mar 03, 2011 at 03:23:07PM +0100, Vanalme Filip wrote:
> List of all partitions:
> No filesystem could mount root, tried:  jffs2
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

You'll need to register the nand device in your board, i.e. something
like this:

static const struct mxc_nand_platform_data
pca100_nand_board_info __initconst = {
        .width = 1,
        .hw_ecc = 1,
};

	imx27_add_mxc_nand(&pca100_nand_board_info);

The vanilla kernel does not (yet) support nand on the i.MX27 pdk.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-04  8:30 ` bootargs Sascha Hauer
  2011-03-04 12:54   ` bootargs Vanalme Filip
@ 2011-03-04 13:49   ` Vanalme Filip
  1 sibling, 0 replies; 14+ messages in thread
From: Vanalme Filip @ 2011-03-04 13:49 UTC (permalink / raw)
  To: barebox

> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: vrijdag 4 maart 2011 9:30
> To: Vanalme Filip
> Cc: barebox@lists.infradead.org
> Subject: Re: bootargs
> 
> On Fri, Mar 04, 2011 at 09:18:26AM +0100, Vanalme Filip wrote:
> >
> > I think it might have something to do with the BI-swapping issue. The
> > BI-swapping is, as far as I know, not yet implemented in the kernel's
> > NAND driver. So, if I flash the rootfs with Barebox (doing the
> > BI-swap) and then read the rootfs from within the kernel (not doing
> > the BI-swap), I will for sure have problem...
> 
> Using 2k NAND flash on the i.MX27 will most likely lead to problems...
> 
> >
> > Remarkable : the Linux version I use is a version we downloaded from
> > Freescale's git repositry. In this version, we could select the
> > i.MX27PDK board. However, that board's code is obviously not
> > registering the NAND flash driver... knowing that the i.MX27PDK only
> > contains NAND-flash, this is very weird...
> 
> Normally we do root over nfs during development, so this is not very
> surprising. As Freescale does not support the i.MX27 anymore the
> i.MX27PDK support in FSLs git kernel is probably identical to mainline.
> 
> Sascha
> 
[Filip] 
I implemented the BI-swapping in mxc_nand.c (analogous to the implementation in Barebox's mxc_nand.c). With success. The kernel can now mount the root filesystem from NAND flash and ends with a prompt.

Filip
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-04 13:13     ` bootargs Baruch Siach
@ 2011-03-04 13:24       ` Vanalme Filip
  0 siblings, 0 replies; 14+ messages in thread
From: Vanalme Filip @ 2011-03-04 13:24 UTC (permalink / raw)
  To: Baruch Siach; +Cc: barebox

> -----Original Message-----
> From: Baruch Siach [mailto:baruch@tkos.co.il]
> Sent: vrijdag 4 maart 2011 14:13
> To: Vanalme Filip
> Cc: Sascha Hauer; barebox@lists.infradead.org
> Subject: Re: bootargs
> 
> Hi Vanalme,
> 
> On Fri, Mar 04, 2011 at 01:54:38PM +0100, Vanalme Filip wrote:
> > barebox 2010.12.0-00073-gfad11e8-dirty (Mar  3 2011 - 09:28:01)
> >
> > Board: Freescale i.MX27 PDK 3Stack
> > NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB
> 1,8V 8-bit)
> > Bad block table found at page 131008, version 0x01
> > Bad block table found at page 130944, version 0x01
> > PMIC Power
> > Enable FEC
> > Reset FEC
> > Malloc space: 0xa7b00000 -> 0xa7f00000 (size  4 MB)
> > Stack space : 0xa7af8000 -> 0xa7b00000 (size 32 kB)
> > running /env/bin/init...
> >
> > Hit any key to stop autoboot:  3\b\b 2\b\b 1\b\b 0
> > loaded zImage from /dev/nand0.kernel.bb with size 1996604
> > commandline: console=ttymxc0,115200 ip=dhcp rootfstype=jffs2 root=/dev/nfs
> nfsroot=10.0.48.80:/tftpboot/rootfs earlyprintk
> mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
> 
> [snip]
> 
> Removing "rootfstype=jffs2" might help. Just a guess.
> 
> baruch
> 
[Filip] 
Unfortunately... no success. Shouldn't it be there to let the kernel know that it is a jffs2 filesystem ? Isn't this the only way the kernel can be informed about the type of filesystem ?

Filip

> > IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> > IP-Config: Complete:
> >      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
> >      host=10.0.49.70, domain=televic.com, nis-domain=(none),
> >      bootserver=0.0.0.0, rootserver=10.0.48.80, rootpath=
> > VFS: Unable to mount root fs via NFS, trying floppy.   <======== ??
> > List of all partitions:
> > 1f00             256 mtdblock0  (driver?)
> > 1f01             128 mtdblock1  (driver?)
> > 1f02            2048 mtdblock2  (driver?)
> > 1f03          259712 mtdblock3  (driver?)
> > No filesystem could mount root, tried:  jffs2
> > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> >
> >
> > I checked the kernel's configuration and I think I have all NFS related items
> included.
> > A showmount -e 10.0.48.80 gives me :
> > /tftpboot/rootfs			10.0.0.0/255.255.0.0
> > /home/user1/i.MX27/ltib/rootfs	10.0.0.0/255.255.0.0
> >
> > So, I guess the mounting point is correct.
> > The bootargs also look OK to me. However, there's still something I miss here.
> 
> --
>                                                      ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-04 12:54   ` bootargs Vanalme Filip
@ 2011-03-04 13:13     ` Baruch Siach
  2011-03-04 13:24       ` bootargs Vanalme Filip
  0 siblings, 1 reply; 14+ messages in thread
From: Baruch Siach @ 2011-03-04 13:13 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

Hi Vanalme,

On Fri, Mar 04, 2011 at 01:54:38PM +0100, Vanalme Filip wrote:
> barebox 2010.12.0-00073-gfad11e8-dirty (Mar  3 2011 - 09:28:01)
> 
> Board: Freescale i.MX27 PDK 3Stack
> NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
> Bad block table found at page 131008, version 0x01
> Bad block table found at page 130944, version 0x01
> PMIC Power
> Enable FEC
> Reset FEC
> Malloc space: 0xa7b00000 -> 0xa7f00000 (size  4 MB)
> Stack space : 0xa7af8000 -> 0xa7b00000 (size 32 kB)
> running /env/bin/init...
> 
> Hit any key to stop autoboot:  3\b\b 2\b\b 1\b\b 0
> loaded zImage from /dev/nand0.kernel.bb with size 1996604
> commandline: console=ttymxc0,115200 ip=dhcp rootfstype=jffs2 root=/dev/nfs nfsroot=10.0.48.80:/tftpboot/rootfs earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)

[snip]

Removing "rootfstype=jffs2" might help. Just a guess.

baruch

> IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
> IP-Config: Complete:
>      device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
>      host=10.0.49.70, domain=televic.com, nis-domain=(none),
>      bootserver=0.0.0.0, rootserver=10.0.48.80, rootpath=
> VFS: Unable to mount root fs via NFS, trying floppy.   <======== ??
> List of all partitions:
> 1f00             256 mtdblock0  (driver?)
> 1f01             128 mtdblock1  (driver?)
> 1f02            2048 mtdblock2  (driver?)
> 1f03          259712 mtdblock3  (driver?)
> No filesystem could mount root, tried:  jffs2
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> 
> 
> I checked the kernel's configuration and I think I have all NFS related items included.
> A showmount -e 10.0.48.80 gives me :
> /tftpboot/rootfs			10.0.0.0/255.255.0.0
> /home/user1/i.MX27/ltib/rootfs	10.0.0.0/255.255.0.0
> 
> So, I guess the mounting point is correct. 
> The bootargs also look OK to me. However, there's still something I miss here.

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: bootargs
  2011-03-04  8:30 ` bootargs Sascha Hauer
@ 2011-03-04 12:54   ` Vanalme Filip
  2011-03-04 13:13     ` bootargs Baruch Siach
  2011-03-04 13:49   ` bootargs Vanalme Filip
  1 sibling, 1 reply; 14+ messages in thread
From: Vanalme Filip @ 2011-03-04 12:54 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: vrijdag 4 maart 2011 9:30
> To: Vanalme Filip
> Cc: barebox@lists.infradead.org
> Subject: Re: bootargs
> 
> On Fri, Mar 04, 2011 at 09:18:26AM +0100, Vanalme Filip wrote:
> >
> > I think it might have something to do with the BI-swapping issue. The
> > BI-swapping is, as far as I know, not yet implemented in the kernel's
> > NAND driver. So, if I flash the rootfs with Barebox (doing the
> > BI-swap) and then read the rootfs from within the kernel (not doing
> > the BI-swap), I will for sure have problem...
> 
> Using 2k NAND flash on the i.MX27 will most likely lead to problems...
> 
> >
> > Remarkable : the Linux version I use is a version we downloaded from
> > Freescale's git repositry. In this version, we could select the
> > i.MX27PDK board. However, that board's code is obviously not
> > registering the NAND flash driver... knowing that the i.MX27PDK only
> > contains NAND-flash, this is very weird...
> 
> Normally we do root over nfs during development, so this is not very
> surprising. As Freescale does not support the i.MX27 anymore the
> i.MX27PDK support in FSLs git kernel is probably identical to mainline.
> 
> Sascha

[Filip] 
Because, as you indicate, it's better to have root over nfs during development, I also tried using NFS to mount the root filesystem.
This is the boot sequence when using NFS :


barebox 2010.12.0-00073-gfad11e8-dirty (Mar  3 2011 - 09:28:01)

Board: Freescale i.MX27 PDK 3Stack
NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
PMIC Power
Enable FEC
Reset FEC
Malloc space: 0xa7b00000 -> 0xa7f00000 (size  4 MB)
Stack space : 0xa7af8000 -> 0xa7b00000 (size 32 kB)
running /env/bin/init...

Hit any key to stop autoboot:  3\b\b 2\b\b 1\b\b 0
loaded zImage from /dev/nand0.kernel.bb with size 1996604
commandline: console=ttymxc0,115200 ip=dhcp rootfstype=jffs2 root=/dev/nfs nfsroot=10.0.48.80:/tftpboot/rootfs earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
arch_number: 1430
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-rc4-00029-g6148a47-dirty (filip@thc-ubuntu-2) (gcc version 4.1.2) #10 PREEMPT Thu Mar 3 16:55:04 CET 2011
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX27PDK
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttymxc0,115200 ip=dhcp rootfstype=jffs2 root=/dev/nfs nfsroot=10.0.48.80:/tftpboot/rootfs earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125808k/125808k available, 5264k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0028000   ( 128 kB)
      .text : 0xc0028000 - 0xc03bb29c   (3661 kB)
      .data : 0xc03bc000 - 0xc03dff20   ( 144 kB)
Preemptable hierarchical RCU implementation.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
3-Stack Debug board detected, rev = 0x0200
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource mxc_timer1
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 245
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler cfq registered (default)
i2c-core: driver [adp8860_bl] using legacy suspend method
i2c-core: driver [adp8860_bl] using legacy resume method
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled, bootconsole disabled
console [ttymxc0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2046 at 0x00000ffc0000
Bad eraseblock 2047 at 0x00000ffe0000
Searching for RedBoot partition table in mxc_nand at offset 0x80000
No RedBoot partition table detected in mxc_nand
4 cmdlinepart partitions found on MTD device mxc_nand
Creating 4 MTD partitions on "mxc_nand":
0x000000000000-0x000000040000 : "barebox"
0x000000040000-0x000000060000 : "bareboxenv"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000010000000 : "root"
FEC Ethernet Driver
fec_enet_mii_bus: probed
smsc911x: Driver version 2008-10-21.
smsc911x-mdio: probed
eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
net eth1: MAC Address: 00:11:22:33:44:55
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: imx-keypad as /devices/platform/imx-keypad/input/input0
i2c /dev entries driver
i.MX SDHC driver
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:1f, irq=-1)
net eth1: SMSC911x/921x identified at 0xc8898000, IRQ: 256
Sending DHCP requests .
PHY: 1:1f - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
IP-Config: Complete:
     device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
     host=10.0.49.70, domain=televic.com, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=10.0.48.80, rootpath=
VFS: Unable to mount root fs via NFS, trying floppy.   <======== ??
List of all partitions:
1f00             256 mtdblock0  (driver?)
1f01             128 mtdblock1  (driver?)
1f02            2048 mtdblock2  (driver?)
1f03          259712 mtdblock3  (driver?)
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


I checked the kernel's configuration and I think I have all NFS related items included.
A showmount -e 10.0.48.80 gives me :
/tftpboot/rootfs			10.0.0.0/255.255.0.0
/home/user1/i.MX27/ltib/rootfs	10.0.0.0/255.255.0.0

So, I guess the mounting point is correct. 
The bootargs also look OK to me. However, there's still something I miss here.

Filip
> 
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: bootargs
  2011-03-04  8:18 bootargs Vanalme Filip
@ 2011-03-04  8:30 ` Sascha Hauer
  2011-03-04 12:54   ` bootargs Vanalme Filip
  2011-03-04 13:49   ` bootargs Vanalme Filip
  0 siblings, 2 replies; 14+ messages in thread
From: Sascha Hauer @ 2011-03-04  8:30 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

On Fri, Mar 04, 2011 at 09:18:26AM +0100, Vanalme Filip wrote:
> 
> I think it might have something to do with the BI-swapping issue. The
> BI-swapping is, as far as I know, not yet implemented in the kernel's
> NAND driver. So, if I flash the rootfs with Barebox (doing the
> BI-swap) and then read the rootfs from within the kernel (not doing
> the BI-swap), I will for sure have problem...

Using 2k NAND flash on the i.MX27 will most likely lead to problems...

> 
> Remarkable : the Linux version I use is a version we downloaded from
> Freescale's git repositry. In this version, we could select the
> i.MX27PDK board. However, that board's code is obviously not
> registering the NAND flash driver... knowing that the i.MX27PDK only
> contains NAND-flash, this is very weird...

Normally we do root over nfs during development, so this is not very
surprising. As Freescale does not support the i.MX27 anymore the
i.MX27PDK support in FSLs git kernel is probably identical to mainline.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bootargs
@ 2011-03-04  8:18 Vanalme Filip
  2011-03-04  8:30 ` bootargs Sascha Hauer
  0 siblings, 1 reply; 14+ messages in thread
From: Vanalme Filip @ 2011-03-04  8:18 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

>On Thu, Mar 03, 2011 at 03:23:07PM +0100, Vanalme Filip wrote:
>> List of all partitions:
>> No filesystem could mount root, tried:  jffs2 Kernel panic - not 
>> syncing: VFS: Unable to mount root fs on unknown-block(2,0)
>
>You'll need to register the nand device in your board, i.e. something 
>like this:
>
>static const struct mxc_nand_platform_data pca100_nand_board_info 
>__initconst = {
>        .width = 1,
>        .hw_ecc = 1,
>};
>
>	imx27_add_mxc_nand(&pca100_nand_board_info);
>
>The vanilla kernel does not (yet) support nand on the i.MX27 pdk.
>
>Sascha

[Filip]
Hi Sascha
I accidently removed my yesterday's e-mails. Tried to reconstruct your latest mail to continue on. I don't know if this mail will be appended correctly to the thread... (sorry, if not...)

That was indeed a missing part. After adding the registering part, it detects the 4 partitions and I guess it's trying to mount the rootfs system. At the end, it's writing lots of messages to the console port finally ending with a kernel panic :

loaded zImage from /dev/nand0.kernel.bb with size 1996604
commandline: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
arch_number: 1430
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-rc4-00029-g6148a47-dirty (filip@thc-ubuntu-2) (gcc version 4.1.2) #10 PREEMPT Thu Mar 3 16:55:04 CET 2011
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX27PDK
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512 Kernel command line: console=ttymxc0,115200 ip=dhcp root=/dev/mtdblock3 rootfstype=jffs2 earlyprintk mtdparts=mxc_nand:256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)
PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125808k/125808k available, 5264k reserved, 0K highmem Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xf4000000   ( 696 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0028000   ( 128 kB)
      .text : 0xc0028000 - 0xc03bb29c   (3661 kB)
      .data : 0xc03bc000 - 0xc03dff20   ( 144 kB)
Preemptable hierarchical RCU implementation.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
3-Stack Debug board detected, rev = 0x0200
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource mxc_timer1
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 245
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler cfq registered (default)
i2c-core: driver [adp8860_bl] using legacy suspend method
i2c-core: driver [adp8860_bl] using legacy resume method
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX console [ttymxc0] enabled, bootconsole disabled console [ttymxc0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit) Scanning device for bad blocks Bad eraseblock 2046 at 0x00000ffc0000 Bad eraseblock 2047 at 0x00000ffe0000 Searching for RedBoot partition table in mxc_nand at offset 0x80000 No RedBoot partition table detected in mxc_nand
4 cmdlinepart partitions found on MTD device mxc_nand	<======
Creating 4 MTD partitions on "mxc_nand":			<======
0x000000000000-0x000000040000 : "barebox"		<======
0x000000040000-0x000000060000 : "bareboxenv"		<======
0x000000060000-0x000000260000 : "kernel"			<======
0x000000260000-0x000010000000 : "root"			<======
FEC Ethernet Driver
fec_enet_mii_bus: probed
smsc911x: Driver version 2008-10-21.
smsc911x-mdio: probed
eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1) net eth1: MAC Address: 00:11:22:33:44:55 Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage USB Mass Storage support registered.
input: imx-keypad as /devices/platform/imx-keypad/input/input0
i2c /dev entries driver
i.MX SDHC driver
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:1f, irq=-1) net eth1: SMSC911x/921x identified at 0xc8898000, IRQ: 256 Sending DHCP requests .
PHY: 1:1f - Link is Up - 100/Full
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.49.70
IP-Config: Complete:
     device=eth0, addr=10.0.49.70, mask=255.255.0.0, gw=10.0.127.254,
     host=10.0.49.70, domain=televic.com, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
jffs2_scan_dirent_node(): Name CRC failed on node at 0x000007ac: Read 0x3bdc40ff, calculated 0x3bdc40ce
jffs2_scan_inode_node(): CRC failed on node at 0x00018fac: Read 0x5fa9a19b, calculated 0xc27ef9cf
jffs2_scan_eraseblock(): Node at 0x0001dfc8 {0x1985, 0xe002, 0x00000abc) has invalid CRC 0xd6b240ff (calculated 0xd6b24083)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfcc: 0x0abc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfd0: 0x40ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfd4: 0x001a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfd8: 0x0033 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfdc: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfe4: 0x1aaa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfe8: 0xeab3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dfec: 0xeab3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001dff0: 0xeab3 instead Further such events for this erase block will not be printed
jffs2_scan_inode_node(): CRC failed on node at 0x0002e790: Read 0x7aa832ff, calculated 0x7aa83210
jffs2_scan_inode_node(): CRC failed on node at 0x0003afac: Read 0x511f8b57, calculated 0xccc8d303
jffs2_scan_inode_node(): CRC failed on node at 0x0004879c: Read 0xa129572f, calculated 0x876251c9
jffs2_scan_inode_node(): CRC failed on node at 0x000567c0: Read 0xf8af75d2, calculated 0xe187fc75
jffs2_scan_inode_node(): CRC failed on node at 0x00085fac: Read 0xc7256eb9, calculated 0xfca285df
jffs2_scan_inode_node(): CRC failed on node at 0x0009afa4: Read 0x30431bea, calculated 0x3d32223d
jffs2_scan_dirent_node(): Node CRC failed on node at 0x000ae7b0: Read 0x46fea2ff, calculated 0x46fea28d
jffs2_scan_inode_node(): CRC failed on node at 0x000af7a4: Read 0x9a7b006d, calculated 0x970a39ba
jffs2_scan_inode_node(): CRC failed on node at 0x000bf7b0: Read 0x8904d246, calculated 0xef03899a
jffs2_scan_inode_node(): CRC failed on node at 0x000c07b4: Read 0x1d876368, calculated 0x46d628eb
jffs2_scan_eraseblock(): Node at 0x000c97c8 {0x1985, 0xe002, 0x0000004b) has invalid CRC 0xc094ebff (calculated 0xc094eb4b)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97cc: 0x004b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97d0: 0xebff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97d4: 0x0042 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97d8: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97dc: 0xa1ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97e4: 0x0007 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97e8: 0xea9b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97ec: 0xea9b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c97f0: 0xea9b instead Further such events for this erase block will not be printed
jffs2_scan_dirent_node(): Name CRC failed on node at 0x000cd7a8: Read 0x92fea9c3, calculated 0x2dd59e7d
jffs2_scan_dirent_node(): Name CRC failed on node at 0x000ce7ac: Read 0xbda4afff, calculated 0xbda4af58
jffs2_scan_inode_node(): CRC failed on node at 0x000cf7ac: Read 0x0b09851e, calculated 0x96dedd4a
jffs2_scan_inode_node(): CRC failed on node at 0x000cffa4: Read 0x4d7dcb56, calculated 0x400cf281
jffs2_scan_dirent_node(): Node CRC failed on node at 0x000d07bc: Read 0xa642bab2, calculated 0x7c16e523
jffs2_scan_inode_node(): CRC failed on node at 0x000d0f9c: Read 0x326a483d, calculated 0x560449a6
jffs2_scan_inode_node(): CRC failed on node at 0x000d17c4: Read 0xe4cc8316, calculated 0x8f208786
jffs2_scan_inode_node(): CRC failed on node at 0x000d27b0: Read 0x6eb359dd, calculated 0x5ad2fd5a
jffs2_scan_inode_node(): CRC failed on node at 0x000d2fac: Read 0x9fc52b57, calculated 0xea31887b
jffs2_scan_inode_node(): CRC failed on node at 0x000d77b0: Read 0xc3d09cc7, calculated 0xd09cabb1
jffs2_scan_inode_node(): CRC failed on node at 0x000e67b0: Read 0xcac7a32a, calculated 0xa60d1977
jffs2_scan_inode_node(): CRC failed on node at 0x000e879c: Read 0x4f4aff02, calculated 0xb532265a [...]
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x000049b8: read 0xd9b54246, calculated 0xb65c293f.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00004178: read 0x885db891, calculated 0x51bd57e5.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00003964: read 0xeccb8c27, calculated 0x5118b054.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00003130: read 0x793ed716, calculated 0x4a0e8514.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x000028f4: read 0x5ff8c7dc, calculated 0xb9cab82e.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00002130: read 0xb6f34c29, calculated 0xcdd5eb06.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00001c80: read 0xcf8c480f, calculated 0x3b4d8f5.
JFFS2 notice: (26) check_node_data: wrong data CRC in data node at 0x00001464: read 0xbe24cbee, calculated 0x4e7b7cfa.
JFFS2 warning: (26) jffs2_do_read_inode_internal: Truncating ino #26 to 727722 bytes failed because it only had 712704 bytes to start with!
JFFS2 warning: (1) jffs2_do_read_inode_internal: Truncating ino #26 to 727722 bytes failed because it only had 712704 bytes to start with!
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

I think it might have something to do with the BI-swapping issue. The BI-swapping is, as far as I know, not yet implemented in the kernel's NAND driver. So, if I flash the rootfs with Barebox (doing the BI-swap) and then read the rootfs from within the kernel (not doing the BI-swap), I will for sure have problem...

Remarkable : the Linux version I use is a version we downloaded from Freescale's git repositry. In this version, we could select the i.MX27PDK board. However, that board's code is obviously not registering the NAND flash driver... knowing that the i.MX27PDK only contains NAND-flash, this is very weird...

Filip

>-- 
>Pengutronix e.K.                           |                             |
>Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-03-04 13:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-03 12:22 bootargs Vanalme Filip
2011-03-03 12:33 ` bootargs Sascha Hauer
2011-03-03 14:00   ` bootargs Vanalme Filip
2011-03-03 14:13     ` bootargs Sascha Hauer
2011-03-03 14:23       ` bootargs Vanalme Filip
2011-03-03 14:34         ` bootargs Jon Ringle
2011-03-03 14:42           ` bootargs Vanalme Filip
2011-03-03 14:43         ` bootargs Sascha Hauer
2011-03-04  8:18 bootargs Vanalme Filip
2011-03-04  8:30 ` bootargs Sascha Hauer
2011-03-04 12:54   ` bootargs Vanalme Filip
2011-03-04 13:13     ` bootargs Baruch Siach
2011-03-04 13:24       ` bootargs Vanalme Filip
2011-03-04 13:49   ` bootargs Vanalme Filip

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox