]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Add sata_root command
authorMichal Simek <michal.simek@xilinx.com>
Mon, 9 Feb 2015 13:00:16 +0000 (14:00 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Mar 2015 13:11:32 +0000 (14:11 +0100)
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 <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index df24e8a6aa597525be83532abc956e4fbceee0b0..e74f70e301a7ea867d069294019871e8703eeff3 100644 (file)
        "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> && " \
 
 #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