configs/kontron_smarc_sal28: enable u-boot
PATCH v2 1/1 configs/kontron_smarc_sal28: enable u-boot
Enable building of the bootloader and integrate it into the resulting image.
---
changes since v1:
- added BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y, thanks Heiko
board/kontron/smarc-sal28/genimage.cfg | 6 ++++++ board/kontron/smarc-sal28/readme.txt | 15 +++++++++++++++ configs/kontron_smarc_sal28_defconfig | 10 ++++++++++ 3 files changed, 31 insertions(+)
board/kontron/smarc-sal28/genimage.cfg +6 -0
@@ -3,6 +3,12 @@ image sdcard-emmc.img { gpt = true } + partition u-boot { + offset = 1M + in-partition-table = "no" + image = "u-boot.rom" + } + partition rootfs { offset = 2M image = rootfs.ext4
board/kontron/smarc-sal28/readme.txt +15 -0
@@ -71,3 +71,18 @@ You will see something like this at boot time: [ 4.563565] GPT:Alternate GPT header not at the end of the disk. [ 4.569596] GPT:266272 != 7864319 [ 4.572925] GPT: Use GNU Parted to correct GPT errors. + +Updating the bootloader +======================= + +Buildroot will automatically build the u-boot bootloader. The resulting +image is called u-boot.rom and you can find it in the images/ directory. + +To update the bootloader on the board you could either copy it to an +USB thumb drive or you could put it on a TFTP server. The following +example assumes you have the bootloader image copied to the root of +a thumb drive: + + # usb start + # load usb 0:1 $loadaddr u-boot.rom + # sf probe 0 && sf update $fileaddr 0x210000 $filesize
configs/kontron_smarc_sal28_defconfig +10 -0
@@ -19,5 +19,15 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.01" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="kontron_sl28" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.rom" BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y
Signature · 1 line
2.20.1
PATCH v2 1/1 configs/kontron_smarc_sal28: enable u-boot
Hi Michael,
Am Mi., 13. Jan. 2021 um 20:09 Uhr schrieb Michael Walle <[email protected]>:
Quoted 5 lines
Enable building of the bootloader and integrate it into the resulting image.
Signed-off-by Michael Walle <[email protected]>
Quoted 72 lines
---
changes since v1:
- added BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y, thanks Heikoboard/kontron/smarc-sal28/genimage.cfg | 6 ++++++ board/kontron/smarc-sal28/readme.txt | 15 +++++++++++++++ configs/kontron_smarc_sal28_defconfig | 10 ++++++++++ 3 files changed, 31 insertions(+)board/kontron/smarc-sal28/genimage.cfg +6
-0@@ -3,6 +3,12 @@ image sdcard-emmc.img { gpt = true } + partition u-boot { + offset = 1M + in-partition-table = "no" + image = "u-boot.rom" + } + partition rootfs { offset = 2M image = rootfs.ext4board/kontron/smarc-sal28/readme.txt +15
-0@@ -71,3 +71,18 @@ You will see something like this at boot time: [ 4.563565] GPT:Alternate GPT header not at the end of the disk. [ 4.569596] GPT:266272 != 7864319 [ 4.572925] GPT: Use GNU Parted to correct GPT errors. + +Updating the bootloader +======================= + +Buildroot will automatically build the u-boot bootloader. The resulting +image is called u-boot.rom and you can find it in the images/ directory. + +To update the bootloader on the board you could either copy it to an +USB thumb drive or you could put it on a TFTP server. The following +example assumes you have the bootloader image copied to the root of +a thumb drive: + + # usb start + # load usb 0:1 $loadaddr u-boot.rom + # sf probe 0 && sf update $fileaddr 0x210000 $filesizeconfigs/kontron_smarc_sal28_defconfig +10
-1@@ -19,5 +19,15 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.01" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="kontron_sl28" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.rom" BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y --2.20.1
Signature · 1 line
Heiko
PATCH v2 1/1 configs/kontron_smarc_sal28: enable u-boot
In reply to Michael WalleMichael, All,
On 2021-01-13 20:09 +0100, Michael Walle spake thusly:
Quoted 4 lines
Enable building of the bootloader and integrate it into the resulting image.
Signed-off-by Michael Walle <[email protected]>
Both applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 76 lines
---
changes since v1:
- added BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y, thanks Heikoboard/kontron/smarc-sal28/genimage.cfg | 6 ++++++ board/kontron/smarc-sal28/readme.txt | 15 +++++++++++++++ configs/kontron_smarc_sal28_defconfig | 10 ++++++++++ 3 files changed, 31 insertions(+)board/kontron/smarc-sal28/genimage.cfg +6
-0@@ -3,6 +3,12 @@ image sdcard-emmc.img { gpt = true } + partition u-boot { + offset = 1M + in-partition-table = "no" + image = "u-boot.rom" + } + partition rootfs { offset = 2M image = rootfs.ext4board/kontron/smarc-sal28/readme.txt +15
-0@@ -71,3 +71,18 @@ You will see something like this at boot time: [ 4.563565] GPT:Alternate GPT header not at the end of the disk. [ 4.569596] GPT:266272 != 7864319 [ 4.572925] GPT: Use GNU Parted to correct GPT errors. + +Updating the bootloader +======================= + +Buildroot will automatically build the u-boot bootloader. The resulting +image is called u-boot.rom and you can find it in the images/ directory. + +To update the bootloader on the board you could either copy it to an +USB thumb drive or you could put it on a TFTP server. The following +example assumes you have the bootloader image copied to the root of +a thumb drive: + + # usb start + # load usb 0:1 $loadaddr u-boot.rom + # sf probe 0 && sf update $fileaddr 0x210000 $filesizeconfigs/kontron_smarc_sal28_defconfig +10
-0@@ -19,5 +19,15 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.01" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="kontron_sl28" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.rom" BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_UBOOT_TOOLS=ySignature · 6 lines
2.20.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'