-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpi-cmdline, rpi-u-boot-src: Enable to support USB boot
Raspberry Pi 4 board can boot the image from USB memory. But, current meta-raspberrypi supports only SD boot. This commit supports to switch SD boot and USB boot parameter. If user want to use USB boot, please add ENABLE_USBBOOT valirable in your conf/local.conf file. ENABLE_USBBOOT="1" Signed-off-by: Harunobu Kurokawa <[email protected]>
- Loading branch information
1 parent
bf948e0
commit 50909af
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs | ||
fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ | ||
if test ! -e mmc 0:1 uboot.env; then saveenv; fi; | ||
fatload @@BOOT_DEVTYPE@@ 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ | ||
if test ! -e @@BOOT_DEVTYPE@@ 0:1 uboot.env; then saveenv; fi; | ||
@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters