Build AT91Bootstrap using Yocto for SAMA5D27-SOM-EK1 Eval Board

Moderator: nferre

dthomas
Posts: 4
Joined: Mon Oct 21, 2019 4:27 pm

Build AT91Bootstrap using Yocto for SAMA5D27-SOM-EK1 Eval Board

Fri Nov 01, 2019 5:02 pm

I have a SAMA5D27-SOM-EK1 evaluation board. I am currently building the AT91Bootstrap bootloader, U-Boot, Kernel, and Root Filesystem from source. I am also using the micro SD Memory Card (MMC1) to boot.

For the AT91Bootstrap bootloader, I used the following steps to build it:

$ git clone git://github.com/linux4sam/at91bootstrap.git
$ cd at91bootstrap/
$ make sama5d27_som1_eksd1_uboot_defconfig
$ make

For the Root Filesystem, I'm using the Yocto Project with MACHINE ??= "sama5d27-som1-ek-sd" set in the conf/local.conf file.

I would like to start using the AT91Bootstrap bootloader produced by the Yocto Project instead of building it separately (eventually I'll do the same for U-boot and the Kernel as well). Currently the Yocto Project is configuring the AT91Bootstrap bootloader with sama5d27_som1_eksd_uboot_defconfig based on how the variables are built up in the at91bootstrap.inc file:

AT91BOOTSTRAP_MACHINE ??= "${MACHINE}"
AT91BOOTSTRAP_CONFIG_sama5d27-som1-ek-sd ??= "${AT91BOOTSTRAP_MACHINE}sd_uboot"
AT91BOOTSTRAP_TARGET ??= "${AT91BOOTSTRAP_CONFIG}_defconfig"

What is the best way to change this configuration? Should I create a .bbappend file to modify the AT91BOOTSTRAP_CONFIG_sama5d27-som1-ek-sd value? Or is there a way to pass the appropriate changes to a menuconfig command?
blue_z
Location: USA
Posts: 1988
Joined: Thu Apr 19, 2007 10:15 pm

Re: Build AT91Bootstrap using Yocto for SAMA5D27-SOM-EK1 Eval Board

Mon Nov 04, 2019 10:46 pm

If you have to ask basic questions on how to use Yocto, then be sure you have reason(s) for using Yocto.
See Buildroot vs. OpenEmbedded/Yocto Project.

(I don't use Yocto, and don't have any Yocto answers.)

Regards
dthomas
Posts: 4
Joined: Mon Oct 21, 2019 4:27 pm

Re: Build AT91Bootstrap using Yocto for SAMA5D27-SOM-EK1 Eval Board

Tue Nov 05, 2019 6:50 pm

The "Build From source code" (https://www.linux4sam.org/bin/view/Linu ... ource_code) instructions use Yocto to build the rootfs. I also do not have any experience with Buildroot, but I have some experience with Yocto from several years ago. That's why I went with Yocto.

No worries, I just need to refresh my memory.
methos
Posts: 9
Joined: Fri Jan 04, 2019 5:37 pm

Re: Build AT91Bootstrap using Yocto for SAMA5D27-SOM-EK1 Eval Board

Sat Nov 16, 2019 12:26 am

Your best bet is to create a bbappend and create patches. Changes in menuconfig will not be persistent across different machines.

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 2 guests