From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Fri, 7 Sep 2018 11:30:34 +0200 Subject: [U-Boot] [PATCH 3/4] configs/topic_miami.h: Use same partitioning for USB boot as for SD In-Reply-To: <1535112041-1563-4-git-send-email-mike.looijmans@topic.nl> References: <1535112041-1563-1-git-send-email-mike.looijmans@topic.nl> <1535112041-1563-4-git-send-email-mike.looijmans@topic.nl> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: