From: Mike Looijmans Date: Fri, 24 Aug 2018 14:00:40 +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-1-git-send-email-mike.looijmans@topic.nl> References: <1535112041-1563-1-git-send-email-mike.looijmans@topic.nl> Message-ID: <1535112041-1563-4-git-send-email-mike.looijmans@topic.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -- 1.9.1