Giter Site home page Giter Site logo

meta-barebox's People

Contributors

marc-cpdesign avatar menschel-d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

meta-barebox's Issues

Building yocto image for RPi CM4

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.

  1. How should I do the Barebox configuration? For example, for raspberrypi3 we can have machine config in 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?

  1. In order to boot from uSD (for CM4 Lite) how should I copy the bootloader files? Will there be any difference between BCM283x RPi like RPi2/3 and BCM2711 based RPi CM4 Lite?

My goal is to build an update with RAUC and Barebox.

Your help will be much appreciated.

Thanks in advance.

barebox-utils fails to build with Yocto 2.4 (rocko)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.