[PATCH 1/3] RDU2: add support to boot from SD card autonomosly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Ruslan V. Sushko" <ruslan.sushko@xxxxxxxx>

Signed-off-by: Ruslan Sushko <Ruslan.Sushko@xxxxxxxx>
---
 .../boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default b/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
index f391d91eba4c..e3406d554373 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
+++ b/arch/arm/boards/zii-imx6q-rdu2/defaultenv-rdu2/boot/rdu-default
@@ -2,6 +2,10 @@
 
 backlight0.brightness=0
 if [ "$bootsource" = "spi-nor" ]; then
+	echo Boot source is SPI NOR, booting SD card firmware with rootfs on SD card
+	boot mmc1
+elif [ "$bootsource" = "mmc" ] && [ "$bootsource_instance" = "1" ]; then
+	echo Boot source is SD card, booting SD card firmware with rootfs on SD card
 	boot mmc1
 else
 	detect mmc3
-- 
2.20.1


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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux