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-0x00001d47: /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 barebox:/ adp Unknown command 'adp' - try 'help' barebox:/ addpart 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 256k(barebox)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: Alexander Aring An: christian.buettner@rafi.de Kopie: Eric Bénard , 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_parts" and create these partitions. Or maybe the command is not available? Alex Am 29. März 2012 14:32 schrieb : This is my current config: #!/bin/sh machine=test kernel_loc=nand rootfs_loc=nand rootfs_type=ubifs kernel=zImage rootfs=rootfs envimage=environ.bin autoboot_timeout=3 nfsroot="/tools/rootfs/test" console="console=ttymxc0,115200" bootargs=${console} nand_parts="256k(barebox)ro,768k(bareboxenv),4M(kernel),-(root)" kdev="/dev/nand0.kernel.bb" rootfs_mtdblock_nand=3 But i see no NAND in devinfo - - Christian Von: Eric Bénard An: barebox@lists.infradead.org Datum: 29.03.2012 14:04 Betreff: Re: Create NAND Partition through barebox Gesendet von: barebox-bounces@lists.infradead.org Hi, Le Thu, 29 Mar 2012 13:55:43 +0200, christian.buettner@rafi.de a écrit : > 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 _______________________________________________ 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