From adcb3882074b4cd157520e8019eba9f7cb804ffa Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 9 Feb 2015 14:00:16 +0100 Subject: [PATCH] zynqmp: Add sata_root command For setting up rootfs to sata please make sure that cpio image is not used. Command line is setup automatically. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index df24e8a6aa5..e74f70e301a 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -132,6 +132,7 @@ "initrd_size=0x2000000\0" \ "fdt_addr=0x7000000\0" \ "fdt_high=0x10000000\0" \ + "sata_root=if test $scsidevs -gt 0; then setenv bootargs \$bootargs root=/dev/sda rw rootfstype=ext4; fi\0" \ "veloce=fdt addr $fdt_addr && " \ "fdt set /amba/misc_clk clock-frequency <96000> && "\ "fdt set /amba_apu/timer clock-frequency <480000> && " \ @@ -151,7 +152,7 @@ #define CONFIG_BOOTARGS "setenv bootargs console=ttyPS0,${baudrate} " \ "earlycon=cdns,mmio,0xff000000,${baudrate}n8" -#define CONFIG_PREBOOT "run bootargs" +#define CONFIG_PREBOOT "run bootargs; run sata_root" #define CONFIG_BOOTCOMMAND "run $modeboot" #define CONFIG_BOOTDELAY 5 -- 2.47.3