[yocto] How to load into u-boot binary (srec) file
Szabolcs Báder
sb at baader.hu
Mon Jul 8 09:17:38 PDT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190708/45e307f9/attachment.html>
More information about the yocto
mailing list