├── COPYING.MIT ├── README ├── conf ├── distro │ └── poky-atmel.conf ├── layer.conf ├── machine │ ├── at91sam9m10g45ek.conf │ ├── at91sam9rlek.conf │ ├── at91sam9x5ek-sd.conf │ ├── at91sam9x5ek.conf │ ├── include │ │ ├── at91sam9.inc │ │ ├── at91sam9m10g45.inc │ │ ├── at91sam9rl.inc │ │ ├── at91sam9x5.inc │ │ ├── bootloaders.inc │ │ ├── sam9x60.inc │ │ ├── sam9x75.inc │ │ ├── sama5.inc │ │ ├── sama5d2.inc │ │ ├── sama5d3.inc │ │ ├── sama5d4.inc │ │ ├── sama7.inc │ │ ├── sama7d65.inc │ │ └── sama7g5.inc │ ├── sam9x60-curiosity-sd.conf │ ├── sam9x60-curiosity.conf │ ├── sam9x60ek-sd.conf │ ├── sam9x60ek.conf │ ├── sam9x75-curiosity-sd.conf │ ├── sam9x75-curiosity.conf │ ├── sam9x75eb-sd.conf │ ├── sam9x75eb.conf │ ├── sama5d2-icp-sd.conf │ ├── sama5d2-ptc-ek-sd.conf │ ├── sama5d2-ptc-ek.conf │ ├── sama5d2-xplained-emmc.conf │ ├── sama5d2-xplained-sd.conf │ ├── sama5d2-xplained.conf │ ├── sama5d27-som1-ek-optee-sd.conf │ ├── sama5d27-som1-ek-sd.conf │ ├── sama5d27-wlsom1-ek-sd.conf │ ├── sama5d29-curiosity-sd.conf │ ├── sama5d3-xplained-sd.conf │ ├── sama5d3-xplained.conf │ ├── sama5d3xek.conf │ ├── sama5d4-xplained-sd.conf │ ├── sama5d4-xplained.conf │ ├── sama5d4ek.conf │ ├── sama7d65-curiosity-sd.conf │ ├── sama7d65-curiosity.conf │ ├── sama7g5ek-emmc.conf │ ├── sama7g5ek-optee-sd.conf │ ├── sama7g5ek-ospi.conf │ └── sama7g5ek-sd.conf └── templates │ └── default │ ├── bblayers.conf.sample │ ├── conf-notes.txt │ └── local.conf.sample ├── dynamic-layers └── aws-layer │ └── recipes-greengrass │ └── greengrass-core │ └── greengrass_%.bbappend ├── flashing.txt ├── licenses ├── ATMEL ├── ATMEL_LLA ├── ATMEL_LLA_SAM-BA ├── MICROCHIP_CAL └── MICROCHIP_FW ├── recipes-atmel └── images │ ├── atmel-demo-image.bb │ ├── atmel-demo-image.inc │ ├── atmel-xplained-lcd-demo-image.bb │ ├── microchip-graphics-image.bb │ └── microchip-headless-image.bb ├── recipes-bsp ├── at91bootstrap │ ├── at91bootstrap.inc │ ├── at91bootstrap_4.0.10.bb │ ├── at91bootstrap_4.0.5.bb │ └── at91bootstrap_4.0.6.bb ├── dt-overlay-mchp │ └── dt-overlay-mchp_git.bb └── u-boot │ ├── files │ └── envs │ │ ├── at91sam9x5ek-sd.txt │ │ ├── at91sam9x5ek.txt │ │ ├── sam9x60-curiosity-sd.txt │ │ ├── sam9x60-curiosity.txt │ │ ├── sam9x60ek-sd.txt │ │ ├── sam9x60ek.txt │ │ ├── sam9x75-curiosity-sd.txt │ │ ├── sam9x75-curiosity.txt │ │ ├── sam9x75eb-sd.txt │ │ ├── sam9x75eb.txt │ │ ├── sama5d2-icp-sd.txt │ │ ├── sama5d2-ptc-ek-sd.txt │ │ ├── sama5d2-ptc-ek.txt │ │ ├── sama5d2-xplained-emmc.txt │ │ ├── sama5d2-xplained-sd.txt │ │ ├── sama5d27-som1-ek-optee-sd.txt │ │ ├── sama5d27-som1-ek-sd.txt │ │ ├── sama5d27-wlsom1-ek-sd.txt │ │ ├── sama5d29-curiosity-sd.txt │ │ ├── sama5d3-xplained-sd.txt │ │ ├── sama5d3-xplained.txt │ │ ├── sama5d4-xplained-sd.txt │ │ ├── sama5d4-xplained.txt │ │ ├── sama7d65-curiosity-sd.txt │ │ ├── sama7d65-curiosity.txt │ │ ├── sama7g5ek-emmc.txt │ │ ├── sama7g5ek-optee-sd.txt │ │ ├── sama7g5ek-ospi.txt │ │ └── sama7g5ek-sd.txt │ ├── u-boot-atmel.inc │ ├── u-boot-envs-atmel.inc │ └── u-boot-mchp_2024.07.bb ├── recipes-connectivity ├── ble-bluez-hci-apps │ └── ble-bluez-hci-apps.bb ├── bluez5 │ └── bluez5_%.bbappend ├── hostapd │ ├── hostapd@.service │ ├── hostapd_%.bbappend │ ├── wilc_hostapd_open.conf │ └── wilc_hostapd_wpa.conf ├── kea │ ├── kea │ │ ├── 0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch │ │ └── kea-dhcp4.conf │ └── kea_%.bbappend ├── nfs-utils │ └── nfs-utils_%.bbappend ├── wilc-ble-apps │ ├── files │ │ ├── Start_AP.sh │ │ └── Start_STA.sh │ ├── wilc-ble-demo_1.0.bb │ ├── wilc-demo-fs-overlay.bb │ ├── wilc-websocket-demo_1.0.bb │ └── wireless-kit-webpages.bb └── wpa-supplicant │ ├── files │ └── wpa_supplicant.service │ └── wpa-supplicant_%.bbappend ├── recipes-core ├── busybox │ ├── busybox │ │ └── atmel_fragment.cfg │ └── busybox_%.bbappend ├── systemd │ ├── systemd-conf │ │ ├── 80-wifi-softap.network.example │ │ ├── 99-custom-system.conf │ │ └── eth.network │ ├── systemd-conf_%.bbappend │ └── systemd_%.bbappend └── udev-at91 │ ├── udev-rules-at91.bb │ └── udev-rules-at91 │ ├── keyboard.rules │ ├── ptc.rules │ ├── sam9x75 │ └── keyboard.rules │ └── sama7d65 │ └── keyboard.rules ├── recipes-devtools ├── sam-ba │ └── sam-ba_3.8.bb └── swig │ ├── swig │ ├── 0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch │ └── 0001-configure-use-pkg-config-for-pcre-detection.patch │ └── swig_3.0.8.bb ├── recipes-egt └── apps │ ├── egt-benchmark_1.3.bb │ ├── egt-launcher_1.5.1.bb │ ├── egt-media_1.3.bb │ ├── egt-samples-contribution_1.3.bb │ ├── egt-samples_1.7.bb │ ├── egt-thermostat_1.8.1.bb │ ├── files │ ├── 0001-launch.sh-use-systemctl-to-restart-egt.patch │ └── egtdemo.service │ ├── lohit-fonts.bb │ ├── mchp-egt-demo-init_1.0.bb │ └── noto-fonts.bb ├── recipes-graphics ├── fontconfig │ ├── files │ │ └── local.conf │ └── fontconfig_%.bbappend ├── libegt │ └── libegt_1.11.bb ├── libm2d │ └── libm2d_2.0.0.bb ├── libplanes │ └── libplanes_1.1.0.bb ├── mesa │ └── mesa_%.bbappend └── pixman │ ├── pixman │ └── 0001-Revert-Initialize-temporary-buffers-in-general_compo.patch │ └── pixman_%.bbappend ├── recipes-httpd └── nginx │ └── nginx_%.bbappend ├── recipes-kernel └── linux │ ├── linux-mchp-6.6.51 │ ├── sam9x60 │ │ └── at91_dt.cfg │ ├── sama5 │ │ └── sama5.cfg │ ├── sama5d2 │ │ ├── 0001-dts-include-optee-dtsi.patch │ │ ├── greengrass.cfg │ │ └── sama5-linux-optee.cfg │ ├── sama7g5ek │ │ ├── 0001-dts-include-optee-dtsi.patch │ │ ├── 0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch │ │ └── sama7g5ek-linux-optee.cfg │ └── userinput.cfg │ ├── linux-mchp-6.6.64 │ ├── sam9x60 │ │ └── at91_dt.cfg │ ├── sama5 │ │ └── sama5.cfg │ ├── sama5d2 │ │ ├── 0001-dts-include-optee-dtsi.patch │ │ ├── greengrass.cfg │ │ └── sama5-linux-optee.cfg │ ├── sama7g5ek │ │ ├── 0001-dts-include-optee-dtsi.patch │ │ ├── 0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch │ │ └── sama7g5ek-linux-optee.cfg │ └── userinput.cfg │ ├── linux-mchp_6.6.51.bb │ ├── linux-mchp_6.6.64.bb │ ├── linux.inc │ └── mchp-wireless-firmware_16.3.bb ├── recipes-multimedia ├── fswebcam │ └── fswebcam_git.bb ├── gstreamer │ └── gstreamer1.0-plugins-bad_%.bbappend ├── gstreamer1.0-plugins │ ├── files │ │ ├── 0001-g1-hantro-plugin-enable-RGB-dithering-for-PostProces.patch │ │ └── 0002-fix-configure.ac.patch │ ├── g1-binaries_1.2.bb │ ├── g1-decoder_1.0.bb │ ├── gstreamer1.0-plugins-hantro.inc │ ├── gstreamer1.0-plugins-hantro_1.0.bb │ ├── gstreamer1.0-plugins-hantro_1.1.bb │ ├── gstreamer1.0-plugins-hantro_1.2.bb │ ├── gstreamer1.0-plugins-hantro_1.3.bb │ ├── gstreamer1.0-plugins-hantro_1.4.bb │ ├── gstreamer1.0-plugins-hantro_1.5.bb │ ├── gstreamer1.0-plugins-hantro_1.6.bb │ └── gstreamer1.0-plugins-hantro_1.8.bb ├── libcamera │ ├── libcamera-mchp │ │ ├── 0001-media_device-Add-bool-return-type-to-unlock.patch │ │ ├── 0001-rpi-Use-malloc-instead-of-variable-length-arrays.patch │ │ └── 0002-options-Replace-use-of-VLAs-in-C.patch │ └── libcamera-mchp_0.3.1.bb └── ptc_examples │ └── ptc-examples_1.3.bb ├── recipes-security ├── cryptoauthlib │ ├── cryptoauthlib_3.7.7.bb │ └── files │ │ ├── 0001-pkcs11-add-KeyLen-condition.patch │ │ └── cryptoauthlib.module └── optee │ ├── optee-client_%.bbappend │ ├── optee-examples_%.bbappend │ ├── optee-os-tadevkit_%.bbappend │ ├── optee-os │ ├── 0001-drivers-clk-sam-extend-the-time-for-waiting-PLL-read.patch │ └── 0001-plat-sam-remove-NVMEM_HUK.patch │ ├── optee-os_%.bbappend │ └── optee-test_%.bbappend ├── recipes-support ├── gnutls │ └── gnutls_%.bbappend ├── libp11 │ └── libp11_%.bbappend ├── p11-kit │ └── p11-kit_%.bbappend ├── plplot │ ├── files │ │ ├── 0001-plplot-fix-configure-error-for-generating-header-fil.patch │ │ ├── 0001-xwin.cmake-Check-if-PTHREAD_MUTEX_RECURSIVE_NP-exist.patch │ │ ├── 0002-utils-CMakeLists.txt-disable-pltek-build.patch │ │ ├── deltaT.h │ │ ├── plhershey-unicode.h │ │ └── tai-utc.h │ └── plplot_5.15.0.bb └── python-cryptoauthlib │ └── python3-cryptoauthlib_20200208.bb ├── recipes-utils ├── 9bit │ ├── 9bit │ │ └── 0001-include-asm-generic-ioctls.h.patch │ └── 9bit_git.bb ├── mpio │ ├── mpio_1.3.bb │ ├── mpio_1.5.bb │ └── mpio_1.7.bb ├── mxt-app │ └── mxt-app_git.bb └── video-capture-at91 │ └── video-capture-at91_git.bb └── scripts └── lib └── wic └── canned-wks └── sdimage.wks /COPYING.MIT: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy 2 | of this software and associated documentation files (the "Software"), to deal 3 | in the Software without restriction, including without limitation the rights 4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 5 | copies of the Software, and to permit persons to whom the Software is 6 | furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in 9 | all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 17 | THE SOFTWARE. 18 | -------------------------------------------------------------------------------- /conf/distro/poky-atmel.conf: -------------------------------------------------------------------------------- 1 | require conf/distro/poky.conf 2 | 3 | DISTRO = "poky-atmel" 4 | 5 | DISTRO_FEATURES:remove ?= "opengl wayland vulkan x11 3g nfc pulseaudio" 6 | 7 | DISTRO_FEATURES += "pam ppp" 8 | 9 | # icu is needed to get egt 10 | PACKAGECONFIG_DISTRO:pn-egt ?= "icu openssl freetype fontconfig" 11 | 12 | EXTRA_OECONF:remove = "${DISABLE_STATIC}" 13 | PREFERRED_VERSION_swig = "3.0.8" 14 | 15 | VIRTUAL-RUNTIME_syslog = "busybox-syslog" 16 | 17 | HOSTTOOLS:append = " xxd" 18 | 19 | PACKAGECONFIG:remove:pn-rng-tools = "libjitterentropy" 20 | -------------------------------------------------------------------------------- /conf/layer.conf: -------------------------------------------------------------------------------- 1 | # We have a conf and classes directory, append to BBPATH 2 | BBPATH .= ":${LAYERDIR}" 3 | 4 | # We have a recipes directory, add to BBFILES 5 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" 6 | 7 | BBFILE_COLLECTIONS += "atmel" 8 | BBFILE_PATTERN_atmel := "^${LAYERDIR}/" 9 | BBFILE_PRIORITY_atmel = "10" 10 | 11 | LICENSE_PATH += "${LAYERDIR}/licenses" 12 | 13 | SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ 14 | mchp-egt-demo-init->udev-rules-at91 \ 15 | noto-fonts->fontconfig \ 16 | " 17 | 18 | LAYERSERIES_COMPAT_atmel = "scarthgap" 19 | VIRTUAL-RUNTIME_alsa-state = "" 20 | -------------------------------------------------------------------------------- /conf/machine/at91sam9m10g45ek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL AT91SAM9M10G45EK 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/at91sam9m10g45.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = "at91sam9m10g45ek.dtb \ 9 | " 10 | 11 | IMAGE_FSTYPES += " ubi tar.gz" 12 | 13 | # NAND 14 | MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo" 15 | UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512" 16 | MKENVIMAGE_EXTRA_ARGS = " -r " 17 | 18 | UBI_VOLNAME = "rootfs" 19 | 20 | UBOOT_MACHINE = "${MACHINE}_nandflash_config" 21 | UBOOT_ENTRYPOINT = "0x70008000" 22 | UBOOT_LOADADDRESS = "0x70008000" 23 | UBOOT_ENV_SIZE = "0x20000" 24 | -------------------------------------------------------------------------------- /conf/machine/at91sam9rlek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL AT91SAM9RLEK 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/at91sam9rl.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbgadget screen touchscreen" 8 | 9 | IMAGE_FSTYPES += " ubi tar.gz" 10 | 11 | # NAND 12 | MKUBIFS_ARGS = " -e 129024 -c 2047 -m 2048 -x lzo" 13 | UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512" 14 | MKENVIMAGE_EXTRA_ARGS = " -r " 15 | 16 | UBI_VOLNAME = "rootfs" 17 | 18 | UBOOT_MACHINE = "${MACHINE}_nandflash_config" 19 | UBOOT_ENTRYPOINT = "0x20008000" 20 | UBOOT_LOADADDRESS = "0x20008000" 21 | UBOOT_ENV_SIZE = "0x20000" 22 | -------------------------------------------------------------------------------- /conf/machine/at91sam9x5ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL AT91SAM9x5EK SD 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/at91sam9x5.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = "at91sam9g15ek.dtb \ 9 | at91sam9g25ek.dtb \ 10 | at91sam9g35ek.dtb \ 11 | at91sam9x25ek.dtb \ 12 | at91sam9x35ek.dtb \ 13 | " 14 | 15 | IMAGE_FSTYPES += " tar.gz wic" 16 | 17 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 18 | WKS_FILE = "sdimage-bootpart.wks" 19 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env at91sam9x5ek.itb" 20 | 21 | UBOOT_MACHINE ?= "at91sam9x5ek_mmc_defconfig" 22 | UBOOT_ENTRYPOINT = "0x20008000" 23 | UBOOT_LOADADDRESS = "0x20008000" 24 | UBOOT_ENV_SIZE = "0x4000" 25 | 26 | AT91BOOTSTRAP_MACHINE ?= "at91sam9x5ek" 27 | 28 | # Needed for FIT 29 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 30 | -------------------------------------------------------------------------------- /conf/machine/at91sam9x5ek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL AT91SAM9x5EK 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/at91sam9x5.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = "at91sam9g15ek.dtb \ 9 | at91sam9g25ek.dtb \ 10 | at91sam9g35ek.dtb \ 11 | at91sam9x25ek.dtb \ 12 | at91sam9x35ek.dtb \ 13 | " 14 | 15 | IMAGE_FSTYPES += " ubi tar.gz" 16 | 17 | # NAND 18 | MKUBIFS_ARGS = " -e 0x1f000 -c 2048 -m 0x800 -x lzo" 19 | UBINIZE_ARGS = " -m 0x800 -p 0x20000 -s 2048" 20 | MKENVIMAGE_EXTRA_ARGS = " -r " 21 | 22 | UBI_VOLNAME = "rootfs" 23 | 24 | UBOOT_MACHINE ?= "${MACHINE}_nandflash_config" 25 | UBOOT_ENTRYPOINT = "0x20008000" 26 | UBOOT_LOADADDRESS = "0x20008000" 27 | UBOOT_ENV_SIZE = "0x20000" 28 | 29 | AT91BOOTSTRAP_MACHINE ?= "at91sam9x5ek" 30 | 31 | # Needed for FIT 32 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 33 | -------------------------------------------------------------------------------- /conf/machine/include/at91sam9.inc: -------------------------------------------------------------------------------- 1 | # Atmel AT91SAM9 defaults 2 | require conf/machine/include/soc-family.inc 3 | require conf/machine/include/arm/armv5/tune-arm926ejs.inc 4 | require conf/machine/include/bootloaders.inc 5 | 6 | SOC_FAMILY = "at91sam9" 7 | 8 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} at91_dt_defconfig" 9 | 10 | PREFERRED_PROVIDER_virtual/kernel:at91sam9 ?= "linux-mchp" 11 | PREFERRED_PROVIDER_virtual/bootloader:at91sam9 ?= "u-boot-mchp" 12 | PREFERRED_PROVIDER_u-boot:at91sam9 ?= "u-boot-mchp" 13 | 14 | SERIAL_CONSOLES ?= "115200;ttyS0" 15 | -------------------------------------------------------------------------------- /conf/machine/include/at91sam9m10g45.inc: -------------------------------------------------------------------------------- 1 | # Atmel AT91SAM9M10G45 2 | require at91sam9.inc 3 | 4 | SOC_FAMILY = "at91sam9:sam9m10g45" 5 | -------------------------------------------------------------------------------- /conf/machine/include/at91sam9rl.inc: -------------------------------------------------------------------------------- 1 | # Atmel AT91SAM9RL defaults 2 | require at91sam9.inc 3 | 4 | SOC_FAMILY = "at91sam9:sam9rl" 5 | -------------------------------------------------------------------------------- /conf/machine/include/at91sam9x5.inc: -------------------------------------------------------------------------------- 1 | # Atmel AT91SAM9X5 defaults 2 | require at91sam9.inc 3 | 4 | SOC_FAMILY = "at91sam9:sam9x5" 5 | -------------------------------------------------------------------------------- /conf/machine/include/bootloaders.inc: -------------------------------------------------------------------------------- 1 | # Add bootloaders to the images of every machine 2 | EXTRA_IMAGEDEPENDS += "at91bootstrap virtual/bootloader" 3 | -------------------------------------------------------------------------------- /conf/machine/include/sam9x60.inc: -------------------------------------------------------------------------------- 1 | # Microchip SAM9X60 defaults 2 | require at91sam9.inc 3 | 4 | SOC_FAMILY = "at91sam9:sam9x60" 5 | -------------------------------------------------------------------------------- /conf/machine/include/sam9x75.inc: -------------------------------------------------------------------------------- 1 | # Microchip SAM9X75 defaults 2 | require at91sam9.inc 3 | 4 | SOC_FAMILY = "at91sam9:sam9x75" 5 | -------------------------------------------------------------------------------- /conf/machine/include/sama5.inc: -------------------------------------------------------------------------------- 1 | # Atmel SAMA5 defaults 2 | require conf/machine/include/soc-family.inc 3 | require conf/machine/include/arm/armv7a/tune-cortexa5.inc 4 | require conf/machine/include/bootloaders.inc 5 | 6 | SOC_FAMILY = "sama5" 7 | 8 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama5_defconfig" 9 | 10 | PREFERRED_PROVIDER_virtual/kernel:sama5 ?= "linux-mchp" 11 | PREFERRED_PROVIDER_virtual/bootloader:sama5 ?= "u-boot-mchp" 12 | PREFERRED_PROVIDER_u-boot:sama5 ?= "u-boot-mchp" 13 | 14 | PREFERRED_PROVIDER_jpeg ?= "jpeg" 15 | PREFERRED_PROVIDER_jpeg-native ?= "jpeg-native" 16 | 17 | SERIAL_CONSOLES ?= "115200;ttyS0" 18 | WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" 19 | -------------------------------------------------------------------------------- /conf/machine/include/sama5d2.inc: -------------------------------------------------------------------------------- 1 | # Atmel SAMA5D2 defaults 2 | require sama5.inc 3 | 4 | SOC_FAMILY = "sama5:sama5d2" 5 | 6 | DEFAULTTUNE = "cortexa5thf-neon-vfpv4" 7 | -------------------------------------------------------------------------------- /conf/machine/include/sama5d3.inc: -------------------------------------------------------------------------------- 1 | # Atmel SAMA5D3 defaults 2 | require sama5.inc 3 | 4 | SOC_FAMILY = "sama5:sama5d3" 5 | 6 | DEFAULTTUNE = "cortexa5thf" 7 | 8 | -------------------------------------------------------------------------------- /conf/machine/include/sama5d4.inc: -------------------------------------------------------------------------------- 1 | # Atmel SAMA5D4 defaults 2 | require sama5.inc 3 | 4 | SOC_FAMILY = "sama5:sama5d4" 5 | 6 | DEFAULTTUNE = "cortexa5thf-neon-vfpv4" 7 | -------------------------------------------------------------------------------- /conf/machine/include/sama7.inc: -------------------------------------------------------------------------------- 1 | # Microchip SAMA7 defaults 2 | require conf/machine/include/soc-family.inc 3 | require conf/machine/include/arm/armv7a/tune-cortexa7.inc 4 | require conf/machine/include/bootloaders.inc 5 | 6 | SOC_FAMILY = "sama7" 7 | 8 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig" 9 | 10 | PREFERRED_PROVIDER_virtual/kernel:sama7 ?= "linux-mchp" 11 | PREFERRED_PROVIDER_virtual/bootloader:sama7 ?= "u-boot-mchp" 12 | PREFERRED_PROVIDER_u-boot:sama7 ?= "u-boot-mchp" 13 | 14 | PREFERRED_PROVIDER_jpeg ?= "jpeg" 15 | PREFERRED_PROVIDER_jpeg-native ?= "jpeg-native" 16 | 17 | SERIAL_CONSOLES ?= "115200;ttyS0" 18 | WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" 19 | -------------------------------------------------------------------------------- /conf/machine/include/sama7d65.inc: -------------------------------------------------------------------------------- 1 | # Microchip SAMA7G5 defaults 2 | require sama7.inc 3 | 4 | SOC_FAMILY = "sama7:sama7d65" 5 | 6 | DEFAULTTUNE = "cortexa7hf-neon-vfpv4" 7 | -------------------------------------------------------------------------------- /conf/machine/include/sama7g5.inc: -------------------------------------------------------------------------------- 1 | # Microchip SAMA7G5 defaults 2 | require sama7.inc 3 | 4 | SOC_FAMILY = "sama7:sama7g5" 5 | 6 | DEFAULTTUNE = "cortexa7hf-neon-vfpv4" 7 | -------------------------------------------------------------------------------- /conf/machine/sam9x60-curiosity-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X60-CURIOSITY SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X60 curiosity board 4 | 5 | require include/sam9x60.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x60_curiosity.dtb " 9 | 10 | IMAGE_FSTYPES += " tar.gz wic" 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | WKS_FILE = "sdimage-bootpart.wks" 14 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sam9x60_curiosity.itb" 15 | 16 | UBOOT_MACHINE ?= "sam9x60_curiosity_mmc_defconfig" 17 | UBOOT_ENTRYPOINT = "0x20008000" 18 | UBOOT_LOADADDRESS = "0x20008000" 19 | UBOOT_ENV_SIZE = "0x4000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sam9x60_curiosity" 22 | 23 | # Needed for wic 24 | EXTRA_IMAGEDEPENDS += "dosfstools-native mtools-native" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x60-curiosity.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X60-CURIOSITY NAND 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X60 curiosity board 4 | 5 | require include/sam9x60.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x60_curiosity.dtb " 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "sam9x60_curiosity_nandflash_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x20000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sam9x60_curiosity" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x60ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X60-EK SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X60's evaluation board 4 | 5 | require include/sam9x60.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x60ek.dtb " 9 | 10 | IMAGE_FSTYPES += " tar.gz wic" 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | WKS_FILE = "sdimage-bootpart.wks" 14 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sam9x60ek.itb" 15 | 16 | UBOOT_MACHINE ?= "sam9x60ek_mmc_defconfig" 17 | UBOOT_ENTRYPOINT = "0x20008000" 18 | UBOOT_LOADADDRESS = "0x20008000" 19 | UBOOT_ENV_SIZE = "0x4000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sam9x60ek" 22 | 23 | # Needed for wic 24 | EXTRA_IMAGEDEPENDS += "dosfstools-native mtools-native" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x60ek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X60-EK NAND 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X6-EK's evaluation board 4 | 5 | require include/sam9x60.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x60ek.dtb " 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "sam9x60ek_nandflash_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x20000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sam9x60ek" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x75-curiosity-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X75-CURIOSITY SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X75 curiosity board 4 | 5 | require include/sam9x75.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x75_curiosity.dtb " 9 | 10 | IMAGE_FSTYPES += " tar.gz wic" 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | WKS_FILE = "sdimage-bootpart.wks" 14 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sam9x75_curiosity.itb" 15 | 16 | UBOOT_MACHINE ?= "sam9x75_curiosity_mmc_defconfig" 17 | UBOOT_ENTRYPOINT = "0x20008000" 18 | UBOOT_LOADADDRESS = "0x20008000" 19 | UBOOT_ENV_SIZE = "0x4000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sam9x75_curiosity" 22 | 23 | # Needed for wic 24 | EXTRA_IMAGEDEPENDS += "dosfstools-native mtools-native" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x75-curiosity.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X75-CURIOSITY NAND 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X75-CURIOSITY board 4 | 5 | require include/sam9x75.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x75_curiosity.dtb " 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "sam9x75_curiosity_nandflash_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x20000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sam9x75_curiosity" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x75eb-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X75EB SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X75EB board 4 | 5 | require include/sam9x75.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x75eb.dtb " 9 | 10 | IMAGE_FSTYPES += " tar.gz wic" 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | WKS_FILE = "sdimage-bootpart.wks" 14 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sam9x75eb.itb" 15 | 16 | UBOOT_MACHINE ?= "sam9x75eb_mmc_defconfig" 17 | UBOOT_ENTRYPOINT = "0x20008000" 18 | UBOOT_LOADADDRESS = "0x20008000" 19 | UBOOT_ENV_SIZE = "0x4000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sam9x75eb" 22 | 23 | # Needed for wic 24 | EXTRA_IMAGEDEPENDS += "dosfstools-native mtools-native" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sam9x75eb.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM9X75EB NAND 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X75EB board 4 | 5 | require include/sam9x75.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sam9x75eb.dtb " 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "sam9x75eb_nandflash_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x20000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sam9x75eb" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-icp-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 ICP SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAMA5D2 ICP Evaluation Kit 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm ext2 ext3 usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_icp.dtb \ 10 | " 11 | IMAGE_FSTYPES += " tar.gz wic" 12 | 13 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d2_icp.itb" 16 | 17 | UBOOT_MACHINE ?= "sama5d2_icp_mmc_defconfig" 18 | UBOOT_ENTRYPOINT = "0x20008000" 19 | UBOOT_LOADADDRESS = "0x20008000" 20 | UBOOT_ENV_SIZE = "0x4000" 21 | 22 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_icp" 23 | 24 | # Needed for FIT 25 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 26 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-ptc-ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 PTC EK SD 3 | #@DESCRIPTION: Machine configuration for Microchip SAMA5D2 PTC Evaluation Kit 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_ptc_ek.dtb \ 10 | " 11 | IMAGE_FSTYPES += " tar.gz wic" 12 | 13 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d2_ptc_ek.itb" 16 | 17 | UBOOT_MACHINE ?= "sama5d2_ptc_ek_mmc_defconfig" 18 | UBOOT_ENTRYPOINT = "0x20008000" 19 | UBOOT_LOADADDRESS = "0x20008000" 20 | UBOOT_ENV_SIZE = "0x4000" 21 | 22 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_ptc_ek" 23 | 24 | # Needed for FIT 25 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 26 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-ptc-ek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 PTC EK 3 | #@DESCRIPTION: Machine configuration for Microchip SAMA5D2 PTC Evaluation Kit 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_ptc_ek.dtb \ 10 | " 11 | IMAGE_FSTYPES += " ubi tar.gz" 12 | 13 | # NAND 14 | MKUBIFS_ARGS = " -e 0x1f000 -c 4000 -m 0x800 -x lzo" 15 | UBINIZE_ARGS = " -m 0x800 -p 0x20000" 16 | MKENVIMAGE_EXTRA_ARGS = " -r " 17 | 18 | UBI_VOLNAME = "rootfs" 19 | 20 | UBOOT_MACHINE ?= "sama5d2_ptc_ek_nandflash_defconfig" 21 | UBOOT_ENTRYPOINT = "0x20008000" 22 | UBOOT_LOADADDRESS = "0x20008000" 23 | UBOOT_ENV_SIZE = "0x20000" 24 | 25 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_ptc_ek" 26 | 27 | # Needed for FIT 28 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 29 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-xplained-emmc.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 Xplained eMMC 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board, boot from eMMC 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_xplained.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d2_xplained.itb" 17 | 18 | UBOOT_MACHINE ?= "sama5d2_xplained_emmc_defconfig" 19 | UBOOT_ENTRYPOINT = "0x20008000" 20 | UBOOT_LOADADDRESS = "0x20008000" 21 | UBOOT_ENV_SIZE = "0x2000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_xplained" 24 | 25 | # Needed for FIT 26 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 27 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-xplained-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 Xplained SD 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_xplained.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d2_xplained.itb" 17 | 18 | UBOOT_MACHINE ?= "sama5d2_xplained_mmc_defconfig" 19 | UBOOT_ENTRYPOINT = "0x20008000" 20 | UBOOT_LOADADDRESS = "0x20008000" 21 | UBOOT_ENV_SIZE = "0x4000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_xplained" 24 | 25 | # Needed for FIT 26 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 27 | -------------------------------------------------------------------------------- /conf/machine/sama5d2-xplained.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 Xplained 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d2_xplained.dtb \ 10 | " 11 | IMAGE_FSTYPES += " tar.gz wic" 12 | 13 | WKS_FILE = "sdimage.wks" 14 | 15 | # Install kernel and dtbs in rootfs that is on eMMC 16 | IMAGE_INSTALL:append = " kernel-image kernel-devicetree" 17 | 18 | UBOOT_MACHINE ?= "sama5d2_xplained_spiflash_defconfig" 19 | UBOOT_ENTRYPOINT = "0x20008000" 20 | UBOOT_LOADADDRESS = "0x20008000" 21 | UBOOT_ENV_SIZE = "0x20000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama5d2_xplained" 24 | 25 | # Needed for FIT 26 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 27 | -------------------------------------------------------------------------------- /conf/machine/sama5d27-som1-ek-optee-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 SOM1 EK OPTEE SD 3 | #@DESCRIPTION: Machine configuration for Atmel/Microchip's evaluation board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d27_som1_ek.dtb \ 10 | " 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | IMAGE_FSTYPES += " tar.gz wic" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d27_som1_ek.itb tee.bin \ 17 | " 18 | UBOOT_MACHINE ?= "sama5d27_som1_ek_mmc_optee_defconfig" 19 | UBOOT_ENV_SIZE = "0x1000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sama5d27_som1_ek" 22 | 23 | # Needed for FIT 24 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 25 | -------------------------------------------------------------------------------- /conf/machine/sama5d27-som1-ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 SOM1 EK SD 3 | #@DESCRIPTION: Machine configuration for Atmel/Microchip's evaluation board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d27_som1_ek.dtb \ 10 | " 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | IMAGE_FSTYPES += " tar.gz wic" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d27_som1_ek.itb \ 17 | " 18 | 19 | UBOOT_MACHINE ?= "sama5d27_som1_ek_mmc_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x4000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sama5d27_som1_ek" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sama5d27-wlsom1-ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D2 WLSOM1 EK SD 3 | #@DESCRIPTION: Machine configuration for Atmel/Microchip's evaluation board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d27_wlsom1_ek.dtb \ 10 | " 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | IMAGE_FSTYPES += " tar.gz wic" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d27_wlsom1_ek.itb \ 17 | " 18 | 19 | UBOOT_MACHINE ?= "sama5d27_wlsom1_ek_mmc_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x4000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sama5d27_wlsom1_ek" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sama5d29-curiosity-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA5D29-Curiosity micro SD 3 | #@DESCRIPTION: Machine configuration for Microchip's board 4 | 5 | require include/sama5d2.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d29_curiosity.dtb \ 10 | " 11 | 12 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 13 | IMAGE_FSTYPES += " tar.gz wic" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d29_curiosity.itb \ 17 | " 18 | 19 | UBOOT_MACHINE ?= "sama5d29_curiosity_mmc_defconfig" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x4000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sama5d29_curiosity" 25 | 26 | # Needed for wic 27 | EXTRA_IMAGEDEPENDS += "dosfstools-native mtools-native" 28 | 29 | # Needed for FIT 30 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 31 | -------------------------------------------------------------------------------- /conf/machine/sama5d3-xplained-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D3 Xplained SD 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d3.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen wifi" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d3_xplained.dtb \ 10 | " 11 | IMAGE_FSTYPES += " tar.gz wic" 12 | 13 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 14 | WKS_FILE = "sdimage-bootpart.wks" 15 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d3_xplained.itb" 16 | 17 | # used by sysvinit_2 18 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyGS0" 19 | 20 | UBOOT_MACHINE ?= "sama5d3_xplained_mmc_defconfig" 21 | UBOOT_ENTRYPOINT = "0x20008000" 22 | UBOOT_LOADADDRESS = "0x20008000" 23 | UBOOT_ENV_SIZE = "0x4000" 24 | 25 | AT91BOOTSTRAP_MACHINE ?= "sama5d3_xplained" 26 | 27 | # Needed for FIT 28 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 29 | -------------------------------------------------------------------------------- /conf/machine/sama5d3-xplained.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D3 Xplained 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d3.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen wifi" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d3_xplained.dtb \ 10 | " 11 | 12 | # used by sysvinit_2 13 | SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyGS0" 14 | 15 | IMAGE_FSTYPES += " ubi tar.gz" 16 | 17 | # NAND 18 | MKUBIFS_ARGS ?= " -e 0x1f000 -c 2048 -m 0x800 -x lzo" 19 | UBINIZE_ARGS ?= " -m 0x800 -p 0x20000 -s 2048" 20 | MKENVIMAGE_EXTRA_ARGS = " -r " 21 | 22 | UBI_VOLNAME = "rootfs" 23 | 24 | UBOOT_MACHINE ?= "sama5d3_xplained_nandflash_config" 25 | UBOOT_ENTRYPOINT = "0x20008000" 26 | UBOOT_LOADADDRESS = "0x20008000" 27 | UBOOT_ENV_SIZE = "0x20000" 28 | 29 | AT91BOOTSTRAP_MACHINE ?= "sama5d3_xplained" 30 | 31 | # Needed for FIT 32 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 33 | -------------------------------------------------------------------------------- /conf/machine/sama5d3xek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D3xek 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d3.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | sama5d31ek.dtb \ 10 | sama5d33ek.dtb \ 11 | sama5d34ek.dtb \ 12 | sama5d35ek.dtb \ 13 | sama5d36ek.dtb \ 14 | " 15 | 16 | IMAGE_FSTYPES += " ubi tar.gz" 17 | 18 | # NAND 19 | MKUBIFS_ARGS = " -e 0x1f000 -c 2048 -m 0x800 -x lzo" 20 | UBINIZE_ARGS = " -m 0x800 -p 0x20000 -s 2048" 21 | MKENVIMAGE_EXTRA_ARGS = " -r " 22 | 23 | UBI_VOLNAME = "rootfs" 24 | 25 | UBOOT_MACHINE ?= "${MACHINE}_nandflash_config" 26 | UBOOT_ENTRYPOINT = "0x20008000" 27 | UBOOT_LOADADDRESS = "0x20008000" 28 | UBOOT_ENV_SIZE = "0x20000" 29 | UBOOT_FIT_IMAGE = "xyes" 30 | -------------------------------------------------------------------------------- /conf/machine/sama5d4-xplained-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D4 Xplained Ultra SD 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d4.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d4_xplained.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama5d4_xplained.itb" 17 | 18 | UBOOT_MACHINE ?= "sama5d4_xplained_mmc_defconfig" 19 | UBOOT_ENTRYPOINT = "0x20008000" 20 | UBOOT_LOADADDRESS = "0x20008000" 21 | UBOOT_ENV_SIZE = "0x4000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama5d4_xplained" 24 | 25 | # Needed for FIT 26 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 27 | -------------------------------------------------------------------------------- /conf/machine/sama5d4-xplained.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D4 Xplained Ultra 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d4.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama5d4_xplained.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " ubi tar.gz" 13 | 14 | # NAND 15 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 16 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 17 | MKENVIMAGE_EXTRA_ARGS = " -r " 18 | 19 | UBI_VOLNAME = "rootfs" 20 | 21 | UBOOT_MACHINE ?= "sama5d4_xplained_nandflash_config" 22 | UBOOT_ENTRYPOINT = "0x20008000" 23 | UBOOT_LOADADDRESS = "0x20008000" 24 | UBOOT_ENV_SIZE = "0x20000" 25 | 26 | AT91BOOTSTRAP_MACHINE ?= "sama5d4_xplained" 27 | 28 | # Needed for FIT 29 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 30 | -------------------------------------------------------------------------------- /conf/machine/sama5d4ek.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: ATMEL SAMA5D4ek 3 | #@DESCRIPTION: Machine configuration for Atmel's evaluation board 4 | 5 | require include/sama5d4.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = "at91-sama5d4ek.dtb" 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "${MACHINE}_nandflash_config" 20 | UBOOT_ENTRYPOINT = "0x20008000" 21 | UBOOT_LOADADDRESS = "0x20008000" 22 | UBOOT_ENV_SIZE = "0x20000" 23 | -------------------------------------------------------------------------------- /conf/machine/sama7d65-curiosity-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA7D65-CURIOSITY SD 3 | #@DESCRIPTION: Machine configuration for Microchip's evaluation kit board 4 | 5 | require include/sama7d65.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama7d65_curiosity.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama7d65_curiosity.itb" 17 | 18 | UBOOT_MACHINE ?= "sama7d65_curiosity_mmc1_defconfig" 19 | UBOOT_ENTRYPOINT = "0x62000000" 20 | UBOOT_LOADADDRESS = "0x62000000" 21 | UBOOT_ENV_SIZE = "0x4000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama7d65_curiosity" 24 | 25 | # Needed for FIT 26 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 27 | 28 | MACHINEOVERRIDES =. "sama7d65:" 29 | -------------------------------------------------------------------------------- /conf/machine/sama7d65-curiosity.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: MICROCHIP SAM7D65-CURIOSITY NAND 3 | #@DESCRIPTION: Machine configuration for Microchip SAM9X75-CURIOSITY board 4 | 5 | require include/sama7d65.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget screen touchscreen" 8 | KERNEL_DEVICETREE = " at91-sama7d65_curiosity.dtb " 9 | 10 | IMAGE_FSTYPES += " ubi tar.gz" 11 | 12 | # NAND 13 | MKUBIFS_ARGS = " -e 0x3e000 -c 2082 -m 0x1000 -x lzo" 14 | UBINIZE_ARGS = " -m 0x1000 -p 0x40000" 15 | MKENVIMAGE_EXTRA_ARGS = " -r " 16 | 17 | UBI_VOLNAME = "rootfs" 18 | 19 | UBOOT_MACHINE ?= "sama7d65_curiosity_nandflash_defconfig" 20 | UBOOT_ENTRYPOINT = "0x62000000" 21 | UBOOT_LOADADDRESS = "0x62000000" 22 | UBOOT_ENV_SIZE = "0x4000" 23 | 24 | AT91BOOTSTRAP_MACHINE ?= "sama7d65_curiosity" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | -------------------------------------------------------------------------------- /conf/machine/sama7g5ek-emmc.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA7G5-EK eMMC 3 | #@DESCRIPTION: Machine configuration for Microchip's evaluation kit board 4 | 5 | require include/sama7g5.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama7g5ek.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama7g5ek.itb" 17 | 18 | UBOOT_MACHINE ?= "sama7g5ek_mmc_defconfig" 19 | UBOOT_ENTRYPOINT = "0x62000000" 20 | UBOOT_LOADADDRESS = "0x62000000" 21 | UBOOT_ENV_SIZE = "0x4000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama7g5ek" 24 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | 29 | MACHINEOVERRIDES =. "sama7g5ek:" 30 | -------------------------------------------------------------------------------- /conf/machine/sama7g5ek-optee-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA7G5-EK OPTEE SD 3 | #@DESCRIPTION: Machine configuration for Microchip's evaluation board 4 | 5 | require include/sama7g5.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama7g5ek.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama7g5ek.itb tee.bin" 17 | 18 | UBOOT_MACHINE ?= "sama7g5ek_mmc1_optee_defconfig" 19 | UBOOT_ENV_SIZE = "0x4000" 20 | 21 | AT91BOOTSTRAP_MACHINE ?= "sama7g5ek" 22 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig" 23 | 24 | # Needed for FIT 25 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 26 | 27 | MACHINEOVERRIDES =. "sama7g5ek:" 28 | -------------------------------------------------------------------------------- /conf/machine/sama7g5ek-ospi.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA7G5-EK oSPI 3 | #@DESCRIPTION: Machine configuration for Microchip's evaluation kit board 4 | 5 | require include/sama7g5.inc 6 | 7 | MACHINE_FEATURES = "apm ubi usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama7g5ek.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += "ubi tar.gz" 13 | 14 | IMAGE_ROOTFS_SIZE = "122880" 15 | IMAGE_ROOTFS_MAXSIZE = "122880" 16 | MKUBIFS_ARGS = " -e 0xff80 -c 1924 -m 1" 17 | UBINIZE_ARGS = " -m 1 -p 0x10000 -O 64 -s 1" 18 | 19 | UBI_VOLNAME = "rootfs" 20 | 21 | UBOOT_MACHINE ?= "sama7g5ek_qspi0_defconfig" 22 | UBOOT_ENTRYPOINT = "0x62000000" 23 | UBOOT_LOADADDRESS = "0x62000000" 24 | UBOOT_ENV_SIZE = "0x4000" 25 | 26 | AT91BOOTSTRAP_MACHINE ?= "sama7g5ek" 27 | 28 | # Needed for FIT 29 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 30 | 31 | MACHINEOVERRIDES =. "sama7g5ek:" 32 | -------------------------------------------------------------------------------- /conf/machine/sama7g5ek-sd.conf: -------------------------------------------------------------------------------- 1 | #@TYPE: Machine 2 | #@Name: Microchip SAMA7G5-EK SD 3 | #@DESCRIPTION: Machine configuration for Microchip's evaluation kit board 4 | 5 | require include/sama7g5.inc 6 | 7 | MACHINE_FEATURES = "apm alsa ext2 ext3 usbhost usbgadget" 8 | KERNEL_DEVICETREE = " \ 9 | at91-sama7g5ek.dtb \ 10 | " 11 | 12 | IMAGE_FSTYPES += " tar.gz wic" 13 | 14 | do_image_wic[depends] += "u-boot-mchp:do_deploy" 15 | WKS_FILE = "sdimage-bootpart.wks" 16 | IMAGE_BOOT_FILES = "BOOT.BIN u-boot.bin uboot.env sama7g5ek.itb" 17 | 18 | UBOOT_MACHINE ?= "sama7g5ek_mmc1_defconfig" 19 | UBOOT_ENTRYPOINT = "0x62000000" 20 | UBOOT_LOADADDRESS = "0x62000000" 21 | UBOOT_ENV_SIZE = "0x4000" 22 | 23 | AT91BOOTSTRAP_MACHINE ?= "sama7g5ek" 24 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig" 25 | 26 | # Needed for FIT 27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-mchp" 28 | 29 | MACHINEOVERRIDES =. "sama7g5ek:" 30 | -------------------------------------------------------------------------------- /conf/templates/default/bblayers.conf.sample: -------------------------------------------------------------------------------- 1 | # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf 2 | # changes incompatibly 3 | POKY_BBLAYERS_CONF_VERSION = "2" 4 | 5 | BBPATH = "${TOPDIR}" 6 | BBFILES ?= "" 7 | 8 | BBLAYERS ?= " \ 9 | ##OEROOT##/meta \ 10 | ##OEROOT##/meta-poky \ 11 | ##OEROOT##/meta-yocto-bsp \ 12 | ##OEROOT##/../meta-openembedded/meta-oe \ 13 | ##OEROOT##/../meta-openembedded/meta-networking \ 14 | ##OEROOT##/../meta-openembedded/meta-webserver \ 15 | ##OEROOT##/../meta-openembedded/meta-python \ 16 | ##OEROOT##/../meta-openembedded/meta-initramfs \ 17 | ##OEROOT##/../meta-atmel \ 18 | ##OEROOT##/../meta-openembedded/meta-multimedia \ 19 | ##OEROOT##/../meta-arm/meta-arm \ 20 | ##OEROOT##/../meta-arm/meta-arm-toolchain \ 21 | " 22 | -------------------------------------------------------------------------------- /conf/templates/default/conf-notes.txt: -------------------------------------------------------------------------------- 1 | 2 | ### Shell environment set up for builds. ### 3 | 4 | You can now run '[MACHINE=] bitbake ' 5 | 6 | Microchip supported machines are: 7 | - SAMA5D2 product family / sama5d2-xplained, sama5d2-xplained-emmc, sama5d27-som1-ek-sd, sama5d27-som1-ek-optee-sd, sama5d2-ptc-ek, sama5d2-icp, sama5d27-wlsom1-ek-sd, sama5d29-curiosity-sd 8 | - SAMA5D4 product family / sama5d4ek, sama5d4-xplained 9 | - SAMA5D3 product family / sama5d3xek, sama5d3-xplained 10 | - AT91SAM9x5 product family (AT91SAM9G15, AT91SAM9G25, AT91SAM9X25, AT91SAM9G35 and AT91SAM9X35) / at91sam9x5ek 11 | - AT91SAM9RL / at91sam9rlek 12 | - AT91SAM9G45 / at91sam9m10g45ek 13 | - SAM9X60 / sam9x60ek / sam9x60-curiosity 14 | - SAM9X75 / sam9x75-curiosity-sd / sam9x75eb 15 | - SAMA7G5 / sama7g5ek-sd, sama7g5ek-optee-sd, sama7g5ek-emmc, sama7g5ek-ospi 16 | - SAMA7D65 / sama7d65-curiosity 17 | Note that most of the machine names above, have a SD Card variant that can be 18 | built by adding an "-sd" suffix to the machine name. 19 | 20 | Microchip targets are: 21 | microchip-headless-image 22 | microchip-graphics-image 23 | 24 | Common targets are: 25 | core-image-minimal 26 | core-image-sato 27 | meta-toolchain 28 | meta-ide-support 29 | 30 | You can also run generated qemu images with a command like 'runqemu qemux86' 31 | 32 | Other commonly useful commands are: 33 | - 'devtool' and 'recipetool' handle common recipe tasks 34 | - 'bitbake-layers' handles common layer tasks 35 | - 'oe-pkgdata-util' handles common target package tasks 36 | -------------------------------------------------------------------------------- /dynamic-layers/aws-layer/recipes-greengrass/greengrass-core/greengrass_%.bbappend: -------------------------------------------------------------------------------- 1 | # do not start Greenrass at boot 2 | INITSCRIPT_PARAMS = "disable" 3 | 4 | # we remove these dependencies since we do not aim all the features of GG 5 | RDEPENDS:${PN}:remove = "docker python3-docker-compose openjdk-8" 6 | 7 | # packets recommended for Microchip CryptoAuthentication devices 8 | RRECOMMENDS:${PN} = " cryptoauthlib python3-cryptoauthlib p11-kit" 9 | -------------------------------------------------------------------------------- /flashing.txt: -------------------------------------------------------------------------------- 1 | Access to RomCode SAM-BA monitor 2 | ================================ 3 | 4 | This document explains how to access the RomCode SAM-BA monitor that allows to 5 | flash a system on various boards. 6 | The SAM-BA tool available on Microchip website connects to the chip's SAM-BA 7 | monitor as explained in the product's datasheet. 8 | Additional details can also be found on the Linux4SAM website, by selecting the 9 | appropriate board pages here: http://www.linux4sam.org 10 | 11 | Connect the board: 12 | o at91sam9g45m10ek: DBGU: J10, USB sam-ba: J14 13 | o at91sam9rlek: DBGU: J19, USB sam-ba: J21 14 | o at91sam9x5ek: DBGU: J11, USB sam-ba: J20 15 | o sama5d3xek: DBGU: J14, USB sam-ba: J20 16 | o sama5d3 Xplained: DBGU: J23, USB sam-ba: J6 17 | o sama5d4ek: DBGU: J22 or J24, USB sam-ba: J1 18 | o sama5d4 Xplained: DBGU: J1, USB sam-ba: J11 19 | o sam9x60: DBGU: J24, USB sam-ba: J8 20 | o sama5d27 wlsom1 ek: DBGU: J26, USB sam-ba: J10 21 | o sam9x60 curiosity: DBGU: J11, USB sam-ba: J1 22 | o sam9x75eb: DBGU: J34, USB sam-ba: U6 near RESET button 23 | o sam9x75 curiosity: DBGU: J32, USB sam-ba: J2 24 | 25 | Start the board in RomBOOT: 26 | o at91sam9g45m10ek: 27 | 1. open JP8, JP10 and JP12 28 | 2. start the board 29 | 3. close JP8, JP10 and JP12 30 | 31 | o at91sam9rlek: 32 | 1. J11 on 1-2 (BMS=1), open J12 and J13 33 | 2. start the board 34 | 3. close J12 and J13 35 | 36 | o at91sam9x5ek: 37 | 1. open JP9 and: 38 | - Cogent: open *NCS jumper 39 | - Embest: open SW1 40 | - Ronetix: open J1 and J2 41 | 2. start the board 42 | 3. close JP9 and: 43 | - Cogent: close *NCS jumper 44 | - Embest: close SW1 (ON position) 45 | - Ronetix: close J1 and J2 46 | 47 | o sama5d3xek: 48 | 1. start the board 49 | 2. push BP4 and BP1 50 | 3. release BP1 51 | 4. release BP4 52 | 53 | o sama5d3 Xplained: 54 | 1. open JP5 (NANDCS) and JP6 (SPICS) 55 | 2. start the board 56 | 3. close JP5 ans JP6 57 | 58 | o sama5d4ek: 59 | 1. start the board 60 | 2. push BP3 and BP4 61 | 3. release BP4 62 | 4. release BP3 63 | 64 | o sama5d4 Xplained: 65 | 1. close JP7 (BOOT_DIS) 66 | 2. start the board 67 | 3. open JP7 68 | 69 | o sam9x60ek: 70 | 1. close J14 71 | 2. start the board 72 | 3. open J14 73 | 74 | o sam9x60ek: 75 | 1. close J13 76 | 2. start the board 77 | 3. open J13 78 | 79 | o sam9x60 curiosity: 80 | 1. open J4 (NANDCS) and Remove SDMMC card. 81 | 2. Power on the board 82 | 83 | o sam9x75eb: 84 | 1. Power on the board 85 | 2. Remove SDMMC card and press DISABLE BOOT switch 86 | 3. Reboot the board 87 | 88 | o sam9x75 curiosity: 89 | 1. open J8 (NAND BOOT) and remove SDMMC card. 90 | 2. start the board 91 | 3. close J8 (NAND BOOT) 92 | 93 | "RomBOOT" should appear on your console (this should be ttyUSBx or ttyACMx) 94 | 95 | Now locate the USB sam-ba interface it should be ttyACMx, usually ttyACM0 96 | dmesg on your machine should give: 97 | usb 1-2.1.4: New USB device found, idVendor=03eb, idProduct=6124 98 | usb 1-2.1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0 99 | cdc_acm 1-2.1.4:1.0: ttyACM0: USB ACM device 100 | 101 | Look for idVendor=03eb, idProduct=6124, this is the interface you want to use. 102 | 103 | You can then flash the board using the SAM-BA tool. Helpful automation scripts 104 | are available in each board's demo archive available on Linux4SAM website 105 | (http://www.linux4sam.org). 106 | -------------------------------------------------------------------------------- /licenses/ATMEL: -------------------------------------------------------------------------------- 1 | Redistribution and use in source and binary forms, with or without 2 | modification, are permitted provided that the following conditions are met: 3 | 4 | - Redistributions of source code must retain the above copyright notice, 5 | this list of conditions and the disclaimer below. 6 | 7 | Atmel's name may not be used to endorse or promote products derived from 8 | this software without specific prior written permission. 9 | 10 | DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 11 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 12 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 13 | DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 14 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 15 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 16 | OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 17 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 18 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 19 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20 | 21 | -------------------------------------------------------------------------------- /licenses/MICROCHIP_CAL: -------------------------------------------------------------------------------- 1 | (c) 2015-2020 Microchip Technology Inc. and its subsidiaries. 2 | 3 | Subject to your compliance with these terms, you may use Microchip software 4 | and any derivatives exclusively with Microchip products. It is your 5 | responsibility to comply with third party license terms applicable to your 6 | use of third party software (including open source software) that may 7 | accompany Microchip software. 8 | 9 | THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER 10 | EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED 11 | WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A 12 | PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, 13 | SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE 14 | OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF 15 | MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. 16 | TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL 17 | CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF 18 | FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. 19 | -------------------------------------------------------------------------------- /licenses/MICROCHIP_FW: -------------------------------------------------------------------------------- 1 | REDISTRIBUTION: Permission is hereby granted by Microchip Technology 2 | Incorporated (Microchip), free of any license fees, to any person obtaining a 3 | copy of this firmware (the "Software"), to install, reproduce, copy and 4 | distribute copies, in binary form, hexadecimal or equivalent formats only, the 5 | Software and to permit persons to whom the Software is provided to do the same, 6 | subject to the following conditions: 7 | 8 | * Any redistribution of the Software must reproduce the above copyright notice, 9 | this license notice, and the following disclaimers and notices in the 10 | documentation and/or other materials provided with the Software. 11 | 12 | * Neither the name of Microchip, its products nor the names of its suppliers 13 | may be used to endorse or promote products derived from this Software without 14 | specific prior written permission. 15 | 16 | * No reverse engineering, decompilation, or disassembly of this Software is 17 | permitted. 18 | 19 | Limited patent license. Microchip grants a world-wide, royalty-free, 20 | non-exclusive, revocable license under any patents that it now has or hereafter 21 | may have, own or control related to the Software to make, have made, use, 22 | import, offer to sell and sell ("Utilize") this Software, but solely to the 23 | extent that any such patent is necessary to Utilize the Software in conjunction 24 | with Microchip processors. The patent license shall not apply to any other 25 | combinations which include this Software nor to any other Microchip patents or 26 | patent rights. No hardware per se is licensed hereunder. 27 | 28 | DISCLAIMER: THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR 29 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 32 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 33 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 34 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 35 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 36 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 37 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | -------------------------------------------------------------------------------- /recipes-atmel/images/atmel-demo-image.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "A generic image for network and communication." 2 | LICENSE = "MIT" 3 | PR = "r1" 4 | 5 | require atmel-demo-image.inc 6 | 7 | -------------------------------------------------------------------------------- /recipes-atmel/images/atmel-demo-image.inc: -------------------------------------------------------------------------------- 1 | IMAGE_FEATURES += "ssh-server-openssh package-management" 2 | 3 | IMAGE_INSTALL = "\ 4 | packagegroup-core-boot \ 5 | packagegroup-core-full-cmdline \ 6 | packagegroup-base-wifi \ 7 | packagegroup-base-bluetooth \ 8 | packagegroup-base-usbgadget \ 9 | kernel-modules \ 10 | lrzsz \ 11 | setserial \ 12 | opkg \ 13 | iperf3 \ 14 | \ 15 | nbench-byte \ 16 | lmbench \ 17 | \ 18 | linux-firmware-sd8686 \ 19 | linux-firmware-sd8688 \ 20 | linux-firmware-sd8787 \ 21 | linux-firmware-sd8797 \ 22 | linux-firmware-sd8801 \ 23 | linux-firmware-sd8887 \ 24 | linux-firmware-sd8897 \ 25 | linux-firmware-ralink \ 26 | linux-firmware-rtl8188 \ 27 | linux-firmware-rtl8723 \ 28 | linux-firmware-rtl8821 \ 29 | linux-firmware-rtl8192cu \ 30 | linux-firmware-rtl8192ce \ 31 | linux-firmware-rtl8192su \ 32 | linux-firmware-rtl8723 \ 33 | mchp-wireless-firmware \ 34 | \ 35 | alsa-utils \ 36 | i2c-tools \ 37 | devmem2 \ 38 | libgpiod-tools \ 39 | dosfstools \ 40 | libdrm-tests \ 41 | mtd-utils \ 42 | mtd-utils-ubifs \ 43 | dtc \ 44 | dtc-misc \ 45 | iproute2 \ 46 | iptables \ 47 | bridge-utils \ 48 | can-utils \ 49 | evtest \ 50 | python3-pyserial \ 51 | python3-smbus \ 52 | python3-ctypes \ 53 | python3-pip \ 54 | gdb \ 55 | usbutils \ 56 | wget \ 57 | hostapd \ 58 | 9bit \ 59 | rng-tools \ 60 | bluez5 \ 61 | wireless-regdb-static \ 62 | libdrm \ 63 | net-tools \ 64 | nftables \ 65 | phytool \ 66 | tcpdump \ 67 | kea \ 68 | ${CORE_IMAGE_EXTRA_INSTALL} \ 69 | " 70 | 71 | IMAGE_INSTALL:append:sam9x60 = " \ 72 | hostapd \ 73 | bonnie++ \ 74 | " 75 | 76 | inherit core-image 77 | -------------------------------------------------------------------------------- /recipes-atmel/images/atmel-xplained-lcd-demo-image.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "An image for boards with screen and resistive touchscreen." 2 | LICENSE = "MIT" 3 | PR = "r1" 4 | 5 | require atmel-demo-image.inc 6 | 7 | IMAGE_INSTALL += "\ 8 | packagegroup-base-usbhost \ 9 | mpg123 \ 10 | mpio \ 11 | lua-staticdev \ 12 | libplanes \ 13 | fb-test \ 14 | tslib \ 15 | tslib-conf \ 16 | tslib-tests \ 17 | tslib-calibrate \ 18 | " 19 | -------------------------------------------------------------------------------- /recipes-bsp/at91bootstrap/at91bootstrap_4.0.10.bb: -------------------------------------------------------------------------------- 1 | require at91bootstrap.inc 2 | 3 | LICENSE = "MIT" 4 | LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d" 5 | 6 | DEPENDS += " sam-ba-native" 7 | 8 | COMPATIBLE_MACHINE = '(sama5d2-icp-sd\ 9 | |sama5d2-ptc-ek|sama5d2-ptc-ek-sd\ 10 | |sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc\ 11 | |sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd\ 12 | |sama5d27-wlsom1-ek-sd\ 13 | |sama5d29-curiosity-sd\ 14 | |sama5d3-xplained|sama5d3-xplained-sd\ 15 | |sama5d4-xplained|sama5d4-xplained-sd\ 16 | |sama7g5ek-sd|sama7g5ek-emmc|sama7g5ek-ospi|sama7g5ek-optee-sd\ 17 | |sam9x60ek|sam9x60ek-sd\ 18 | |sam9x60-curiosity|sam9x60-curiosity-sd\ 19 | |sam9x75-curiosity|sam9x75-curiosity-sd|sam9x75eb|sam9x75eb-sd\ 20 | |sama7d65-curiosity|sama7d65-curiosity-sd\ 21 | )' 22 | 23 | SRC_URI = "git://github.com/linux4sam/at91bootstrap.git;protocol=https;branch=at91bootstrap-4.x" 24 | 25 | PV = "4.0.10+git${SRCPV}" 26 | SRCREV = "661b4d4f3361f6fc4f18dad2beb0dda7c92a5f52" 27 | 28 | S = "${WORKDIR}/git" 29 | 30 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC=${TARGET_PREFIX}gcc EXTRA_CC_ARGS="${TOOLCHAIN_OPTIONS}"' 31 | 32 | AT91BOOTSTRAP_BIN_PATH = "${S}/build/binaries" 33 | 34 | AT91BOOTSTRAP_CONFIG_PATH = "${S}/configs" 35 | 36 | do_deploy:append:sama7d65 () { 37 | install ${AT91BOOTSTRAP_BIN_PATH}/boot-plaintextimg.bin ${DEPLOYDIR}/${AT91BOOTSTRAP_IMAGE} 38 | 39 | cd ${DEPLOYDIR} 40 | ln -sf ${AT91BOOTSTRAP_IMAGE} ${AT91BOOTSTRAP_SYMLINK} 41 | ln -sf ${AT91BOOTSTRAP_IMAGE} boot-plaintextimg.bin 42 | 43 | # Create a symlink ready for file copy on SD card 44 | rm -f boot.bin BOOT.BIN 45 | ln -sf ${AT91BOOTSTRAP_IMAGE} BOOT.BIN 46 | } 47 | -------------------------------------------------------------------------------- /recipes-bsp/at91bootstrap/at91bootstrap_4.0.5.bb: -------------------------------------------------------------------------------- 1 | require at91bootstrap.inc 2 | 3 | LICENSE = "MIT" 4 | LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d" 5 | 6 | COMPATIBLE_MACHINE = '(sama5d3-xplained|sama5d3-xplained-sd|sama5d4-xplained|sama5d4-xplained-sd|sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc|sama5d2-ptc-ek|sama5d2-ptc-ek-sd|sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd|sama5d2-icp-sd|sam9x60ek|sam9x60ek-sd|sama5d27-wlsom1-ek-sd|sama7g5ek-sd|sama7g5ek-emmc|sama7g5ek-ospi|sam9x60-curiosity|sam9x60-curiosity-sd)' 7 | 8 | SRC_URI = "git://github.com/linux4sam/at91bootstrap.git;protocol=https;branch=at91bootstrap-4.x" 9 | 10 | PV = "4.0.5+git${SRCPV}" 11 | SRCREV = "8fe4b67188139e048b6ce6d0e231f1c457c3b072" 12 | 13 | S = "${WORKDIR}/git" 14 | 15 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC=${TARGET_PREFIX}gcc EXTRA_CC_ARGS="${TOOLCHAIN_OPTIONS}"' 16 | 17 | AT91BOOTSTRAP_BIN_PATH = "${S}/build/binaries" 18 | 19 | AT91BOOTSTRAP_CONFIG_PATH = "${S}/configs" 20 | -------------------------------------------------------------------------------- /recipes-bsp/at91bootstrap/at91bootstrap_4.0.6.bb: -------------------------------------------------------------------------------- 1 | require at91bootstrap.inc 2 | 3 | LICENSE = "MIT" 4 | LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d" 5 | 6 | COMPATIBLE_MACHINE = '(sama5d3-xplained|sama5d3-xplained-sd|sama5d4-xplained|sama5d4-xplained-sd|sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc|sama5d2-ptc-ek|sama5d2-ptc-ek-sd|sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd|sama5d2-icp-sd|sam9x60ek|sam9x60ek-sd|sama5d27-wlsom1-ek-sd|sama7g5ek-sd|sama7g5ek-emmc|sama7g5ek-ospi|sam9x60-curiosity|sam9x60-curiosity-sd)' 7 | 8 | SRC_URI = "git://github.com/linux4sam/at91bootstrap.git;protocol=https;branch=at91bootstrap-4.x" 9 | 10 | PV = "4.0.6+git${SRCPV}" 11 | SRCREV = "d166742ae1cf084a175c2433ac683f6cd8c07918" 12 | 13 | S = "${WORKDIR}/git" 14 | 15 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC=${TARGET_PREFIX}gcc EXTRA_CC_ARGS="${TOOLCHAIN_OPTIONS}"' 16 | 17 | AT91BOOTSTRAP_BIN_PATH = "${S}/build/binaries" 18 | 19 | AT91BOOTSTRAP_CONFIG_PATH = "${S}/configs" 20 | -------------------------------------------------------------------------------- /recipes-bsp/dt-overlay-mchp/dt-overlay-mchp_git.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Compile AT91 board device tree overlays and pack them in a FIT image" 2 | LICENSE = "(GPL-2.0-or-later & MIT)" 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=775626b7bc958bdcc525161f725ece0f \ 4 | file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \ 5 | file://LICENSES/MIT;md5=e8f57dd048e186199433be2c41bd3d6d" 6 | 7 | inherit deploy 8 | 9 | COMPATIBLE_MACHINE = '(sama5d3-xplained|sama5d3-xplained-sd|at91sam9x5ek|at91sam9x5ek-sd|sama5d4-xplained|sama5d4-xplained-sd|sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc|sama5d2-ptc-ek|sama5d2-ptc-ek-sd|sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d2-icp-sd|sam9x60ek|sam9x60ek-sd|sama5d27-wlsom1-ek-sd|sama5d29-curiosity-sd|sama7g5ek|sam9x60-curiosity|sam9x60-curiosity-sd|sam9x75-curiosity|sam9x75-curiosity-sd|sam9x75eb|sam9x75eb-sd|sama7d65-curiosity|sama7d65-curiosity-sd)' 10 | 11 | SRC_URI = "git://github.com/linux4microchip/dt-overlay-mchp.git;protocol=https;branch=master" 12 | 13 | PV = "1.0+git${SRCPV}" 14 | SRCREV = "38adadb46058737d700c8a8bc7722e1a33572469" 15 | 16 | DEPENDS = "virtual/kernel u-boot-mkimage-native dtc-native" 17 | 18 | S = "${WORKDIR}/git" 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" 20 | 21 | # Ensure that the machine is properly set 22 | AT91BOOTSTRAP_MACHINE ??= "${MACHINE}" 23 | 24 | do_compile[depends] += "virtual/kernel:do_deploy virtual/kernel:do_shared_workdir" 25 | do_compile[nostamp] = "1" 26 | 27 | do_compile () { 28 | # Check to properly identify the board 29 | if [ -z "${AT91BOOTSTRAP_MACHINE}" ]; then 30 | bbnote "No AT91BOOTSTRAP_MACHINE set for ${MACHINE}" 31 | exit 1 32 | fi 33 | 34 | if [ -d "${AT91BOOTSTRAP_MACHINE}" ]; then 35 | bbnote "Compiling DTBOs" 36 | oe_runmake DTC=dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${AT91BOOTSTRAP_MACHINE}_dtbos 37 | else 38 | bbnote "No DTBOs to compile" 39 | fi 40 | 41 | # Over-ride itb target in Makefile 42 | if [ -e "${AT91BOOTSTRAP_MACHINE}.its" ]; then 43 | bbnote "Creating the FIT image" 44 | DTC_OPTIONS="-Wno-unit_address_vs_reg -Wno-graph_child_address -Wno-pwms_property" 45 | mkimage -D "-i${DEPLOY_DIR_IMAGE} -p 1000 ${DTC_OPTIONS}" -f ${AT91BOOTSTRAP_MACHINE}.its ${AT91BOOTSTRAP_MACHINE}.itb 46 | else 47 | bbnote "No its file to create FIT images" 48 | fi 49 | } 50 | 51 | FILES:${PN} = "/boot/*.*" 52 | 53 | addtask install after do_compile 54 | 55 | do_install () { 56 | # Copy files to /boot 57 | if [ -e ${AT91BOOTSTRAP_MACHINE} ]; then 58 | install -d ${D}/boot 59 | install ${AT91BOOTSTRAP_MACHINE}/${AT91BOOTSTRAP_MACHINE}*.dtbo ${D}/boot 60 | fi; 61 | 62 | if [ -e ${AT91BOOTSTRAP_MACHINE}.itb ]; then 63 | install -d ${D}/boot 64 | install ${AT91BOOTSTRAP_MACHINE}.itb ${D}/boot/ 65 | install ${AT91BOOTSTRAP_MACHINE}.its ${D}/boot/ 66 | fi; 67 | } 68 | 69 | addtask deploy after do_install 70 | 71 | do_deploy () { 72 | #bbnote "Copying ${fit_image_basename}.itb and source file to ${DEPLOYDIR}..." 73 | if [ -e ${AT91BOOTSTRAP_MACHINE}.itb ]; then 74 | install ${AT91BOOTSTRAP_MACHINE}.itb ${DEPLOYDIR}/ 75 | install ${AT91BOOTSTRAP_MACHINE}.its ${DEPLOYDIR}/ 76 | fi; 77 | } 78 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/at91sam9x5ek-sd.txt: -------------------------------------------------------------------------------- 1 | at91sam9x35_test=test -n $cpu && test $cpu = AT91SAM9X35 && setenv board_name sam9x35 2 | at91sam9x25_test=test -n $cpu && test $cpu = AT91SAM9X25 && setenv board_name sam9x25 3 | at91sam9g25_test=test -n $cpu && test $cpu = AT91SAM9G25 && setenv board_name sam9g25 4 | at91sam9g35_test=test -n $cpu && test $cpu = AT91SAM9G35 && setenv board_name sam9g35 5 | bootcmd=run at91_test_cpu; run bootcmd_boot; 6 | at91_test_cpu=run at91sam9g15_test; run at91sam9g25_test; run at91sam9g35_test; run at91sam9x25_test; run at91sam9x35_test; setenv at91_dtb_config '#'${board_name}; 7 | at91sam9g15_test=test -n $cpu && test $cpu = AT91SAM9G15 && setenv board_name sam9g15 8 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait 9 | bootcmd_boot=fatload mmc 0:1 0x24000000 at91sam9x5ek.itb; bootm 0x24000000${at91_dtb_config} 10 | bootdelay=1 11 | ethact=gmac0 12 | stderr=serial 13 | stdin=serial 14 | stdout=serial 15 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/at91sam9x5ek.txt: -------------------------------------------------------------------------------- 1 | baudrate=115200 2 | at91sam9x35_test=test -n $cpu && test $cpu = AT91SAM9X35 && setenv board_name sam9x35 3 | at91sam9x25_test=test -n $cpu && test $cpu = AT91SAM9X25 && setenv board_name sam9x25 4 | at91sam9g25_test=test -n $cpu && test $cpu = AT91SAM9G25 && setenv board_name sam9g25 5 | at91sam9g35_test=test -n $cpu && test $cpu = AT91SAM9G35 && setenv board_name sam9g35 6 | bootcmd=run at91_test_cpu; run bootcmd_boot; 7 | at91_test_cpu=run at91sam9g15_test; run at91sam9g25_test; run at91sam9g35_test; run at91sam9x25_test; run at91sam9x35_test; setenv at91_dtb_config '#'${board_name}; 8 | at91sam9g15_test=test -n $cpu && test $cpu = AT91SAM9G15 && setenv board_name sam9g15 9 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw 10 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000${at91_dtb_config} 11 | bootdelay=1 12 | stderr=serial 13 | stdin=serial 14 | stdout=serial 15 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x60-curiosity-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 cma=16m 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sam9x60_curiosity.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x60-curiosity.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp0 cma=16m 18 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x60ek-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 cma=16m 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sam9x60ek.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x60ek.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=11 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp0 cma=16m 18 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x75-curiosity-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_mipi=Unknown-1:720x1280-16 2 | video_mode_lvds=Unknown-1:800x480-16 3 | eth_phy=lan8840 4 | wilc_S02=wilc 5 | at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay 6 | lvdstest=test -n $display && test $display = ST7262 && setenv display_var 'lvds' && setenv at91_video_bootargs video=${video_mode_lvds} 7 | mipitest=test -n $display && test $display = HX8394 && setenv display_var 'mipi' && setenv at91_video_bootargs video=${video_mode_mipi} 8 | at91_prepare_bootargs=test -n $at91_video_bootargs && setenv bootargs ${bootargs} ${at91_video_bootargs} 9 | at91_prepare_display_overlay=test -n $display_var && setenv at91_overlays_config ${at91_overlays_config}'#'${display_var} 10 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 cma=128m 11 | bootcmd=run at91_display_detect; run bootcmd_boot; 12 | bootcmd_boot=fatload mmc 0:1 0x24000000 sam9x75_curiosity.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config}#${eth_phy}#${wilc_S02} 13 | bootdelay=1 14 | ethact=gmac0 15 | stderr=serial 16 | stdin=serial 17 | stdout=serial 18 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x75-curiosity.txt: -------------------------------------------------------------------------------- 1 | video_mode_mipi=Unknown-1:720x1280-16 2 | video_mode_lvds=Unknown-1:800x480-16 3 | eth_phy=lan8840 4 | at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay 5 | lvdstest=test -n $display && test $display = ST7262 && setenv display_var 'lvds' && setenv at91_video_bootargs video=${video_mode_lvds} 6 | mipitest=test -n $display && test $display = HX8394 && setenv display_var 'mipi' && setenv at91_video_bootargs video=${video_mode_mipi} 7 | at91_prepare_bootargs=test -n $at91_video_bootargs && setenv bootargs ${bootargs} ${at91_video_bootargs} 8 | at91_prepare_display_overlay=test -n $display_var && setenv at91_overlays_config ${at91_overlays_config}'#'${display_var} 9 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=11 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp0 cma=128m 10 | bootcmd=run at91_display_detect; run bootcmd_boot; 11 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config}#${eth_phy} 12 | bootdelay=1 13 | ethact=gmac0 14 | stderr=serial 15 | stdin=serial 16 | stdout=serial 17 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x75eb-sd.txt: -------------------------------------------------------------------------------- 1 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 2 | bootcmd=fatload mmc 0:1 0x24000000 sam9x75eb.itb; bootm 0x24000000#kernel_dtb 3 | bootdelay=1 4 | ethact=gmac0 5 | stderr=serial 6 | stdin=serial 7 | stdout=serial 8 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sam9x75eb.txt: -------------------------------------------------------------------------------- 1 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp0 2 | bootcmd=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb 3 | bootdelay=1 4 | ethact=gmac0 5 | stderr=serial 6 | stdin=serial 7 | stdout=serial 8 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d2-icp-sd.txt: -------------------------------------------------------------------------------- 1 | bootcmd=run bootcmd_boot; 2 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 3 | bootcmd_boot=fatload mmc 0:1 0x21000000 sama5d2_icp.itb; bootm 0x21000000#kernel_dtb 4 | bootdelay=1 5 | ethact=gmac0 6 | stderr=serial 7 | stdin=serial 8 | stdout=serial 9 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d2-ptc-ek-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d2_ptc_ek.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d2-ptc-ek.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp1 18 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d2-xplained-emmc.txt: -------------------------------------------------------------------------------- 1 | baudrate=115200 2 | video_mode_pda4=Unknown-1:480x272-16 3 | video_mode_pda5=Unknown-1:800x480-16 4 | video_mode_pda7=Unknown-1:800x480-16 5 | video_mode_pda7b=Unknown-1:800x480-16 6 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 7 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 8 | at91_set_display=test -n $pda && setenv display $pda 9 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 12 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 13 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 14 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 15 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 16 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 17 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 18 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 19 | bootcmd_boot=ext4load mmc 0 0x24000000 boot/sama5d2_xplained.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 20 | bootdelay=1 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d2-xplained-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 18 | bootcmd_boot=fatload mmc 1:1 0x24000000 sama5d2_xplained.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d27-som1-ek-optee-sd.txt: -------------------------------------------------------------------------------- 1 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 2 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 3 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 4 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 5 | at91_set_display=test -n $pda && setenv display $pda 6 | board_name=sama5d27_som1_ek 7 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 atmel.pm_modes=dummy,ulp1 no_console_suspend 8 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 9 | bootcmd_boot=fatload mmc 0:1 ${loadaddr} ${board_name}.itb; bootm ${loadaddr}#kernel_dtb${at91_overlays_config}; 10 | bootdelay=1 11 | loadaddr=0x24000000 12 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 13 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 14 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 15 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 16 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 17 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 18 | stderr=serial@ffffee00 19 | stdin=serial@ffffee00 20 | stdout=serial@ffffee00 21 | video_mode_pda4=Unknown-1:480x272-16 22 | video_mode_pda5=Unknown-1:800x480-16 23 | video_mode_pda7=Unknown-1:800x480-16 24 | video_mode_pda7b=Unknown-1:800x480-16 25 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d27-som1-ek-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d27_som1_ek.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d27-wlsom1-ek-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 10 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 11 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 12 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 13 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 rng_core.default_quality=700 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d27_wlsom1_ek.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d29-curiosity-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 10 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 11 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 12 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 13 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp1 rng_core.default_quality=700 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d29_curiosity.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d3-xplained-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 6 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 7 | at91_set_display=test -n $pda && setenv display $pda 8 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 9 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 12 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 13 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 14 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 15 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 16 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 17 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait 18 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d3_xplained.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 19 | bootdelay=1 20 | ethact=gmac0 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d3-xplained.txt: -------------------------------------------------------------------------------- 1 | baudrate=115200 2 | video_mode_pda4=Unknown-1:480x272-16 3 | video_mode_pda5=Unknown-1:800x480-16 4 | video_mode_pda7=Unknown-1:800x480-16 5 | video_mode_pda7b=Unknown-1:800x480-16 6 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test; run pda4301test; run pda4301btest; 7 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 8 | at91_set_display=test -n $pda && setenv display $pda 9 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 12 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 13 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 14 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 15 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 16 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 17 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 18 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw 19 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config} 20 | bootdelay=1 21 | stderr=serial 22 | stdin=serial 23 | stdout=serial 24 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d4-xplained-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_pda4=Unknown-1:480x272-16 2 | video_mode_pda5=Unknown-1:800x480-16 3 | video_mode_pda7=Unknown-1:800x480-16 4 | video_mode_pda7b=Unknown-1:800x480-16 5 | video_mode_hdmi=HDMI-A-1:1152x768-16 6 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test;run hdmi_test; run pda4301test; run pda4301btest; 7 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 8 | at91_set_display=test -n $pda && setenv display $pda 9 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 10 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 12 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 13 | hdmi_test=test -n $display && test $display = hdmi && setenv display_var 'hdmi' && setenv video_mode ${video_mode_hdmi} 14 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 15 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 16 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 17 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 18 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 19 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait 20 | bootcmd_boot=fatload mmc 0:1 0x24000000 sama5d4_xplained.itb; bootm 0x24000000#kernel_dtb${at91_overlays_config} 21 | bootdelay=1 22 | ethact=gmac0 23 | stderr=serial 24 | stdin=serial 25 | stdout=serial 26 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama5d4-xplained.txt: -------------------------------------------------------------------------------- 1 | baudrate=115200 2 | video_mode_pda4=Unknown-1:480x272-16 3 | video_mode_pda5=Unknown-1:800x480-16 4 | video_mode_pda7=Unknown-1:800x480-16 5 | video_mode_pda7b=Unknown-1:800x480-16 6 | video_mode_hdmi=HDMI-A-1:1152x768-16 7 | at91_pda_detect=run pda4300test; run pda7000test; run pda7000btest; run pda5000test;run hdmi_test; run pda4301test; run pda4301btest; 8 | pda7000btest=test -n $display && test $display = 7000B && setenv display_var 'pda7b' && setenv video_mode ${video_mode_pda7b} 9 | at91_set_display=test -n $pda && setenv display $pda 10 | pda4300test=test -n $display && test $display = 4300 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 11 | pda4301test=test -n $display && test $display = 4301 && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 12 | pda4301btest=test -n $display && test $display = 4301B && setenv display_var 'pda4' && setenv video_mode ${video_mode_pda4} 13 | at91_prepare_bootargs=test -n $display_var && setenv bootargs ${bootargs} ${at91_video_bootargs} 14 | hdmi_test=test -n $display && test $display = hdmi && setenv display_var 'hdmi' && setenv video_mode ${video_mode_hdmi} 15 | at91_prepare_video_bootargs=test -n $display_var && setenv at91_video_bootargs video=${video_mode} 16 | pda7000test=test -n $display && test $display = 7000 && setenv display_var 'pda7' && setenv video_mode ${video_mode_pda7} 17 | at91_prepare_overlays_config=test -n $display_var && setenv at91_overlays_config '#'${display_var} 18 | bootcmd=run at91_set_display; run at91_pda_detect; run at91_prepare_video_bootargs; run at91_prepare_bootargs; run at91_prepare_overlays_config; run bootcmd_boot; 19 | pda5000test=test -n $display && test $display = 5000 && setenv display_var 'pda5' && setenv video_mode ${video_mode_pda5} 20 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw 21 | bootcmd_boot=nand read 0x24000000 0x00180000 0x680000; bootm 0x24000000#kernel_dtb${at91_overlays_config} 22 | bootdelay=1 23 | stderr=serial 24 | stdin=serial 25 | stdout=serial 26 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7d65-curiosity-sd.txt: -------------------------------------------------------------------------------- 1 | video_mode_mipi=Unknown-1:720x1280-16 2 | video_mode_lvds=Unknown-1:800x480-16 3 | eth_phy=lan8840 4 | at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay 5 | lvdstest=test -n $display && test $display = ST7262 && setenv display_var 'lvds' && setenv at91_video_bootargs video=${video_mode_lvds} 6 | mipitest=test -n $display && test $display = HX8394 && setenv display_var 'mipi' && setenv at91_video_bootargs video=${video_mode_mipi} 7 | at91_prepare_bootargs=test -n $at91_video_bootargs && setenv bootargs ${bootargs} ${at91_video_bootargs} 8 | at91_prepare_display_overlay=test -n $display_var && setenv at91_overlays_config ${at91_overlays_config}'#'${display_var} 9 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait atmel.pm_modes=standby,ulp0 cma=192m 10 | bootcmd=run at91_display_detect; run bootcmd_boot; 11 | bootcmd_boot=fatload mmc 0:1 0x63000000 sama7d65_curiosity.itb; bootm 0x63000000#kernel_dtb${at91_overlays_config} 12 | bootdelay=1 13 | ethact=gmac0 14 | stderr=serial 15 | stdin=serial 16 | stdout=serial 17 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7d65-curiosity.txt: -------------------------------------------------------------------------------- 1 | video_mode_mipi=Unknown-1:720x1280-16 2 | video_mode_lvds=Unknown-1:800x480-16 3 | eth_phy=lan8840 4 | at91_display_detect=run lvdstest; run mipitest; run at91_prepare_bootargs; run at91_prepare_display_overlay 5 | lvdstest=test -n $display && test $display = ST7262 && setenv display_var 'lvds' && setenv at91_video_bootargs video=${video_mode_lvds} 6 | mipitest=test -n $display && test $display = HX8394 && setenv display_var 'mipi' && setenv at91_video_bootargs video=${video_mode_mipi} 7 | at91_prepare_bootargs=test -n $at91_video_bootargs && setenv bootargs ${bootargs} ${at91_video_bootargs} 8 | at91_prepare_display_overlay=test -n $display_var && setenv at91_overlays_config ${at91_overlays_config}'#'${display_var} 9 | bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),6656k(itb)ro,-(rootfs) rootfstype=ubifs ubi.mtd=11 root=ubi0:rootfs rw atmel.pm_modes=standby,ulp0 cma=192m 10 | bootcmd=run at91_display_detect; run bootcmd_boot; 11 | bootcmd_boot=nand read 0x63000000 0x00180000 0x680000; bootm 0x63000000#kernel_dtb${at91_overlays_config} 12 | bootdelay=1 13 | ethact=gmac0 14 | stderr=serial 15 | stdin=serial 16 | stdout=serial 17 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7g5ek-emmc.txt: -------------------------------------------------------------------------------- 1 | #board=sama7g5ek 2 | #board_name=sama7g5ek 3 | bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait atmel.pm_modes=standby,ulp0 cma=192m 4 | bootcmd=fatload mmc 0:1 0x63000000 sama7g5ek.itb; bootm 0x63000000#kernel_dtb 5 | bootdelay=1 6 | ethact=gmac0 7 | stderr=serial 8 | stdin=serial 9 | stdout=serial 10 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7g5ek-optee-sd.txt: -------------------------------------------------------------------------------- 1 | #board=sama7g5ek 2 | #board_name=sama7g5ek 3 | bootargs=console=ttyS0,115200 root=/dev/mmcblk1p2 rootfstype=ext4 rw rootwait atmel.pm_modes=standby,ulp0 cma=192m 4 | bootcmd=fatload mmc 1:1 0x63000000 sama7g5ek.itb; bootm 0x63000000#kernel_dtb 5 | bootdelay=1 6 | ethact=gmac0 7 | stderr=serial 8 | stdin=serial 9 | stdout=serial 10 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7g5ek-ospi.txt: -------------------------------------------------------------------------------- 1 | #board=sama7g5ek 2 | #board_name=sama7g5ek 3 | bootargs=console=ttyS0,115200 rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw rootwait 4 | bootcmd=sf probe;sf read 0x63000000 0x180000 0x800000;bootm 0x63000000#kernel_dtb 5 | bootdelay=1 6 | ethact=gmac0 7 | stderr=serial 8 | stdin=serial 9 | stdout=serial 10 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/files/envs/sama7g5ek-sd.txt: -------------------------------------------------------------------------------- 1 | #board=sama7g5ek 2 | #board_name=sama7g5ek 3 | bootargs=console=ttyS0,115200 root=/dev/mmcblk1p2 rootfstype=ext4 rw rootwait atmel.pm_modes=standby,ulp0 cma=192m 4 | bootcmd=fatload mmc 1:1 0x63000000 sama7g5ek.itb; bootm 0x63000000#kernel_dtb 5 | bootdelay=1 6 | ethact=gmac0 7 | stderr=serial 8 | stdin=serial 9 | stdout=serial 10 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/u-boot-atmel.inc: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "U-Boot - the Universal Boot Loader" 2 | HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome" 3 | SECTION = "bootloaders" 4 | PROVIDES = "u-boot virtual/bootloader" 5 | 6 | inherit uboot-config deploy 7 | 8 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' 9 | 10 | DEPENDS += "dtc-native bc-native" 11 | 12 | # Allow setting an additional version string that will be picked up by the 13 | # u-boot build system and appended to the u-boot version. If the .scmversion 14 | # file already exists it will not be overwritten. 15 | UBOOT_LOCALVERSION ?= "" 16 | 17 | # Some versions of u-boot use .bin and others use .img. By default use .bin 18 | # but enable individual recipes to change this value. 19 | UBOOT_SUFFIX ?= "bin" 20 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" 21 | UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" 22 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}" 23 | UBOOT_MAKE_TARGET ?= "all" 24 | 25 | # Some versions of u-boot build an SPL (Second Program Loader) image that 26 | # should be packaged along with the u-boot binary as well as placed in the 27 | # deploy directory. For those versions they can set the following variables 28 | # to allow packaging the SPL. 29 | SPL_BINARY ?= "" 30 | SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}" 31 | SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" 32 | 33 | do_compile () { 34 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then 35 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' config.mk 36 | fi 37 | 38 | unset LDFLAGS 39 | unset CFLAGS 40 | unset CPPFLAGS 41 | 42 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] 43 | then 44 | echo ${UBOOT_LOCALVERSION} > ${B}/.scmversion 45 | echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion 46 | fi 47 | 48 | oe_runmake ${UBOOT_MACHINE} 49 | oe_runmake ${UBOOT_MAKE_TARGET} 50 | } 51 | 52 | do_install () { 53 | install -d ${D}/boot 54 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} 55 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} 56 | 57 | if [ -e ${WORKDIR}/fw_env.config ] ; then 58 | install -d ${D}${sysconfdir} 59 | install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config 60 | fi 61 | 62 | if [ "x${SPL_BINARY}" != "x" ] 63 | then 64 | install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} 65 | ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARY} 66 | fi 67 | } 68 | 69 | FILES:${PN} = "/boot ${sysconfdir}" 70 | FILESPATH =. "${FILE_DIRNAME}/u-boot-git/${MACHINE}:" 71 | 72 | do_deploy () { 73 | install -d ${DEPLOYDIR} 74 | install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} 75 | 76 | cd ${DEPLOYDIR} 77 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} 78 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} 79 | ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY} 80 | 81 | if [ "x${SPL_BINARY}" != "x" ] 82 | then 83 | install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} 84 | rm -f ${DEPLOYDIR}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_SYMLINK} 85 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARY} 86 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} 87 | fi 88 | } 89 | 90 | addtask deploy before do_build after do_compile 91 | 92 | TOOLCHAIN = "gcc" 93 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/u-boot-envs-atmel.inc: -------------------------------------------------------------------------------- 1 | # U-Boot Environments for AT91 boards 2 | 3 | SRC_URI:append = " file://envs/" 4 | 5 | ENV_FILENAME = "uboot.env" 6 | ENV_FILEPATH = "${WORKDIR}/envs" 7 | 8 | do_compile:append() { 9 | if [ -e "${ENV_FILEPATH}/${MACHINE}.txt" ]; then 10 | bbnote "Compile U-Boot environment for ${MACHINE}" 11 | ${B}/tools/mkenvimage ${MKENVIMAGE_EXTRA_ARGS} -s ${UBOOT_ENV_SIZE} ${ENV_FILEPATH}/${MACHINE}.txt -o ${ENV_FILENAME} 12 | else 13 | bbnote "No custom environment available for ${MACHINE}." 14 | fi 15 | } 16 | 17 | do_deploy:append() { 18 | if [ -e ${B}/${ENV_FILENAME} ]; then 19 | install -Dm 0644 ${B}/${ENV_FILENAME} ${DEPLOYDIR} 20 | fi 21 | } 22 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/u-boot-mchp_2024.07.bb: -------------------------------------------------------------------------------- 1 | require u-boot-atmel.inc 2 | require u-boot-envs-atmel.inc 3 | 4 | LICENSE = "GPL-2.0-or-later" 5 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=22;md5=b5410c33378a67de244a5877f9ff9a27" 6 | 7 | SRCREV = "dc7aff3a3e957a73d2dfdaf84b227a1ea66dd730" 8 | 9 | PV = "v2024.07-mchp+git${SRCPV}" 10 | 11 | DEPENDS += "coreutils-native bison-native flex-native" 12 | 13 | COMPATIBLE_MACHINE = '(at91sam9x5ek|at91sam9rlek|at91sam9m10g45ek\ 14 | |sama5d2-icp-sd\ 15 | |sama5d2-ptc-ek|sama5d2-ptc-ek-sd\ 16 | |sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc\ 17 | |sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd\ 18 | |sama5d27-wlsom1-ek-sd\ 19 | |sama5d29-curiosity-sd\ 20 | |sama5d3xek|sama5d3-xplained|sama5d3-xplained-sd\ 21 | |sama5d4ek|sama5d4-xplained|sama5d4-xplained-sd\ 22 | |sama7g5ek|sama7g5ek-optee-sd\ 23 | |sam9x60ek|sam9x60ek-sd\ 24 | |sam9x60-curiosity|sam9x60-curiosity-sd\ 25 | |sam9x75-curiosity|sam9x75-curiosity-sd\ 26 | |sam9x75eb|sam9x75eb-sd\ 27 | |sama7d65-curiosity|sama7d65-curiosity-sd\ 28 | )' 29 | 30 | UBRANCH = "u-boot-2024.07-mchp" 31 | 32 | SRC_URI = "git://github.com/linux4microchip/u-boot-mchp.git;protocol=https;branch=${UBRANCH}" 33 | 34 | S = "${WORKDIR}/git" 35 | 36 | PACKAGE_ARCH = "${MACHINE_ARCH}" 37 | -------------------------------------------------------------------------------- /recipes-connectivity/ble-bluez-hci-apps/ble-bluez-hci-apps.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "BlueZ BLE Applications" 2 | DESCRIPTION = "BlueZ BLE UART and DFU Applications" 3 | LICENSE = "MIT" 4 | LIC_FILES_CHKSUM = "file://README;md5=5413bb09d9a7d0e0baa6b9bb69034212" 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 6 | 7 | SRC_URI = "git://github.com/linux4microchip/ble_bluez_hci_apps.git;protocol=https;branch=master" 8 | SRCREV = "01f2dbbdbd5c7d4201a0cb1aa201980d50f670eb" 9 | 10 | PV = "1.0+git${SRCPV}" 11 | S = "${WORKDIR}/git" 12 | 13 | DEPENDS = "bluez5" 14 | 15 | inherit cmake pkgconfig 16 | 17 | EXTRA_OECMAKE += "-DCMAKE_C_FLAGS='${CMAKE_C_FLAGS} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/bluez5_utils -I${STAGING_INCDIR}/bluez5_utils/src'" 18 | LDFLAGS += "-L${STAGING_LIBDIR}/bluez5_utils/lib" 19 | 20 | do_install() { 21 | install -d ${D}${bindir} 22 | install -m 0755 ${B}/apps/ble_uart_app/ble-uart-bluez ${D}${bindir}/ 23 | install -m 0755 ${B}/apps/dfu_app/dfu-bluez ${D}${bindir}/ 24 | } 25 | 26 | FILES:${PN} = "${bindir}/*" 27 | -------------------------------------------------------------------------------- /recipes-connectivity/bluez5/bluez5_%.bbappend: -------------------------------------------------------------------------------- 1 | EXTRA_OECONF += "\ 2 | --enable-client \ 3 | " 4 | do_install:append() { 5 | install -d ${D}${includedir}/bluez5_utils/lib 6 | install -d ${D}${includedir}/bluez5_utils/gdbus 7 | install -d ${D}${includedir}/bluez5_utils/bluetooth 8 | install -d ${D}${includedir}/bluez5_utils/monitor 9 | install -d ${D}${includedir}/bluez5_utils/src/shared 10 | install -d ${D}${libdir}/bluez5_utils/lib 11 | 12 | install -m 0755 ${B}/tools/btgatt-server ${D}/usr/bin/bluez-gatt-server 13 | 14 | install -m 644 ${B}/src/.libs/libshared-mainloop.a ${D}/${libdir}/bluez5_utils/lib 15 | install -m 644 ${B}/src/.libs/libshared-glib.a ${D}/${libdir}/bluez5_utils/lib 16 | install -m 644 ${B}/gdbus/.libs/libgdbus-internal.a ${D}/${libdir}/bluez5_utils/lib 17 | install -m 644 ${B}/lib/.libs/libbluetooth-internal.a ${D}/${libdir}/bluez5_utils/lib 18 | 19 | install -m 644 ${S}/lib/*.h ${D}${includedir}/bluez5_utils/lib/ 20 | install -m 644 ${S}/gdbus/*.h ${D}${includedir}/bluez5_utils/gdbus/ 21 | install -m 644 ${S}/lib/*.h ${D}${includedir}/bluez5_utils/bluetooth 22 | install -m 644 ${S}/src/shared/*.h ${D}${includedir}/bluez5_utils/src/shared 23 | install -m 644 ${S}/monitor/*.h ${D}${includedir}/bluez5_utils/monitor/ 24 | } 25 | 26 | FILES:${PN} += "${usrbin}/bluez-gatt-server" 27 | 28 | FILES:${PN}-staticdev += " \ 29 | ${libdir}/bluez5_utils/lib/*.a \ 30 | ${includedir}/bluez5_utils/lib/*.h \ 31 | ${includedir}/bluez5_utils/src/shared/*.h \ 32 | ${includedir}/bluez5_utils/monitor/*.h \ 33 | " 34 | -------------------------------------------------------------------------------- /recipes-connectivity/hostapd/hostapd@.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator 3 | Before=network.target 4 | Wants=network.target 5 | 6 | [Service] 7 | Type=simple 8 | ExecStart=/usr/sbin/hostapd /etc/network/wilc_hostapd_%I.conf 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /recipes-connectivity/hostapd/hostapd_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/:" 2 | 3 | SRC_URI:append = " \ 4 | file://hostapd@.service \ 5 | file://wilc_hostapd_open.conf \ 6 | file://wilc_hostapd_wpa.conf \ 7 | " 8 | 9 | FILES:${PN} += " \ 10 | ${sysconfdir}/systemd/system/ \ 11 | ${sysconfdir}/network/ \ 12 | " 13 | 14 | S = "${WORKDIR}/hostapd-${PV}" 15 | 16 | do_configure:append() { 17 | echo 'CONFIG_SAE=y' >> ${S}/hostapd/.config 18 | echo 'CONFIG_DPP=y' >> ${S}/hostapd/.config 19 | echo 'CONFIG_OWE=y' >> ${S}/hostapd/.config 20 | echo 'CONFIG_IEEE80211W=y' >> ${S}/hostapd/.config 21 | } 22 | 23 | do_install:append () { 24 | install -d ${D}${sysconfdir}/systemd/system 25 | install -d ${D}${sysconfdir}/network 26 | install -m 0644 ${WORKDIR}/hostapd@.service ${D}${sysconfdir}/systemd/system 27 | install -m 0644 ${WORKDIR}/wilc_hostapd_open.conf ${D}${sysconfdir}/network 28 | install -m 0644 ${WORKDIR}/wilc_hostapd_wpa.conf ${D}${sysconfdir}/network 29 | } 30 | -------------------------------------------------------------------------------- /recipes-connectivity/hostapd/wilc_hostapd_open.conf: -------------------------------------------------------------------------------- 1 | interface=wlan0 2 | driver=nl80211 3 | ctrl_interface=/var/run/hostapd 4 | ssid=microchip-SoftAP 5 | dtim_period=2 6 | beacon_int=100 7 | channel=7 8 | hw_mode=g 9 | max_num_sta=8 10 | ap_max_inactivity=300 11 | -------------------------------------------------------------------------------- /recipes-connectivity/hostapd/wilc_hostapd_wpa.conf: -------------------------------------------------------------------------------- 1 | interface=wlan0 2 | driver=nl80211 3 | ctrl_interface=/var/run/hostapd 4 | ssid=microchip-WpaAP 5 | dtim_period=2 6 | beacon_int=100 7 | channel=7 8 | hw_mode=g 9 | max_num_sta=8 10 | ap_max_inactivity=300 11 | ieee80211n=1 12 | auth_algs=1 13 | 14 | ######### WPA/WPA2 ########### 15 | wpa=3 16 | wpa_passphrase=12345678 17 | wpa_key_mgmt=WPA-PSK 18 | wpa_pairwise=TKIP CCMP 19 | rsn_pairwise=CCMP 20 | -------------------------------------------------------------------------------- /recipes-connectivity/kea/kea/0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch: -------------------------------------------------------------------------------- 1 | From 5daa1b695b6b37d28ad92247ac674e0a7399788e Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Thu, 23 Nov 2023 10:18:20 +0530 4 | Subject: [PATCH] keactrl.in: create /var/lib/kea and /var/run/kea folder 5 | 6 | Create /var/lib/kea and /var/run/kea folder to fix below error: 7 | # keactrl start 8 | INFO/keactrl: Starting /usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf 9 | INFO/keactrl: Starting /usr/sbin/kea-dhcp6 -c /etc/kea/kea-dhcp6.conf 10 | INFO/keactrl: Starting /usr/sbin/kea-ctrl-agent -c /etc/kea/kea-ctrl-agent.conf 11 | Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile 12 | Service failed: Launch failed: Unable to open PID file '/var/run/kea/kea-ctrl-agent.kea-ctrl-agent.pid' for write 13 | [snip] 14 | ERROR [kea-dhcp4.dhcp4/615.140641792751488] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: Unable to open database: unable to open '/var/lib/kea/kea-leases4.csv' 15 | [snip] 16 | 17 | Signed-off-by: Mingli Yu 18 | Signed-off-by: Dharma Balasubiramani 19 | Upstream-Status: Pending 20 | --- 21 | src/bin/keactrl/keactrl.in | 2 ++ 22 | 1 file changed, 2 insertions(+) 23 | 24 | diff --git a/src/bin/keactrl/keactrl.in b/src/bin/keactrl/keactrl.in 25 | index e9f9b73..277c578 100644 26 | --- a/src/bin/keactrl/keactrl.in 27 | +++ b/src/bin/keactrl/keactrl.in 28 | @@ -479,6 +479,8 @@ case ${command} in 29 | # and if they are enabled in the keactrl configuration file. 30 | # The variables (dhcp4_srv, dhcp6_serv, dhcp_ddns_srv etc) are set in the 31 | # keactrl.conf file that shellcheck is unable to read. 32 | + [ -d @LOCALSTATEDIR@/run/kea ] || mkdir -p @LOCALSTATEDIR@/run/kea 33 | + [ -d @LOCALSTATEDIR@/lib/kea ] || mkdir -p @LOCALSTATEDIR@/lib/kea 34 | run_conditional "dhcp4" "start_server ${dhcp4_srv} -c ${kea_dhcp4_config_file} ${args}" 1 35 | run_conditional "dhcp6" "start_server ${dhcp6_srv} -c ${kea_dhcp6_config_file} ${args}" 1 36 | run_conditional "dhcp_ddns" "start_server ${dhcp_ddns_srv} -c ${kea_dhcp_ddns_config_file} \ 37 | -- 38 | 2.25.1 39 | 40 | -------------------------------------------------------------------------------- /recipes-connectivity/kea/kea/kea-dhcp4.conf: -------------------------------------------------------------------------------- 1 | /* 2 | *This configuration file sets up Kea DHCPv4 to provide IP addresses on interface 3 | *wlan0.It assigns IPs in the range 192.168.1.100 to 192.168.1.200 within the 4 | *subnet 192.168.1.0/24. 5 | */ 6 | 7 | { 8 | "Dhcp4": { 9 | "interfaces-config": { 10 | "interfaces": ["wlan0"] 11 | }, 12 | "subnet4": [ 13 | { 14 | "subnet": "192.168.1.0/24", 15 | "pools": [ 16 | { "pool": "192.168.1.100 - 192.168.1.200" } 17 | ], 18 | "option-data": [ 19 | { "code": 3, "data": "192.168.1.1" }, 20 | { "code": 6, "data": "192.168.1.1, 8.8.8.8" } 21 | ] 22 | } 23 | ] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /recipes-connectivity/kea/kea_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRC_URI:append = " file://0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch \ 4 | file://kea-dhcp4.conf \ 5 | " 6 | 7 | do_install:append () { 8 | install -d ${D}${sysconfdir}/kea 9 | install -m 0644 ${WORKDIR}/kea-dhcp4.conf ${D}${sysconfdir}/kea/kea-dhcp4.conf 10 | } 11 | -------------------------------------------------------------------------------- /recipes-connectivity/nfs-utils/nfs-utils_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | PACKAGECONFIG:remove = "proc-fs-mount" 4 | RDEPENDS:${PN}-mount = "" 5 | 6 | SYSTEMD_SERVICE:${PN}:remove = "nfs-server.service nfs-mountd.service" 7 | 8 | do_install:append() { 9 | rm -f ${D}${systemd_system_unitdir}/proc-fs-nfsd.mount 10 | rm -f ${D}${systemd_system_unitdir}/nfs-server.service 11 | rm -f ${D}${systemd_system_unitdir}/nfs-mountd.service 12 | } 13 | -------------------------------------------------------------------------------- /recipes-connectivity/wilc-ble-apps/wilc-ble-demo_1.0.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Bluetooth Connectivity Application" 2 | DESCRIPTION = "The example is to demonstrate BLE provisioning and BLE \ 3 | Transparent Services. \ 4 | the application is written using the BlueZ GATT service and it \ 5 | enables the WILC to host two GATT services, \ 6 | 1) transparent service 2) WiFi provisioning service \ 7 | The Microchip MBD application can be used to connect to WILC \ 8 | and transact BLE data through these BLE applications" 9 | 10 | AUTHOR = "Microchip Technology Inc" 11 | SECTION = "examples" 12 | LICENSE = "GPL-2.0-only" 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=2aadfbb30f3dc663d0c881ccb240fc4c" 14 | 15 | DEPENDS = "bluez5 wilc-demo-fs-overlay" 16 | SRC_URI = "git://github.com/MicrochipTech/wilcbtapps-buildroot-external-microchip.git;protocol=https;branch=master" 17 | PV = "1.0+git${SRCPV}" 18 | SRCREV = "9a3003d8c28da803bb0f621f888a643a0a0a7f76" 19 | 20 | S = "${WORKDIR}/git" 21 | 22 | do_compile () { 23 | ${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} -Wall \ 24 | -std=gnu11 -g -D_REENTRANT -static -I${STAGING_INCDIR}/bluez5_utils \ 25 | -L ${STAGING_LIBDIR}/bluez5_utils/lib transparent_service.c \ 26 | -o transparent_service -lshared-mainloop -lbluetooth-internal \ 27 | -lgdbus-internal -lc 28 | 29 | ${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} -Wall \ 30 | -std=gnu11 -g -D_REENTRANT -static -I${STAGING_INCDIR}/bluez5_utils \ 31 | -L ${STAGING_LIBDIR}/bluez5_utils/lib wifi_prov_service.c \ 32 | -o wifi_prov_service -lshared-mainloop -lbluetooth-internal \ 33 | -lgdbus-internal -lc 34 | } 35 | 36 | do_install () { 37 | install -d ${D}${bindir} 38 | install -m 0755 transparent_service ${D}${bindir} 39 | install -m 0755 wifi_prov_service ${D}${bindir} 40 | } 41 | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" 43 | 44 | FILES:${PN} += "${bindir}/transparent_service" 45 | FILES:${PN} += "${bindir}/wifi_prov_service" 46 | 47 | COMPATIBLE_MACHINE = "(at91sam9|sama5)" 48 | -------------------------------------------------------------------------------- /recipes-connectivity/wilc-ble-apps/wilc-demo-fs-overlay.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "RootFs files needed for WILC connectivity recipies" 2 | DESCRIPTION = "The recipie installs following 3 different types of files \ 3 | to the rootfs \ 4 | 1) Scripts to demonstrate WiFi/BLE applications on WILC \ 5 | a. Start_AP.sh -> Starts WILC as AP and Hosts Web server \ 6 | b. Start_STA.sh -> Connects to a AP in STA mode \ 7 | c. Start_BT.sh -> Start BLE Applications \ 8 | (Heartrate/Transparent/wifiProv service) \ 9 | d. Start_Provision.sh -> Places WILC back to Provision Mode \ 10 | \ 11 | 2) HTML files which enables web based provisioning to provide WiFi \ 12 | credentials. These HTML files are used by the NGINX webserver. \ 13 | \ 14 | 3) Hostapd configuration files needed to bring up the WILC in AP \ 15 | mode, the configuration file contains SSID and Beaconing information" 16 | 17 | AUTHOR = "Microchip Technology Incorporated" 18 | SECTION = "net" 19 | LICENSE = "Apache-2.0" 20 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 21 | 22 | SRC_URI = " file://Start_AP.sh \ 23 | file://Start_STA.sh \ 24 | " 25 | do_install () { 26 | install -D -m 0755 --target-directory=${D}${ROOT_HOME} ${WORKDIR}/Start_* 27 | } 28 | 29 | FILES:${PN} += "${ROOT_HOME}" 30 | 31 | COMPATIBLE_MACHINE = "(at91sam9|sama5)" 32 | -------------------------------------------------------------------------------- /recipes-connectivity/wilc-ble-apps/wilc-websocket-demo_1.0.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "WLAN Application to provision WILC via HTTP Web page" 2 | DESCRIPTION = "The example is to demonstrate HTTP Web based provisioning, \ 3 | the recipe contains a TCP socket based application which will let \ 4 | the NGINX hosted webpage to add the router credentials to \ 5 | wpa_supplicant.conf and thereby enables the device to connect to \ 6 | configured router it in the STA mode." 7 | 8 | AUTHOR = "Microchip Technology Inc" 9 | SECTION = "examples" 10 | LICENSE = "MIT" 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=e24bfdbf6035afa17b105dc86b249d9f" 12 | DEPENDS = "nginx" 13 | SRC_URI = "git://github.com/MicrochipTech/websocket-buildroot-external-microchip.git;protocol=https;branch=master" 14 | PV = "1.0+git${SRCPV}" 15 | SRCREV = "dccae5ea9b0710d4331a5a1f9f56764141b99117" 16 | 17 | S = "${WORKDIR}/git" 18 | 19 | do_compile () { 20 | ${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} -Wall \ 21 | -std=gnu11 -g -D_REENTRANT -static ${S}/websocket_control.c \ 22 | ${WORKDIR}/git/websocket_protocol.c -o websocket 23 | } 24 | 25 | do_install () { 26 | install -D -m 0755 --target-directory=${D}${ROOT_HOME} ${B}/websocket 27 | } 28 | 29 | FILES:${PN} += "${ROOT_HOME}" 30 | 31 | COMPATIBLE_MACHINE = "(at91sam9|sama5)" 32 | -------------------------------------------------------------------------------- /recipes-connectivity/wilc-ble-apps/wireless-kit-webpages.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Wireless Kit Webpages" 2 | AUTHOR = "Microchip Technology Inc" 3 | DESCRIPTION = "Fetches and installs the wireless kit webpages from GitHub \ 4 | for the Out of the box experience(OOBE) for our wireless kits." 5 | LICENSE = "CLOSED" 6 | LIC_FILES_CHKSUM = "" 7 | 8 | DEPENDS = "nginx" 9 | RDEPENDS:${PN} = "nginx" 10 | 11 | SRC_URI = "git://github.com/MicrochipTech/wireless_kit_webpages.git;protocol=https;branch=main" 12 | PV = "1.0+git${SRCPV}" 13 | SRCREV ="614bf48d8c8b87089748e4997f332cf2d5d73551" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | do_install() { 18 | 19 | # Create a new subdirectory under /var/www/localhost/html 20 | install -d ${D}/var/www/localhost/html/wireless_kit 21 | 22 | # Install new content from the fetched repository 23 | install -D -m 0755 ${S}/* --target-directory=${D}/var/www/localhost/html/wireless_kit 24 | 25 | } 26 | 27 | FILES:${PN} += "/var/www/localhost/html/wireless_kit" 28 | -------------------------------------------------------------------------------- /recipes-connectivity/wpa-supplicant/files/wpa_supplicant.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=WPA supplicant 3 | Before=network.target 4 | Wants=network.target 5 | 6 | [Service] 7 | Type=forking 8 | ExecStart=/usr/sbin/wpa_supplicant -B -iwlan0 -Dnl80211 -c /etc/wpa_supplicant.conf 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files/:" 2 | 3 | PACKAGECONFIG ??= "openssl" 4 | 5 | SRC_URI:append = " file://wpa_supplicant.service" 6 | 7 | FILES:${PN} += "${sysconfdir}/systemd/system/" 8 | 9 | do_configure:append() { 10 | echo 'CONFIG_SAE=y' >> wpa_supplicant/.config 11 | echo 'CONFIG_DPP=y' >> wpa_supplicant/.config 12 | echo 'CONFIG_OWE=y' >> wpa_supplicant/.config 13 | echo 'CONFIG_IEEE80211W=y' >> wpa_supplicant/.config 14 | } 15 | 16 | do_install:append () { 17 | install -d ${D}${sysconfdir}/systemd/system 18 | install -m 0644 ${WORKDIR}/wpa_supplicant.service ${D}${sysconfdir}/systemd/system 19 | } 20 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox/atmel_fragment.cfg: -------------------------------------------------------------------------------- 1 | # Thu Aug 31 17:24:25 2017 2 | CONFIG_WATCHDOG=y 3 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox_%.bbappend: -------------------------------------------------------------------------------- 1 | SRC_URI:append:sama5 = " file://atmel_fragment.cfg" 2 | SRC_URI:append:at91sam9 = " file://atmel_fragment.cfg" 3 | SRC_URI:append:sama7 = " file://atmel_fragment.cfg" 4 | 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 6 | 7 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd-conf/80-wifi-softap.network.example: -------------------------------------------------------------------------------- 1 | [Match] 2 | Type=wlan 3 | 4 | [Network] 5 | Address=192.168.1.1/24 6 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd-conf/99-custom-system.conf: -------------------------------------------------------------------------------- 1 | [Manager] 2 | LogLevel=notice 3 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd-conf/eth.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | Name=eth* 3 | 4 | [Network] 5 | DHCP=yes 6 | #Address=192.168.7.2 7 | #Netmask=255.255.255.0 8 | #Network=192.168.7.0 9 | #Gateway=192.168.7.1 10 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd-conf_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRC_URI:append = " \ 4 | file://eth.network \ 5 | file://80-wifi-softap.network.example \ 6 | file://99-custom-system.conf \ 7 | " 8 | 9 | FILES:${PN} += " \ 10 | ${sysconfdir}/systemd/network/ \ 11 | ${sysconfdir}/systemd/system.conf.d/ \ 12 | " 13 | 14 | do_install:append () { 15 | install -d ${D}${sysconfdir}/systemd/network 16 | install -m 0644 ${WORKDIR}/eth.network ${D}${sysconfdir}/systemd/network 17 | install -m 0644 ${WORKDIR}/80-wifi-softap.network.example ${D}${systemd_unitdir}/network 18 | install -D -m0644 ${WORKDIR}/99-custom-system.conf ${D}${sysconfdir}/systemd/system.conf.d/99-custom-system.conf 19 | } 20 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | PACKAGECONFIG:remove = " \ 4 | backlight \ 5 | binfmt \ 6 | gshadow \ 7 | firstboot \ 8 | hibernate \ 9 | ima \ 10 | localed \ 11 | logind \ 12 | machined \ 13 | nss \ 14 | nss-mymachines \ 15 | nss-resolve \ 16 | polkit \ 17 | pam \ 18 | quotacheck \ 19 | randomseed \ 20 | seccomp \ 21 | smack \ 22 | sysusers \ 23 | sysvinit \ 24 | utmp \ 25 | vconsole \ 26 | " 27 | -------------------------------------------------------------------------------- /recipes-core/udev-at91/udev-rules-at91.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Extra udev rules for AT91 boards" 2 | LICENSE = "GPL-2.0-or-later" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" 4 | 5 | SRC_URI = " file://keyboard.rules" 6 | SRC_URI:sam9x75 = " file://sam9x75/keyboard.rules" 7 | SRC_URI:sama7d65 = " file://sama7d65/keyboard.rules" 8 | 9 | S = "${WORKDIR}" 10 | 11 | SRC_URI:append:sama5d2 = " file://ptc.rules" 12 | 13 | do_install () { 14 | install -d ${D}${sysconfdir}/udev/rules.d 15 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ 16 | } 17 | 18 | do_install:sam9x75 () { 19 | install -d ${D}${sysconfdir}/udev/rules.d 20 | install -m 0644 ${WORKDIR}/sam9x75/*.rules ${D}${sysconfdir}/udev/rules.d/ 21 | } 22 | 23 | do_install:sama7d65 () { 24 | install -d ${D}${sysconfdir}/udev/rules.d 25 | install -m 0644 ${WORKDIR}/sama7d65/*.rules ${D}${sysconfdir}/udev/rules.d/ 26 | } 27 | -------------------------------------------------------------------------------- /recipes-core/udev-at91/udev-rules-at91/keyboard.rules: -------------------------------------------------------------------------------- 1 | # Create a symlink for the panel keyboard input which is has an I2C parent 2 | SUBSYSTEM=="input", SUBSYSTEMS=="i2c", KERNEL=="event[0-9]*", ENV{ID_INPUT_KEY}=="1", SYMLINK+="input/keyboard0" 3 | -------------------------------------------------------------------------------- /recipes-core/udev-at91/udev-rules-at91/ptc.rules: -------------------------------------------------------------------------------- 1 | # Create symlinks for the input devices found on the PTC wings 2 | SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="atmel_ptc[0-9]*", SYMLINK+="input/$attr{name}" 3 | -------------------------------------------------------------------------------- /recipes-core/udev-at91/udev-rules-at91/sam9x75/keyboard.rules: -------------------------------------------------------------------------------- 1 | # Create a symlink for the panel keyboard input which is has an platform parent 2 | SUBSYSTEM=="input", SUBSYSTEMS=="platform", KERNEL=="event[0-9]*", ENV{ID_INPUT_KEY}=="1", SYMLINK+="input/keyboard0" 3 | -------------------------------------------------------------------------------- /recipes-core/udev-at91/udev-rules-at91/sama7d65/keyboard.rules: -------------------------------------------------------------------------------- 1 | # Create a symlink for the panel keyboard input which is has an platform parent 2 | SUBSYSTEM=="input", SUBSYSTEMS=="platform", KERNEL=="event[0-9]*", ENV{ID_INPUT_KEY}=="1", SYMLINK+="input/keyboard0" 3 | -------------------------------------------------------------------------------- /recipes-devtools/sam-ba/sam-ba_3.8.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip SAM-BA In-system Programmer" 2 | SECTION = "devel" 3 | LICENSE = "GPL-2.0-only" 4 | 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6 | 7 | SRC_URI = "https://github.com/atmelcorp/${BPN}/releases/download/v${PV}/${BPN}_v${PV}-linux_x86_64.tar.gz" 8 | SRC_URI[md5sum] = "b2d0eb543fedc0e6fc3e5fc971eacdb1" 9 | SRC_URI[sha256sum] = "22b362271815dad7666478d1c6cb20a111cdcbf2c82c81a63d553a00d6c92a0c" 10 | 11 | S = "${WORKDIR}/${BPN}_v${PV}" 12 | 13 | do_install () { 14 | install -d ${D}${bindir}/ 15 | cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${bindir}/ 16 | } 17 | 18 | INSANE_SKIP:${PN} += "already-stripped" 19 | BBCLASSEXTEND = "native nativesdk" 20 | 21 | COMPATIBLE_HOST:class-target = "" 22 | -------------------------------------------------------------------------------- /recipes-devtools/swig/swig/0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch: -------------------------------------------------------------------------------- 1 | From a4a0440a644c6c5e5da096efe3cf05ba309a284f Mon Sep 17 00:00:00 2001 2 | From: "NODA, Kai" 3 | Date: Sun, 22 Apr 2012 17:01:02 +0900 4 | Subject: [PATCH] Use /proc/self/exe for "swig -swiglib" on non-Win32 5 | platforms. 6 | 7 | If it wasn't found, then fall back to a fixed string just as before. 8 | 9 | Upstream-Status: Submitted 10 | http://sourceforge.net/mailarchive/message.php?msg_id=29179733 11 | 12 | --- 13 | Source/Modules/main.cxx | 24 ++++++++++++++++++++++-- 14 | 1 file changed, 22 insertions(+), 2 deletions(-) 15 | 16 | diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx 17 | index d2f5d3b..cbb0a12 100644 18 | --- a/Source/Modules/main.cxx 19 | +++ b/Source/Modules/main.cxx 20 | @@ -26,6 +26,11 @@ char cvsroot_main_cxx[] = "$Id$"; 21 | #include "cparse.h" 22 | #include 23 | #include // for INT_MAX 24 | +#ifndef _WIN32 25 | +#include 26 | +#include // for readlink 27 | +#include // for stat 28 | +#endif 29 | 30 | // Global variables 31 | 32 | @@ -902,9 +907,9 @@ int SWIG_main(int argc, char *argv[], Language *l) { 33 | 34 | // Check for SWIG_LIB environment variable 35 | if ((c = getenv("SWIG_LIB")) == (char *) 0) { 36 | + char *p; 37 | #if defined(_WIN32) 38 | char buf[MAX_PATH]; 39 | - char *p; 40 | if (!(GetModuleFileName(0, buf, MAX_PATH) == 0 || (p = strrchr(buf, '\\')) == 0)) { 41 | *(p + 1) = '\0'; 42 | SwigLib = NewStringf("%sLib", buf); // Native windows installation path 43 | @@ -914,7 +919,22 @@ int SWIG_main(int argc, char *argv[], Language *l) { 44 | if (Len(SWIG_LIB_WIN_UNIX) > 0) 45 | SwigLibWinUnix = NewString(SWIG_LIB_WIN_UNIX); // Unix installation path using a drive letter (for msys/mingw) 46 | #else 47 | - SwigLib = NewString(SWIG_LIB); 48 | + char buf[PATH_MAX]; 49 | + if (0 < ::readlink("/proc/self/exe", buf, sizeof(buf)) && 50 | + (p = ::strstr(buf, "/bin/swig"))) { 51 | + int major, minor, patch; 52 | + const int ret = ::sscanf(VERSION, "%d.%d.%d", &major, &minor, &patch); 53 | + if (3 == ret) { 54 | + const ::ptrdiff_t dir_part_len = p - buf; 55 | + ::snprintf(p, PATH_MAX - dir_part_len, "/share/swig/%d.%d.%d", major, minor, patch); 56 | + struct ::stat stat_res; 57 | + if (0 == ::stat(buf, &stat_res) && S_ISDIR(stat_res.st_mode)) { 58 | + SwigLib = NewString(buf); 59 | + } 60 | + } 61 | + } 62 | + if (NULL == SwigLib) 63 | + SwigLib = NewString(SWIG_LIB); 64 | #endif 65 | } else { 66 | SwigLib = NewString(c); 67 | -- 68 | 1.7.9.5 69 | 70 | -------------------------------------------------------------------------------- /recipes-devtools/swig/swig/0001-configure-use-pkg-config-for-pcre-detection.patch: -------------------------------------------------------------------------------- 1 | From 5c4d6d8538994d5fe9b3b46bfafaf0a605e3bda6 Mon Sep 17 00:00:00 2001 2 | From: Koen Kooi 3 | Date: Tue, 17 Jun 2014 08:18:17 +0200 4 | Subject: [PATCH] configure: use pkg-config for pcre detection 5 | 6 | Signed-off-by: Koen Kooi 7 | Upstream-Status: pending 8 | --- 9 | configure.ac | 38 +++++++------------------------------- 10 | 1 file changed, 7 insertions(+), 31 deletions(-) 11 | 12 | diff --git a/configure.ac b/configure.ac 13 | index 0c984b7..6edcec1 100644 14 | --- a/configure.ac 15 | +++ b/configure.ac 16 | @@ -70,38 +70,14 @@ AC_MSG_RESULT([$with_pcre]) 17 | 18 | dnl To make configuring easier, check for a locally built PCRE using the Tools/pcre-build.sh script 19 | if test x"${with_pcre}" = xyes ; then 20 | - AC_MSG_CHECKING([whether to use local PCRE]) 21 | - local_pcre_config=no 22 | - if test -z $PCRE_CONFIG; then 23 | - if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then 24 | - PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config 25 | - local_pcre_config=$PCRE_CONFIG 26 | - fi 27 | - fi 28 | - AC_MSG_RESULT([$local_pcre_config]) 29 | -fi 30 | -AS_IF([test "x$with_pcre" != xno], 31 | - [AX_PATH_GENERIC([pcre], 32 | - [], dnl Minimal version of PCRE we need -- accept any 33 | - [], dnl custom sed script for version parsing is not needed 34 | - [AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) 35 | - LIBS="$LIBS $PCRE_LIBS" 36 | - CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" 37 | - ], 38 | - [AC_MSG_FAILURE([ 39 | - Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) 40 | - library package. This dependency is needed for configure to complete, 41 | - Either: 42 | - - Install the PCRE developer package on your system (preferred approach). 43 | - - Download the PCRE source tarball, build and install on your system 44 | - as you would for any package built from source distribution. 45 | - - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically 46 | - link against. Run 'Tools/pcre-build.sh --help' for instructions. 47 | - (quite easy and does not require privileges to install PCRE on your system) 48 | - - Use configure --without-pcre to disable regular expressions support in SWIG 49 | - (not recommended).]) 50 | - ]) 51 | + PKG_CHECK_MODULES([PCRE], [libpcre], [ 52 | + AC_DEFINE([HAVE_PCRE], [1], [Define if you have PCRE library]) 53 | + LIBS="$LIBS $PCRE_LIBS" 54 | + CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" 55 | + ], [ 56 | + AC_MSG_WARN([$PCRE_PKG_ERRORS]) 57 | ]) 58 | +fi 59 | 60 | 61 | dnl CCache 62 | -- 63 | 1.9.3 64 | 65 | -------------------------------------------------------------------------------- /recipes-devtools/swig/swig_3.0.8.bb: -------------------------------------------------------------------------------- 1 | require recipes-devtools/swig/${BPN}.inc 2 | 3 | SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch \ 4 | file://0001-configure-use-pkg-config-for-pcre-detection.patch \ 5 | " 6 | SRC_URI[md5sum] = "c96a1d5ecb13d38604d7e92148c73c97" 7 | SRC_URI[sha256sum] = "58a475dbbd4a4d7075e5fe86d4e54c9edde39847cdb96a3053d87cb64a23a453" 8 | 9 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-benchmark_1.3.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT Benchmark Application" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | DEPENDS = "libegt" 6 | 7 | SRC_URI = "gitsm://github.com/linux4sam/egt-benchmark.git;protocol=https;branch=master" 8 | 9 | SRCREV = "3b73339bd5862dfac15c1126969f9dcd84d2ea2e" 10 | 11 | S = "${WORKDIR}/git" 12 | 13 | inherit pkgconfig cmake siteinfo 14 | 15 | FILES:${PN} += " \ 16 | ${datadir}/egt/* \ 17 | " 18 | 19 | python __anonymous () { 20 | endianness = d.getVar('SITEINFO_ENDIANNESS') 21 | if endianness == 'be': 22 | raise bb.parse.SkipRecipe('Requires little-endian target.') 23 | } 24 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-launcher_1.5.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT launcher Application" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | PACKAGES = "\ 6 | ${PN} \ 7 | ${PN}-dev \ 8 | ${PN}-dbg \ 9 | " 10 | DEPENDS = "libegt" 11 | 12 | RDEPENDS:${PN} = "evtest" 13 | 14 | SRC_URI = "git://github.com/linux4sam/egt-launcher.git;protocol=https;branch=master \ 15 | file://0001-launch.sh-use-systemctl-to-restart-egt.patch" 16 | 17 | PV = "1.5.1+git${SRCPV}" 18 | SRCREV = "8eb835928343dad9083c3ce607dffe2f53fd420a" 19 | 20 | S = "${WORKDIR}/git" 21 | 22 | inherit pkgconfig cmake gettext siteinfo 23 | 24 | FILES:${PN} += " \ 25 | /usr/share/egt/* \ 26 | " 27 | python __anonymous () { 28 | endianness = d.getVar('SITEINFO_ENDIANNESS') 29 | if endianness == 'be': 30 | raise bb.parse.SkipRecipe('Requires little-endian target.') 31 | } 32 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-media_1.3.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "EGT media files from video demo" 2 | LICENSE = "CLOSED" 3 | 4 | PR = "r1" 5 | 6 | SRC_URI ="git://github.com/linux4sam/egt-media.git;protocol=https;branch=master" 7 | SRCREV = "7bdb1f492554f7bd1600c0095bab2a75f02a9c71" 8 | 9 | S = "${WORKDIR}/git" 10 | 11 | RDEPENDS:${PN} = "gstreamer1.0 \ 12 | gstreamer1.0-plugins-base \ 13 | gstreamer1.0-plugins-base-alsa \ 14 | gstreamer1.0-plugins-base-playback \ 15 | gstreamer1.0-plugins-base-audioconvert \ 16 | gstreamer1.0-plugins-base-audioresample \ 17 | gstreamer1.0-plugins-base-videoconvertscale \ 18 | gstreamer1.0-plugins-base-volume \ 19 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "gstreamer1.0-libav", "", d)} \ 20 | " 21 | 22 | inherit siteinfo 23 | 24 | FILES:${PN} += " \ 25 | ${datadir}/egt/examples/video/* \ 26 | " 27 | 28 | do_install() { 29 | install -d ${D}/usr/share/egt/examples/video 30 | cp -Rf ${S}/examples/video/* ${D}//usr/share/egt/examples/video/ 31 | } 32 | 33 | ALLOW_EMPTY:${PN} = "1" 34 | INHIBIT_DEFAULT_DEPS = "1" 35 | 36 | python __anonymous () { 37 | endianness = d.getVar('SITEINFO_ENDIANNESS') 38 | if endianness == 'be': 39 | raise bb.parse.SkipRecipe('Requires little-endian target.') 40 | } 41 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-samples-contribution_1.3.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT sample applications from the community" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9d979c7e3d1771e43c4e0ac149beb4d0" 4 | 5 | PACKAGES = "\ 6 | ${PN} \ 7 | ${PN}-dev \ 8 | ${PN}-dbg \ 9 | " 10 | DEPENDS = " libegt" 11 | 12 | SRC_URI = "git://github.com/linux4sam/egt-samples-contribution.git;protocol=https;branch=master " 13 | 14 | PV = "1.3+git${SRCPV}" 15 | SRCREV = "17372c2de1cc7517115e8726a5cde55b3d63927a" 16 | 17 | S = "${WORKDIR}/git" 18 | 19 | FILES:${PN} += " \ 20 | ${datadir}/egt/samples/* \ 21 | " 22 | 23 | EXTRA_OECMAKE += "-DEGT_SAMPLES_CONTRIBUTION_SLIDERB=true" 24 | 25 | inherit pkgconfig cmake 26 | 27 | python __anonymous () { 28 | endianness = d.getVar('SITEINFO_ENDIANNESS') 29 | if endianness == 'be': 30 | raise bb.parse.SkipRecipe('Requires little-endian target.') 31 | } 32 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-samples_1.7.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT Theroststat Demo Application" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | PACKAGES = "\ 6 | ${PN} \ 7 | ${PN}-dev \ 8 | ${PN}-dbg \ 9 | " 10 | DEPENDS = " libegt" 11 | 12 | SRC_URI = "gitsm://github.com/linux4sam/egt-samples.git;protocol=https;branch=master " 13 | 14 | PV = "1.7+git${SRCPV}" 15 | SRCREV = "03de44f6e5ba251e7fe9ee3d1a8b3c1e2823302b" 16 | 17 | S = "${WORKDIR}/git" 18 | 19 | inherit pkgconfig cmake gettext 20 | 21 | FILES:${PN} += " \ 22 | /usr/share/egt/* \ 23 | " 24 | 25 | python __anonymous () { 26 | endianness = d.getVar('SITEINFO_ENDIANNESS') 27 | if endianness == 'be': 28 | raise bb.parse.SkipRecipe('Requires little-endian target.') 29 | } 30 | -------------------------------------------------------------------------------- /recipes-egt/apps/egt-thermostat_1.8.1.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT Theroststat Demo Application" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | PACKAGES = "\ 6 | ${PN} \ 7 | ${PN}-dev \ 8 | ${PN}-dbg \ 9 | " 10 | DEPENDS = " libegt" 11 | 12 | SRC_URI = "gitsm://github.com/linux4sam/egt-thermostat.git;protocol=https;branch=master" 13 | 14 | SRCREV = "72e8e33c4a47150b46d9265f82db705d660abf15" 15 | 16 | S = "${WORKDIR}/git" 17 | 18 | inherit pkgconfig cmake gettext siteinfo 19 | 20 | FILES:${PN} += " \ 21 | ${datadir}/egt/* \ 22 | " 23 | 24 | python __anonymous () { 25 | endianness = d.getVar('SITEINFO_ENDIANNESS') 26 | if endianness == 'be': 27 | raise bb.parse.SkipRecipe('Requires little-endian target.') 28 | } 29 | -------------------------------------------------------------------------------- /recipes-egt/apps/files/0001-launch.sh-use-systemctl-to-restart-egt.patch: -------------------------------------------------------------------------------- 1 | From e477cef48f29c64c62c3f7bd93535fa61f3101f8 Mon Sep 17 00:00:00 2001 2 | From: Balakrishnan Sambath 3 | Date: Tue, 5 Sep 2023 17:08:10 +0530 4 | Subject: [PATCH] launch.sh: use systemctl to restart egt 5 | 6 | Use systemctl utility to properly restart egt service. 7 | 8 | Signed-off-by: Balakrishnan Sambath 9 | --- 10 | launch.sh | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/launch.sh b/launch.sh 14 | index 28dc166..c947101 100755 15 | --- a/launch.sh 16 | +++ b/launch.sh 17 | @@ -29,7 +29,7 @@ handle_exit_key() 18 | run() 19 | { 20 | handle_exit_key $@ 21 | - egt-launcher 22 | + systemctl restart egtdemo.service 23 | } 24 | 25 | # redirect stdout, stderr to /dev/null, close stdin and double fork - it's magic 26 | -- 27 | 2.25.1 28 | -------------------------------------------------------------------------------- /recipes-egt/apps/files/egtdemo.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EGT Application Launcher Service 3 | After=network.target 4 | ConditionPathExists=/dev/dri/card0 5 | 6 | [Service] 7 | Type=simple 8 | ExecStart=sh -c 'egt-launcher /opt/applications/resources /usr/share/egt' 9 | RemainAfterExit=yes 10 | Restart=on-failure 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /recipes-egt/apps/lohit-fonts.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Lohit Indic fonts" 2 | LICENSE = "OFL-1.1" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/OFL-1.1;md5=fac3a519e5e9eb96316656e0ca4f2b90" 4 | 5 | SRC_URI = "https://releases.pagure.org/lohit/lohit-ttf-20140220.tar.gz" 6 | 7 | SRC_URI[md5sum] = "aee81313dae1a8fb6ed3a4f572180c42" 8 | SRC_URI[sha256sum] = "4d0cdb884cb30b8e11babf2266a189e173bd9d664878ee434136705808c9afe6" 9 | 10 | S = "${WORKDIR}/lohit-ttf-20140220" 11 | 12 | inherit allarch fontcache 13 | 14 | FILES:${PN} += " \ 15 | ${datadir}/fonts/truetype/* \ 16 | " 17 | 18 | do_install() { 19 | install -d ${D}${datadir}/fonts/truetype/lohit-devanagari 20 | install -Dm 0644 ${S}/Lohit-Devanagari.ttf ${D}${datadir}/fonts/truetype/lohit-devanagari 21 | } 22 | 23 | do_compile[noexec] = "1" 24 | 25 | ALLOW_EMPTY:${PN} = "1" 26 | INHIBIT_DEFAULT_DEPS = "1" 27 | -------------------------------------------------------------------------------- /recipes-egt/apps/mchp-egt-demo-init_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Init script for EGT launcher demo" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 4 | 5 | SRC_URI = "file://egtdemo.service" 6 | 7 | RDEPENDS:${PN} = "udev-rules-at91" 8 | 9 | PR = "r2" 10 | 11 | do_install() { 12 | install -d ${D}${systemd_unitdir}/system 13 | install -m 0644 ${WORKDIR}/egtdemo.service ${D}${systemd_unitdir}/system/ 14 | } 15 | 16 | inherit allarch systemd 17 | FILES:${PN} += "${systemd_unitdir}/system/" 18 | 19 | SYSTEMD_SERVICE:${PN} = "egtdemo.service" 20 | -------------------------------------------------------------------------------- /recipes-egt/apps/noto-fonts.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Google noto fonts" 2 | LICENSE = "OFL-1.1" 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/OFL-1.1;md5=fac3a519e5e9eb96316656e0ca4f2b90" 4 | 5 | PR = "2017-10-24" 6 | 7 | SRC_URI = "https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip" 8 | 9 | SRC_URI[md5sum] = "d26b29b10c3c8d05df4ade8286963722" 10 | SRC_URI[sha256sum] = "7d0e099c208d11d7bf64091ea7f62f85bc07dedfaf2c01de53985a5b981025e3" 11 | 12 | S = "${WORKDIR}" 13 | 14 | inherit allarch fontcache 15 | 16 | FILES:${PN} += " \ 17 | ${datadir}/fonts/noto/* \ 18 | " 19 | 20 | do_install() { 21 | install -Dm 0644 ${S}/NotoSans-Regular.ttf ${D}${datadir}/fonts/noto/NotoSans-Regular.ttf 22 | install -Dm 0644 ${S}/NotoSansCJKsc-Regular.otf ${D}${datadir}/fonts/noto/NotoSansCJKsc-Regular.otf 23 | install -Dm 0644 ${S}/NotoColorEmoji.ttf ${D}${datadir}/fonts/noto/NotoColorEmoji.ttf 24 | } 25 | 26 | do_compile[noexec] = "1" 27 | 28 | ALLOW_EMPTY:${PN} = "1" 29 | INHIBIT_DEFAULT_DEPS = "1" 30 | -------------------------------------------------------------------------------- /recipes-graphics/fontconfig/files/local.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Liberation Serif 8 | 9 | 10 | 11 | 12 | Sans Serif 13 | 14 | Liberation Serif 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /recipes-graphics/fontconfig/fontconfig_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 2 | 3 | SRC_URI:append = "\ 4 | file://local.conf\ 5 | " 6 | 7 | do_install:append() { 8 | install -Dm 644 --target-directory=${D}${sysconfdir}/fonts ${WORKDIR}/local.conf 9 | } 10 | 11 | FILES:${PN} += "${sysconfdir}/fonts" 12 | -------------------------------------------------------------------------------- /recipes-graphics/libegt/libegt_1.11.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip EGT library for sama5 & sam9x lcd controller" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | DEPENDS = "\ 6 | libplanes \ 7 | libdrm \ 8 | cairo \ 9 | cjson \ 10 | file \ 11 | fmt \ 12 | udev \ 13 | xxd-native \ 14 | " 15 | DEPENDS:append:sam9x60 = " libm2d" 16 | DEPENDS:append:sam9x75 = " libm2d" 17 | 18 | SRC_URI = "gitsm://github.com/linux4sam/egt.git;protocol=https;branch=1.11" 19 | 20 | SRCREV = "3af246022cb431a4edb567fb1fe5bed0233a003a" 21 | 22 | S = "${WORKDIR}/git" 23 | 24 | inherit pkgconfig cmake gettext 25 | 26 | PACKAGECONFIG ??= "tslib examples icons plplot curl librsvg gstreamer jpeg zlib libinput lua ${@bb.utils.filter('DISTRO_FEATURES', 'x11 alsa', d)}" 27 | 28 | PACKAGECONFIG[librsvg] = "-DWITH_LIBRSVG=ON,-DWITH_LIBRSVG=OFF,librsvg" 29 | PACKAGECONFIG[curl] = "-DWITH_LIBCURL=ON,-DWITH-LIBCURL=OFF,curl" 30 | PACKAGECONFIG[examples] = "-DENABLE_EXAMPLES=ON,-DENABLE_EXAMPLES=OFF" 31 | PACKAGECONFIG[icons] = "-DENABLE_ICONS=ON,-DENABLE_ICONS=OFF" 32 | PACKAGECONFIG[plplot] = "-DWITH_PLPLOT=ON,-DWITH_PLPLOT=OFF,plplot" 33 | PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER=ON,-DWITH_GSTREAMER=OFF,gstreamer1.0 gstreamer1.0-plugins-base" 34 | PACKAGECONFIG[libevdev] = ",,libevdev" 35 | PACKAGECONFIG[jpeg] = "-DWITH_LIBJPEG=ON,-DWITH_LIBJPEG=OFF,jpeg" 36 | PACKAGECONFIG[tslib] = "-DWITH_TSLIB=ON,-DWITH_TSLIB=OFF,tslib" 37 | PACKAGECONFIG[alsa] = "-DWITH_ALSA=ON,-DWITH_ALSA=OFF,alsa-lib" 38 | PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib" 39 | PACKAGECONFIG[libinput] = "-DWITH_LIBINPUT=ON,-DWITH_LIBINPUT=OFF,libinput" 40 | PACKAGECONFIG[lua] = "-DWITH_LUA=ON,-DWITH_LUA=OFF,lua" 41 | PACKAGECONFIG[xkbcommon] = "-DWITH_XKBCOMMON=ON,-DWITH_XKBCOMMON=OFF,libxkbcommon" 42 | PACKAGECONFIG[x11] = "-DWITH_X11=ON,-DWITH_X11=OFF,libx11" 43 | 44 | FULL_OPTIMIZATION:append = " -Ofast" 45 | 46 | FILES:${PN} += " \ 47 | ${datadir}/egt/* \ 48 | " 49 | 50 | do_install:append() { 51 | sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \ 52 | -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \ 53 | -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \ 54 | -i ${D}${libdir}/pkgconfig/*.pc 55 | } 56 | 57 | python __anonymous () { 58 | endianness = d.getVar('SITEINFO_ENDIANNESS') 59 | if endianness == 'be': 60 | raise bb.parse.SkipRecipe('Requires little-endian target.') 61 | } 62 | -------------------------------------------------------------------------------- /recipes-graphics/libm2d/libm2d_2.0.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip libm2d library to abstract 2D GPUs and provide a common API" 2 | LICENSE = "Apache-2.0" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 | 5 | DEPENDS = "cairo libdrm libplanes" 6 | 7 | SRC_URI = "git://github.com/linux4sam/libm2d.git;protocol=https;branch=master" 8 | 9 | SRCREV = "eeecbed5df220adbb3c3f4fb4eaaa5f2d11aea69" 10 | 11 | S = "${WORKDIR}/git" 12 | 13 | EXTRA_OECMAKE += " \ 14 | -DENABLE_TESTS=1 \ 15 | " 16 | 17 | inherit pkgconfig cmake 18 | 19 | FILES:${PN} += " \ 20 | ${datadir}/m2d/* \ 21 | " 22 | -------------------------------------------------------------------------------- /recipes-graphics/libplanes/libplanes_1.1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip libplanes library for sama5 lcd controller" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://COPYING;endline=20;md5=b884a464579c410fd1dace93db8e97b3" 4 | 5 | PACKAGES =+ "${PN}-python" 6 | 7 | DEPENDS = "libdrm cairo cjson lua swig-native python3" 8 | 9 | RDEPENDS:${PN} = "python3 udev-rules-at91" 10 | 11 | SRC_URI = "git://github.com/linux4sam/libplanes.git;protocol=https;branch=master" 12 | 13 | PV = "1.1.0+git${SRCPV}" 14 | SRCREV = "5b1814da2d88f83b87714c80281912f6d8916ac7" 15 | 16 | S = "${WORKDIR}/git" 17 | 18 | inherit pkgconfig autotools python3-dir 19 | 20 | EXTRA_OECONF += "--enable-shared --disable-static" 21 | 22 | PACKAGECONFIG ??= "examples" 23 | PACKAGECONFIG[examples] = "--enable-examples,--disable-examples" 24 | 25 | do_configure:prepend() { 26 | ( cd ${S}; 27 | ${S}/autogen.sh; cd -) 28 | } 29 | 30 | FILES:${PN} += " \ 31 | /opt/planes/planes-loop.sh \ 32 | /opt/planes/planes-loop.py \ 33 | /opt/applications/resources/* \ 34 | ${datadir}/planes/* \ 35 | " 36 | FILES:${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" 37 | 38 | #need to delete _planes.a to avoid QA package errors 39 | do_install:append() { 40 | install -Dm 0644 ${S}/scripts/planes.png ${D}/opt/applications/resources/planes.png 41 | install -Dm 0644 ${S}/scripts/09-planes.xml ${D}/opt/applications/resources/09-planes.xml 42 | install -Dm 0755 ${S}/scripts/planes-loop.sh ${D}/opt/planes/planes-loop.sh 43 | install -Dm 0755 ${S}/scripts/planes-loop.py ${D}/opt/planes/planes-loop.py 44 | install -Dm 0755 ${S}/python/examples/splash.py ${D}${datadir}/planes/splash.py 45 | install -Dm 0755 ${S}/python/examples/example.py ${D}${datadir}/planes/example.py 46 | rm -f ${D}/usr/lib/python*/site-packages/planes/_planes.a 47 | rm -f ${D}/usr/lib/libplanes.a 48 | } 49 | -------------------------------------------------------------------------------- /recipes-graphics/mesa/mesa_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append:at91sam9 = " gallium " 2 | PACKAGECONFIG:append:sama5 = " gallium " 3 | -------------------------------------------------------------------------------- /recipes-graphics/pixman/pixman/0001-Revert-Initialize-temporary-buffers-in-general_compo.patch: -------------------------------------------------------------------------------- 1 | From 5451c4ade3eb703e602274d3304d8056bc388cc0 Mon Sep 17 00:00:00 2001 2 | From: Ludovic Desroches 3 | Date: Thu, 3 Mar 2022 08:54:46 +0100 4 | Subject: [PATCH] Revert "Initialize temporary buffers in 5 | general_composite_rect()" 6 | 7 | This reverts commit 6fe0131394fb029d2fccaee6b8edcb108840ad8a as it 8 | causes performance issues with EGT: 9 | - Very low score for DrawShapeFixture.DrawCirclesAlpha on sam9x60. 10 | - Lower score for DrawFixture.MoveAnimate/UpdateButton for all devices. 11 | - egt_drop very slow for all devices. 12 | 13 | Signed-off-by: Ludovic Desroches 14 | Upstream-Status: Pending 15 | --- 16 | pixman/pixman-general.c | 6 ------ 17 | 1 file changed, 6 deletions(-) 18 | 19 | diff --git a/pixman/pixman-general.c b/pixman/pixman-general.c 20 | index 7e5a0d0..7d74f98 100644 21 | --- a/pixman/pixman-general.c 22 | +++ b/pixman/pixman-general.c 23 | @@ -165,12 +165,6 @@ general_composite_rect (pixman_implementation_t *imp, 24 | 25 | if (!scanline_buffer) 26 | return; 27 | - 28 | - memset (scanline_buffer, 0, width * Bpp * 3 + 15 * 3); 29 | - } 30 | - else 31 | - { 32 | - memset (stack_scanline_buffer, 0, sizeof (stack_scanline_buffer)); 33 | } 34 | 35 | src_buffer = ALIGN (scanline_buffer); 36 | -- 37 | 2.32.0 38 | 39 | -------------------------------------------------------------------------------- /recipes-graphics/pixman/pixman_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRC_URI:append = " file://0001-Revert-Initialize-temporary-buffers-in-general_compo.patch" 4 | -------------------------------------------------------------------------------- /recipes-httpd/nginx/nginx_%.bbappend: -------------------------------------------------------------------------------- 1 | do_install:append() { 2 | # Ensure the sites-available directory exists 3 | install -d ${D}${sysconfdir}/nginx/sites-available 4 | 5 | # Replace the content of the default_server.site with your custom configuration 6 | cat > ${D}${sysconfdir}/nginx/sites-available/default_server < 3 | Date: Sat, 15 Oct 2022 03:15:28 +0530 4 | Subject: [PATCH] dts: include optee dtsi 5 | 6 | Include sama5d2-optee.dtsi in at91-sama5d27_som1_ek.dts 7 | 8 | Upstream-Status: Inappropriate [only specific to optee configuration] 9 | Signed-off-by: Dharma Balasubiramani 10 | --- 11 | arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 1 + 12 | 1 file changed, 1 insertion(+) 13 | 14 | diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 15 | index 08f0d4b995ff..5136139bcca7 100644 16 | --- a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 17 | +++ b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 18 | @@ -9,6 +9,7 @@ 19 | */ 20 | /dts-v1/; 21 | #include "at91-sama5d27_som1.dtsi" 22 | +#include "sama5d2-optee.dtsi" 23 | #include 24 | #include 25 | #include 26 | -- 27 | 2.25.1 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/sama5d2/greengrass.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_POSIX_MQUEUE=y 2 | CONFIG_MEMCG=y 3 | CONFIG_BLK_CGROUP=y 4 | CONFIG_CGROUP_SCHED=y 5 | CONFIG_CFS_BANDWIDTH=y 6 | CONFIG_RT_GROUP_SCHED=y 7 | CONFIG_CGROUP_PIDS=y 8 | CONFIG_CGROUP_RDMA=y 9 | CONFIG_CGROUP_FREEZER=y 10 | CONFIG_CGROUP_DEVICE=y 11 | CONFIG_CGROUP_CPUACCT=y 12 | CONFIG_NAMESPACES=y 13 | CONFIG_USER_NS=y 14 | CONFIG_SECCOMP=y 15 | CONFIG_NETFILTER=y 16 | CONFIG_IP_NF_IPTABLES=y 17 | CONFIG_IP_NF_FILTER=y 18 | CONFIG_EXT4_FS_POSIX_ACL=y 19 | CONFIG_AUTOFS4_FS=y 20 | CONFIG_OVERLAY_FS=y 21 | CONFIG_TMPFS_POSIX_ACL=y 22 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/sama5d2/sama5-linux-optee.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TEE=y 2 | CONFIG_OPTEE=y 3 | CONFIG_ARM_PSCI=y 4 | CONFIG_ARM_PSCI_FW=y 5 | CONFIG_HAVE_ARM_SMCCC=y 6 | CONFIG_HAVE_ARM_SMCCC_DISCOVERY=y 7 | CONFIG_ARM_SMCCC_SOC_ID=y 8 | CONFIG_REGMAP_SMCCC=y 9 | CONFIG_MAILBOX=y 10 | CONFIG_ARM_SCMI_PROTOCOL=y 11 | # CONFIG_ARM_SCMI_POWER_DOMAIN is not set 12 | CONFIG_COMMON_CLK_SCMI=y 13 | CONFIG_CPU_IDLE=y 14 | CONFIG_ARM_PSCI_CPUIDLE=y 15 | # CONFIG_ARM_PSCI_CPUIDLE_DOMAIN is not set 16 | # CONFIG_ARM_AT91_CPUIDLE is not set 17 | # CONFIG_ATMEL_PM is not set 18 | CONFIG_ATMEL_SECURE_PM=y 19 | # CONFIG_HW_RANDOM_ATMEL is not set 20 | CONFIG_HW_RANDOM_OPTEE=y 21 | CONFIG_DEBUG_LL=y 22 | CONFIG_DEBUG_AT91_SAMA5D2_UART1=y 23 | CONFIG_EARLY_PRINTK=y 24 | # CONFIG_SAMA5D4_WATCHDOG is not set 25 | CONFIG_ARM_SMC_WATCHDOG=y 26 | # CONFIG_RTC_DRV_AT91RM9200 is not set 27 | CONFIG_RTC_DRV_OPTEE=y -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/sama7g5ek/0001-dts-include-optee-dtsi.patch: -------------------------------------------------------------------------------- 1 | From 51ddcbf6be66fb53f93ca85b4e7c0eb514de47f8 Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Tue, 8 Oct 2024 09:55:05 +0530 4 | Subject: [PATCH] dts: include optee dtsi 5 | 6 | Include sama7g5-optee.dtsi in at91-sama7g5ek.dts. 7 | 8 | Upstream-Status: Inappropriate [only specific to optee configuration] 9 | Signed-off-by: Dharma Balasubiramani 10 | --- 11 | arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 1 + 12 | 1 file changed, 1 insertion(+) 13 | 14 | diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 15 | index 5366a274d2b8..7d32779ecf4d 100644 16 | --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 17 | +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 18 | @@ -11,6 +11,7 @@ 19 | /dts-v1/; 20 | #include "sama7g5-pinfunc.h" 21 | #include "sama7g5.dtsi" 22 | +#include "sama7g5-optee.dtsi" 23 | #include 24 | #include 25 | #include 26 | -- 27 | 2.45.2 28 | 29 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/sama7g5ek/0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch: -------------------------------------------------------------------------------- 1 | From 7e7969cd1d8376af9b43058a0f377e8e1d3993ec Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Mon, 11 Nov 2024 16:00:26 +0530 4 | Subject: [PATCH] ARM: dts: microchip: at91-sama7g5ek: use scmi0_clock instead 5 | of pmc 6 | 7 | Use scmi0_clock instead of pmc clock in the sound node for optee 8 | machine. 9 | 10 | Upstream-Status: Inappropriate [only specific to optee configuration] 11 | Signed-off-by: Dharma Balasubiramani 12 | --- 13 | arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 3 +-- 14 | 1 file changed, 1 insertion(+), 2 deletions(-) 15 | 16 | diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 17 | index 7d32779ecf4d..05a414d9e300 100644 18 | --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 19 | +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 20 | @@ -93,8 +93,7 @@ memory@60000000 { 21 | sound: sound { 22 | #address-cells = <1>; 23 | #size-cells = <0>; 24 | - assigned-clocks = <&pmc PMC_TYPE_CORE PMC_AUDIOPMCPLL>; 25 | - assigned-clock-rates = <196608000>; 26 | + assigned-clocks = <&scmi0_clock AT91_SCMI_CLK_CORE_AUDIOPLLCK>; 27 | compatible = "microchip,asrc-card"; 28 | microchip,model = "mchp-asrc-card @ sama7g5 EK"; 29 | status = "okay"; 30 | -- 31 | 2.45.2 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/sama7g5ek/sama7g5ek-linux-optee.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TEE=y 2 | CONFIG_OPTEE=y 3 | CONFIG_ARM_PSCI=y 4 | CONFIG_ARM_PSCI_FW=y 5 | CONFIG_HAVE_ARM_SMCCC=y 6 | CONFIG_HAVE_ARM_SMCCC_DISCOVERY=y 7 | CONFIG_ARM_SMCCC_SOC_ID=y 8 | CONFIG_REGMAP_SMCCC=y 9 | CONFIG_MAILBOX=y 10 | CONFIG_ARM_SCMI_PROTOCOL=y 11 | # CONFIG_ARM_SCMI_POWER_DOMAIN is not set 12 | CONFIG_COMMON_CLK_SCMI=y 13 | CONFIG_CPU_IDLE=y 14 | CONFIG_ARM_PSCI_CPUIDLE=y 15 | # CONFIG_ARM_PSCI_CPUIDLE_DOMAIN is not set 16 | # CONFIG_ARM_AT91_CPUIDLE is not set 17 | # CONFIG_ATMEL_PM is not set 18 | CONFIG_ATMEL_SECURE_PM=y 19 | # CONFIG_HW_RANDOM_ATMEL is not set 20 | CONFIG_HW_RANDOM_OPTEE=y 21 | CONFIG_DEBUG_LL=y 22 | CONFIG_DEBUG_AT91_SAMA5D2_UART1=y 23 | CONFIG_EARLY_PRINTK=y 24 | # CONFIG_SAMA5D4_WATCHDOG is not set 25 | CONFIG_ARM_SMC_WATCHDOG=y 26 | # CONFIG_RTC_DRV_AT91RM9200 is not set 27 | CONFIG_RTC_DRV_OPTEE=y -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.51/userinput.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_INPUT_MISC=y 2 | CONFIG_INPUT_UINPUT=y 3 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sam9x60/at91_dt.cfg: -------------------------------------------------------------------------------- 1 | #Greengrass fragments 2 | CONFIG_POSIX_MQUEUE=y 3 | CONFIG_MEMCG=y 4 | CONFIG_BLK_CGROUP=y 5 | CONFIG_CGROUP_SCHED=y 6 | CONFIG_RT_GROUP_SCHED=y 7 | CONFIG_CGROUP_PIDS=y 8 | CONFIG_CGROUP_RDMA=y 9 | CONFIG_CGROUP_FREEZER=y 10 | CONFIG_CGROUP_DEVICE=y 11 | CONFIG_NAMESPACES=y 12 | CONFIG_USER_NS=y 13 | CONFIG_NETFILTER=y 14 | CONFIG_EXT4_FS_POSIX_ACL=y 15 | CONFIG_OVERLAY_FS=y 16 | CONFIG_TMPFS_POSIX_ACL=y 17 | #Other required fragments 18 | CONFIG_MODULE_FORCE_LOAD=y 19 | CONFIG_MODULE_FORCE_UNLOAD=y 20 | CONFIG_IP_PNP_BOOTP=y 21 | CONFIG_IP_PNP_RARP=y 22 | CONFIG_SYN_COOKIES=y 23 | CONFIG_BACKLIGHT_CLASS_DEVICE=y 24 | CONFIG_USB_CONFIGFS_ECM=y 25 | CONFIG_USB_G_WEBCAM=m 26 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama5/sama5.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_CPU_IDLE=y 2 | CONFIG_SYN_COOKIES=y 3 | CONFIG_CAN_MCP251XFD=m 4 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama5d2/0001-dts-include-optee-dtsi.patch: -------------------------------------------------------------------------------- 1 | From 100fa19af3c09097623788d0124322afc0bbf9b7 Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Sat, 15 Oct 2022 03:15:28 +0530 4 | Subject: [PATCH] dts: include optee dtsi 5 | 6 | Include sama5d2-optee.dtsi in at91-sama5d27_som1_ek.dts 7 | 8 | Upstream-Status: Inappropriate [only specific to optee configuration] 9 | Signed-off-by: Dharma Balasubiramani 10 | --- 11 | arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 1 + 12 | 1 file changed, 1 insertion(+) 13 | 14 | diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 15 | index 08f0d4b995ff..5136139bcca7 100644 16 | --- a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 17 | +++ b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts 18 | @@ -9,6 +9,7 @@ 19 | */ 20 | /dts-v1/; 21 | #include "at91-sama5d27_som1.dtsi" 22 | +#include "sama5d2-optee.dtsi" 23 | #include 24 | #include 25 | #include 26 | -- 27 | 2.25.1 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama5d2/greengrass.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_POSIX_MQUEUE=y 2 | CONFIG_MEMCG=y 3 | CONFIG_BLK_CGROUP=y 4 | CONFIG_CGROUP_SCHED=y 5 | CONFIG_CFS_BANDWIDTH=y 6 | CONFIG_RT_GROUP_SCHED=y 7 | CONFIG_CGROUP_PIDS=y 8 | CONFIG_CGROUP_RDMA=y 9 | CONFIG_CGROUP_FREEZER=y 10 | CONFIG_CGROUP_DEVICE=y 11 | CONFIG_CGROUP_CPUACCT=y 12 | CONFIG_NAMESPACES=y 13 | CONFIG_USER_NS=y 14 | CONFIG_SECCOMP=y 15 | CONFIG_NETFILTER=y 16 | CONFIG_IP_NF_IPTABLES=y 17 | CONFIG_IP_NF_FILTER=y 18 | CONFIG_EXT4_FS_POSIX_ACL=y 19 | CONFIG_AUTOFS4_FS=y 20 | CONFIG_OVERLAY_FS=y 21 | CONFIG_TMPFS_POSIX_ACL=y 22 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama5d2/sama5-linux-optee.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TEE=y 2 | CONFIG_OPTEE=y 3 | CONFIG_ARM_PSCI=y 4 | CONFIG_ARM_PSCI_FW=y 5 | CONFIG_HAVE_ARM_SMCCC=y 6 | CONFIG_HAVE_ARM_SMCCC_DISCOVERY=y 7 | CONFIG_ARM_SMCCC_SOC_ID=y 8 | CONFIG_REGMAP_SMCCC=y 9 | CONFIG_MAILBOX=y 10 | CONFIG_ARM_SCMI_PROTOCOL=y 11 | # CONFIG_ARM_SCMI_POWER_DOMAIN is not set 12 | CONFIG_COMMON_CLK_SCMI=y 13 | CONFIG_CPU_IDLE=y 14 | CONFIG_ARM_PSCI_CPUIDLE=y 15 | # CONFIG_ARM_PSCI_CPUIDLE_DOMAIN is not set 16 | # CONFIG_ARM_AT91_CPUIDLE is not set 17 | # CONFIG_ATMEL_PM is not set 18 | CONFIG_ATMEL_SECURE_PM=y 19 | # CONFIG_HW_RANDOM_ATMEL is not set 20 | CONFIG_HW_RANDOM_OPTEE=y 21 | CONFIG_DEBUG_LL=y 22 | CONFIG_DEBUG_AT91_SAMA5D2_UART1=y 23 | CONFIG_EARLY_PRINTK=y 24 | # CONFIG_SAMA5D4_WATCHDOG is not set 25 | CONFIG_ARM_SMC_WATCHDOG=y 26 | # CONFIG_RTC_DRV_AT91RM9200 is not set 27 | CONFIG_RTC_DRV_OPTEE=y -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama7g5ek/0001-dts-include-optee-dtsi.patch: -------------------------------------------------------------------------------- 1 | From 51ddcbf6be66fb53f93ca85b4e7c0eb514de47f8 Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Tue, 8 Oct 2024 09:55:05 +0530 4 | Subject: [PATCH] dts: include optee dtsi 5 | 6 | Include sama7g5-optee.dtsi in at91-sama7g5ek.dts. 7 | 8 | Upstream-Status: Inappropriate [only specific to optee configuration] 9 | Signed-off-by: Dharma Balasubiramani 10 | --- 11 | arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 1 + 12 | 1 file changed, 1 insertion(+) 13 | 14 | diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 15 | index 5366a274d2b8..7d32779ecf4d 100644 16 | --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 17 | +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 18 | @@ -11,6 +11,7 @@ 19 | /dts-v1/; 20 | #include "sama7g5-pinfunc.h" 21 | #include "sama7g5.dtsi" 22 | +#include "sama7g5-optee.dtsi" 23 | #include 24 | #include 25 | #include 26 | -- 27 | 2.45.2 28 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama7g5ek/0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch: -------------------------------------------------------------------------------- 1 | From 7e7969cd1d8376af9b43058a0f377e8e1d3993ec Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Mon, 11 Nov 2024 16:00:26 +0530 4 | Subject: [PATCH] ARM: dts: microchip: at91-sama7g5ek: use scmi0_clock instead 5 | of pmc 6 | 7 | Use scmi0_clock instead of pmc clock in the sound node for optee 8 | machine. 9 | 10 | Upstream-Status: Inappropriate [only specific to optee configuration] 11 | Signed-off-by: Dharma Balasubiramani 12 | --- 13 | arch/arm/boot/dts/microchip/at91-sama7g5ek.dts | 3 +-- 14 | 1 file changed, 1 insertion(+), 2 deletions(-) 15 | 16 | diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 17 | index 7d32779ecf4d..05a414d9e300 100644 18 | --- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 19 | +++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts 20 | @@ -93,8 +93,7 @@ memory@60000000 { 21 | sound: sound { 22 | #address-cells = <1>; 23 | #size-cells = <0>; 24 | - assigned-clocks = <&pmc PMC_TYPE_CORE PMC_AUDIOPMCPLL>; 25 | - assigned-clock-rates = <196608000>; 26 | + assigned-clocks = <&scmi0_clock AT91_SCMI_CLK_CORE_AUDIOPLLCK>; 27 | compatible = "microchip,asrc-card"; 28 | microchip,model = "mchp-asrc-card @ sama7g5 EK"; 29 | status = "okay"; 30 | -- 31 | 2.45.2 32 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/sama7g5ek/sama7g5ek-linux-optee.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_TEE=y 2 | CONFIG_OPTEE=y 3 | CONFIG_ARM_PSCI=y 4 | CONFIG_ARM_PSCI_FW=y 5 | CONFIG_HAVE_ARM_SMCCC=y 6 | CONFIG_HAVE_ARM_SMCCC_DISCOVERY=y 7 | CONFIG_ARM_SMCCC_SOC_ID=y 8 | CONFIG_REGMAP_SMCCC=y 9 | CONFIG_MAILBOX=y 10 | CONFIG_ARM_SCMI_PROTOCOL=y 11 | # CONFIG_ARM_SCMI_POWER_DOMAIN is not set 12 | CONFIG_COMMON_CLK_SCMI=y 13 | CONFIG_CPU_IDLE=y 14 | CONFIG_ARM_PSCI_CPUIDLE=y 15 | # CONFIG_ARM_PSCI_CPUIDLE_DOMAIN is not set 16 | # CONFIG_ARM_AT91_CPUIDLE is not set 17 | # CONFIG_ATMEL_PM is not set 18 | CONFIG_ATMEL_SECURE_PM=y 19 | # CONFIG_HW_RANDOM_ATMEL is not set 20 | CONFIG_HW_RANDOM_OPTEE=y 21 | CONFIG_DEBUG_LL=y 22 | CONFIG_DEBUG_AT91_SAMA5D2_UART1=y 23 | CONFIG_EARLY_PRINTK=y 24 | # CONFIG_SAMA5D4_WATCHDOG is not set 25 | CONFIG_ARM_SMC_WATCHDOG=y 26 | # CONFIG_RTC_DRV_AT91RM9200 is not set 27 | CONFIG_RTC_DRV_OPTEE=y -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp-6.6.64/userinput.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_INPUT_MISC=y 2 | CONFIG_INPUT_UINPUT=y 3 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp_6.6.51.bb: -------------------------------------------------------------------------------- 1 | require linux.inc 2 | 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/${P}:" 4 | PV = "6.6+git${SRCPV}" 5 | 6 | LINUX_VERSION="6.6" 7 | 8 | KBRANCH = "linux-6.6-mchp" 9 | SRC_URI = "git://github.com/linux4microchip/linux.git;protocol=https;branch=${KBRANCH} \ 10 | file://userinput.cfg" 11 | 12 | # kernel fragments 13 | SRC_URI:append:sama5 = " file://sama5.cfg" 14 | SRC_URI:append:sama5d2 = " file://greengrass.cfg" 15 | SRC_URI:append:\ 16 | sama5d27-som1-ek-optee-sd = " file://sama5-linux-optee.cfg \ 17 | file://sama5d2/0001-dts-include-optee-dtsi.patch \ 18 | " 19 | SRC_URI:append:sam9x60 = " file://at91_dt.cfg" 20 | SRC_URI:append:\ 21 | sama7g5ek-optee-sd = " file://sama7g5ek-linux-optee.cfg \ 22 | file://sama7g5ek/0001-dts-include-optee-dtsi.patch \ 23 | file://sama7g5ek/0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch \ 24 | " 25 | 26 | SRCREV = "171ac7ce6392ce4584590b5d148b03e01e8f9e53" 27 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 28 | 29 | KERNEL_MODULE_AUTOLOAD:append:sama5d27-wlsom1-ek-sd = " wilc-sdio" 30 | 31 | COMPATIBLE_MACHINE = "(at91sam9x5ek|at91sam9m10g45ek|at91sam9rlek\ 32 | |sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc\ 33 | |sama5d2-ptc-ek|sama5d2-ptc-ek-sd\ 34 | |sama5d2-icp-sd\ 35 | |sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd\ 36 | |sama5d27-wlsom1-ek-sd\ 37 | |sama5d29-curiosity-sd\ 38 | |sama5d3-xplained|sama5d3-xplained-sd|sama5d3xek\ 39 | |sama5d4-xplained|sama5d4-xplained-sd|sama5d4ek\ 40 | |sama7g5ek|sama7g5ek-sd|sama7g5ek-optee-sd\ 41 | |sam9x60-curiosity|sam9x60-curiosity-sd|sam9x60ek|sam9x60ek-sd\ 42 | |sam9x75-curiosity|sam9x75-curiosity-sd|sam9x75eb|sam9x75eb-sd\ 43 | )" 44 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-mchp_6.6.64.bb: -------------------------------------------------------------------------------- 1 | require linux.inc 2 | 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/${P}:" 4 | PV = "6.6+git${SRCPV}" 5 | 6 | LINUX_VERSION="6.6" 7 | 8 | KBRANCH = "linux-6.6-mchp" 9 | SRC_URI = "git://github.com/linux4microchip/linux.git;protocol=https;branch=${KBRANCH} \ 10 | file://userinput.cfg" 11 | 12 | # kernel fragments 13 | SRC_URI:append:sama5 = " file://sama5.cfg" 14 | SRC_URI:append:sama5d2 = " file://greengrass.cfg" 15 | SRC_URI:append:\ 16 | sama5d27-som1-ek-optee-sd = " file://sama5-linux-optee.cfg \ 17 | file://sama5d2/0001-dts-include-optee-dtsi.patch \ 18 | " 19 | SRC_URI:append:sam9x60 = " file://at91_dt.cfg" 20 | SRC_URI:append:\ 21 | sama7g5ek-optee-sd = " file://sama7g5ek-linux-optee.cfg \ 22 | file://sama7g5ek/0001-dts-include-optee-dtsi.patch \ 23 | file://sama7g5ek/0002-ARM-dts-microchip-at91-sama7g5ek-use-scmi0_clock-ins.patch \ 24 | " 25 | 26 | SRCREV = "c05aab8dd660eeefd3b959b535d6296120761240" 27 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 28 | 29 | KERNEL_MODULE_AUTOLOAD:append:sama5d27-wlsom1-ek-sd = " wilc-sdio" 30 | 31 | COMPATIBLE_MACHINE = "(at91sam9x5ek|at91sam9m10g45ek|at91sam9rlek\ 32 | |sama5d2-xplained|sama5d2-xplained-sd|sama5d2-xplained-emmc\ 33 | |sama5d2-ptc-ek|sama5d2-ptc-ek-sd\ 34 | |sama5d2-icp-sd\ 35 | |sama5d27-som1-ek|sama5d27-som1-ek-sd|sama5d27-som1-ek-optee-sd\ 36 | |sama5d27-wlsom1-ek-sd\ 37 | |sama5d29-curiosity-sd\ 38 | |sama5d3-xplained|sama5d3-xplained-sd|sama5d3xek\ 39 | |sama5d4-xplained|sama5d4-xplained-sd|sama5d4ek\ 40 | |sama7g5ek|sama7g5ek-sd|sama7g5ek-optee-sd\ 41 | |sam9x60-curiosity|sam9x60-curiosity-sd|sam9x60ek|sam9x60ek-sd\ 42 | |sam9x75-curiosity|sam9x75-curiosity-sd|sam9x75eb|sam9x75eb-sd\ 43 | |sama7d65-curiosity|sama7d65-curiosity-sd\ 44 | )" 45 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux.inc: -------------------------------------------------------------------------------- 1 | SECTION = "kernel" 2 | DESCRIPTION = "Linux kernel for Microchip ARM SoCs (aka AT91)" 3 | SUMMARY = "Linux kernel for Microchip ARM SoCs (aka AT91)" 4 | LICENSE = "GPL-2.0-only" 5 | 6 | inherit kernel 7 | 8 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" 9 | 10 | S = "${WORKDIR}/git" 11 | 12 | PLATFORM_PATH ??= "" 13 | 14 | python __anonymous () { 15 | if d.getVar('UBOOT_FIT_IMAGE', True) == 'xyes': 16 | d.appendVar('DEPENDS', ' u-boot-mkimage-native dtc-native') 17 | 18 | # Verify whether the kernel version is 6.6 or later and update the 19 | # device tree paths by prefixing them with our platform name. 20 | 21 | if d.getVar('LINUX_VERSION', True) >= '6.6': 22 | devicetree = d.getVar('KERNEL_DEVICETREE', True).split() 23 | devicetree = ['microchip/' + dtb for dtb in devicetree] 24 | d.setVar('KERNEL_DEVICETREE', ' '.join(devicetree)) 25 | d.setVar('PLATFORM_PATH', 'microchip/') 26 | d.setVar('DTB_PATH', '${B}/arch/${ARCH}/boot/dts/microchip/') 27 | } 28 | 29 | do_configure:append() { 30 | frags="" 31 | for fragment in ${WORKDIR}/*.cfg 32 | do 33 | if [ -f ${fragment} ]; then 34 | cp -v ${fragment} ${B} 35 | frags=$frags" `basename ${fragment}`" 36 | fi 37 | done 38 | 39 | if [ ! -z "${frags}" ]; then 40 | echo "Fragments are: ${frags}" 41 | PATH=${S}/scripts/kconfig:${PATH} 42 | CFLAGS="${CFLAGS} ${TOOLCHAIN_OPTIONS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}" CC="${KERNEL_CC}" ARCH=${ARCH} merge_config.sh -m .config ${frags} 2>&1 43 | if [ $? -ne 0 ]; then 44 | bbfatal_log "Could not configure kernel fragments: ${frags}" 45 | fi 46 | fi 47 | } 48 | 49 | do_deploy:append() { 50 | if [ "${UBOOT_FIT_IMAGE}" = "xyes" ]; then 51 | if [ ! -e "${DTB_PATH}" ]; then 52 | DTB_PATH="${B}/arch/${ARCH}/boot/" 53 | fi 54 | 55 | if [ -e ${S}/arch/${ARCH}/boot/dts/${PLATFORM_PATH}${MACHINE}.its ]; then 56 | cp ${S}/arch/${ARCH}/boot/dts/${PLATFORM_PATH}${MACHINE}*.its ${DTB_PATH} 57 | cd ${DTB_PATH} 58 | mkimage -f ${MACHINE}.its ${MACHINE}.itb 59 | install -m 0644 ${MACHINE}.itb ${DEPLOYDIR}/${MACHINE}.itb 60 | cd - 61 | fi 62 | fi 63 | } 64 | 65 | KERNEL_MODULE_AUTOLOAD += "atmel_usba_udc g_serial" 66 | -------------------------------------------------------------------------------- /recipes-kernel/linux/mchp-wireless-firmware_16.3.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Microchip WILC devices firmware files for use with Linux kernel" 2 | SECTION = "kernel" 3 | LICENSE = "MICROCHIP_FW" 4 | 5 | LIC_FILES_CHKSUM = "file://LICENSE.wilc_fw;beginline=6;md5=e1a0446d046c966a27276cf8e728f687" 6 | 7 | SRCREV = "f441f0e2e18154f1cab2835288c6b5a2b03ff047" 8 | SRC_URI = "git://github.com/linux4wilc/firmware.git;protocol=https;branch=master" 9 | S = "${WORKDIR}/git" 10 | 11 | inherit allarch 12 | 13 | do_install() { 14 | install -d ${D}${nonarch_base_libdir}/firmware/mchp/ 15 | cp -r ${S}/* ${D}${nonarch_base_libdir}/firmware/mchp/ 16 | 17 | # remove unneeded file 18 | rm -f ${D}${nonarch_base_libdir}/firmware/mchp/README.md 19 | rm -f ${D}${nonarch_base_libdir}/firmware/mchp/LICENSE.wilc_fw 20 | chmod -x ${D}${nonarch_base_libdir}/firmware/mchp/* 21 | } 22 | 23 | FILES:${PN} += " \ 24 | ${nonarch_base_libdir}/firmware/mchp/wilc*.bin \ 25 | " 26 | 27 | # TODO: use ALTERNATIVE like in "linux-firmware" package 28 | -------------------------------------------------------------------------------- /recipes-multimedia/fswebcam/fswebcam_git.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Webcam image grabber and manipulation application." 2 | SECTION = "graphics" 3 | HOMEPAGE = "http://www.sanslogic.co.uk/fswebcam/" 4 | LICENSE="GPL-2.0-only" 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833" 6 | 7 | DEPENDS = "gd" 8 | 9 | PR = "r0" 10 | 11 | inherit autotools-brokensep 12 | 13 | SRCREV="db35d4bbd336885a44f017ff142bc9523dbdce3c" 14 | SRC_URI = "git://github.com/fsphil/fswebcam.git;protocol=https;branch=master" 15 | 16 | S = "${WORKDIR}/git" 17 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:remove = " directfb" 2 | PACKAGECONFIG:remove = " vulkan" 3 | PACKAGECONFIG:append = " kms" 4 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/files/0001-g1-hantro-plugin-enable-RGB-dithering-for-PostProces.patch: -------------------------------------------------------------------------------- 1 | From 584445c789d447e8d0a9d336f7ba32adc69fd2b6 Mon Sep 17 00:00:00 2001 2 | From: Josh Wu 3 | Date: Tue, 11 Nov 2014 13:50:24 +0800 4 | Subject: [PATCH] g1-hantro-plugin: enable RGB dithering for PostProcessor 5 | 6 | Signed-off-by: Bo Shen 7 | --- 8 | ext/g1/gstg1basedec.c | 1 + 9 | 1 file changed, 1 insertion(+) 10 | 11 | diff --git a/ext/g1/gstg1basedec.c b/ext/g1/gstg1basedec.c 12 | index c306240..93fe36a 100644 13 | --- a/ext/g1/gstg1basedec.c 14 | +++ b/ext/g1/gstg1basedec.c 15 | @@ -596,6 +596,7 @@ gst_g1_base_dec_allocate_output (GstG1BaseDec * dec, GstVideoCodecFrame * frame) 16 | dec->ppconfig.ppOutImg.pixFormat = gst_g1_format_gst_to_pp (finfo); 17 | dec->ppconfig.ppOutImg.width = GST_VIDEO_INFO_WIDTH (vinfo); 18 | dec->ppconfig.ppOutImg.height = GST_VIDEO_INFO_HEIGHT (vinfo); 19 | + dec->ppconfig.ppOutRgb.ditheringEnable = 1; 20 | 21 | dec->ppconfig.ppOutFrmBuffer.enable = 0; 22 | dec->ppconfig.ppOutFrmBuffer.writeOriginX = 200; 23 | -- 24 | 1.9.1 25 | 26 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/files/0002-fix-configure.ac.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2014-08-28 02:20:36.000000000 +0200 2 | +++ b/configure.ac 2015-02-11 18:46:39.048419499 +0100 3 | @@ -13,7 +13,7 @@ AC_INIT(GStreamer Hantro G1 Decoder Plug 4 | AG_GST_INIT 5 | 6 | dnl initialize automake 7 | -AM_INIT_AUTOMAKE([-Wno-portability 1.11 no-dist-gzip dist-xz tar-ustar]) 8 | +AM_INIT_AUTOMAKE([-Wno-portability 1.11 no-dist-gzip dist-xz tar-ustar foreign]) 9 | 10 | dnl define PACKAGE_VERSION_* variables 11 | AS_VERSION 12 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/g1-binaries_1.2.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Hantro binaries" 2 | LICENSE = "ATMEL_LLA" 3 | 4 | LIC_FILES_CHKSUM = "file://include/basetype.h;endline=18;md5=45a908b058dc0c5d75d5501bb331fb60" 5 | 6 | PR = "r1" 7 | 8 | SRC_URI = "https://files.linux4sam.org/pub/demo/qtdemo/g1-binaries-${PV}.tar.gz" 9 | 10 | SRC_URI[md5sum] = "2111d0307fcd3197cf3372437a721384" 11 | SRC_URI[sha256sum] = "f6def1ae8961ea6715e95f7f797156d949445ad353c5f02c9814b5345d1439f0" 12 | 13 | S = "${WORKDIR}/g1-binaries-${PV}" 14 | 15 | do_install() { 16 | install -d ${D}/usr/include 17 | install -d ${D}/usr/lib 18 | cp ${S}/include/* ${D}/usr/include/ 19 | cp ${S}/lib/* ${D}/usr/lib/ 20 | } 21 | 22 | ALLOW_EMPTY:${PN} = "1" 23 | INHIBIT_DEFAULT_DEPS = "1" 24 | COMPATIBLE_MACHINE = "sama5d4" 25 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/g1-decoder_1.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "G1 Hantro decoder" 2 | LICENSE = "BSD" 3 | 4 | LIC_FILES_CHKSUM = "file://software/source/inc/basetype.h;endline=36;md5=e3202b62900668ae783c037af34f1ff5" 5 | 6 | PR = "r1" 7 | 8 | inherit autotools pkgconfig gettext 9 | 10 | SRC_URI = "git://github.com/linux4sam/g1_decoder.git;branch=master;protocol=https" 11 | 12 | SRCREV = "cb81273566b7c1609ce27bbf38af8042946472f7" 13 | 14 | S = "${WORKDIR}/git" 15 | 16 | do_configure:prepend() { 17 | (cd ${S}; 18 | chmod +x ${S}/autogen.sh; 19 | ${S}/autogen.sh; cd -) 20 | } 21 | 22 | COMPATIBLE_MACHINE = "sama5d4" 23 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro.inc: -------------------------------------------------------------------------------- 1 | SUMMARY = "Hantro plugins for GStreamer" 2 | SECTION = "multimedia" 3 | LICENSE = "LGPL-2.1-only" 4 | HOMEPAGE = "http://www.gstreamer.net/" 5 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base g1-decoder" 6 | 7 | inherit autotools-brokensep pkgconfig gettext 8 | 9 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" 10 | 11 | DEPENDS += "libdrm" 12 | 13 | S = "${WORKDIR}/git" 14 | SRC_URI = "git://github.com/linux4sam/gst1-hantro-g1;protocol=https;branch=master \ 15 | git://github.com/GStreamer/common.git;protocol=https;branch=master;destsuffix=git/common;name=common \ 16 | " 17 | 18 | SRCREV_common = "9aed1d7a80a38b76f9441ecf181942df99f09c38" 19 | SRCREV_FORMAT = "base" 20 | 21 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" 22 | FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" 23 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la" 24 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" 25 | 26 | COMPATIBLE_MACHINE = "sama5d4" 27 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.0.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRC_URI += "file://0002-fix-configure.ac.patch" 4 | SRCREV = "30dd89e6ab943ebc0b1b9b1469a4715070a34771" 5 | 6 | COMPATIBLE_MACHINE = "sama5d4" 7 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.1.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "36dad2f0fc13e9aac2a4a9c850ec63eddbc48e4b" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.2.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "da3e35583359541711cb186918313c688c7b4ea7" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.3.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "50941639a3b1c287ffc28baa5b786c2c00a9494b" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.4.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "df1d238efc46afcbce074d79294f31d40b2cc777" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.5.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "40d9506e7c4b7df427b3de8fcb17c60f0e72f55a" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.6.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "85675fc9701f0f1cf2dbb02cdfcff4ad5389bdad" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer1.0-plugins/gstreamer1.0-plugins-hantro_1.8.bb: -------------------------------------------------------------------------------- 1 | include gstreamer1.0-plugins-hantro.inc 2 | 3 | SRCREV = "4850e2e6b02f67bd55560e64664908af63425cc7" 4 | 5 | COMPATIBLE_MACHINE = "sama5d4" 6 | -------------------------------------------------------------------------------- /recipes-multimedia/libcamera/libcamera-mchp/0001-media_device-Add-bool-return-type-to-unlock.patch: -------------------------------------------------------------------------------- 1 | From 6914c4fd3d53c0c6ea304123bf57429bb64ec16f Mon Sep 17 00:00:00 2001 2 | From: Khem Raj 3 | Date: Wed, 31 Jan 2024 21:01:27 -0800 4 | Subject: [PATCH 1/2] media_device: Add bool return type to unlock() 5 | 6 | unlock uses lockf which is marked with __attribute__ 7 | ((warn_unused_result)) and compilers warn about it and some treat 8 | -Wunused-result as error with -Werror turned on, It would be good to 9 | check if lockf failed or succeeded, however, that piece is not changed 10 | with this, this fixes build with clang++ 18 11 | 12 | ../git/src/libcamera/media_device.cpp:167:2: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] 13 | 167 | lockf(fd_.get(), F_ULOCK, 0); 14 | | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~ 15 | 1 error generated. 16 | 17 | Upstream-Status: Submitted [https://lists.libcamera.org/pipermail/libcamera-devel/2024-February/040380.html] 18 | Signed-off-by: Khem Raj 19 | --- 20 | include/libcamera/internal/media_device.h | 2 +- 21 | src/libcamera/media_device.cpp | 6 +++--- 22 | 2 files changed, 4 insertions(+), 4 deletions(-) 23 | 24 | diff --git a/include/libcamera/internal/media_device.h b/include/libcamera/internal/media_device.h 25 | index eb8cfde4..b09dfd16 100644 26 | --- a/include/libcamera/internal/media_device.h 27 | +++ b/include/libcamera/internal/media_device.h 28 | @@ -33,7 +33,7 @@ public: 29 | bool busy() const { return acquired_; } 30 | 31 | bool lock(); 32 | - void unlock(); 33 | + bool unlock(); 34 | 35 | int populate(); 36 | bool isValid() const { return valid_; } 37 | diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp 38 | index 2949816b..eaa2fdb0 100644 39 | --- a/src/libcamera/media_device.cpp 40 | +++ b/src/libcamera/media_device.cpp 41 | @@ -159,12 +159,12 @@ bool MediaDevice::lock() 42 | * 43 | * \sa lock() 44 | */ 45 | -void MediaDevice::unlock() 46 | +bool MediaDevice::unlock() 47 | { 48 | if (!fd_.isValid()) 49 | - return; 50 | + return false; 51 | 52 | - lockf(fd_.get(), F_ULOCK, 0); 53 | + return lockf(fd_.get(), F_ULOCK, 0) == 0; 54 | } 55 | 56 | /** 57 | -- 58 | 2.43.0 59 | -------------------------------------------------------------------------------- /recipes-multimedia/libcamera/libcamera-mchp/0001-rpi-Use-malloc-instead-of-variable-length-arrays.patch: -------------------------------------------------------------------------------- 1 | From a3e25b6aa9775c43336e30d3b350f54c085a32c8 Mon Sep 17 00:00:00 2001 2 | From: Khem Raj 3 | Date: Tue, 20 Feb 2024 18:44:23 -0800 4 | Subject: [PATCH] rpi: Use malloc instead of variable length arrays 5 | 6 | Clang-18+ diagnoses this as error 7 | 8 | | ../git/src/ipa/rpi/controller/rpi/alsc.cpp:499:10: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] | 499 | int xLo[X], xHi[X]; 9 | | | ^ 10 | 11 | Upstream-Status: Denied [https://lists.libcamera.org/pipermail/libcamera-devel/2024-February/040536.html] 12 | Signed-off-by: Khem Raj 13 | --- 14 | src/ipa/rpi/controller/rpi/alsc.cpp | 7 +++++-- 15 | 1 file changed, 5 insertions(+), 2 deletions(-) 16 | 17 | diff --git a/src/ipa/rpi/controller/rpi/alsc.cpp b/src/ipa/rpi/controller/rpi/alsc.cpp 18 | index 67029fc3..6eca9fb7 100644 19 | --- a/src/ipa/rpi/controller/rpi/alsc.cpp 20 | +++ b/src/ipa/rpi/controller/rpi/alsc.cpp 21 | @@ -496,8 +496,8 @@ void resampleCalTable(const Array2D &calTableIn, 22 | * Precalculate and cache the x sampling locations and phases to save 23 | * recomputing them on every row. 24 | */ 25 | - int xLo[X], xHi[X]; 26 | - double xf[X]; 27 | + int *xLo = (int *)malloc(X * sizeof(int)), *xHi = (int *)malloc(X * sizeof(int)); 28 | + double *xf = (double *)malloc(X * sizeof(double)); 29 | double scaleX = cameraMode.sensorWidth / 30 | (cameraMode.width * cameraMode.scaleX); 31 | double xOff = cameraMode.cropX / (double)cameraMode.sensorWidth; 32 | @@ -539,6 +539,9 @@ void resampleCalTable(const Array2D &calTableIn, 33 | *(out++) = above * (1 - yf) + below * yf; 34 | } 35 | } 36 | + free(xf); 37 | + free(xHi); 38 | + free(xLo); 39 | } 40 | 41 | /* Calculate chrominance statistics (R/G and B/G) for each region. */ 42 | -------------------------------------------------------------------------------- /recipes-multimedia/ptc_examples/ptc-examples_1.3.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "PTC examples" 2 | DESCRIPTION = "The PTC examples are composed of binary configurations and demo applications." 3 | AUTHOR = "Microchip Technology Incorporated" 4 | HOMEPAGE = "https://github.com/linux4sam/ptc_examples" 5 | SECTION = "examples" 6 | LICENSE = "Apache-2.0 & MICROCHIP_FW & PTC_config" 7 | LIC_FILES_CHKSUM = "file://src/COPYING;md5=e23fadd6ceef8c618fc1c65191d846fa \ 8 | file://cfg/LICENCE.ptc_cfg;beginline=6;md5=cba5f8f7c9871fdbc6daf1a384e8fb4c \ 9 | file://fw/LICENCE.ptc_fw;beginline=6;md5=6c2a5175a10e876229208f0a4924daf1 \ 10 | " 11 | NO_GENERIC_LICENSE[PTC_config] = "cfg/LICENCE.ptc_cfg" 12 | DEPENDS = "libevdev libgpiod" 13 | RDEPENDS:${PN} = "udev-rules-at91" 14 | PV = "1.3+git${SRCPV}" 15 | 16 | SRC_URI = "git://github.com/linux4sam/ptc_examples.git;protocol=https;branch=master" 17 | SRCREV = "625f1066a1da81c146947855f4b4686bb0079b50" 18 | 19 | S = "${WORKDIR}/git" 20 | 21 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} \ 22 | CFLAGS="${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}" \ 23 | LDFLAGS="${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${LDFLAGS}" \ 24 | ' 25 | 26 | EXTRA_OEMAKE:append:sama5d27-wlsom1-ek-sd = ' CFLAGS+="-DSAMA5D27_WLSOM1_EK"' 27 | 28 | do_compile () { 29 | oe_runmake 30 | } 31 | 32 | do_install () { 33 | install -D -m 0755 --target-directory=${D}/usr/bin ${S}/src/ptc_qt*_demo 34 | install -D -m 0755 --target-directory=${D}${ROOT_HOME} ${S}/src/start_ptc_qt* 35 | install -D -m 0644 --target-directory=${D}${base_libdir}/firmware/microchip \ 36 | ${S}/fw/*.bin ${S}/cfg/*.bin 37 | } 38 | 39 | PACKAGE_ARCH = "${MACHINE_ARCH}" 40 | FILES:${PN} += "${base_libdir}/firmware/microchip \ 41 | ${ROOT_HOME}/start_ptc_qt* \ 42 | " 43 | COMPATIBLE_MACHINE = "(at91sam9|sama5)" 44 | -------------------------------------------------------------------------------- /recipes-security/cryptoauthlib/cryptoauthlib_3.7.7.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip CryptoAuthentication Library" 2 | 3 | LICENSE = "MICROCHIP_CAL" 4 | LIC_FILES_CHKSUM = "file://license.txt;endline=18;md5=7a38fc60c2fcad312a03b337dea8a96d" 5 | 6 | SRC_URI = "git://github.com/MicrochipTech/cryptoauthlib.git;branch=main;protocol=https \ 7 | file://cryptoauthlib.module \ 8 | file://0001-pkcs11-add-KeyLen-condition.patch \ 9 | " 10 | 11 | PV = "1.0+git${SRCPV}" 12 | SRCREV = "caf67be64865a126c0cb23ac610213083baa6a60" 13 | 14 | S = "${WORKDIR}/git" 15 | 16 | DEPENDS = "udev openssl" 17 | RDEPENDS:${PN} = "libp11 (>= 0.4.10) gnutls-bin" 18 | RRECOMMENDS:${PN} = "p11-kit" 19 | 20 | inherit cmake 21 | 22 | EXTRA_OECMAKE = " \ 23 | -DATCA_HAL_I2C=ON \ 24 | -DATCA_PKCS11=ON \ 25 | -DATCA_OPENSSL=ON \ 26 | -DATCA_ATECC508A_SUPPORT=ON \ 27 | -DATCA_ATECC608_SUPPORT=ON \ 28 | -DATCA_BUILD_SHARED_LIBS=ON \ 29 | -DATCA_TNGTLS_SUPPORT=ON \ 30 | -DATCA_TNGLORA_SUPPORT=ON \ 31 | -DATCA_TFLEX_SUPPORT=ON \ 32 | -DATCA_USE_ATCAB_FUNCTIONS=ON \ 33 | " 34 | 35 | CFLAGS += "-fcommon" 36 | 37 | i2c_addr() { 38 | case $1 in 39 | sama5d2-icp-sd) machine_i2c_addr="0xC0,1" ;; 40 | sama5d2-ptc-ek) machine_i2c_addr="0xC0,1" ;; 41 | sama5d2-ptc-ek-sd) machine_i2c_addr="0xC0,1" ;; 42 | sama5d2-xplained) machine_i2c_addr="0xC0,2" ;; 43 | sama5d2-xplained-sd) machine_i2c_addr="0xC0,2" ;; 44 | sama5d27-som1-ek-sd) machine_i2c_addr="0xC0,0" ;; 45 | sama5d27-wlsom1-ek-sd) machine_i2c_addr="0x6A,0" ;; 46 | sama5d29-curiosity-sd) machine_i2c_addr="0x6A,1" ;; 47 | sama7g5ek-sd) machine_i2c_addr="0xC0,1" ;; 48 | sama7g5ek-emmc) machine_i2c_addr="0xC0,1" ;; 49 | sam9x60ek-sd) machine_i2c_addr="0x6A,1" ;; 50 | sam9x60-curiosity-sd) machine_i2c_addr="0x6A,0" ;; 51 | sam9x75-curiosity-sd) machine_i2c_addr="0x6A,1" ;; 52 | *) machine_i2c_addr="" ;; 53 | esac 54 | } 55 | 56 | do_install:append() { 57 | 58 | i2c_addr ${MACHINE} 59 | 60 | # Install module and conf for all machines 61 | install -Dm 644 ${WORKDIR}/cryptoauthlib.module ${D}${datadir}/p11-kit/modules/cryptoauthlib.module 62 | cp -p ${D}${localstatedir}/lib/cryptoauthlib/slot.conf.tmpl ${D}${localstatedir}/lib/cryptoauthlib/0.conf 63 | 64 | 65 | # Update interface using the machine specific I2C address 66 | if [ -z "${machine_i2c_addr}" ]; then 67 | echo "Warning: I2C address not found for machine: ${MACHINE}" 68 | else 69 | sed -i "s/interface = .*/interface = i2c,${machine_i2c_addr}/" ${D}${localstatedir}/lib/cryptoauthlib/0.conf 70 | fi 71 | } 72 | 73 | FILES:${PN} = "${libdir}/* \ 74 | ${sysconfdir}/cryptoauthlib/cryptoauthlib.conf \ 75 | ${localstatedir}/lib/cryptoauthlib/slot.conf.tmpl \ 76 | ${datadir}/p11-kit/modules/cryptoauthlib.module \ 77 | ${localstatedir}/lib/cryptoauthlib/0.conf \ 78 | " 79 | FILES:${PN}-dev = " \ 80 | ${includedir}/cryptoauthlib/* \ 81 | " 82 | 83 | INSANE_SKIP:${PN} += "dev-so" 84 | -------------------------------------------------------------------------------- /recipes-security/cryptoauthlib/files/0001-pkcs11-add-KeyLen-condition.patch: -------------------------------------------------------------------------------- 1 | From 2f82cfab79e7e19c4afd4252326d042d35048dd6 Mon Sep 17 00:00:00 2001 2 | From: Hari Prasath 3 | Date: Wed, 13 Dec 2023 17:05:17 +0530 4 | Subject: [PATCH] pkcs11: add KeyLen condition 5 | 6 | Add the KeyLen condition check 7 | 8 | Signed-off-by: Hari Prasath 9 | Signed-off-by: Tudor Ambarus 10 | Signed-off-by: Balakrishnan Sambath 11 | --- 12 | lib/pkcs11/pkcs11_token.c | 2 +- 13 | 1 file changed, 1 insertion(+), 1 deletion(-) 14 | 15 | diff --git a/lib/pkcs11/pkcs11_token.c b/lib/pkcs11/pkcs11_token.c 16 | index 98d3aec9..b9a67474 100644 17 | --- a/lib/pkcs11/pkcs11_token.c 18 | +++ b/lib/pkcs11/pkcs11_token.c 19 | @@ -680,7 +680,7 @@ CK_RV pkcs11_token_convert_pin_to_key( 20 | { 21 | ATCA_STATUS status = ATCA_SUCCESS; 22 | 23 | - if (NULL == pPin || 0u == ulPinLen || NULL == pKey || NULL == slot_ctx) 24 | + if (NULL == pPin || 0u == ulPinLen || NULL == pKey || NULL == slot_ctx || 32 > ulKeyLen) 25 | { 26 | return CKR_ARGUMENTS_BAD; 27 | } 28 | -- 29 | 2.25.1 30 | -------------------------------------------------------------------------------- /recipes-security/cryptoauthlib/files/cryptoauthlib.module: -------------------------------------------------------------------------------- 1 | module: /usr/lib/libcryptoauth.so 2 | critical: yes 3 | trust-policy: yes 4 | managed: yes 5 | log-calls: no 6 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-client_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRCREV = "d221676a58b305bddbf97db00395205b3038de8e" 4 | 5 | DEPENDS:append = " util-linux-libuuid" 6 | inherit pkgconfig 7 | 8 | PV = "4.4.0+git${SRCPV}" 9 | 10 | COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd|sama7g5ek-optee-sd)" 11 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-examples_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRC_URI:remove = "file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch" 4 | 5 | SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035" 6 | 7 | PV = "4.4.0+git${SRCPV}" 8 | 9 | COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd|sama7g5ek-optee-sd)" 10 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-os-tadevkit_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | SRCREV = "8f645256efc0dc66bd5c118778b0b50c44469ae1" 4 | 5 | PV = "4.4.0+git${SRCPV}" 6 | 7 | OPTEEMACHINE = "sam" 8 | 9 | DEPENDS:append = " dtc-native" 10 | 11 | COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd|sama7g5ek-optee-sd)" 12 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-os/0001-drivers-clk-sam-extend-the-time-for-waiting-PLL-read.patch: -------------------------------------------------------------------------------- 1 | From 896099c2e46517cd56dbbd062ede544f3f51e7b0 Mon Sep 17 00:00:00 2001 2 | From: Dharma Balasubiramani 3 | Date: Fri, 18 Oct 2024 10:51:36 +0530 4 | Subject: [PATCH] drivers: clk: sam: extend the time for waiting PLL ready 5 | 6 | The start-up time (simulation data) of sama7g5 PLL is 50us in condition 7 | reaching 95% of target frequency. The PLL lock status bit is not set a few 8 | times with current timeout setting. Extend the time to make sure the check 9 | is successful for any cases. 10 | 11 | Signed-off-by: Tony Han 12 | --- 13 | core/drivers/clk/sam/clk-sam9x60-pll.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/core/drivers/clk/sam/clk-sam9x60-pll.c b/core/drivers/clk/sam/clk-sam9x60-pll.c 17 | index f7853d064..e3e79ce20 100644 18 | --- a/core/drivers/clk/sam/clk-sam9x60-pll.c 19 | +++ b/core/drivers/clk/sam/clk-sam9x60-pll.c 20 | @@ -62,7 +62,7 @@ struct sam9x60_div { 21 | uint32_t __timeout = 0; \ 22 | uint32_t _c = 0; \ 23 | \ 24 | - while (__timeout++ < 500) { \ 25 | + while (__timeout++ < 1000) { \ 26 | _c = io_read32((_base) + AT91_PMC_PLL_ISR0) & \ 27 | BIT(_id); \ 28 | if (_c) \ 29 | -- 30 | 2.43.0 31 | 32 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-os/0001-plat-sam-remove-NVMEM_HUK.patch: -------------------------------------------------------------------------------- 1 | diff --git a/core/arch/arm/plat-sam/conf.mk b/core/arch/arm/plat-sam/conf.mk 2 | index 761fba900..d22083398 100644 3 | --- a/core/arch/arm/plat-sam/conf.mk 4 | +++ b/core/arch/arm/plat-sam/conf.mk 5 | @@ -133,5 +133,5 @@ CFG_NVMEM_HUK ?= n 6 | else 7 | CFG_ATMEL_SFC ?= y 8 | CFG_NVMEM_DIE_ID ?= y 9 | -CFG_NVMEM_HUK ?= y 10 | +#CFG_NVMEM_HUK ?= y 11 | endif 12 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-os_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | OPTEEMACHINE = "sam" 4 | 5 | DEPENDS:append = " dtc-native python3-cryptography-native" 6 | 7 | SRCREV = "8f645256efc0dc66bd5c118778b0b50c44469ae1" 8 | 9 | SRC_URI:append = " file://0001-plat-sam-remove-NVMEM_HUK.patch \ 10 | file://0001-drivers-clk-sam-extend-the-time-for-waiting-PLL-read.patch \ 11 | " 12 | 13 | PV = "4.4.0+git${SRCPV}" 14 | 15 | COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd|sama7g5ek-optee-sd)" 16 | 17 | OPTEE_SUFFIX ?= "bin" 18 | OPTEE_IMAGE ?= "tee-${MACHINE}-${PV}-${PR}.${OPTEE_SUFFIX}" 19 | OPTEE_BINARY ?= "tee.${OPTEE_SUFFIX}" 20 | OPTEE_SYMLINK ?= "tee-${MACHINE}.${OPTEE_SUFFIX}" 21 | 22 | OPTEE_PLATFORM_FLAVOR:sama5d27-som1-ek-optee-sd ??="sama5d27_som1_ek" 23 | OPTEE_PLATFORM_FLAVOR:sama7g5ek-optee-sd ??="sama7g54_ek" 24 | 25 | EXTRA_OEMAKE += "PLATFORM_FLAVOR=${OPTEE_PLATFORM_FLAVOR}" 26 | 27 | do_install:append() { 28 | #install core in boot 29 | install -d ${D}/boot 30 | install -m 644 ${B}/core/*.bin ${B}/core/tee.elf ${D}/boot/ 31 | install ${B}/core/${OPTEE_BINARY} ${D}/boot/${OPTEE_IMAGE} 32 | ln -sf ${OPTEE_IMAGE} ${D}/boot/${OPTEE_BINARY} 33 | } 34 | 35 | PACKAGE_ARCH = "${MACHINE_ARCH}" 36 | 37 | do_deploy:append() { 38 | install -d ${DEPLOYDIR} 39 | install -m 644 ${D}/boot/* ${DEPLOYDIR}/ 40 | install ${B}/core/${OPTEE_BINARY} ${DEPLOYDIR}/${OPTEE_IMAGE} 41 | 42 | cd ${DEPLOYDIR} 43 | rm -f ${OPTEE_BINARY} ${OPTEE_SYMLINK} 44 | ln -sf ${OPTEE_IMAGE} ${OPTEE_SYMLINK} 45 | ln -sf ${OPTEE_IMAGE} ${OPTEE_BINARY} 46 | } 47 | 48 | SYSROOT_DIRS += "/boot/" 49 | 50 | FILES:${PN} += "/boot/" 51 | FILESPATH =. "${FILE_DIRNAME}/optee-os/${MACHINE}:" 52 | -------------------------------------------------------------------------------- /recipes-security/optee/optee-test_%.bbappend: -------------------------------------------------------------------------------- 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2 | 3 | DEPENDS:append = " openssl" 4 | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560" 6 | 7 | SRC_URI:remove = "file://0001-xtest-stats-remove-unneeded-stat.h-include.patch" 8 | 9 | SRCREV = "695231ef8987866663a9ed5afd8f77d1bae3dc08" 10 | 11 | PV = "4.4.0+git${SRCPV}" 12 | 13 | COMPATIBLE_MACHINE = "(sama5d27-som1-ek-optee-sd|sama7g5ek-optee-sd)" 14 | -------------------------------------------------------------------------------- /recipes-support/gnutls/gnutls_%.bbappend: -------------------------------------------------------------------------------- 1 | PACKAGECONFIG:append = " p11-kit" 2 | -------------------------------------------------------------------------------- /recipes-support/libp11/libp11_%.bbappend: -------------------------------------------------------------------------------- 1 | EXTRA_OECONF:append:sama5d2 = " --with-pkcs11-module=/usr/lib/p11-kit-proxy.so" 2 | EXTRA_OECONF:append:sama7 = " --with-pkcs11-module=/usr/lib/p11-kit-proxy.so" 3 | EXTRA_OECONF:append:sam9x60 = " --with-pkcs11-module=/usr/lib/p11-kit-proxy.so" 4 | -------------------------------------------------------------------------------- /recipes-support/p11-kit/p11-kit_%.bbappend: -------------------------------------------------------------------------------- 1 | BBCLASSEXTEND = "native nativesdk" 2 | -------------------------------------------------------------------------------- /recipes-support/plplot/files/0001-xwin.cmake-Check-if-PTHREAD_MUTEX_RECURSIVE_NP-exist.patch: -------------------------------------------------------------------------------- 1 | From d8d0143b71fb49bcfda3a4f7061c7ec75c1b1faf Mon Sep 17 00:00:00 2001 2 | From: Khem Raj 3 | Date: Mon, 13 Apr 2020 16:17:02 -0700 4 | Subject: [PATCH] xwin.cmake: Do not use PTHREAD_MUTEX_RECURSIVE_NP 5 | 6 | musl e.g. does not define it so just checking for Linux as platform is 7 | not enough, however PTHREAD_MUTEX_RECURSIVE is available on both and on 8 | glibc PTHREAD_MUTEX_RECURSIVE_NP = PTHREAD_MUTEX_RECURSIVE for unix98+ 9 | 10 | Signed-off-by: Khem Raj 11 | --- 12 | cmake/modules/xwin.cmake | 4 +++- 13 | 1 file changed, 3 insertions(+), 1 deletion(-) 14 | 15 | --- a/cmake/modules/xwin.cmake 16 | +++ b/cmake/modules/xwin.cmake 17 | @@ -49,13 +49,11 @@ if(PLD_xwin) 18 | if(CMAKE_USE_PTHREADS_INIT) 19 | set(xwin_LINK_FLAGS ${xwin_LINK_FLAGS} ${CMAKE_THREAD_LIBS_INIT}) 20 | cmake_link_flags(xwin_LINK_FLAGS "${xwin_LINK_FLAGS}") 21 | - if(CMAKE_SYSTEM_NAME STREQUAL "Linux") 22 | - set(PLPLOT_MUTEX_RECURSIVE "PTHREAD_MUTEX_RECURSIVE_NP") 23 | - elseif(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD") 24 | + if(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD") 25 | set(PLPLOT_MUTEX_RECURSIVE "PTHREAD_MUTEX_RECURSIVE_NP") 26 | else(CMAKE_SYSTEM_NAME STREQUAL "Linux") 27 | set(PLPLOT_MUTEX_RECURSIVE "PTHREAD_MUTEX_RECURSIVE") 28 | - endif(CMAKE_SYSTEM_NAME STREQUAL "Linux") 29 | + endif(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD") 30 | else(CMAKE_USE_PTHREADS_INIT) 31 | # I am being super-careful here to follow the autotools model. In 32 | # fact, it is possible other thread systems will work as well as 33 | -------------------------------------------------------------------------------- /recipes-support/plplot/files/0002-utils-CMakeLists.txt-disable-pltek-build.patch: -------------------------------------------------------------------------------- 1 | From cb3012ca62de1d54963635d2a710526ebc8d6756 Mon Sep 17 00:00:00 2001 2 | From: Sandeep Sheriker M 3 | Date: Fri, 21 Feb 2020 13:13:01 +0100 4 | Subject: [PATCH 2/2] utils/CMakeLists.txt: disable pltek build 5 | 6 | Signed-off-by: Sandeep Sheriker M 7 | --- 8 | utils/CMakeLists.txt | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt 12 | index 5772910d2..aedc7d777 100644 13 | --- a/utils/CMakeLists.txt 14 | +++ b/utils/CMakeLists.txt 15 | @@ -32,7 +32,7 @@ if(PLD_plmeta) 16 | configure_executable_build(plrender "plrender.c" "PLPLOT::plplot" "${LIB_INSTALL_RPATH}" ${BIN_DIR}) 17 | endif(PLD_plmeta) 18 | 19 | -configure_executable_build(pltek "pltek.c" "PLPLOT::plplot" "${LIB_INSTALL_RPATH}" ${BIN_DIR}) 20 | +#configure_executable_build(pltek "pltek.c" "PLPLOT::plplot" "${LIB_INSTALL_RPATH}" ${BIN_DIR}) 21 | 22 | # Build simple executable to check parity bits of all characters read 23 | # by stdin. 24 | -- 25 | 2.25.0 26 | 27 | -------------------------------------------------------------------------------- /recipes-support/plplot/plplot_5.15.0.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "plplot library" 2 | HOMEPAGE = "http://plplot.org/" 3 | SECTION = "devel" 4 | 5 | LICENSE = "LGPL-2.0-or-later" 6 | LIC_FILES_CHKSUM = "file://Copyright;endline=285;md5=9222bd6b5e4e128fac952e168cffc361" 7 | 8 | DEPENDS = " libtool freetype fontconfig cairo pango " 9 | 10 | #TAG plplot-5.15.0 11 | SRCREV = "4f88e45dbd85468a96364548f8d06a9b52dac14a" 12 | 13 | SRC_URI = "git://github.com/PLplot/PLplot;protocol=https;branch=master \ 14 | file://0001-plplot-fix-configure-error-for-generating-header-fil.patch \ 15 | file://0002-utils-CMakeLists.txt-disable-pltek-build.patch \ 16 | file://0001-xwin.cmake-Check-if-PTHREAD_MUTEX_RECURSIVE_NP-exist.patch \ 17 | file://deltaT.h \ 18 | file://tai-utc.h \ 19 | file://plhershey-unicode.h \ 20 | " 21 | 22 | S = "${WORKDIR}/git" 23 | 24 | EXTRA_OECMAKE += " \ 25 | -DCMAKE_INSTALL_LIBDIR=${libdir} \ 26 | -DCMAKE_INSTALL_INCLUDEDIR=${includedir} \ 27 | -DDEFAULT_NO_BINDINGS=ON \ 28 | -DDEFAULT_NO_CAIRO_DEVICES=OFF \ 29 | -DENABLE_cxx=ON \ 30 | -DNaNAwareCCompiler=ON \ 31 | -DPL_DOUBLE=OFF \ 32 | -DENABLE_DYNDRIVERS:BOOL=OFF \ 33 | -DUSE_RPATH:BOOL=OFF \ 34 | -DCMAKE_NATIVE_BINARY_DIR=${B} \ 35 | -DCMAKE_VERBOSE_MAKEFILE=ON \ 36 | " 37 | 38 | do_compile:prepend() { 39 | mkdir -p ${B}/lib/qsastime 40 | mkdir -p ${B}/include 41 | cp -avf ${WORKDIR}/deltaT.h ${B}/lib/qsastime/ 42 | cp -avf ${WORKDIR}/tai-utc.h ${B}/lib/qsastime/ 43 | cp -avf ${WORKDIR}/plhershey-unicode.h ${B}/include/ 44 | } 45 | 46 | FILES:${PN} = " \ 47 | ${libdir}/* \ 48 | /usr/include/* \ 49 | /usr/share/* \ 50 | " 51 | 52 | do_install:append() { 53 | rm -rf ${D}/usr/share/plplot${PV}/examples 54 | } 55 | 56 | RDEPENDS:${PN} = " \ 57 | ttf-dejavu-sans \ 58 | ttf-dejavu-sans-mono \ 59 | ttf-dejavu-sans-condensed \ 60 | ttf-dejavu-serif \ 61 | ttf-dejavu-serif-condensed \ 62 | " 63 | 64 | inherit cmake pkgconfig 65 | -------------------------------------------------------------------------------- /recipes-support/python-cryptoauthlib/python3-cryptoauthlib_20200208.bb: -------------------------------------------------------------------------------- 1 | SUMMARY = "Python Wrapper Library for Microchip Security Products" 2 | HOMEPAGE = "https://github.com/MicrochipTech/cryptoauthlib" 3 | 4 | LICENSE = "CLOSED" 5 | LIC_FILES_CHKSUM = "" 6 | 7 | SRC_URI = "https://files.pythonhosted.org/packages/1b/ed/da1709095abd203e37892f7183b68433382ce6a0f6129dfa0ac47e2ba85c/cryptoauthlib-${PV}.tar.gz \ 8 | ${PYPI_SRC_URI} \ 9 | " 10 | SRC_URI[md5sum] = "3a464cb6ea78286353870e544f85e208" 11 | SRC_URI[sha256sum] = "7b04a4097c6f8d4b539c7425261eac3353016405b863fec2d827152ce3a652bf" 12 | 13 | inherit pypi setuptools3 14 | 15 | RDEPENDS:${PN} += "python3-core python3-cryptography python3-ctypes python3-datetime python3-netclient" 16 | 17 | DEPENDS += "cmake-native udev" 18 | 19 | export CRYPTOAUTHLIB_NOUSB = "True" 20 | -------------------------------------------------------------------------------- /recipes-utils/9bit/9bit/0001-include-asm-generic-ioctls.h.patch: -------------------------------------------------------------------------------- 1 | From f35a891637ced372fa6f8b2e74c2bc4327ac3761 Mon Sep 17 00:00:00 2001 2 | From: Khem Raj 3 | Date: Wed, 18 Dec 2019 18:24:03 -0800 4 | Subject: [PATCH] include asm-generic/ioctls.h 5 | 6 | This helps in including definitions for TCGETS2 TCSETSW2 and TCSETSF2 7 | 8 | Fixes 9 | 10 | custom_termios2.c:14:19: error: use of undeclared identifier 'TCGETS2' return ioctl(fd, TCGETS2, termios); ^ custom_termios2.c:24:9: error: use of undeclared identifier 'TCSETS2' cmd = TCSETS2; ^ custom_termios2.c:27:9: error: use of undeclared identifier 'TCSETSW2' cmd = TCSETSW2; ^ custom_termios2.c:30:9: error: use of undeclared identifier 'TCSETSF2' cmd = TCSETSF2; 11 | ^ 12 | Upstream-Status: Submitted [https://github.com/linux4sam/9bit/pull/1] 13 | 14 | Signed-off-by: Khem Raj 15 | --- 16 | custom_termios2.c | 1 + 17 | 1 file changed, 1 insertion(+) 18 | 19 | diff --git a/custom_termios2.c b/custom_termios2.c 20 | index 3eb3049..ba0171a 100644 21 | --- a/custom_termios2.c 22 | +++ b/custom_termios2.c 23 | @@ -5,6 +5,7 @@ 24 | */ 25 | #include "custom_termios2.h" 26 | #include 27 | +#include 28 | #include 29 | #include 30 | 31 | -- 32 | 2.24.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-utils/9bit/9bit_git.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Demo apps for SAMA5 9-bit / Multidrop Serial Mode" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbe63b61f5a0d24e651c8be602a7c3f8" 4 | 5 | SRC_URI = "git://github.com/linux4sam/9bit.git;protocol=https;branch=master \ 6 | file://0001-include-asm-generic-ioctls.h.patch \ 7 | " 8 | 9 | PV = "1.0+git${SRCPV}" 10 | SRCREV = "f4cd916c8c58300ea1cbb398f0b40fe43a70d6d6" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | do_compile () { 15 | oe_runmake 16 | } 17 | 18 | do_install () { 19 | install -d ${D}${bindir} 20 | install -m 0755 senda_example ${D}${bindir} 21 | install -m 0755 p9bit_example ${D}${bindir} 22 | install -m 0755 user_example ${D}${bindir} 23 | } 24 | 25 | -------------------------------------------------------------------------------- /recipes-utils/mpio/mpio_1.3.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip Peripheral I/O" 2 | LICENSE = "(Apache-2.0 & MIT)" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ 4 | file://LICENSE.MIT;md5=eaff550e3336227837b4efbd2244da32" 5 | 6 | PACKAGES = "${PN}-dbg ${PN}" 7 | 8 | RDEPENDS:${PN} = "python3" 9 | 10 | SRC_URI = "git://github.com/linux4sam/mpio.git;branch=master;protocol=https" 11 | PV = "1.3+git${SRCPV}" 12 | 13 | SRCREV = "21c7f5dc185c9bfa3a5a49b25f3a9164bab56ebe" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | inherit setuptools3 18 | -------------------------------------------------------------------------------- /recipes-utils/mpio/mpio_1.5.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip Peripheral I/O" 2 | LICENSE = "(Apache-2.0 & MIT)" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ 4 | file://LICENSE.MIT;md5=eaff550e3336227837b4efbd2244da32" 5 | 6 | PACKAGES = "${PN}-dbg ${PN}" 7 | 8 | RDEPENDS:${PN} = "python3" 9 | 10 | SRC_URI = "git://github.com/linux4sam/mpio.git;branch=master;protocol=https" 11 | PV = "1.5+git${SRCPV}" 12 | 13 | SRCREV = "0e4f4c7652dceecd4386a384afde028330b58fc4" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | inherit setuptools3 18 | -------------------------------------------------------------------------------- /recipes-utils/mpio/mpio_1.7.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Microchip Peripheral I/O" 2 | LICENSE = "(Apache-2.0 & MIT)" 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ 4 | file://LICENSE.MIT;md5=eaff550e3336227837b4efbd2244da32" 5 | 6 | PACKAGES = "${PN}-dbg ${PN}" 7 | 8 | RDEPENDS:${PN} = "python3" 9 | 10 | SRC_URI = "git://github.com/linux4sam/mpio.git;branch=master;protocol=https" 11 | PV = "1.7+git${SRCPV}" 12 | 13 | SRCREV = "d552e8400d65fecfb37b1bebec0ec63a92409d0a" 14 | 15 | S = "${WORKDIR}/git" 16 | 17 | inherit setuptools3 18 | -------------------------------------------------------------------------------- /recipes-utils/mxt-app/mxt-app_git.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Command line utility for maXTouch devices" 2 | SECTION = "tools" 3 | HOMEPAGE = "https://github.com/atmel-maxtouch/mxt-app" 4 | LICENSE = "ATMEL_LLA" 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8b6acde4490765c7b838377ac61e2d2d" 6 | 7 | DEPENDS = "libusb1" 8 | 9 | PV = "1.28+git${SRCPV}" 10 | 11 | inherit autotools 12 | 13 | SRCREV="e797bf11c749e9959b320f946d25544af458d98a" 14 | SRC_URI = "git://github.com/atmel-maxtouch/mxt-app.git;branch=master;protocol=https" 15 | 16 | S = "${WORKDIR}/git" 17 | -------------------------------------------------------------------------------- /recipes-utils/video-capture-at91/video-capture-at91_git.bb: -------------------------------------------------------------------------------- 1 | DESCRIPTION = "Collection of scripts for configuring AT91 video capture pipeline" 2 | LICENSE = "MIT" 3 | LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=12c44f58fe16bd407f016e45950c2f3d" 4 | 5 | SRC_URI = "git://github.com/linux4sam/video-capture-at91.git;protocol=https;branch=master \ 6 | " 7 | COMPATIBLE_MACHINE = "sama7g5ek|sama5d2|sam9x75" 8 | 9 | PV = "1.0+git${SRCPV}" 10 | SRCREV = "6f17dcfbf8736287ae15d064a32f26515366b82d" 11 | 12 | S = "${WORKDIR}/git" 13 | 14 | do_install () { 15 | for SOC in $(echo ${SOC_FAMILY} | tr ":" "\n") 16 | do 17 | install -d ${D}${ROOT_HOME}/video-capture-at91 18 | cp -r ${S}/${SOC}/* ${D}${ROOT_HOME}/video-capture-at91/ || true 19 | cp -r ${S}/utils.sh ${D}${ROOT_HOME}/ || true 20 | done 21 | } 22 | 23 | FILES:${PN} += "${ROOT_HOME}" 24 | -------------------------------------------------------------------------------- /scripts/lib/wic/canned-wks/sdimage.wks: -------------------------------------------------------------------------------- 1 | # short-description: Create SD card image 2 | # long-description: Creates a partitioned SD card image. 3 | 4 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4 5 | --------------------------------------------------------------------------------