mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: zii-vf610-dev: boot initrd from SD
@ 2019-01-19  0:51 Vivien Didelot
  0 siblings, 0 replies; only message in thread
From: Vivien Didelot @ 2019-01-19  0:51 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov, Vivien Didelot

As for tftp, make use of the initramfs if one is present on the SD card.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
---
 .../boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd b/arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd
index cf8eec363..e9b087257 100644
--- a/arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd
+++ b/arch/arm/boards/zii-vf610-dev/defaultenv-zii-vf610-dev/boot/sd
@@ -2,3 +2,8 @@
 
 global.bootm.image=/mnt/sd/zImage
 global.bootm.oftree=/mnt/sd/${global.bootm.oftree}
+
+initramfs="/mnt/sd/initramfs"
+if [ -f "${initramfs}" ]; then
+	global.bootm.initrd="$initramfs"
+fi
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-19  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-19  0:51 [PATCH] ARM: zii-vf610-dev: boot initrd from SD Vivien Didelot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox