[elbe-devel] [PATCH] examples/beaglebone: Write u-boot to image

Torben Hohn torben.hohn at linutronix.de
Thu Apr 1 15:38:57 CEST 2021


On Mon, Mar 29, 2021 at 04:30:20PM +0200, bage at linutronix.de wrote:
> From: Bastian Germann <bage at linutronix.de>
> 
> Apply <image>'s <binary> element to write U-Boot including its first stage
> boot loader to the output image. The offsets are the ones listed in
> u-boot-omap's README.Debian.
> 
> Signed-off-by: Bastian Germann <bage at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  examples/armhf-ti-beaglebone-black.xml | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)
> 
> diff --git a/examples/armhf-ti-beaglebone-black.xml b/examples/armhf-ti-beaglebone-black.xml
> index 8ac4c309f..6d9d51eae 100644
> --- a/examples/armhf-ti-beaglebone-black.xml
> +++ b/examples/armhf-ti-beaglebone-black.xml
> @@ -52,6 +52,8 @@
>  				<!-- name of the image file -->
>  				<name>sdcard.img</name>
>  				<size>1500MiB</size>
> +				<binary offset="256" blocksize="512">/usr/lib/u-boot/am335x_boneblack/MLO</binary>
> +				<binary offset="768" blocksize="512">/usr/lib/u-boot/am335x_boneblack/u-boot.img</binary>
>  					<!-- partition layout -->
>  					<partition>
>  						<size>50MiB</size>
> @@ -85,10 +87,6 @@
>  			</bylabel>
>  		</fstab>
>  		<finetuning>
> -			<!-- move the 1st stage bootloader to the path where the bootrom expects it -->
> -			<cp path="/usr/lib/u-boot/am335x_boneblack/MLO">/boot/MLO</cp>
> -			<!-- move the 2nd stage bootloader to the path where the 1 stage expects it -->
> -			<cp path="/usr/lib/u-boot/am335x_boneblack/u-boot.img">/boot/u-boot.img</cp>
>  			<!-- move boot files to the path where the bootloader expects them to be -->
>  			<mv path="/usr/lib/linux-image-*-armmp/am335x-boneblack.dtb">/boot/am335x-boneblack.dtb</mv>
>  			<mv path="/boot/initrd.img-*-armmp">/boot/initrd.img-armmp</mv>
> @@ -99,7 +97,6 @@
>  			<rm>/var/cache/apt/archives/*.deb</rm>
>  			<rm>/var/cache/apt/*.bin</rm>
>  			<rm>/var/lib/apt/lists/ftp*</rm>
> -			<artifact>/usr/lib/u-boot/am335x_boneblack/MLO</artifact>
>  			<artifact>/boot/am335x-boneblack.dtb</artifact>
>  		</finetuning>
>  		<!-- generate a pbuilder environment (before image will be built) -->
> @@ -112,9 +109,6 @@
>  				<extract_partition part="1">scard1.img</extract_partition>
>  				<extract_partition part="2">scard2.img</extract_partition>
>  			</losetup>
> -			<rm_artifact>target/usr/lib/u-boot/am335x_boneblack/MLO</rm_artifact>
> -			<t2p_mv path="/usr/lib/u-boot/am335x_boneblack/MLO">MLO</t2p_mv>
> -			<artifact>MLO</artifact>
>  		</project-finetuning>
>  		<pkg-list>
>  			<pkg>u-boot-omap</pkg>
> -- 
> 2.30.2
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner


More information about the elbe-devel mailing list