From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.rafi.de ([178.15.151.13]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SDEFt-0005aW-Iy for barebox@lists.infradead.org; Thu, 29 Mar 2012 12:15:07 +0000 In-Reply-To: References: MIME-Version: 1.0 Message-ID: From: christian.buettner@rafi.de Date: Thu, 29 Mar 2012 14:15:03 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5883862942631263281==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Antwort: Re: Create NAND Partition through barebox To: Alexander Aring Cc: barebox@lists.infradead.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============5883862942631263281== Content-Type: multipart/alternative; boundary="=_alternative 00434A06C12579D0_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 00434A06C12579D0_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable I see! I have an entry in the env/config: nand=5Fparts=3D"256k(barebox)ro,768k(bareboxenv),4M(kernel),128M(root)" The Problem might be, that the NAND Flash size is only 128M. I took the script from another platform.. - - Christian Von: Alexander Aring An: christian.buettner@rafi.de Kopie: barebox@lists.infradead.org Datum: 29.03.2012 14:08 Betreff: Re: Create NAND Partition through barebox Hi, you can create NAND Partitons with nand=5Fparts variable in /env/config. For example=20 nand=5Fparts=3D"256k(barebox)ro,128k(bareboxenv),3M(kernel),-(root)" nand -a nand0.* only creates a bb device that will handle badblocks if=20 they appear. Cheers Alex Am 29. M=E4rz 2012 13:55 schrieb : Hi,=20 i need to create a NAND Partition through the barebox prompt to be able to = flash a kernel image on it.=20 This is the current devinfo of my target:=20 barebox:/ devinfo=20 devices:=20 `---- imx=5Fserial0=20 `---- cs0=20 `---- mem0=20 `---- 0x00000000-0x1fffffff: /dev/ram0=20 `---- mem1=20 `---- 0x00000000-0x1fffffff: /dev/ram1=20 `---- imx=5Fiim0=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank0=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank1=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank2=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank3=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank4=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank5=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank6=20 `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank7=20 `---- ramfs0=20 `---- devfs0=20 `---- mem2=20 `---- 0x00000000-0x000018ab: /dev/defaultenv=20 `---- mem3=20 `---- 0x00000000-0xfffffffe: /dev/mem=20 `---- cs1=20 `---- fec=5Fimx0=20 `---- miidev0=20 `---- 0x00000000-0x0000003f: /dev/phy0=20 `---- eth0=20 drivers:=20 imx=5Fserial=20 ramfs=20 devfs=20 imx=5Fiim=20 fec=5Fimx=20 miidev=20 mem=20 I tried using=20 $ nand -a /dev/nand0.*=20 Nothing happens..=20 What is wrong?=20 - - Christian =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --=_alternative 00434A06C12579D0_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable I see!
I have an entry in the env/config:
nand=5Fparts=3D"256k(barebox)ro= ,768k(bareboxenv),4M(kernel),128M(root)"

The Problem might be, that the NAND Flash size is only 128M.
I took the script from another platf= orm..

 - - Christian



Von:     &= nbsp;  Alexander Aring <alex.ar= ing@googlemail.com>
An:     &n= bsp;  christian.buettner@rafi.de<= /font>
Kopie:    =    barebox@lists.infradead.org=
Datum:    =    29.03.2012 14:08
Betreff:   &nbs= p;    Re: Create NAND Partition through barebox




Hi,

you can create NAND Partitons with nand=5Fparts variable in /env/config.

For example nand=5Fparts=3D"256k(barebox)ro,128k(bareboxenv),3M(kernel= ),-(root)"

nand -a nand0.* only creates a bb device that will handle badblocks if they appear.

Cheers
Alex

Am 29. M=E4rz 2012 13:55 schrieb <christian.buettner@rafi.de>:
Hi,

i need to create a NAND Partition through the barebox prompt to be able to flash a kernel image on it.


This is the current devinfo of my target:


barebox:/ devinfo
devices:
`---- imx=5Fserial0
     `---- cs0

`---- mem0
=
     `---- 0x00000000-0x1fffffff: /dev/ram0

`---- mem1
=
     `---- 0x00000000-0x1fffffff: /dev/ram1

`---- imx=5Fiim0

     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank0
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank1
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank2
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank3
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank4
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank5
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank6
     `---- 0x00000000-0x0000001f: /dev/imx=5Fiim=5Fbank7
`---- ramfs0

`---- devfs0

`---- mem2
=
     `---- 0x00000000-0x000018ab: /dev/defaultenv

`---- mem3
=
     `---- 0x00000000-0xfffffffe: /dev/mem

`---- cs1
<= br> `---- fec=5Fimx0
     `---- miidev0

          `---- 0x00000000-0x0000003f: /dev/phy0
     `---- eth0


drivers:
imx=5Fserial
     ramfs

     devfs

   imx=5Fiim

   fec=5Fimx

    miidev

       mem



I tried using

$ nand -a /dev/nand0.*


Nothing happens..

What is wrong?


- - Christian

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
barebox mailing list

<= font size=3D3 color=3Dblue>barebox@lists.infradead.org

http://lists.infradead.org/m= ailman/listinfo/barebox


--=_alternative 00434A06C12579D0_=-- --===============5883862942631263281== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============5883862942631263281==--