menschel-d / meta-barebox Goto Github PK
View Code? Open in Web Editor NEWYocto/OpenEmbedded software layer for the barebox bootloader.
License: MIT License
Yocto/OpenEmbedded software layer for the barebox bootloader.
License: MIT License
scarthgap
which is Yocto 5.0 is released. Am not sure if there is a way to open a PR with new branch creation in github.
@menschel-d Is it possible to branch scarthgap
based on current master
?
As of Yocto version 2.4 (rocko branch), barebox-utils
fails to build.
The linker complains about undefined references to xzalloc
and xmalloc
.
There are two places in the barebox source code where these functions are defined:
scripts/compiler.h
(inline definition)lib/xfuncs.c
(definition) and include/xfuncs.h
(declaration)Below follows the log message of the do_compile
task when trying to build barebox-utils
for the beaglebone
reference target of the meta-yocto-bsp
layer:
DEBUG: Executing shell function do_compile
NOTE: make -C <YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git KBUILD_OUTPUT=<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/build CROSS_COMPILE=arm-poky-linux-gnueabi- ARCH=arm -j 4 all
make: Entering directory '<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git'
GEN <YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/build/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Generating include/generated/mach-types.h
GEN <YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/build/Makefile
CHK include/generated/version.h
UPD include/generated/version.h
CHK include/generated/utsrelease.h
CREATE include/config.h
UPD include/generated/utsrelease.h
Using <YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git as source for kernel
CC arch/arm/lib/asm-offsets.s
CC scripts/mod/empty.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/bin2c
GEN include/generated/asm-offsets.h
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/mkimage
HOSTCC scripts/dtc/fstree.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/fix_size
HOSTCC scripts/bareboxenv
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/bareboxcrc32
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
HOSTLD scripts/mod/modpost
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/fdt.o
HOSTCC scripts/dtc/fdtget.o
HOSTCC scripts/dtc/fdt_ro.o
HOSTCC scripts/kernel-install
HOSTCC scripts/dtc/fdt_strerror.o
HOSTCC scripts/dtc/fdt_wip.o
HOSTCC scripts/dtc/fdt_empty_tree.o
HOSTCC scripts/dtc/fdt_rw.o
HOSTCC scripts/dtc/fdt_sw.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/bareboximd
HOSTLD scripts/dtc/fdtget
HOSTCC scripts/kallsyms
HOSTCC scripts/omap_signGP
HOSTLD scripts/dtc/dtc
HOSTCC scripts/mk-omap-image
CC scripts/bareboxenv-target
CC scripts/kernel-install-target
CC scripts/bareboxcrc32-target
CC scripts/bareboximd-target
/tmp/ccescOu6.o: In function `file_crc':
/usr/src/debug/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/crypto/crc32.c:217: undefined reference to `xmalloc'
collect2: error: ld returned 1 exit status
<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/scripts/Makefile:58: recipe for target 'scripts/bareboxcrc32-target' failed
make[2]: *** [scripts/bareboxcrc32-target] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/ccTKBITe.o: In function `file_action':
/usr/src/debug/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/common/environment.c:119: undefined reference to `xzalloc'
/tmp/ccTKBITe.o: In function `concat_path_file':
/usr/src/debug/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/scripts/bareboxenv.c:79: undefined reference to `xmalloc'
/tmp/ccTKBITe.o: In function `envfs_save':
/usr/src/debug/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/common/environment.c:291: undefined reference to `xzalloc'
/tmp/ccTKBITe.o: In function `envfs_load':
/usr/src/debug/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/common/environment.c:594: undefined reference to `xmalloc'
collect2: error: ld returned 1 exit status
<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/scripts/Makefile:58: recipe for target 'scripts/bareboxenv-target' failed
make[2]: *** [scripts/bareboxenv-target] Error 1
<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git/Makefile:426: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '<YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/git'
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at <YoctoBuildDir>/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/barebox-utils/2017.11.0+gitAUTOINC+5f5decec00-r0/temp/log.do_compile.3776)
Hello All,
This is help request and not a bug/issue reporting.
I recently got my hands on a RPi CM4 Lite and now I want to build Yocto image with barebox as bootloader. I have few doubts before I get started.
conf/local.conf
as:BAREBOX_CONFIG_raspberrypi3 = "rpi_defconfig"
BAREBOX_IMAGE_SRC_raspberrypi3 = "images/barebox-raspberry-pi-3.img"
COMPATIBLE_MACHINE_pn-barebox_raspberrypi3 = "raspberrypi3"
For RPi CM4, I am using MACHINE="raspberrypi4-64". How should this be used for barebox config?
My goal is to build an update with RAUC and Barebox.
Your help will be much appreciated.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.