Skip to content

Embi-OS/meta-embi

Repository files navigation

meta-embi

Meta layer for Embi-OS Software Stack

Basic build

For a basic first build simply run the following commands

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.local/bin/repo
chmod a+rx ~/.local/bin/repo

repo init -u https://github.com/Embi-OS/embi-manifest -m latest.xml
repo sync

export MACHINE=raspberrypi4-64 && source ./setup-environment.sh

BB_NUMBER_THREADS="6" bitbake meta-b2qt-embedded-qbsp --runall=fetch
BB_NUMBER_THREADS="6" bitbake meta-b2qt-embedded-qbsp

Once the build is done, the image is located in this folder and can directly be used with the pi-imager:

<YoctoBuildDir>/tmp/deploy/images/${MACHINE}/b2qt-embedded-qt6-image-${MACHINE}.wic.xz

A QBSP file is also available and can be used by the Qt MaintenanceTool:

<YoctoBuildDir>/tmp/deploy/qbsp/meta-b2qt-embedded-qbsp-x86_64-${MACHINE}.qbsp

Resize sd card partition

After the first boot you may notice that the root partition does not fill the entire sd card space. It can be resized like so:

parted -s /dev/mmcblk0 resizepart 2 100%
resize2fs /dev/mmcblk0p2
reboot

WM8960 soundcard support

You may need to adjust volume and toggle switches that are off by default

amixer -c0 sset 'Headphone',0 80%,80%
amixer -c0 sset 'Speaker',0 80%,80%
amixer -c0 sset 'Left Input Mixer Boost' on
amixer -c0 sset 'Left Output Mixer PCM' on
amixer -c0 sset 'Right Input Mixer Boost' on
amixer -c0 sset 'Right Output Mixer PCM' on

You may also have to disable other audio cards in /boot/config.txt

dtoverlay=vc4-kms-v3d,noaudio
dtparam=audio=off

A test can then be run by executing:

speaker-test -t wav -c 2 -l 1

Standard config.txt

/boot/config.txt may also be edited so it ends with:

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
enable_uart=1

# Enable VC4 Graphics
dtoverlay=vc4-kms-v3d,noaudio
max_framebuffers=2

# Enable USB host mode
dtoverlay=dwc2,dr_mode=host

# Enable the onboard ALSA audio 
dtparam=audio=off
 
# Automatically load overlays for detected DSI displays 
display_auto_detect=1 
 
# Enable waveshare panel 
dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1 

# Enable WM8960
dtoverlay=wm8960-soundcard

About

Meta layer for Embi-OS Software Stack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published