ARM: zii-vf610-dev: fix boot from SD
PATCH v2 1/2 ARM: zii-vf610-dev: fix boot from SD
Since 5f99a8d40305 ("dts: VFxxx: Add aliases for ESDHC controllers"), the SD card slot has a consistent name across all ZII Dev platforms, including CFU1. They all use mmc1 instead of mci0 or mci1.
This allows us to completely drop the init scripts from the default ZII VF610 Dev environment, and fix the boot/sd script.
--- .../zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd | 8 ++++++-- .../defaultenv-zii-vf610-dev/init/automount-sd | 13 ------------- .../defaultenv-zii-vf610-dev/init/choose-dtb | 4 ---- 3 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/choose-dtb
arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd +6 -2
@@ -1,4 +1,8 @@ #!/bin/sh -global.bootm.image=/mnt/sd/zImage -global.bootm.oftree=/mnt/sd/${global.bootm.oftree} +detect mmc1 + +path="/mnt/mmc1.0" + +global.bootm.image="${path}/zImage" +global.bootm.oftree="${path}/vf610-zii-${global.hostname}.dtb"
arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd deleted +0 -13
@@ -1,13 +0,0 @@ -#!/bin/sh - -if [ x${global.hostname} = xdev-rev-b -o x${global.hostname} = xdev-rev-c ]; -then - global sd=0 -else - global sd=1 -fi - -mkdir -p /mnt/sd -automount /mnt/sd 'mci${global.sd}.probe=1 && mount /dev/disk${global.sd}.0 /mnt/sd' - -exit 0
arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/choose-dtb deleted +0 -4
@@ -1,4 +0,0 @@ -#!/bin/sh - -global.bootm.oftree=vf610-zii-${global.hostname}.dtb -
Signature · 7 lines
2.20.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 2/2 ARM: zii-vf610-dev: boot initrd from SD
As for tftp, make use of the initramfs if one is present on the SD card.
--- .../boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd +5 -0
@@ -6,3 +6,8 @@ path="/mnt/mmc1.0" global.bootm.image="${path}/zImage" global.bootm.oftree="${path}/vf610-zii-${global.hostname}.dtb" + +initramfs="${path}/initramfs" +if [ -f "${initramfs}" ]; then + global.bootm.initrd="$initramfs" +fi
Signature · 7 lines
2.20.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2 2/2] ARM: zii-vf610-dev: boot initrd from SD
Quoted 3 lines · Vivien Didelot
As for tftp, make use of the initramfs if one is present on the SD card.
Makes sense:
Quoted 19 lines
Signed-off-by Vivien Didelot <[email protected]>--- .../boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd +5
-1@@ -6,3 +6,8 @@ path="/mnt/mmc1.0" global.bootm.image="${path}/zImage" global.bootm.oftree="${path}/vf610-zii-${global.hostname}.dtb" + +initramfs="${path}/initramfs" +if [ -f "${initramfs}" ]; then + global.bootm.initrd="$initramfs" +fi --
Quoted 2 lines
2.20.1
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 8 lines · Vivien Didelot
Since
5f99a8d40305("dts: VFxxx: Add aliases for ESDHC controllers"), the SD card slot has a consistent name across all ZII Dev platforms, including CFU1. They all use mmc1 instead of mci0 or mci1.This allows us to completely drop the init scripts from the default ZII VF610 Dev environment, and fix the boot/sd script.
Looks good to me:
Quoted 54 lines
Signed-off-by Vivien Didelot <[email protected]>--- .../zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd | 8 ++++++-- .../defaultenv-zii-vf610-dev/init/automount-sd | 13 ------------- .../defaultenv-zii-vf610-dev/init/choose-dtb | 4 ---- 3 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/choose-dtbarch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd +6
-2@@ -1,4 +1,8 @@ #!/bin/sh -global.bootm.image=/mnt/sd/zImage -global.bootm.oftree=/mnt/sd/${global.bootm.oftree} +detect mmc1 + +path="/mnt/mmc1.0" + +global.bootm.image="${path}/zImage" +global.bootm.oftree="${path}/vf610-zii-${global.hostname}.dtb"arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd deleted +0
-13@@ -1,13 +0,0 @@ -#!/bin/sh - -if [ x${global.hostname} = xdev-rev-b -o x${global.hostname} = xdev-rev-c ]; -then - global sd=0 -else - global sd=1 -fi - -mkdir -p /mnt/sd -automount /mnt/sd 'mci${global.sd}.probe=1 && mount /dev/disk${global.sd}.0 /mnt/sd' - -exit 0arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/choose-dtb deleted +0
-5@@ -1,4 +0,0 @@ -#!/bin/sh - -global.bootm.oftree=vf610-zii-${global.hostname}.dtb - --
Quoted 2 lines
2.20.1
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Vivien Didelot
Since
5f99a8d40305("dts: VFxxx: Add aliases for ESDHC controllers"), the SD card slot has a consistent name across all ZII Dev platforms, including CFU1. They all use mmc1 instead of mci0 or mci1.This allows us to completely drop the init scripts from the default ZII VF610 Dev environment, and fix the boot/sd script.
Quoted 8 lines
Signed-off-by Vivien Didelot <[email protected]>--- .../zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd | 8 ++++++-- .../defaultenv-zii-vf610-dev/init/automount-sd | 13 ------------- .../defaultenv-zii-vf610-dev/init/choose-dtb | 4 ---- 3 files changed, 6 insertions(+), 19 deletions(-) delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/automount-sd delete mode 100644 arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/init/choose-dtb
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox