commit 28c0bca1d65936fc5ac6fa61da12c5e6e8191185 Author: Dany LE Date: Fri Dec 17 20:30:04 2021 +0100 initial commit diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100644 index 0000000..fb950dc --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README b/README new file mode 100644 index 0000000..f909c6a --- /dev/null +++ b/README @@ -0,0 +1,41 @@ +This README file contains information on the contents of the meta-rpi-pharo layer. + +Please see the corresponding sections below for details. + +Dependencies +============ + + URI: + branch: + + URI: + branch: + + . + . + . + +Patches +======= + +Please submit any patches against the meta-rpi-pharo layer to the xxxx mailing list (xxxx@zzzz.org) +and cc: the maintainer: + +Maintainer: XXX YYYYYY + +Table of Contents +================= + + I. Adding the meta-rpi-pharo layer to your build + II. Misc + + +I. Adding the meta-rpi-pharo layer to your build +================================================= + +Run 'bitbake-layers add-layer meta-rpi-pharo' + +II. Misc +======== + +--- replace with specific information about the meta-rpi-pharo layer --- diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..599d021 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,62 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "meta-rpi-pharo" +BBFILE_PATTERN_meta-rpi-pharo = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-rpi-pharo = "11" + +LAYERDEPENDS_meta-rpi-pharo = "core raspberrypi" +LAYERSERIES_COMPAT_meta-rpi-pharo = "honister" + +PACKAGE_CLASSES = "package_ipk" +INHERIT += "rm_work" + +EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs " +# ssh-server-dropbear +DISTRO_FEATURES:append := " vc4-gfx opengl " +# DISTRO_FEATURES:append := " vc4-gfx opengl directfb " +MACHINE ?= "raspberrypi4-64" + +WKS_FILE="rpi.wks.in" +ROOT_HOME = "/root" + +#MACHINE = "raspberrypi3-64" +#MACHINE = "raspberrypi2" + +RPI_USE_U_BOOT:raspberrypi = "0" +RPI_USE_U_BOOT ?= "1" +RPI_USE_wS_28_DPI_LCD = "1" +# enable usb boot in uboot +ENABLE_USB_U_BOOT = "0" +ENABLE_UART = "0" +DISABLE_SPLASH = "1" +VIDEO_CAMERA = "1" +DISABLE_RPI_BOOT_LOGO = "1" +ENABLE_SPI_BUS = "0" +ENABLE_I2C = "0" +KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev " + +VC4DTBO:raspberrypi = "vc4-kms-v3d,nocomposite,noaudio" + +KERNEL_DEVICETREE:append = " overlays/vc4-kms-dpi-generic.dtbo " + + +RPI_EXTRA_CONFIG += "${@['','\n\ +dtoverlay=vc4-kms-dpi-generic,hactive=480,hfp=26,hsync=16,hbp=10 \n\ +dtparam=vactive=640,vfp=25,vsync=10,vbp=15 \n\ +dtparam=clock-frequency=32000000,rgb666-padhi \n\ +dtoverlay=waveshare-28dpi-3b-4b \n\ +dtoverlay=waveshare-28dpi-3b \n\ +dtoverlay=waveshare-28dpi-4b \n\ +display_rotate=1 #1:90;2: 180; 3: 270 \n']['${RPI_USE_wS_28_DPI_LCD}' == '1']}" + +RPI_EXTRA_CONFIG += '\n\ +start_x=1 # essential \n\ +dtparam=audio=on \n\ +gpu_mem=128 # at least, or maybe more if you wish \n\ +disable_camera_led=1 # optional \n\ +' \ No newline at end of file diff --git a/recipes-bsp/realtekfw/files/firmware/RTL8192E/boot.img b/recipes-bsp/realtekfw/files/firmware/RTL8192E/boot.img new file mode 100644 index 0000000..16998bb Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/RTL8192E/boot.img differ diff --git a/recipes-bsp/realtekfw/files/firmware/RTL8192E/data.img b/recipes-bsp/realtekfw/files/firmware/RTL8192E/data.img new file mode 100644 index 0000000..4cabc4a Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/RTL8192E/data.img differ diff --git a/recipes-bsp/realtekfw/files/firmware/RTL8192E/main.img b/recipes-bsp/realtekfw/files/firmware/RTL8192E/main.img new file mode 100644 index 0000000..7703afd Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/RTL8192E/main.img differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192ee_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192ee_fw.bin new file mode 100644 index 0000000..7e5bcc0 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192ee_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192eu_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192eu_fw.bin new file mode 100644 index 0000000..7a13280 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8192eu_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723a_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723a_fw.bin new file mode 100644 index 0000000..b736f91 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723a_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723b_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723b_fw.bin new file mode 100644 index 0000000..49b2a26 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723b_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_config.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_config.bin new file mode 100644 index 0000000..bb15fcd Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_config.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_fw.bin new file mode 100644 index 0000000..0997fd7 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8723d_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8761a_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8761a_fw.bin new file mode 100644 index 0000000..ee4f201 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8761a_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8812ae_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8812ae_fw.bin new file mode 100644 index 0000000..8aca8d2 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8812ae_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821a_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821a_fw.bin new file mode 100644 index 0000000..c7dffe9 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821a_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_config.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_config.bin new file mode 100644 index 0000000..bb15fcd Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_config.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_fw.bin new file mode 100644 index 0000000..db7debd Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8821c_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_config.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_config.bin new file mode 100644 index 0000000..b00270e Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_config.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_fw.bin new file mode 100644 index 0000000..5a46461 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822b_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822cu_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822cu_fw.bin new file mode 100644 index 0000000..f36e37f Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_bt/rtl8822cu_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8105e-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8105e-1.fw new file mode 100644 index 0000000..4c2cbd0 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8105e-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-1.fw new file mode 100644 index 0000000..85694cb Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-2.fw new file mode 100644 index 0000000..ac04275 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8106e-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-1.fw new file mode 100644 index 0000000..c071c2f Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-2.fw new file mode 100644 index 0000000..76fc054 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8107e-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125a-3.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125a-3.fw new file mode 100644 index 0000000..fac6352 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125a-3.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-1.fw new file mode 100644 index 0000000..577e1bb Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-2.fw new file mode 100644 index 0000000..45b0443 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8125b-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-1.fw new file mode 100644 index 0000000..99e002d Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-2.fw new file mode 100644 index 0000000..7022ab0 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168d-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-1.fw new file mode 100644 index 0000000..d203bd5 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-2.fw new file mode 100644 index 0000000..7ea5984 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-3.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-3.fw new file mode 100644 index 0000000..0f888a3 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168e-3.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-1.fw new file mode 100644 index 0000000..bf78831 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-2.fw new file mode 100644 index 0000000..c342492 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168f-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168fp-3.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168fp-3.fw new file mode 100644 index 0000000..cc70384 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168fp-3.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-1.fw new file mode 100644 index 0000000..2c628b0 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-2.fw new file mode 100644 index 0000000..944d44e Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-3.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-3.fw new file mode 100644 index 0000000..0c97d7e Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168g-3.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-1.fw new file mode 100644 index 0000000..296813a Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-2.fw new file mode 100644 index 0000000..df92848 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8168h-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8402-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8402-1.fw new file mode 100644 index 0000000..82fa35d Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8402-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-1.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-1.fw new file mode 100644 index 0000000..72772db Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-1.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-2.fw b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-2.fw new file mode 100644 index 0000000..e3789fe Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtl_nic/rtl8411-2.fw differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188efw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188efw.bin new file mode 100644 index 0000000..ac9a430 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188efw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188eufw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188eufw.bin new file mode 100644 index 0000000..4ae7e1c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8188eufw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfw.bin new file mode 100644 index 0000000..77eb1eb Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU.bin new file mode 100644 index 0000000..b231e1d Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU_B.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU_B.bin new file mode 100644 index 0000000..3a3e386 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cfwU_B.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw.bin new file mode 100644 index 0000000..3aa7506 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_A.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_A.bin new file mode 100644 index 0000000..9569d0a Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_A.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_B.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_B.bin new file mode 100644 index 0000000..96089c4 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_B.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_TMSC.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_TMSC.bin new file mode 100644 index 0000000..d1b84d4 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192cufw_TMSC.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192defw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192defw.bin new file mode 100644 index 0000000..cbb4b88 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192defw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eefw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eefw.bin new file mode 100644 index 0000000..4a034d3 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eefw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_nic.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_nic.bin new file mode 100644 index 0000000..4a034d3 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_nic.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_wowlan.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_wowlan.bin new file mode 100644 index 0000000..aebcffc Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192eu_wowlan.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192sefw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192sefw.bin new file mode 100644 index 0000000..ed4afe8 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8192sefw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8712u.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8712u.bin new file mode 100644 index 0000000..3f965a6 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8712u.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_A.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_A.bin new file mode 100644 index 0000000..7accded Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_A.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B.bin new file mode 100644 index 0000000..5c37400 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin new file mode 100644 index 0000000..8e9952c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw.bin new file mode 100644 index 0000000..25e183c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw_36.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw_36.bin new file mode 100644 index 0000000..1bb9b9c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723befw_36.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_bt.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_bt.bin new file mode 100644 index 0000000..f29df42 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_bt.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_nic.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_nic.bin new file mode 100644 index 0000000..8d53405 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_nic.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_wowlan.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_wowlan.bin new file mode 100644 index 0000000..473e29c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bs_wowlan.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_nic.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_nic.bin new file mode 100644 index 0000000..8d53405 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_nic.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_wowlan.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_wowlan.bin new file mode 100644 index 0000000..473e29c Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723bu_wowlan.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723defw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723defw.bin new file mode 100644 index 0000000..6d2c953 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723defw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw.bin new file mode 100644 index 0000000..725f213 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw_B.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw_B.bin new file mode 100644 index 0000000..993c7f6 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8723fw_B.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw.bin new file mode 100644 index 0000000..4f84cf9 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_29.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_29.bin new file mode 100644 index 0000000..f0acde4 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_29.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_wowlan.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_wowlan.bin new file mode 100644 index 0000000..115d49f Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8821aefw_wowlan.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8822befw.bin b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8822befw.bin new file mode 100644 index 0000000..1fcdbeb Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtlwifi/rtl8822befw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822b_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822b_fw.bin new file mode 100644 index 0000000..0934ffc Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822b_fw.bin differ diff --git a/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822c_fw.bin b/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822c_fw.bin new file mode 100644 index 0000000..e800c78 Binary files /dev/null and b/recipes-bsp/realtekfw/files/firmware/rtw88/rtw8822c_fw.bin differ diff --git a/recipes-bsp/realtekfw/realtekfw_1.0.bb b/recipes-bsp/realtekfw/realtekfw_1.0.bb new file mode 100644 index 0000000..495337e --- /dev/null +++ b/recipes-bsp/realtekfw/realtekfw_1.0.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Wifi dongle firmware" +DEPENDS = "" +LICENSE="CLOSED" +LIC_FILES_CHKSUM="" + + +SRC_URI += "file://firmware" + +FILES:${PN} += "/lib/firmware/*" +#FILES_${PN}-dev += "${libdir}/firmware/*" + +do_install () { + install -d ${D}/lib/firmware/ + cp -rf ${WORKDIR}/firmware/* ${D}/lib/firmware/ +} diff --git a/recipes-bsp/rpi-u-boot-scr/files/usb-boot.cmd.in b/recipes-bsp/rpi-u-boot-scr/files/usb-boot.cmd.in new file mode 100644 index 0000000..6b26cac --- /dev/null +++ b/recipes-bsp/rpi-u-boot-scr/files/usb-boot.cmd.in @@ -0,0 +1,4 @@ +fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs +fatload usb 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ +if test ! -e usb 0:1 uboot.env; then saveenv; fi; +@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr} \ No newline at end of file diff --git a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend new file mode 100644 index 0000000..6685d94 --- /dev/null +++ b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" +BOOT_SRC_FILE = "${@bb.utils.contains('ENABLE_USB_U_BOOT', '1', 'usb-boot.cmd.in', 'boot.cmd.in', d)}" +SRC_URI = "file://${BOOT_SRC_FILE}" + +do_configure() { + ([ -e "${WORKDIR}/usb-boot.cmd.in" ] && mv "${WORKDIR}/usb-boot.cmd.in" "${WORKDIR}/boot.cmd.in") || true +} diff --git a/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b-4b.dtbo b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b-4b.dtbo new file mode 100644 index 0000000..8e49de4 Binary files /dev/null and b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b-4b.dtbo differ diff --git a/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b.dtbo b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b.dtbo new file mode 100644 index 0000000..4ec87d3 Binary files /dev/null and b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-3b.dtbo differ diff --git a/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-4b.dtbo b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-4b.dtbo new file mode 100644 index 0000000..defd429 Binary files /dev/null and b/recipes-bsp/waveshare-2.8-lcd/files/waveshare-28dpi-4b.dtbo differ diff --git a/recipes-bsp/waveshare-2.8-lcd/waveshare-2.8-lcd.bb b/recipes-bsp/waveshare-2.8-lcd/waveshare-2.8-lcd.bb new file mode 100644 index 0000000..11acb55 --- /dev/null +++ b/recipes-bsp/waveshare-2.8-lcd/waveshare-2.8-lcd.bb @@ -0,0 +1,13 @@ +SUMMARY = "Waveshare 2.8 inch DPI" +DESCRIPTION = "support overlay layer for Waveshare 2.8 inch DPI" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +do_deploy () { + install -m 0755 ${THISDIR}/files/waveshare-28dpi-3b-4b.dtbo ${DEPLOY_DIR_IMAGE}/waveshare-28dpi-3b-4b.dtbo + install -m 0755 ${THISDIR}/files/waveshare-28dpi-3b.dtbo ${DEPLOY_DIR_IMAGE}/waveshare-28dpi-3b.dtbo + install -m 0755 ${THISDIR}/files/waveshare-28dpi-4b.dtbo ${DEPLOY_DIR_IMAGE}/waveshare-28dpi-4b.dtbo + # install -m 0755 ${THISDIR}/files/start.mp3 ${DEPLOY_DIR_IMAGE}/start.mp3 +} + +addtask deploy \ No newline at end of file diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend new file mode 100644 index 0000000..1f9d5ef --- /dev/null +++ b/recipes-core/base-files/base-files_%.bbappend @@ -0,0 +1 @@ +hostname = "diya" \ No newline at end of file diff --git a/recipes-core/dropbear/dropbear_%.bbappend b/recipes-core/dropbear/dropbear_%.bbappend new file mode 100644 index 0000000..ef85ee1 --- /dev/null +++ b/recipes-core/dropbear/dropbear_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" +SRC_URI += "file://default" + +do_install:append () { + rm -rf ${D}/etc/dropbear + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear +} \ No newline at end of file diff --git a/recipes-core/dropbear/files/default b/recipes-core/dropbear/files/default new file mode 100644 index 0000000..eb2d1fd --- /dev/null +++ b/recipes-core/dropbear/files/default @@ -0,0 +1,2 @@ +DROPBEAR_EXTRA_ARGS="-w" +DROPBEAR_RSAKEY_DIR=/home/diya/etc/dropbear \ No newline at end of file diff --git a/recipes-core/images/README.md b/recipes-core/images/README.md new file mode 100644 index 0000000..a400bef --- /dev/null +++ b/recipes-core/images/README.md @@ -0,0 +1,32 @@ +#webrtc-audio-processing \ +pulseaudio \ +pulseaudio-server \ +alsa-utils \ +pulseaudio-module-alsa-card \ +pulseaudio-module-alsa-source \ +pulseaudio-module-alsa-sink \ +pulseaudio-module-cli \ +pulseaudio-module-echo-cancel \ +pulseaudio-misc \ +i2c-tools \ +#tslib +#tslib-tests +#tslib-calibrate +#tslib-uinput +# v4l-utils +evtest + +# openvt -v -c 5 -- /usr/bin/weston --tty=/dev/tty5 + +mesa \ + mesa-demos \ + libgbm \ + + +dtdebug=1 +dtoverlay=vc4-kms-v3d +dtoverlay=vc4-kms-dpi-generic,hactive=480,hfp=26,hsync=16,hbp=10 +dtparam=vactive=640,vfp=25,vsync=10,vbp=16 +dtparam=clock-frequency=32000000,rgb666-padhi + +Diyas symbolise goodness and purity, and lighting them denotes dispelling darkness and going into light. \ No newline at end of file diff --git a/recipes-core/images/core-image-base.bbappend b/recipes-core/images/core-image-base.bbappend new file mode 120000 index 0000000..65e0d4a --- /dev/null +++ b/recipes-core/images/core-image-base.bbappend @@ -0,0 +1 @@ +core-image-minimal.bbappend \ No newline at end of file diff --git a/recipes-core/images/core-image-minimal.bbappend b/recipes-core/images/core-image-minimal.bbappend new file mode 100644 index 0000000..4f37dd9 --- /dev/null +++ b/recipes-core/images/core-image-minimal.bbappend @@ -0,0 +1,40 @@ +inherit extrausers + +KERNEL_DEVICETREE:append = "${@bb.utils.contains('RPI_USE_wS_28_DPI_LCD', '1', ' overlays/waveshare-28dpi-3b-4b.dtbo overlays/waveshare-28dpi-3b.dtbo overlays/waveshare-28dpi-4b.dtbo ', ' ', d)}" + + +EXTRA_USERS_PARAMS = "usermod -p BJpK8ADNDLsGg root; \ + usermod -p 2Pe/4xyFxsokE diya; \ + usermod -a -G video diya; \ + usermod -a -G tty diya; \ + usermod -a -G input diya; \ + usermod -a -G dialout diya; \ + usermod -a -G audio diya; \ + usermod -a -G avahi diya \ + " +IMAGE_BOOT_FILES:append = "fs_resize" +# KERNEL_DEVICETREE:append = "${@bb.utils.contains('RPI_USE_wS_28_DPI_LCD', '1', ' overlays/vc4-kms-dpi-generic.dtbo overlays/waveshare-28dpi-3b-4b.dtbo overlays/waveshare-28dpi-3b.dtbo overlays/waveshare-28dpi-4b.dtbo ', ' ', d)}" + +IMAGE_INSTALL:append = "mpg123 \ + libcurl \ + libdrm \ + libgbm \ + libgles2 \ + libegl-mesa \ + libgl-mesa \ + libglapi \ + glew \ + freeglut \ + mesa \ + libsdl2 \ + libsdl2-ttf \ + libsdl2-image \ + libsdl2-mixer \ + libsdl2-net \ + example \ + htop \ + opensmalltalk-cog-vm \ + waveshare-2.8-lcd \ + realtekfw \ + diya-overlay \ + " \ No newline at end of file diff --git a/recipes-core/init-ifupdown/init-ifupdown_%.bbappend b/recipes-core/init-ifupdown/init-ifupdown_%.bbappend new file mode 100644 index 0000000..e3e193e --- /dev/null +++ b/recipes-core/init-ifupdown/init-ifupdown_%.bbappend @@ -0,0 +1,3 @@ +do_install:append () { + rm ${D}/etc/network/interfaces +} \ No newline at end of file diff --git a/recipes-core/sysvinit/sysvinit-inittab_%.bbappend b/recipes-core/sysvinit/sysvinit-inittab_%.bbappend new file mode 100644 index 0000000..f644f86 --- /dev/null +++ b/recipes-core/sysvinit/sysvinit-inittab_%.bbappend @@ -0,0 +1,3 @@ +SERIAL_CONSOLES_CHECK = "" +CURR_SERIAL_CONSOLES:="${SERIAL_CONSOLES}" +SERIAL_CONSOLES = "${@bb.utils.contains('RPI_USE_wS_28_DPI_LCD', '1', '', '${CURR_SERIAL_CONSOLES}', d)}" \ No newline at end of file diff --git a/recipes-diya/diya-overlay/diya-overlay.bb b/recipes-diya/diya-overlay/diya-overlay.bb new file mode 100644 index 0000000..18c662c --- /dev/null +++ b/recipes-diya/diya-overlay/diya-overlay.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "Auto configuration deployment from media" +DEPENDS = "" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI += "file://confd \ + file://expandfs.sh \ + file://80_diya \ + file://fs_resize" + + +inherit update-rc.d useradd + +USERADD_PACKAGES = "${PN}" +GROUPADD_PACKAGES = "${PN}" + +USERADD_PARAM:${PN} = "-u 1000 -d /home/diya -r -s /bin/sh diya" + +INITSCRIPT_NAME = "confd" +INITSCRIPT_PARAMS = "start 80 S ." + +do_install() { + install -d ${D}/${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd + install -d ${D}/usr/bin/ + install -d ${D}/etc/default/volatiles + install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles + install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh + install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/ +} + diff --git a/recipes-diya/diya-overlay/files/80_diya b/recipes-diya/diya-overlay/files/80_diya new file mode 100644 index 0000000..329d73d --- /dev/null +++ b/recipes-diya/diya-overlay/files/80_diya @@ -0,0 +1,2 @@ +l root root 0644 /etc/network/interfaces /home/diya/etc/network/interfaces +l root root 0644 /etc/dropbear /home/diya/etc/dropbear diff --git a/recipes-diya/diya-overlay/files/confd b/recipes-diya/diya-overlay/files/confd new file mode 100644 index 0000000..51e806b --- /dev/null +++ b/recipes-diya/diya-overlay/files/confd @@ -0,0 +1,39 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="Auto deployment configuration from media" + +case "$1" in + start) + echo -n "Start $DESC: " + if [ -f "/boot/fs_resize" ]; then + /usr/bin/expandfs.sh + touch /boot/home_partition_should_be_formated + rm /boot/fs_resize + reboot + fi + if [ -f "/boot/home_partition_should_be_formated" ]; then + echo "Trying to format the home partition" + umount /dev/mmcblk0p3 + yes | mkfs.ext4 /dev/mmcblk0p3 + mount /dev/mmcblk0p3 /home + mkdir -p /home/diya/etc/network + mkdir -p /home/diya/etc/dropbear + chown -R diya:diya /home/diya + rm /boot/home_partition_should_be_formated + fi + if [ -e "/boot/install" ];then + cp -rf /boot/install/* /home/diya + rm -rf /boot/install + reboot + fi + # display information + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start}" >&2 + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/recipes-diya/diya-overlay/files/expandfs.sh b/recipes-diya/diya-overlay/files/expandfs.sh new file mode 100644 index 0000000..8630960 --- /dev/null +++ b/recipes-diya/diya-overlay/files/expandfs.sh @@ -0,0 +1,31 @@ +#! /bin/sh +line=$( +sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk /dev/mmcblk0 | grep /dev/mmcblk0p3 +p +q +EOF +) + +echo "Partition: $line" +#start_sector=$(echo "$line" | cut -d' ' -f14) +start_sector=$(echo "$line" | cut -d' ' -f15) +echo "Start sector is: $start_sector" + +if [ -z "$start_sector" ]; then + echo "Cannot find the start sector" + exit 1 +fi + +echo "Expanding the partition" +sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk /dev/mmcblk0 +d +3 +n # new partition +p # primary partition +3 # partition number 3 +$start_sector + # default - end of disk +p # print the in-memory partition table +w # write the partition table +q # and we're done +EOF \ No newline at end of file diff --git a/recipes-diya/diya-overlay/files/fs_resize b/recipes-diya/diya-overlay/files/fs_resize new file mode 100644 index 0000000..18096d4 --- /dev/null +++ b/recipes-diya/diya-overlay/files/fs_resize @@ -0,0 +1 @@ +resize the partition \ No newline at end of file diff --git a/recipes-diya/opensmalltalk-cog-vm/files/001-disable-run-test-in-cross-compile.patch b/recipes-diya/opensmalltalk-cog-vm/files/001-disable-run-test-in-cross-compile.patch new file mode 100644 index 0000000..be65469 --- /dev/null +++ b/recipes-diya/opensmalltalk-cog-vm/files/001-disable-run-test-in-cross-compile.patch @@ -0,0 +1,73 @@ +From 7117dbf8b8defcf69f7aac3f7daf97ec00e5e73a Mon Sep 17 00:00:00 2001 +From: Xuan Sang LE +Date: Wed, 15 Dec 2021 02:24:37 +0100 +Subject: [PATCH] Update configure + +--- + platforms/unix/config/configure | 53 --------------------------------- + 1 file changed, 53 deletions(-) + +diff --git a/platforms/unix/config/configure b/platforms/unix/config/configure +index f9e8c24aa5..85aacaa5e6 100755 +--- a/configure ++++ b/configure +@@ -13292,59 +13292,6 @@ fi + + + +-# Check size assumptions of basic data types +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"size of int\"" >&5 +-$as_echo_n "checking \"size of int\"... " >&6; } +- if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run test program while cross compiling +-See \`config.log' for more details" "$LINENO" 5; } +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- int main(){return(sizeof(int) == 4)?0:1;} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"okay\"" >&5 +-$as_echo "\"okay\"" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"bad\"" >&5 +-$as_echo "\"bad\"" >&6; } +- as_fn_error $? "\"one or more basic data types has an incompatible size: giving up\"" "$LINENO" 5 +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"size of double\"" >&5 +-$as_echo_n "checking \"size of double\"... " >&6; } +- if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run test program while cross compiling +-See \`config.log' for more details" "$LINENO" 5; } +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- int main(){return(sizeof(double) == 8)?0:1;} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"okay\"" >&5 +-$as_echo "\"okay\"" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"bad\"" >&5 +-$as_echo "\"bad\"" >&6; } +- as_fn_error $? "\"one or more basic data types has an incompatible size: giving up\"" "$LINENO" 5 +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi + + + # The cast to long int works around a bug in the HP C Compiler \ No newline at end of file diff --git a/recipes-diya/opensmalltalk-cog-vm/files/svm b/recipes-diya/opensmalltalk-cog-vm/files/svm new file mode 100644 index 0000000..0d27f55 --- /dev/null +++ b/recipes-diya/opensmalltalk-cog-vm/files/svm @@ -0,0 +1,2 @@ +#! /bin/sh +LD_LIBRARY_PATH=/opt/squeak /opt/squeak/squeak $@ \ No newline at end of file diff --git a/recipes-diya/opensmalltalk-cog-vm/opensmalltalk-cog-vm.bb b/recipes-diya/opensmalltalk-cog-vm/opensmalltalk-cog-vm.bb new file mode 100644 index 0000000..e0588e5 --- /dev/null +++ b/recipes-diya/opensmalltalk-cog-vm/opensmalltalk-cog-vm.bb @@ -0,0 +1,48 @@ +DESCRIPTION = "Pharo VM" +# DEPENDS = "" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +#FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +DEPENDS = "libsdl2 " + +# pharo 9.0 +# SRCREV = "${AUTOREV}" +SRCREV = "27d2d9f0c76b5805ff43578272e809aeb665a498" +SRC_URI = "git://github.com/OpenSmalltalk/opensmalltalk-vm.git;branch=Cog;" +SRC_URI += "file://001-disable-run-test-in-cross-compile.patch" +SRC_URI += "file://svm" + +S="${WORKDIR}/git/platforms/unix/config" +B="${WORKDIR}/build" +inherit autotools + +TARGET_CFLAGS += " -D__ARM_ARCH_6__ -DDEBUGVM=0 " + +EXTRA_OECONF:append=" --with-src=src/spur32.cog \ + --with-sysroot=${STAGING_DIR_TARGET} \ + --without-npsqueak" +INSANE_SKIP += " configure-unsafe " + +do_configure() { + cd ${WORKDIR}/git/ && ./scripts/updateSCCSVersions + cp ${WORKDIR}/git/building/linux32ARMv6/pharo.cog.spur/plugins.* ${B}/ + cd ${B} + oe_runconf +} + +do_compile() { + cd ${B} + mkdir -p ${B}/output + ROOT=${B}/output make -j 4 install-squeak install-plugins +} + +do_install() { + install -d ${D}/opt/squeak + install -d ${D}/usr/bin + install -m 0755 ${B}/output/usr/lib/squeak/* ${D}/opt/squeak + install -m 0755 ${WORKDIR}/svm ${D}/usr/bin +} +PACKAGES = "${PN} ${PN}-dbg" +FILES:${PN} += "/opt/squeak/*" \ No newline at end of file diff --git a/recipes-diya/pharo/files/001-patch-vm-maker.patch b/recipes-diya/pharo/files/001-patch-vm-maker.patch new file mode 100644 index 0000000..0c940d2 --- /dev/null +++ b/recipes-diya/pharo/files/001-patch-vm-maker.patch @@ -0,0 +1,19 @@ +--- a/cmake/vmmaker.cmake ++++ b/cmake/vmmaker.cmake +@@ -62,16 +62,6 @@ if(GENERATE_SOURCES) + set(VMMAKER_VM ${VMMAKER_DIR}/vm/PharoConsole.exe) + set(VM_URL https://files.pharo.org/vm/pharo-spur64/win/PharoVM-8.6.1-e829a1da-StockReplacement-win64-bin_signed.zip) + set(VM_URL_HASH SHA256=d24a2fb5d8d744a4c8ce0bc332051960d6f5d8db9f75754317b5aee8eafb7cb1) +- elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")) +- message("Defining Linux AARCH64 VM to download for code generation") +- set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo) +- set(VM_URL https://files.pharo.org/vm/pharo-spur64/Linux-aarch64/stable.zip) +- set(VM_URL_HASH SHA256=924e5a25f8e2d51773e8571ebefa2404da9561418af2b54af1330357b75ae865) +- elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l")) +- message("Defining Linux ARM 32 VM to download for code generation") +- set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo) +- set(VM_URL https://files.pharo.org/vm/pharo-spur32/Linux-armv7l/stable.zip) +- set(VM_URL_HASH SHA256=1816e44523e08e7effe3226a3cabc4ea701fb9582c00456ab90936efb5c645c4) + elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") + message("Defining Linux VM x86_64 to download for code generation") + set(VMMAKER_VM ${VMMAKER_DIR}/vm/pharo) \ No newline at end of file diff --git a/recipes-diya/pharo/pharo-vm_9.0.bbbackup b/recipes-diya/pharo/pharo-vm_9.0.bbbackup new file mode 100644 index 0000000..f66adf7 --- /dev/null +++ b/recipes-diya/pharo/pharo-vm_9.0.bbbackup @@ -0,0 +1,35 @@ +DESCRIPTION = "Pharo VM" +# DEPENDS = "" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +#FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +DEPENDS = "libsdl2 libdrm tslib mesa mesa-demos" + +# pharo 9.0 +SRCREV = "${AUTOREV}" +IMAGE_FILE ?= "latest-64.zip;sha256sum=5fcb782c39663391402d915d29251815be3fa378f1398a41a702387b5fcc8577;" +# TODO add checksum form 64 bits images +IMAGE_FILE:raspberrypi = "latest-32.zip;sha256sum=660e9fd0c6bd5650574cbbea0773d17a75f05be14ce68a119727dc9200a49a30;" +#SRCREV = "961e9c4589540b2cccb924f17bb051bc8c9ae5c1" +SRC_URI = "git://github.com/pharo-project/opensmalltalk-vm.git;branch=pharo-9;" +SRC_URI += "http://files.pharo.org/image/90/${IMAGE_FILE};" +SRC_URI += "file://001-patch-vm-maker.patch" +S="${WORKDIR}/git" + +EXTRA_OECMAKE += "-DFEATURE_LIB_GIT2=off -DFEATURE_LIB_CAIRO=off " +TARGET_CFLAGS:raspberrypi += "-D__ARM_ARCH_6__" +inherit cmake + +do_install() { + install -d ${D}/opt/pharo + install -d ${D}/opt/pharo/images + install -m 0755 ${B}/build/vm/* ${D}/opt/pharo + install -m 0755 ${WORKDIR}/*.image ${D}/opt/pharo/images/ + install -m 0755 ${WORKDIR}/*.changes ${D}/opt/pharo/images/ + install -m 0755 ${WORKDIR}/*.sources ${D}/opt/pharo/images/ +} +PACKAGES = "${PN} ${PN}-dbg" +FILES:${PN} += "/opt/pharo/*" +# FILES:${PN} += "/opt/images/*" \ No newline at end of file diff --git a/recipes-example/example/example_0.1.bb b/recipes-example/example/example_0.1.bb new file mode 100644 index 0000000..62a4cb3 --- /dev/null +++ b/recipes-example/example/example_0.1.bb @@ -0,0 +1,22 @@ +SUMMARY = "bitbake-layers recipe" +DESCRIPTION = "Recipe created by bitbake-layers" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +DEPENDS += "libsdl2" +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" +SRC_URI = "file://sdl_test.cpp file://sdlgl.c " +TARGET_CC_ARCH += "${LDFLAGS}" + +do_compile() { + ${CXX} ${WORKDIR}/sdl_test.cpp `pkg-config --cflags --libs sdl2` -o ${WORKDIR}/sdl_test + ${CC} ${WORKDIR}/sdlgl.c `pkg-config --cflags --libs sdl2` -lGL -o ${WORKDIR}/sdlgl +} + +do_install() { + install -d ${D}/usr/bin + install -m 0755 ${WORKDIR}/sdl_test ${D}/usr/bin + install -m 0755 ${WORKDIR}/sdlgl ${D}/usr/bin + install -m 0755 ${WORKDIR}/sdl_test /tmp + install -m 0755 ${WORKDIR}/sdlgl /tmp +} diff --git a/recipes-example/example/files/sdl_test.cpp b/recipes-example/example/files/sdl_test.cpp new file mode 100644 index 0000000..ddcd92a --- /dev/null +++ b/recipes-example/example/files/sdl_test.cpp @@ -0,0 +1,111 @@ +#include +#include +#include +#include + +int main( int argc, char** argv ) +{ + SDL_Init( 0 ); + + std::cout << "Testing video drivers..." << '\n'; + std::vector< bool > drivers( SDL_GetNumVideoDrivers() ); + for( int i = 0; i < drivers.size(); ++i ) + { + drivers[ i ] = ( 0 == SDL_VideoInit( SDL_GetVideoDriver( i ) ) ); + SDL_VideoQuit(); + } + + std::cout << "SDL_VIDEODRIVER available:"; + for( int i = 0; i < drivers.size(); ++i ) + { + std::cout << " " << SDL_GetVideoDriver( i ); + } + std::cout << '\n'; + + std::cout << "SDL_VIDEODRIVER usable :"; + for( int i = 0; i < drivers.size(); ++i ) + { + if( !drivers[ i ] ) continue; + std::cout << " " << SDL_GetVideoDriver( i ); + } + std::cout << '\n'; + + if( SDL_Init( SDL_INIT_EVERYTHING ) < 0 ) + { + std::cerr << "SDL_Init(): " << SDL_GetError() << '\n'; + return EXIT_FAILURE; + } + std::cout << "SDL_VIDEODRIVER selected : " << SDL_GetCurrentVideoDriver() << '\n'; + + SDL_Window* window = SDL_CreateWindow + ( + "SDL2", + SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, + 0,0, + SDL_WINDOW_SHOWN + ); + if( nullptr == window ) + { + std::cerr << "SDL_CreateWindow(): " << SDL_GetError() << '\n'; + return EXIT_FAILURE; + } + + std::cout << "SDL_RENDER_DRIVER available:"; + for( int i = 0; i < SDL_GetNumRenderDrivers(); ++i ) + { + SDL_RendererInfo info; + SDL_GetRenderDriverInfo( i, &info ); + std::cout << " " << info.name; + } + std::cout << '\n'; + SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN); + SDL_Renderer* renderer = SDL_CreateRenderer( window, -1, SDL_RENDERER_ACCELERATED ); + if( nullptr == renderer ) + { + std::cerr << "SDL_CreateRenderer(): " << SDL_GetError() << '\n'; + return EXIT_FAILURE; + } + SDL_RendererInfo info; + SDL_GetRendererInfo( renderer, &info ); + std::cout << "SDL_RENDER_DRIVER selected : " << info.name << '\n'; + SDL_DisplayMode DM; + SDL_GetCurrentDisplayMode(0, &DM); + printf("Display size %dx%d\n", DM.w, DM.h); + bool running = true; + while( running ) + { + SDL_Event ev; + while( SDL_PollEvent( &ev ) ) + { + switch (ev.type) + { + case SDL_QUIT: + /* code */ + running = false; + break; + case SDL_KEYDOWN: + if(ev.key.keysym.sym == SDLK_ESCAPE) + { + running = false; + } + break; + case SDL_FINGERDOWN: + case SDL_FINGERMOTION: + std::cout << "Mouse finger down: x = " << ev.tfinger.x << ", y = " << ev.tfinger.y << std::endl; + SDL_WarpMouseInWindow(window, (int)(ev.tfinger.x*DM.w), (int)(ev.tfinger.y*DM.h)); + break; + default: + break; + } + } + + SDL_SetRenderDrawColor( renderer, rand() % 256, rand() % 256, rand() % 256, SDL_ALPHA_OPAQUE ); + SDL_RenderClear( renderer ); + SDL_RenderPresent( renderer ); + } + + SDL_DestroyRenderer( renderer ); + SDL_DestroyWindow( window ); + SDL_Quit(); + return 0; +} \ No newline at end of file diff --git a/recipes-example/example/files/sdlgl.c b/recipes-example/example/files/sdlgl.c new file mode 100644 index 0000000..6066d77 --- /dev/null +++ b/recipes-example/example/files/sdlgl.c @@ -0,0 +1,166 @@ +// To compile with gcc: (tested on Ubuntu 14.04 64bit): +// g++ sdl2_opengl.cpp -lSDL2 -lGL +// To compile with msvc: (tested on Windows 7 64bit) +// cl sdl2_opengl.cpp /I C:\sdl2path\include /link C:\path\SDL2.lib C:\path\SDL2main.lib /SUBSYSTEM:CONSOLE /NODEFAULTLIB:libcmtd.lib opengl32.lib + +#include +#include +#include +#include +#include +#include + +typedef int32_t i32; +typedef uint32_t u32; +typedef int32_t b32; + +#define WinWidth 480 +#define WinHeight 640 + +int main(int ArgCount, char **Args) +{ + + u32 WindowFlags = SDL_WINDOW_OPENGL; + SDL_Window *Window = SDL_CreateWindow("OpenGL Test", 0, 0, 0, 0, WindowFlags); + assert(Window); + SDL_GLContext Context = SDL_GL_CreateContext(Window); + + static GLfloat v0[] = {-1.0f, -1.0f, 1.0f}; + static GLfloat v1[] = {1.0f, -1.0f, 1.0f}; + static GLfloat v2[] = {1.0f, 1.0f, 1.0f}; + static GLfloat v3[] = {-1.0f, 1.0f, 1.0f}; + static GLfloat v4[] = {-1.0f, -1.0f, -1.0f}; + static GLfloat v5[] = {1.0f, -1.0f, -1.0f}; + static GLfloat v6[] = {1.0f, 1.0f, -1.0f}; + static GLfloat v7[] = {-1.0f, 1.0f, -1.0f}; + static GLubyte red[] = {255, 0, 0, 255}; + static GLubyte green[] = {0, 255, 0, 255}; + static GLubyte blue[] = {0, 0, 255, 255}; + static GLubyte white[] = {255, 255, 255, 255}; + static GLubyte yellow[] = {0, 255, 255, 255}; + static GLubyte black[] = {0, 0, 0, 255}; + static GLubyte orange[] = {255, 255, 0, 255}; + static GLubyte purple[] = {255, 0, 255, 0}; + SDL_SetWindowFullscreen(Window,SDL_WINDOW_FULLSCREEN); + SDL_DisplayMode DM; + SDL_GetCurrentDisplayMode(0, &DM); + printf("Display size %dx%d\n", DM.w, DM.h); + int Running = 1; + while (Running) + { + SDL_Event Event; + while (SDL_PollEvent(&Event)) + { + if (Event.type == SDL_KEYDOWN) + { + switch (Event.key.keysym.sym) + { + case SDLK_ESCAPE: + Running = 0; + break; + default: + break; + } + } + else if (Event.type == SDL_QUIT) + { + Running = 0; + } + } + + glViewport(0, 0, DM.w, DM.h); + glClearColor(1.f, 0.f, 1.f, 0.f); + glClear(GL_COLOR_BUFFER_BIT); + /* Send our triangle data to the pipeline. */ + glBegin(GL_TRIANGLES); + + glColor4ubv(red); + glVertex3fv(v0); + glColor4ubv(green); + glVertex3fv(v1); + glColor4ubv(blue); + glVertex3fv(v2); + + glColor4ubv(red); + glVertex3fv(v0); + glColor4ubv(blue); + glVertex3fv(v2); + glColor4ubv(white); + glVertex3fv(v3); + + glColor4ubv(green); + glVertex3fv(v1); + glColor4ubv(black); + glVertex3fv(v5); + glColor4ubv(orange); + glVertex3fv(v6); + + glColor4ubv(green); + glVertex3fv(v1); + glColor4ubv(orange); + glVertex3fv(v6); + glColor4ubv(blue); + glVertex3fv(v2); + + glColor4ubv(black); + glVertex3fv(v5); + glColor4ubv(yellow); + glVertex3fv(v4); + glColor4ubv(purple); + glVertex3fv(v7); + + glColor4ubv(black); + glVertex3fv(v5); + glColor4ubv(purple); + glVertex3fv(v7); + glColor4ubv(orange); + glVertex3fv(v6); + + glColor4ubv(yellow); + glVertex3fv(v4); + glColor4ubv(red); + glVertex3fv(v0); + glColor4ubv(white); + glVertex3fv(v3); + + glColor4ubv(yellow); + glVertex3fv(v4); + glColor4ubv(white); + glVertex3fv(v3); + glColor4ubv(purple); + glVertex3fv(v7); + + glColor4ubv(white); + glVertex3fv(v3); + glColor4ubv(blue); + glVertex3fv(v2); + glColor4ubv(orange); + glVertex3fv(v6); + + glColor4ubv(white); + glVertex3fv(v3); + glColor4ubv(orange); + glVertex3fv(v6); + glColor4ubv(purple); + glVertex3fv(v7); + + glColor4ubv(green); + glVertex3fv(v1); + glColor4ubv(red); + glVertex3fv(v0); + glColor4ubv(yellow); + glVertex3fv(v4); + + glColor4ubv(green); + glVertex3fv(v1); + glColor4ubv(yellow); + glVertex3fv(v4); + glColor4ubv(black); + glVertex3fv(v5); + + glEnd(); + + SDL_GL_SwapWindow(Window); + } + return 0; +} \ No newline at end of file diff --git a/recipes-multimedia/libsdl2/libsdl2_%.bbappend b/recipes-multimedia/libsdl2/libsdl2_%.bbappend new file mode 100644 index 0000000..0e2f4d7 --- /dev/null +++ b/recipes-multimedia/libsdl2/libsdl2_%.bbappend @@ -0,0 +1,5 @@ +DEPENS += " mesa libdrm virtual/libgbm alsa virtual/libgles2 " +EXTRA_OECONF:append=" --disable-video-x11 \ + --disable-video-wayland \ + --enable-video-kmsdrm \ + --enable-video-opengles" \ No newline at end of file diff --git a/recipes-multimedia/pulseaudio/files/pulseaudio b/recipes-multimedia/pulseaudio/files/pulseaudio new file mode 100644 index 0000000..7d79910 --- /dev/null +++ b/recipes-multimedia/pulseaudio/files/pulseaudio @@ -0,0 +1,34 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/pulseaudio +NAME=pulseaudio +DESC="Pulse audio Server" +OPTS="--system" + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start -b -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop -x "$DAEMON" + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop -x "$DAEMON" + sleep 1 + start-stop-daemon --start -b -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend new file mode 100644 index 0000000..cff5c81 --- /dev/null +++ b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -0,0 +1,34 @@ + +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" +SRC_URI += "file://pulseaudio" + +#inherit update-rc.d + +#INITSCRIPT_NAME = "pulseaudio" +#INITSCRIPT_PARAMS = "defaults 75" +#PACKAGECONFIG += " webrtc " + +#FILES_${PN} += "${libexecdir}/pulse" + +#RDEPENDS_pulseaudio-server_remove = "pulseaudio-module-console-kit +# pulseaudio-module-x11-cork-request +# pulseaudio-module-x11-publish +# pulseaudio-module-x11-xsmp" + +do_install:append () { + install -d ${D}/${sysconfdir}/init.d + #sed -i 's/load-module module-native-protocol-unix/load-module module-native-protocol-unix auth-anonymous=1/g' ${D}/${sysconfdir}/pulse/system.pa + # echo "load-module module-echo-cancel source_name=antfx-source aec_method=webrtc aec_args=\"high_pass_filter=1 noise_suppression=0 analog_gain_control=0 digital_gain_control=1\"" >> ${D}/${sysconfdir}/pulse/system.pa + #echo "set-default-sink alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo" >> ${D}/${sysconfdir}/pulse/system.pa + #echo "set-default-source alsa_input.usb-GeneralPlus_USB_Audio_Device-00.mono-fallback" >> ${D}/${sysconfdir}/pulse/system.pa + + install -m 0755 ${WORKDIR}/pulseaudio ${D}/${sysconfdir}/init.d/pulseaudio +} + +pkg_postinst_ontarget:${PN} () { + update-rc.d pulseaudio defaults 75 +} + +# load-module module-echo-cancel source_name=antfx-source aec_args="high_pass_filter=1 noise_suppression=0 analog_gain_control=0" +# amixer -D pulse set Master/Capture 40% + \ No newline at end of file diff --git a/wic/rpi.wks.in b/wic/rpi.wks.in new file mode 100644 index 0000000..5ae063d --- /dev/null +++ b/wic/rpi.wks.in @@ -0,0 +1,8 @@ +# short-description: Create Raspberry Pi SD card image +# long-description: Creates a partitioned SD card image for use with +# Raspberry Pi. Boot files are located in the first vfat partition. + +part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 50 +part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 150 +part /home --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/home --ondisk mmcblk0 --fstype=ext4 --label home --align 1024 --size 16 +# part /home --ondisk mmcblk0 --fstype=vfat --label music --active --align 1024 --size 16 \ No newline at end of file