<font size=2 face="sans-serif">devinfo </font>
<br><font size=2 face="sans-serif">devices:</font>
<br><font size=2 face="sans-serif">`---- imx_serial0</font>
<br><font size=2 face="sans-serif"> `---- cs0</font>
<br><font size=2 face="sans-serif">`---- mem0</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x1fffffff:
/dev/ram0</font>
<br><font size=2 face="sans-serif">`---- mem1</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x1fffffff:
/dev/ram1</font>
<br><font size=2 face="sans-serif">`---- imx_iim0</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank0</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank1</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank2</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank3</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank4</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank5</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank6</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x0000001f:
/dev/imx_iim_bank7</font>
<br><font size=2 face="sans-serif">`---- ramfs0</font>
<br><font size=2 face="sans-serif">`---- devfs0</font>
<br><font size=2 face="sans-serif">`---- mem2</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0x00001d47:
/dev/defaultenv</font>
<br><font size=2 face="sans-serif">`---- mem3</font>
<br><font size=2 face="sans-serif"> `---- 0x00000000-0xfffffffe:
/dev/mem</font>
<br><font size=2 face="sans-serif">`---- cs1</font>
<br><font size=2 face="sans-serif">`---- fec_imx0</font>
<br><font size=2 face="sans-serif"> `---- miidev0</font>
<br><font size=2 face="sans-serif"> `----
0x00000000-0x0000003f: /dev/phy0</font>
<br><font size=2 face="sans-serif"> `---- eth0</font>
<br>
<br><font size=2 face="sans-serif">drivers:</font>
<br><font size=2 face="sans-serif">imx_serial</font>
<br><font size=2 face="sans-serif"> ramfs</font>
<br><font size=2 face="sans-serif"> devfs</font>
<br><font size=2 face="sans-serif"> imx_iim</font>
<br><font size=2 face="sans-serif"> fec_imx</font>
<br><font size=2 face="sans-serif"> miidev</font>
<br><font size=2 face="sans-serif"> mem</font>
<br><font size=2 face="sans-serif">barebox:/ adp</font>
<br><font size=2 face="sans-serif">Unknown command 'adp' - try 'help'</font>
<br><font size=2 face="sans-serif">barebox:/ addpart </font>
<br><font size=2 face="sans-serif">Usage: addpart <device> <part_desc></font>
<br><font size=2 face="sans-serif">Add a partition description to a device.</font>
<br><font size=2 face="sans-serif"><device>
device being worked on</font>
<br><font size=2 face="sans-serif"><part_desc> size1[@offset1](name1)[ro],size2[@offset2](name2)[ro],...</font>
<br>
<br><font size=2 face="sans-serif">barebox:/ addpart /dev/nand0 256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root)</font>
<br><font size=2 face="sans-serif">addpart: No such file or directory</font>
<br><font size=2 face="sans-serif">barebox:/ </font>
<br>
<br><font size=2 face="sans-serif">I have an addpart tool as you can see
but i cannot create a partition. In the /dev folder is also no /dev/nand0</font>
<br>
<br><font size=2 face="sans-serif">- - Christian</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">Alexander Aring <alex.aring@googlemail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">christian.buettner@rafi.de</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie:
</font><font size=1 face="sans-serif">Eric Bénard <eric@eukrea.com>,
barebox@lists.infradead.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">29.03.2012 14:40</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">Re: Re: Create
NAND Partition through barebox</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3><br>
Hi,<br>
<br>
is there a /dev/nand0 device?<br>
<br>
/env/bin/init call "addpart /dev/nand0 $nand_parts" and create
these partitions.<br>
Or maybe the command is not available?<br>
<br>
Alex<br>
</font>
<br><font size=3>Am 29. März 2012 14:32 schrieb <</font><a href=mailto:christian.buettner@rafi.de><font size=3 color=blue><u>christian.buettner@rafi.de</u></font></a><font size=3>>:</font>
<br><font size=3 face="sans-serif">This is my current config:</font><font size=3>
<br>
</font><font size=3 face="sans-serif"><br>
#!/bin/sh</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
machine=test</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
kernel_loc=nand</font><font size=3> </font><font size=3 face="sans-serif"><br>
rootfs_loc=nand</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
rootfs_type=ubifs</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
kernel=zImage</font><font size=3> </font><font size=3 face="sans-serif"><br>
rootfs=rootfs</font><font size=3> </font><font size=3 face="sans-serif"><br>
envimage=environ.bin</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
autoboot_timeout=3</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
nfsroot="/tools/rootfs/test"</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
console="console=ttymxc0,115200"</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
bootargs=${console}</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
nand_parts="256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root)"</font><font size=3>
</font><font size=3 face="sans-serif"><br>
kdev="/dev/</font><a href=http://nand0.kernel.bb/ target=_blank><font size=3 color=blue face="sans-serif"><u>nand0.kernel.bb</u></font></a><font size=3 face="sans-serif">"</font><font size=3>
</font><font size=3 face="sans-serif"><br>
rootfs_mtdblock_nand=3</font><font size=3> <br>
<br>
<br>
</font><font size=3 face="sans-serif"><br>
But i see no NAND in devinfo</font><font size=3> <br>
</font><font size=3 face="sans-serif"><br>
- - Christian</font><font size=3> <br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Von: </font><font size=1 face="sans-serif">Eric
Bénard <</font><a href=mailto:eric@eukrea.com target=_blank><font size=1 color=blue face="sans-serif"><u>eric@eukrea.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
An: </font><a href=mailto:barebox@lists.infradead.org target=_blank><font size=1 color=blue face="sans-serif"><u>barebox@lists.infradead.org</u></font></a><font size=3>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
Datum: </font><font size=1 face="sans-serif">29.03.2012
14:04</font><font size=3> </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">Re: Create NAND Partition
through barebox</font><font size=3> </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:
</font><a href="mailto:barebox-bounces@lists.infradead.org" target=_blank><font size=1 color=blue face="sans-serif"><u>barebox-bounces@lists.infradead.org</u></font></a><font size=3>
<br>
</font>
<hr noshade>
<br><font size=3><br>
<br>
</font><tt><font size=3><br>
Hi,<br>
<br>
Le Thu, 29 Mar 2012 13:55:43 +0200,</font></tt><tt><font size=3 color=blue><u><br>
</u></font></tt><a href=mailto:christian.buettner@rafi.de target=_blank><tt><font size=3 color=blue><u>christian.buettner@rafi.de</u></font></tt></a><tt><font size=3>
a écrit :<br>
> i need to create a NAND Partition through the barebox prompt to be
able to <br>
> flash a kernel image on it.<br>
> <br>
>.../...<br>
> <br>
> I tried using<br>
> $ nand -a /dev/nand0.*<br>
> <br>
> Nothing happens..<br>
> What is wrong?<br>
> <br>
do you have the partition definition in your /env/config file ?<br>
<br>
Eric<br>
<br>
_______________________________________________<br>
barebox mailing list</font></tt><tt><font size=3 color=blue><u><br>
</u></font></tt><a href=mailto:barebox@lists.infradead.org target=_blank><tt><font size=3 color=blue><u>barebox@lists.infradead.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href=http://lists.infradead.org/mailman/listinfo/barebox target=_blank><tt><font size=3 color=blue><u>http://lists.infradead.org/mailman/listinfo/barebox</u></font></tt></a><font size=3><br>
</font>
<br><font size=3><br>
_______________________________________________<br>
barebox mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:barebox@lists.infradead.org><font size=3 color=blue><u>barebox@lists.infradead.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://lists.infradead.org/mailman/listinfo/barebox target=_blank><font size=3 color=blue><u>http://lists.infradead.org/mailman/listinfo/barebox</u></font></a><font size=3><br>
</font>
<br>
<br>