* partitions
@ 2011-02-28 8:36 Vanalme Filip
2011-02-28 8:47 ` partitions Baruch Siach
2011-02-28 8:57 ` partitions Juergen Beisert
0 siblings, 2 replies; 5+ messages in thread
From: Vanalme Filip @ 2011-02-28 8:36 UTC (permalink / raw)
To: barebox
I'm not that familiar with partitions in Barebox. On my i.MX27 board, I now have :
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
barebox:/
and :
barebox:/ ls -l /dev
cr-------- 4294967295 zero
crw------- 6125 defaultenv
crw------- 4294967295 mem
crw------- 256 pmic
crw------- 134217728 ram0
crw------- 268435456 nand0
cr-------- 8388608 nand_oob0
crw------- 32 phy0
crw------- 262144 self_raw
crw------- 262144 self0
crw------- 131072 env_raw
crw------- 131072 env0
crw------- 262144 nand0.barebox
crw------- 131072 nand0.bareboxenv
crw------- 2097152 nand0.kernel
crw------- 265945088 nand0.root
barebox:/
I think this looks OK.
However, I expected this to work (I took this from descriptions on the Internet...) :
barebox:/ erase /dev/nand0.kernel.bb
stat /dev/nand0.kernel.bb: No such file or directory
barebox:/
and
barebox:/ tftp zImage /dev/nand0.kernel.bb
open: Read-only file system
barebox:/
Is there any documentation that handles/describes this ? (e.g. what's the extension .bb ?)
Filip
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partitions
2011-02-28 8:36 partitions Vanalme Filip
@ 2011-02-28 8:47 ` Baruch Siach
2011-02-28 8:57 ` partitions Vanalme Filip
2011-02-28 8:57 ` partitions Juergen Beisert
1 sibling, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2011-02-28 8:47 UTC (permalink / raw)
To: Vanalme Filip; +Cc: barebox
HI Vanalme,
On Mon, Feb 28, 2011 at 09:36:14AM +0100, Vanalme Filip wrote:
> barebox:/ erase /dev/nand0.kernel.bb
> stat /dev/nand0.kernel.bb: No such file or directory
> barebox:/
>
> and
>
> barebox:/ tftp zImage /dev/nand0.kernel.bb
> open: Read-only file system
> barebox:/
>
>
> Is there any documentation that handles/describes this ? (e.g. what's the extension .bb ?)
The .bb extension means a bad block aware partition. Use the 'nand -a' command
to create one from a raw NAND partition, e.g. 'nand -a /dev/nand0.kernel'.
baruch
--
~. .~ 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] 5+ messages in thread
* RE: partitions
2011-02-28 8:47 ` partitions Baruch Siach
@ 2011-02-28 8:57 ` Vanalme Filip
2011-02-28 15:05 ` partitions Vanalme Filip
0 siblings, 1 reply; 5+ messages in thread
From: Vanalme Filip @ 2011-02-28 8:57 UTC (permalink / raw)
To: Baruch Siach; +Cc: barebox
> -----Original Message-----
> From: Baruch Siach [mailto:baruch@tkos.co.il]
> Sent: maandag 28 februari 2011 9:48
> To: Vanalme Filip
> Cc: barebox@lists.infradead.org
> Subject: Re: partitions
>
> HI Vanalme,
>
> On Mon, Feb 28, 2011 at 09:36:14AM +0100, Vanalme Filip wrote:
> > barebox:/ erase /dev/nand0.kernel.bb
> > stat /dev/nand0.kernel.bb: No such file or directory
> > barebox:/
> >
> > and
> >
> > barebox:/ tftp zImage /dev/nand0.kernel.bb
> > open: Read-only file system
> > barebox:/
> >
> >
> > Is there any documentation that handles/describes this ? (e.g. what's the
> extension .bb ?)
>
> The .bb extension means a bad block aware partition. Use the 'nand -a' command
> to create one from a raw NAND partition, e.g. 'nand -a /dev/nand0.kernel'.
>
> baruch
[Filip] Thanks !
>
> --
> ~. .~ 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] 5+ messages in thread
* Re: partitions
2011-02-28 8:36 partitions Vanalme Filip
2011-02-28 8:47 ` partitions Baruch Siach
@ 2011-02-28 8:57 ` Juergen Beisert
1 sibling, 0 replies; 5+ messages in thread
From: Juergen Beisert @ 2011-02-28 8:57 UTC (permalink / raw)
To: barebox
Vanalme Filip wrote:
> I'm not that familiar with partitions in Barebox. On my i.MX27 board, I now
> have :
>
> 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
> barebox:/
>
> and :
>
> barebox:/ ls -l /dev
> cr-------- 4294967295 zero
> crw------- 6125 defaultenv
> crw------- 4294967295 mem
> crw------- 256 pmic
> crw------- 134217728 ram0
> crw------- 268435456 nand0
> cr-------- 8388608 nand_oob0
> crw------- 32 phy0
> crw------- 262144 self_raw
> crw------- 262144 self0
> crw------- 131072 env_raw
> crw------- 131072 env0
> crw------- 262144 nand0.barebox
> crw------- 131072 nand0.bareboxenv
> crw------- 2097152 nand0.kernel
> crw------- 265945088 nand0.root
> barebox:/
>
> I think this looks OK.
> However, I expected this to work (I took this from descriptions on the
> Internet...) :
>
> barebox:/ erase /dev/nand0.kernel.bb
> stat /dev/nand0.kernel.bb: No such file or directory
> barebox:/
>
> and
>
> barebox:/ tftp zImage /dev/nand0.kernel.bb
> open: Read-only file system
> barebox:/
>
>
> Is there any documentation that handles/describes this ? (e.g. what's the
> extension .bb ?)
'bb' means "Bad Block", and defines a layer that is bad block aware, and can
handle it in a correct manner.
Add "CONFIG_GLOB=y" to make a script work, that add the *.bb names to all
existing nand partitions.
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: partitions
2011-02-28 8:57 ` partitions Vanalme Filip
@ 2011-02-28 15:05 ` Vanalme Filip
0 siblings, 0 replies; 5+ messages in thread
From: Vanalme Filip @ 2011-02-28 15:05 UTC (permalink / raw)
To: Vanalme Filip, Baruch Siach; +Cc: barebox
> -----Original Message-----
> From: barebox-bounces@lists.infradead.org [mailto:barebox-
> bounces@lists.infradead.org] On Behalf Of Vanalme Filip
> Sent: maandag 28 februari 2011 9:57
> To: Baruch Siach
> Cc: barebox@lists.infradead.org
> Subject: RE: partitions
>
> > -----Original Message-----
> > From: Baruch Siach [mailto:baruch@tkos.co.il]
> > Sent: maandag 28 februari 2011 9:48
> > To: Vanalme Filip
> > Cc: barebox@lists.infradead.org
> > Subject: Re: partitions
> >
> > HI Vanalme,
> >
> > On Mon, Feb 28, 2011 at 09:36:14AM +0100, Vanalme Filip wrote:
> > > barebox:/ erase /dev/nand0.kernel.bb
> > > stat /dev/nand0.kernel.bb: No such file or directory
> > > barebox:/
> > >
> > > and
> > >
> > > barebox:/ tftp zImage /dev/nand0.kernel.bb
> > > open: Read-only file system
> > > barebox:/
> > >
> > >
> > > Is there any documentation that handles/describes this ? (e.g. what's the
> > extension .bb ?)
> >
> > The .bb extension means a bad block aware partition. Use the 'nand -a'
> command
> > to create one from a raw NAND partition, e.g. 'nand -a /dev/nand0.kernel'.
> >
> > baruch
>
> [Filip] Thanks !
>
[Filip] Shouldn't I have automatically /dev/mtdblock* devices, e.g. /dev/mtdblock7 for rootfs nand partition ?
>
> >
> > --
> > ~. .~ 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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-28 15:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 8:36 partitions Vanalme Filip
2011-02-28 8:47 ` partitions Baruch Siach
2011-02-28 8:57 ` partitions Vanalme Filip
2011-02-28 15:05 ` partitions Vanalme Filip
2011-02-28 8:57 ` partitions Juergen Beisert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox