[yocto] How to load into u-boot binary (srec) file

Khem Raj raj.khem at gmail.com
Tue Jul 9 20:10:30 PDT 2019


On Mon, Jul 8, 2019 at 9:27 AM Szabolcs Báder <sb at baader.hu> wrote:

> Hello,
>
> I created this code:
>
> ```
> # u-boot standalone hello-world.c test image
> require recipes-core/images/core-image-base.bb
>
> COMPATIBLE_MACHINE = "^rpi$"
>
> ENABLE_UART="1"
> RPI_USE_U_BOOT="1"
>
> # maybe works??
> CONFIG_STANDALONE_LOAD_ADDR="0x10000000"
>
> DEPENDS = "u-boot-mkimage-native"
>
> SUMMARY="Helloworld"
> DESCRIPTION="Helloworld"
> LICENSE="CLOSED"
> # LIC_FILES_CHCKSUM = "file://COPYING;md5=1fec1f350300594d23a1d03379c0c989"
>
> SRC_URI += "file://hello_world.c"
> HELLO ?= "hello_world.c"
> do_compile() {
> mkimage -A arm -O linux -T standalone -C none -a ${LOAD_ADDR} -e 0 \
> -n "standalone example script" \
> -d ${WORKDIR}/${HELLO} ${B}/helloworld.srec
> }
>
> inherit deploy
>
> do_deploy() {
> install -d ${DEPLOYDIR}
> install -m 0644 ${B}/helloworld.srec ${DEPLOYDIR}/
> }
>
> addtask do_deploy after do_compile before do_build
> ```
>
> I get errors, because I think.. the mkimage part.. isn't working..
> somebody could help me, how to solve this?
>
> Regards,
> Szabolcs
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190709/1fdd01e1/attachment-0001.html>


More information about the yocto mailing list