From: Michal Simek Date: Mon, 9 Feb 2015 13:00:16 +0000 (+0100) Subject: zynqmp: Add sata_root command X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adcb3882074b4cd157520e8019eba9f7cb804ffa;p=thirdparty%2Fu-boot.git 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 --- 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