Re: [U-Boot] [PATCH 3/4] configs/topic_miami.h: Use same partitioning for USB boot as for SD

2018-09-07 Thread Michal Simek
On 24.8.2018 14:00, Mike Looijmans wrote:
> Use the same partitioning as the SD card by default. This allows to
> insert an SD card into a USB reader or use an USB drive with the same
> partitioning and boot using that instead of requiring a ramdisk image.
> 
> Signed-off-by: Mike Looijmans 
> ---
>  include/configs/topic_miami.h | 12 ++--
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/include/configs/topic_miami.h b/include/configs/topic_miami.h
> index c32c63c..6f8f2b4 100644
> --- a/include/configs/topic_miami.h
> +++ b/include/configs/topic_miami.h
> @@ -63,15 +63,15 @@
>  # endif
>  # define EXTRA_ENV_USB \
>   "usbreset=" ENV_USB_RESET "\0" \
> - "usbboot=run usbreset && if usb start; then " \
> + "usbboot=run usbreset; if usb start; then " \
>   "echo Booting from USB... && " \
>   "if load usb 0 0x190 ${bootscript}; then "\
>   "source 0x190; fi; " \
> - "load usb 0 ${kernel_addr} ${kernel_image} && " \
> - "load usb 0 ${devicetree_addr} ${devicetree_image} && " \
> - "load usb 0 ${ramdisk_load_address} ${ramdisk_image} && " \
> - "bootm ${kernel_addr} ${ramdisk_load_address} "\
> - "${devicetree_addr}; " \
> + "setenv bootargs console=ttyPS0,115200 " \
> + "root=/dev/sda2 rw rootfstype=ext4 rootwait quiet; " \
> + "load usb 0 ${kernel_addr} ${kernel_image}&& " \
> + "load usb 0 ${devicetree_addr} ${devicetree_image}&& " \
> + "bootm ${kernel_addr} - ${devicetree_addr}; " \
>   "fi\0"
>/* Note that addresses here should match the addresses in the env */
>  # undef DFU_ALT_INFO
> 

This is fine.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs




signature.asc
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 3/4] configs/topic_miami.h: Use same partitioning for USB boot as for SD

2018-08-24 Thread Mike Looijmans
Use the same partitioning as the SD card by default. This allows to
insert an SD card into a USB reader or use an USB drive with the same
partitioning and boot using that instead of requiring a ramdisk image.

Signed-off-by: Mike Looijmans 
---
 include/configs/topic_miami.h | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/configs/topic_miami.h b/include/configs/topic_miami.h
index c32c63c..6f8f2b4 100644
--- a/include/configs/topic_miami.h
+++ b/include/configs/topic_miami.h
@@ -63,15 +63,15 @@
 # endif
 # define EXTRA_ENV_USB \
"usbreset=" ENV_USB_RESET "\0" \
-   "usbboot=run usbreset && if usb start; then " \
+   "usbboot=run usbreset; if usb start; then " \
"echo Booting from USB... && " \
"if load usb 0 0x190 ${bootscript}; then "\
"source 0x190; fi; " \
-   "load usb 0 ${kernel_addr} ${kernel_image} && " \
-   "load usb 0 ${devicetree_addr} ${devicetree_image} && " \
-   "load usb 0 ${ramdisk_load_address} ${ramdisk_image} && " \
-   "bootm ${kernel_addr} ${ramdisk_load_address} "\
-   "${devicetree_addr}; " \
+   "setenv bootargs console=ttyPS0,115200 " \
+   "root=/dev/sda2 rw rootfstype=ext4 rootwait quiet; " \
+   "load usb 0 ${kernel_addr} ${kernel_image}&& " \
+   "load usb 0 ${devicetree_addr} ${devicetree_image}&& " \
+   "bootm ${kernel_addr} - ${devicetree_addr}; " \
"fi\0"
   /* Note that addresses here should match the addresses in the env */
 # undef DFU_ALT_INFO
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot