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

Michal Simek monstr at monstr.eu
Fri Sep 7 09:30:34 UTC 2018


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 <mike.looijmans at topic.nl>
> ---
>  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 0x1900000 ${bootscript}; then "\
>  		"source 0x1900000; 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180907/d5263003/attachment.sig>


More information about the U-Boot mailing list