This commit is contained in:
fabian 2024-03-05 00:32:15 +01:00
parent 6a1c5637d3
commit 91b04a715d
4 changed files with 51 additions and 38 deletions

View File

@ -11,22 +11,25 @@ populate:
./run_crops.sh bitbake core-image-base -c populate_sdk
flash:
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-minimal-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-minimal-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-core:
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-base-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-base-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-full:
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi4-64/core-image-full-cmdline-raspberrypi4-64.rpi-sdimg of=/dev/sda
sudo dd if=./build/tmp/deploy/images/raspberrypi4-64/core-image-full-cmdline-raspberrypi4-64.rpi-sdimg of=/dev/sda
flash-full-zero:
sudo dd if=/home/fabian/Desktop/yocto/yocto-build/build/tmp/deploy/images/raspberrypi0-2w-64/core-image-full-cmdline-raspberrypi0-2w-64.rpi-sdimg of=/dev/sda
sudo dd if=./build/tmp/deploy/images/raspberrypi0-2w-64/core-image-full-cmdline-raspberrypi0-2w-64.rpi-sdimg of=/dev/sda
clean-all:
./run_crops.sh bitbake -c cleanall core-image-full-cmdline
clean-flutter:
clean-flutter-elinux:
./run_crops.sh bitbake -c clean flutter-elinux
clean-flutter-service:
./run_crops.sh bitbake -c clean flutter-service
clean-flutter-pi:
./run_crops.sh bitbake -c clean flutter-pi

View File

@ -18,6 +18,6 @@ BBLAYERS ?= " \
${YOCTOROOT}/poky/meta-openembedded/meta-python \
${YOCTOROOT}/poky/meta-openembedded/meta-networking \
${YOCTOROOT}/poky/meta-flutter \
${YOCTOROOT}/poky/meta-flutter/meta-flutter-apps \
${YOCTOROOT}/poky/meta-flutter-apps \
${YOCTOROOT}/poky/meta-stargazer \
"

View File

@ -14,20 +14,55 @@
# TOOLCHAIN_HOST_TASK:append = " nativesdk-flutter-sdk"
ENABLE_UART = "1"
BB_NUMBER_THREADS = "16"
PARALLEL_MAKE = "-j 16"
#BB_NUMBER_THREADS = "16"
#PARALLEL_MAKE = "-j 16"
# INHERIT:remove = "uninative"
# INHERIT += "mender-full"
# flutter-service
#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection
# of emulated machines available which can boot and run in the QEMU emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for
# demonstration purposes:
#
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "raspberrypi4-64"
#MACHINE ??= "raspberrypi0-2w-64"
# MACHINE ??= "raspberrypi3-64"
# pi4
IMAGE_INSTALL:append = " flutter-pi flutter-service flutter-libraries linux-firmware-rpidistro-bcm43430 linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0 gstreamer1.0-plugins-base libinput libxkbcommon"
IMAGE_INSTALL:append = " flutter-pi flutter-elinux flutter-service flutter-libraries linux-firmware-rpidistro-bcm43430 linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata alsa-utils alsa-lib bcm2835-dev"
# pi 0 w2
#IMAGE_INSTALL:append = " flutter-pi flutter-elinux flutter-service flutter-libraries linux-firmware-rpidistro-bcm43436s linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0 gstreamer1.0-plugins-base libinput libxkbcommon"
#IMAGE_INSTALL:append = " flutter-pi flutter-elinux flutter-service flutter-libraries linux-firmware-rpidistro-bcm43436s linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts networkmanager dhcpcd iptables iw linux-firmware ca-certificates gstreamer1.0-rtsp-server gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libinput libxkbcommon tzdata"
# IMAGE-INSTALL:append = " network-manager dhcp-server wireless-tools dhcp-client"
#alsa-dev alsa-lib alsa-utils bcm2835-dev tmux chrony tzdata
LICENSE_FLAGS_ACCEPTED = "commercial"
DEFAULT_TIMEZONE = "Europe/Berlin"
#MACHINE_EXTRA_RRECOMMENDS:append = " dhcp-server iptables iw wireless-tools dhcp-client linux-firmware linux-firmware-bcm43455 kernel-image kernel-devicetree liberation-fonts"
INIT_MANAGER = "systemd"
@ -58,34 +93,10 @@ ENABLE_SPI_BUS = "1"
RPI_EXTRA_CONFIG = ' \n \
dtparam=spi=on \n \
dtparam=audio=on \n \
'
#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection
# of emulated machines available which can boot and run in the QEMU emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for
# demonstration purposes:
#
#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "raspberrypi4-64"
#MACHINE ??= "raspberrypi0-2w-64"
# MACHINE ??= "raspberrypi3-64"
#
# Where to place downloads
@ -326,6 +337,5 @@ PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
# this doesn't mean anything to you.
CONF_VERSION = "2"
#IMAGE_FSTYPES:remove = " rpi-sdimg"
IMAGE_FSTYPES = "ext4 rpi-sdimg"
SDIMG_ROOTFS_TYPE = "ext4"

View File

@ -7,7 +7,7 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/bin/flutter-pi --release /flutter/flutter_elinux/3.16.9/release
ExecStart=/usr/bin/flutter-pi --release /flutter/flutter_elinux/3.19.2/release
[Install]
WantedBy=multi-user.target