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 1SDEwY-0006gU-IZ for barebox@lists.infradead.org; Thu, 29 Mar 2012 12:59:12 +0000 In-Reply-To: References: <20120329140303.71c94361@eb-e6520> MIME-Version: 1.0 Message-ID: From: christian.buettner@rafi.de Date: Thu, 29 Mar 2012 14:59:07 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0298045919839141865==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Antwort: Re: Re: Create NAND Partition through barebox To: Alexander Aring Cc: barebox@lists.infradead.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============0298045919839141865== Content-Type: multipart/alternative; boundary="=_alternative 004752BFC12579D0_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 004752BFC12579D0_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable devinfo=20 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-0x00001d47: /dev/defaultenv `---- mem3 `---- 0x00000000-0xfffffffe: /dev/mem `---- cs1 `---- fec=5Fimx0 `---- miidev0 `---- 0x00000000-0x0000003f: /dev/phy0 `---- eth0 drivers: imx=5Fserial ramfs devfs imx=5Fiim fec=5Fimx miidev mem barebox:/ adp Unknown command 'adp' - try 'help' barebox:/ addpart=20 Usage: addpart Add a partition description to a device. device being worked on size1[@offset1](name1)[ro],size2[@offset2](name2)[ro],... barebox:/ addpart /dev/nand0=20 256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root) addpart: No such file or directory barebox:/=20 I have an addpart tool as you can see but i cannot create a partition. In=20 the /dev folder is also no /dev/nand0 - - Christian Von: Alexander Aring An: christian.buettner@rafi.de Kopie: Eric B=E9nard , barebox@lists.infradead.org Datum: 29.03.2012 14:40 Betreff: Re: Re: Create NAND Partition through barebox Hi, is there a /dev/nand0 device? /env/bin/init call "addpart /dev/nand0 $nand=5Fparts" and create these=20 partitions. Or maybe the command is not available? Alex Am 29. M=E4rz 2012 14:32 schrieb : This is my current config:=20 #!/bin/sh=20 machine=3Dtest=20 kernel=5Floc=3Dnand=20 rootfs=5Floc=3Dnand=20 rootfs=5Ftype=3Dubifs=20 kernel=3DzImage=20 rootfs=3Drootfs=20 envimage=3Denviron.bin=20 autoboot=5Ftimeout=3D3=20 nfsroot=3D"/tools/rootfs/test"=20 console=3D"console=3Dttymxc0,115200"=20 bootargs=3D${console}=20 nand=5Fparts=3D"256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root)"=20 kdev=3D"/dev/nand0.kernel.bb"=20 rootfs=5Fmtdblock=5Fnand=3D3=20 But i see no NAND in devinfo=20 - - Christian=20 Von: Eric B=E9nard =20 An: barebox@lists.infradead.org=20 Datum: 29.03.2012 14:04=20 Betreff: Re: Create NAND Partition through barebox=20 Gesendet von: barebox-bounces@lists.infradead.org=20 Hi, Le Thu, 29 Mar 2012 13:55:43 +0200, christian.buettner@rafi.de a =E9crit : > i need to create a NAND Partition through the barebox prompt to be able=20 to=20 > flash a kernel image on it. >=20 >.../... >=20 > I tried using > $ nand -a /dev/nand0.* >=20 > Nothing happens.. > What is wrong? >=20 do you have the partition definition in your /env/config file ? Eric =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 =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 004752BFC12579D0_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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= -0x00001d47: /dev/defaultenv
`---- mem3
     `---- 0x00000000= -0xfffffffe: /dev/mem
`---- cs1
`---- fec=5Fimx0
     `---- miidev0
          `= ---- 0x00000000-0x0000003f: /dev/phy0
     `---- eth0

drivers:
imx=5Fserial
     ramfs
     devfs
   imx=5Fiim
   fec=5Fimx
    miidev
       mem
barebox:/ adp
Unknown command 'adp' - try 'help'
barebox:/ addpart
Usage: addpart <device> <pa= rt=5Fdesc>
Add a partition description to a dev= ice.
<device>        device being worked on
<part=5Fdesc>     si= ze1[@offset1](name1)[ro],size2[@offset2](name2)[ro],...

barebox:/ addpart /dev/nand0 256k(ba= rebox)ro,768k(bareboxenv),4M(kernel),-(root)
addpart: No such file or directory
barebox:/

I have an addpart tool as you can see but i cannot create a partition. In the /dev folder is also no /dev/nand0

- - Christian



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





Hi,

is there a /dev/nand0 device?

/env/bin/init call "addpart /dev/nand0 $nand=5Fparts" and create these partitions.
Or maybe the command is not available?

Alex

Am 29. M=E4rz 2012 14:32 schrieb <christian.bu= ettner@rafi.de>:
This is my current config:

#!/bin/sh


machine=3Dtest


kernel=5Floc=3Dnand

rootfs=5Floc=3Dnand


rootfs=5Ftype=3Dubifs


kernel=3DzImage

rootfs=3Drootfs

envimage=3Denviron.bin


autoboot=5Ftimeout=3D3


nfsroot=3D"/tools/rootfs/test"


console=3D"console=3Dttymxc0,115200"


bootargs=3D${console}


nand=5Fparts=3D"256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root)&qu= ot;

kdev=3D"/dev/
nand0.kernel.bb"
rootfs=5Fmtdblock=5Fnand=3D3




But i see no NAND in devinfo


- - Christian




Von:        
E= ric B=E9nard <eric@eukrea.com
>
An:        
<= u>barebox@lists.infradead.org
Datum:        
29.03.2012 14:04
Betreff:   &nbs= p;    Re: Create NAND Part= ition through barebox
Gesendet von:  =      barebo= x-bounces@lists.infradead.org





Hi,

Le Thu, 29 Mar 2012 13:55:43 +0200,

christian.buettner@rafi.de= a =E9crit :
> i need to create a NAND Partition through the barebox prompt to be able to
> flash a kernel image on it.
>
>.../...
>
> I tried using
> $ nand -a /dev/nand0.*
>
> Nothing happens..
> What is wrong?
>
do you have the partition definition in your /env/config file ?

Eric

=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.o= rg/mailman/listinfo/barebox


=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/m= ailman/listinfo/barebox


--=_alternative 004752BFC12579D0_=-- --===============0298045919839141865== 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 --===============0298045919839141865==--