9
0
Fork 0
barebox/commands
Sascha Hauer b3c1fda092 partition command: optionally do not automatically prepend the device name
We used to automatically prepend the device name before the partition
name. So when we added a partition named 'barebox' to a device named
'nor0' the partition was named 'nor0.barebox'.

The Kernel can mount its rootfs based on the mtd name, for example with
root=mtd:root. If for example we have multiple mtd devices (nor and nand)
'root' is a bad name for the partition, it should better be 'nor0.root'

This patch adds an additional commandline switch to addpart to optionally
skip the automatic device name adding. This makes it possible to define
our mtd partitions like this:

nor_parts="512k(nor0.barebox)ro,128k(nor0.bareboxenv),2M(nor0.kernel),-(nor0.root)"

This way the barebox partition names stay the same, but we can now
pass the exact name to the kernel (root=mtd:nor0.root).

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-03-18 15:03:31 +01:00
..
Kconfig Add automount support 2012-03-18 15:03:26 +01:00
Makefile Add automount support 2012-03-18 15:03:26 +01:00
automount.c Add automount support 2012-03-18 15:03:26 +01:00
bmp.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
bootm.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
cat.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
cd.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
clear.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
cp.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
crc.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
dfu.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
digest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
echo.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
edit.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
exec.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
export.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
false.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
flash.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
go.c Merge branch 'work/thumb2' into next 2012-03-06 09:39:59 +01:00
gpio.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
help.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
i2c.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
insmod.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
iomem.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
led.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
linux16.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
linux_exec.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loadb.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loadenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
loads.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
login.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
ls.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
lsmod.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
magicvar.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mem.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
meminfo.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
memtest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
menu.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mkdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
mount.c fs: drop struct mtab_entry 2012-03-17 18:16:03 +01:00
nand.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
nandtest.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
net.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
oftree.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
partition.c partition command: optionally do not automatically prepend the device name 2012-03-18 15:03:31 +01:00
passwd.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
printenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
pwd.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
readline.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
reginfo.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
reset.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
rm.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
rmdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
saveenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
setenv.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
sleep.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
test.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
time.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
timeout.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
trigger.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
true.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
ubi.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
uimage.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
umount.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
uncompress.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
usb.c usb command: by default scan only once for USB devices 2012-03-18 15:03:31 +01:00
usbserial.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
version.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
xyzModem.c xyzModem.c: fix 'dummy' is used uninitialized in this function warning 2010-12-21 10:23:41 +01:00