From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from snt0-omc4-s11.snt0.hotmail.com (snt0-omc4-s11.snt0.hotmail.com [65.55.90.214]) by ozlabs.org (Postfix) with ESMTP id D740BB7CCD for ; Thu, 11 Mar 2010 22:27:08 +1100 (EST) Message-ID: Content-Type: multipart/alternative; boundary="_68857284-e7a7-4bc4-b62d-60fe293125b7_" From: garazi juez uriagereka To: Subject: MTD partitions missing Date: Thu, 11 Mar 2010 11:22:03 +0000 MIME-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --_68857284-e7a7-4bc4-b62d-60fe293125b7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C I am Garazi and I am working in the Electronic Design Group at the University of the Basque Country. I'm running the Xilinx git kernel 2.6.31 from git.xilinx.com on a V5 PPC440 CORE( Xilinx ML507). We have a NOR CFI flash device.=20 Flash chip has been particionated according to this table: =20 =20 =20 START ADDRESS =20 =20 OFFSET =20 =20 SIZE =20 =20 =20 =20 =20 =20 =20 LINUX =20 =20 0xFE000000 =20 =20 0x00000000 =20 =20 0x00500000 (5M) =20 =20 =20 =20 =20 =20 =20 JFFS2 Filesystem =20 =20 0xFE500000 =20 =20 0x00500000 =20 =20 0x01600000 (22M) =20 =20 =20 =20 =20 =20 =20 UNUSED =20 =20 0xFFB00000 =20 =20 0x01B00000 =20 =20 0x00114000(4896 K)=20 =20 =20 =20 =20 =20 =20 =20 LOADER =20 =20 0xFFFE0000 =20 =20 0x01FE0000 =20 =20 0x00020000(128K) In order to get this four partitions=2C my .dts file has been configured this way: bootargs =3D "console=3DttyS0 ip=3Don root=3D/dev/ram rw =20 =20 =20 mtdparts=3Dfe000000.flash:5M(zImage)=2C22M(rootfs)=2C4896k(unused)=2C128k(l= oader)"=3B First of all=2C linux kernel was booted from Flash=2C using a ramdisk for the flash system and a loader =2C and it worked. Now=2C I am trying to mount JFFS2 file system but I can not. I have tried it in two different ways: 1. Mounting JFFS2 file system when the kernel has already booted. 2. Changing my dts file and mounting JFFS2 automatically when kernel boots. bootargs =3D "console=3DttyS0 ip=3Don root=3D/dev/mtdblock1 rw rootfs=3Djffs2 =20 mtdparts=3Dfe000000.flash:5M(zImage)=2C22M(rootfs)=2C4896k(unused)=2C128k(l= oader)"=3B I guess that the problem is related to MTD driver=2C because mtd partitions are not correctly created. I check partition file and just one o= f four partition appears (cat /proc/partitions --> mtdblock0 just appears). I have read in the Internet that there are other people who have had the same problem when they have updated 2.6.28 kernel to 2.6.31 kernel. Although=2C there is no answer. I would appreciate any kind of help. Regards=2C Garazi =20 _________________________________________________________________ Recibe en tu m=F3vil un SMS con tu Hotmail recibido. =A1Date de alta ya! http://serviciosmoviles.es.msn.com/= --_68857284-e7a7-4bc4-b62d-60fe293125b7_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C


I am Garazi and I am working =3B in the Electronic Design Group at the University of the Basque Country.


I'm running the Xilinx git kernel 2.6.31 from git.xilinx.com on a V5 PPC440 CORE( Xilinx ML507). We have a NOR CFI flash device.

Flash chip has been particionated according to this table:


=20 =20 =20 =20 =20 =20 =20 =20

 =3B

START ADDRESS

OFFSET

SIZE

 =3B

LINUX

0xFE000000

0x00000000

0x00500000 (5M)

 =3B

JFFS2 Filesystem

0xFE500000

0x00500000

0x01600000 (22M)

 =3B

UNUSED

0xFFB00000

0x01B00000

0x00114000(4896 K)

 =3B

LOADER

0xFFFE0000

0x01FE0000

0x00020000(128K)


In order to get this four partitions=2C = my .dts file has been configured this way:

bootargs = =3D "console=3DttyS0 ip=3Don root=3D/dev/ram rw =3B
 =3B =3B&nb= sp=3B  =3B =3B =3B mtdparts=3Dfe000000.flash:5M(zImage)=2C22M(rootfs)=2C4896k(unused)=2C128k(l= oader)"=3B


First of all=2C linux kernel was booted from Flash=2C using a ramdisk for the flash system and a loader =2C and it worked.

Now=2C I am trying to mount JFFS2 file system but I can not. I have tried it in two different ways:


1. Mounting JFFS2 file system when =3B the kernel has already booted.
2. Changing my dts file and mounting JFFS2 automatically when kernel boots.

= bootargs =3D "console=3DttyS0 ip=3Don root=3D/dev/mtdblock1 rw =3B rootfs=3Djffs2
 =3B =3B =3B  =3B =3B =3B mtdparts=3Dfe000000.flash:5M(zImage)=2C22M(rootfs)=2C4896k(unused)=2C128k(l= oader)"=3B


 =3BI guess that the problem is related to MTD driver=2C because mtd partitions are not correctly created. I check partition file and just one o= f four partition appears
(cat =3B /proc/partitions -->=3B mtdblock= 0 just appears).

I have read in the Internet that there are other people who have had the same problem when they have updated 2.6.28 kernel to 2.6.31 kernel. Although=2C there is no answer.

I would app= reciate any kind of help.

Regards=2C

Garazi


=

=BFSabes que la Videollamada de Messenger es GRATIS =A1Desc=FAbrela! = --_68857284-e7a7-4bc4-b62d-60fe293125b7_--