From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lpp01m010-f49.google.com ([209.85.215.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SDE9c-0005BF-Nr for barebox@lists.infradead.org; Thu, 29 Mar 2012 12:08:37 +0000 Received: by lagy4 with SMTP id y4so2950326lag.36 for ; Thu, 29 Mar 2012 05:08:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 29 Mar 2012 14:08:31 +0200 Message-ID: From: Alexander Aring List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5705816129590553913==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Create NAND Partition through barebox To: christian.buettner@rafi.de Cc: barebox@lists.infradead.org --===============5705816129590553913== Content-Type: multipart/alternative; boundary=f46d04308a28181b4804bc609529 --f46d04308a28181b4804bc609529 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, you can create NAND Partitons with nand_parts variable in /env/config. For example nand_parts=3D"256k(barebox)ro,128k(bareboxenv),3M(kernel),-(roo= t)" nand -a nand0.* only creates a bb device that will handle badblocks if they appear. Cheers Alex Am 29. M=C3=A4rz 2012 13:55 schrieb : > Hi, > > i need to create a NAND Partition through the barebox prompt to be able t= o > flash a kernel image on it. > > This is the current devinfo of my target: > > barebox:/ devinfo > devices: > `---- imx_serial0 > `---- cs0 > `---- mem0 > `---- 0x00000000-0x1fffffff: /dev/ram0 > `---- mem1 > `---- 0x00000000-0x1fffffff: /dev/ram1 > `---- imx_iim0 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank0 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank1 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank2 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank3 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank4 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank5 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank6 > `---- 0x00000000-0x0000001f: /dev/imx_iim_bank7 > `---- ramfs0 > `---- devfs0 > `---- mem2 > `---- 0x00000000-0x000018ab: /dev/defaultenv > `---- mem3 > `---- 0x00000000-0xfffffffe: /dev/mem > `---- cs1 > `---- fec_imx0 > `---- miidev0 > `---- 0x00000000-0x0000003f: /dev/phy0 > `---- eth0 > > drivers: > imx_serial > ramfs > devfs > imx_iim > fec_imx > miidev > mem > > > I tried using > $ nand -a /dev/nand0.* > > Nothing happens.. > What is wrong? > > - - Christian > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > > --f46d04308a28181b4804bc609529 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

you can create NAND Partitons with nand_parts variable in /env/c= onfig.

For example nand_parts=3D"256k(barebox)ro,128k(bareboxen= v),3M(kernel),-(root)"

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

Cheers
Alex

Am 29. M=C3=A4rz 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_serial0
=C2=A0 =C2=A0 =C2=A0`---- cs0
`---- mem0
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x1fffff= ff: /dev/ram0
`---- mem1
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x1fffff= ff: /dev/ram1
`---- imx_iim0
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank0
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank1
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank2
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank3
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank4
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank5
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank6
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000000= 1f: /dev/imx_iim_bank7
`---- ramfs0
`---- devfs0
`---- mem2
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0x000018= ab: /dev/defaultenv
`---- mem3
=C2=A0 =C2=A0 =C2=A0`---- 0x00000000-0xffffff= fe: /dev/mem
`---- cs1
`---- fec_imx0
=C2=A0 =C2=A0 =C2=A0`---- miidev0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 `---- 0x00000000-0x0000003f: /dev/phy0
=C2=A0 =C2=A0 =C2=A0`---- eth0

drivers:
imx_serial
=C2=A0 =C2=A0 =C2=A0ramfs
=C2=A0 =C2=A0 =C2=A0devfs
=C2=A0 =C2=A0imx_iim
=C2=A0 =C2=A0fec_imx
=C2=A0 =C2=A0 miidev
=C2=A0 =C2=A0 =C2=A0 =C2=A0mem


I tried using
$ nand -a /dev/nand0.*

Nothing happens..
What is wrong?

- - Christian
_____________________= __________________________
barebox mailing list
barebox@li= sts.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


--f46d04308a28181b4804bc609529-- --===============5705816129590553913== 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 --===============5705816129590553913==--