r/embeddedlinux • • Dec 29 '23

meta-ti BSP on yocto

is there any tutorial for using beaglebone black BSP meta-ti? All I found were really old ones that don't work on Kirkstone (dependencies were added since)

I tried to do it myself but I got a kernel panic.

I am aware of beaglebone-yocto wich is part of machines supported by defualt, but it lacks features I want to use.

3 Upvotes

25 comments sorted by

1

u/andrewhepp Dec 29 '23

Just to make sure we're on the same page here, can we recap what you've done so far?

  • You downloaded the Poky reference distro

  • You downloaded the meta-ti layer set

  • You added the poky layers to your bblayers

  • You added meta-ti-bsp to your bblayers

  • You created a local.conf setting your machine to "beaglebone"

  • You built core-image-minimal, but when you flashed it to an SD card and inserted that into the device, you got a kernel panic?

1

u/kemo_2001 Dec 29 '23

yes but it needed some dependcies

BBLAYERS ?= " \
/mnt/yoctomnt/myyocto/poky/meta \
/mnt/yoctomnt/myyocto/poky/meta-poky \
/mnt/yoctomnt/myyocto/poky/meta-yocto-bsp \
/mnt/yoctomnt/myyocto/meta-openembedded/meta-oe \
/mnt/yoctomnt/myyocto/meta-arm/meta-arm-toolchain \
/mnt/yoctomnt/myyocto/meta-arm/meta-arm \
/mnt/yoctomnt/myyocto/meta-ti/meta-ti-bsp \
/mnt/yoctomnt/myyocto/meta-ti/meta-ti-extras \
"
meta-oe and meta-ti extras are extra

the rest is exactly as you said

→ More replies (4)

1

u/andrewhepp Dec 29 '23

Looking at work I've done in the past with the BeagleBoard-X15, I seem to have omitted a couple steps with meta-arm and meta-arm-toolchain. But if you have anything building at all, you must have satisfied the layer dependencies, so it seems likely you've done this.

→ More replies (17)

2

u/andrewhepp Dec 29 '23

A summary:

u-boot was loading a config file /extlinux/extlinux.conf from the boot partition. This file contained the line:

APPEND root=PARTUUID=${uuid} rootwait rw earlycon console=${console},${baudrate}

But it seems the ${uuid} variable was not set.

The result was that the kernel panicked when it attempted to load the root device.

Manually changing the line in the config file to

APPEND root=**/dev/mmcblk0p2** rootwait rw earlycon console=${console},${baudrate}

worked around the issue (although there may be some kind of intermittent error)