1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-27 11:08:21 +01:00

update layer to be compatible with rpi zero 64 bits

This commit is contained in:
Dany LE 2022-01-29 16:31:50 +01:00
parent 28c0bca1d6
commit 16b17aa535
7 changed files with 23 additions and 7 deletions

View File

@ -27,8 +27,8 @@ ROOT_HOME = "/root"
#MACHINE = "raspberrypi3-64" #MACHINE = "raspberrypi3-64"
#MACHINE = "raspberrypi2" #MACHINE = "raspberrypi2"
RPI_USE_U_BOOT:raspberrypi = "0" #RPI_USE_U_BOOT:raspberrypi = "0"
RPI_USE_U_BOOT ?= "1" RPI_USE_U_BOOT = "0"
RPI_USE_wS_28_DPI_LCD = "1" RPI_USE_wS_28_DPI_LCD = "1"
# enable usb boot in uboot # enable usb boot in uboot
ENABLE_USB_U_BOOT = "0" ENABLE_USB_U_BOOT = "0"
@ -40,7 +40,7 @@ ENABLE_SPI_BUS = "0"
ENABLE_I2C = "0" ENABLE_I2C = "0"
KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev " KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev "
VC4DTBO:raspberrypi = "vc4-kms-v3d,nocomposite,noaudio" VC4DTBO = "vc4-kms-v3d,nocomposite,noaudio"
KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo " KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo "

View File

@ -24,6 +24,7 @@ IMAGE_INSTALL:append = "mpg123 \
libgl-mesa \ libgl-mesa \
libglapi \ libglapi \
glew \ glew \
freetype \
freeglut \ freeglut \
mesa \ mesa \
libsdl2 \ libsdl2 \

View File

@ -28,6 +28,9 @@ case "$1" in
reboot reboot
fi fi
# display information # display information
# disable wifi power save
/usr/sbin/iw wlan0 set power_save off
/sbin/ip a
;; ;;
*) *)
N=/etc/init.d/$NAME N=/etc/init.d/$NAME

View File

@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
#FILESEXTRAPATHS_prepend := "${THISDIR}/files:" #FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
DEPENDS = "libsdl2 " DEPENDS = "libsdl2 mesa freetype"
# pharo 9.0 # pharo 9.0
# SRCREV = "${AUTOREV}" # SRCREV = "${AUTOREV}"
@ -18,11 +18,15 @@ S="${WORKDIR}/git/platforms/unix/config"
B="${WORKDIR}/build" B="${WORKDIR}/build"
inherit autotools inherit autotools
TARGET_CFLAGS += " -D__ARM_ARCH_6__ -DDEBUGVM=0 " TARGET_CFLAGS:raspberrypi += " -D__ARM_ARCH_6__ "
TARGET_CF_GLAGS += " -DDEBUGVM=0 "
EXTRA_OECONF:append=" --with-src=src/spur32.cog \ EXTRA_OECONF:append=" --with-sysroot=${STAGING_DIR_TARGET} \
--with-sysroot=${STAGING_DIR_TARGET} \
--without-npsqueak" --without-npsqueak"
EXTRA_OECONF:raspberrypi:append = " --with-src=src/spur32.cog "
EXTRA_OECONF:raspberrypi0-2w-64:append = " --with-src=src/spur64.cog "
INSANE_SKIP += " configure-unsafe " INSANE_SKIP += " configure-unsafe "
do_configure() { do_configure() {

View File

@ -102,6 +102,7 @@ int main( int argc, char** argv )
SDL_SetRenderDrawColor( renderer, rand() % 256, rand() % 256, rand() % 256, SDL_ALPHA_OPAQUE ); SDL_SetRenderDrawColor( renderer, rand() % 256, rand() % 256, rand() % 256, SDL_ALPHA_OPAQUE );
SDL_RenderClear( renderer ); SDL_RenderClear( renderer );
SDL_RenderPresent( renderer ); SDL_RenderPresent( renderer );
SDL_Delay(50);
} }
SDL_DestroyRenderer( renderer ); SDL_DestroyRenderer( renderer );

View File

@ -0,0 +1 @@
CONFIG_TOUCHSCREEN_GOODIX=m

View File

@ -0,0 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
# inherit kernel
SRC_URI += " \
file://goodix.cfg \
"