Compare commits
	
		
			1 Commits
		
	
	
		
			main
			...
			fpga-image
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | 55985f97dd | 
							
								
								
									
										2
									
								
								coreos
								
								
								
								
							
							
								
								
								
								
								
								
							
						
						
									
										2
									
								
								coreos
								
								
								
								
							|  | @ -1 +1 @@ | ||||||
| Subproject commit fd9b3e0a0ff210f95a384dc884dcf848adcc478f | Subproject commit 91cff2b07a0f0df9accc8a368beefaecbd5e558b | ||||||
|  | @ -1 +0,0 @@ | ||||||
| MACHINE_FEATURES += "nrsw-ready" |  | ||||||
|  | @ -1,5 +1,3 @@ | ||||||
| require all-netmodule.inc |  | ||||||
| 
 |  | ||||||
| SOC_FAMILY = "armada" | SOC_FAMILY = "armada" | ||||||
| require conf/machine/include/soc-family.inc | require conf/machine/include/soc-family.inc | ||||||
| 
 | 
 | ||||||
|  | @ -16,14 +14,10 @@ INODE_SIZE = "1024" | ||||||
| DIR_INODE_SIZE = "1024" | DIR_INODE_SIZE = "1024" | ||||||
| FILE_INODE_SIZE = "0" | FILE_INODE_SIZE = "0" | ||||||
| 
 | 
 | ||||||
| WKS_FILE ?= "nm-armada-385-mmc.wks" |  | ||||||
| do_image_wic[depends] += "virtual/bootloader:do_deploy" |  | ||||||
| 
 |  | ||||||
| MACHINE_FEATURES:remove = "bluetooth" | MACHINE_FEATURES:remove = "bluetooth" | ||||||
| 
 | 
 | ||||||
| PREFERRED_PROVIDER_virtual/kernel = "linux-nrsw" | PREFERRED_PROVIDER_virtual/kernel = "linux-nrsw" | ||||||
| 
 | 
 | ||||||
| PREFERRED_PROVIDER_virtual/bootloader = "u-boot-armada" |  | ||||||
| UBOOT_MACHINE = "${MACHINE}_defconfig" | UBOOT_MACHINE = "${MACHINE}_defconfig" | ||||||
| UBOOT_ENTRYPOINT = "0x13000000" | UBOOT_ENTRYPOINT = "0x13000000" | ||||||
| UBOOT_LOADADDRESS = "${UBOOT_ENTRYPOINT}" | UBOOT_LOADADDRESS = "${UBOOT_ENTRYPOINT}" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,6 @@ | ||||||
| #            xf86-video-modesetting \
 | #            xf86-video-modesetting \
 | ||||||
| #            "
 | #            "
 | ||||||
| 
 | 
 | ||||||
| require all-netmodule.inc |  | ||||||
| MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" | ||||||
| NM_TARGET = "netbird" | NM_TARGET = "netbird" | ||||||
| NM_ARCH = "arm" | NM_ARCH = "arm" | ||||||
|  | @ -23,18 +22,17 @@ include conf/machine/include/arm/armv7a/tune-cortexa8.inc | ||||||
| 
 | 
 | ||||||
| # IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 | # IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 | ||||||
| # EXTRA_IMAGECMD_jffs2 = "-lnp "
 | # EXTRA_IMAGECMD_jffs2 = "-lnp "
 | ||||||
|  | # WKS_FILE ?= "beaglebone-yocto.wks"
 | ||||||
| # IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
 | # IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
 | ||||||
| # do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
 | # do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
 | ||||||
| 
 | 
 | ||||||
| # SERIAL_CONSOLES = "115200;ttyO0"
 | # SERIAL_CONSOLES = "115200;ttyO0"
 | ||||||
| 
 | 
 | ||||||
| WKS_FILE ?= "nm-am335x-mmc.wks" | # PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
 | ||||||
| do_image_wic[depends] += "virtual/bootloader:do_deploy" | # PREFERRED_VERSION_linux-yocto ?= "4.18%"
 | ||||||
| 
 | 
 | ||||||
| KERNEL_IMAGETYPE = "zImage" | KERNEL_IMAGETYPE = "zImage" | ||||||
| 
 | 
 | ||||||
| PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti33x" |  | ||||||
| 
 |  | ||||||
| UBOOT_MACHINE = "${MACHINE}_defconfig" | UBOOT_MACHINE = "${MACHINE}_defconfig" | ||||||
| # SPL_BINARY = "MLO"
 | # SPL_BINARY = "MLO"
 | ||||||
| UBOOT_SUFFIX = "img" | UBOOT_SUFFIX = "img" | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW14 based routers like NB3800 | #@NAME: NRHW14 based routers like NB3800 | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW14 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW14 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/armada.inc | require conf/machine/include/armada.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "14" | NRHW = "14" | ||||||
| NM_MODELS = "3701 3711 3800" | NM_MODELS = "3701 3711 3800" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "armada-385-hw14_defconfig" |  | ||||||
| 
 |  | ||||||
| # U-Boot reads actual DTB file name from board descriptor, see: | # U-Boot reads actual DTB file name from board descriptor, see: | ||||||
| # printenv fdt_image | # printenv fdt_image | ||||||
| KERNEL_DEVICETREE = "\ | KERNEL_DEVICETREE = "\ | ||||||
|  |  | ||||||
|  | @ -2,12 +2,11 @@ | ||||||
| #@NAME: NRHW16 based routers like NB800 | #@NAME: NRHW16 based routers like NB800 | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW16 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW16 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "16" | NRHW = "16" | ||||||
| NM_MODELS = "800" | NM_MODELS = "800" | ||||||
| 
 | 
 | ||||||
| # WARNING: This file needs to be kept in sync with HW24. Therefor use the common include: | # WARNING: This file needs to be kept in sync with HW24. Therefor use the common include: | ||||||
| require include/am335x-nrhw16-nrhw24.inc | require conf/machine/include/am335x-nrhw16-nrhw24.inc | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "am335x_nbhw16_defconfig" |  | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW14 based routers like NB2800 | #@NAME: NRHW14 based routers like NB2800 | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW17 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW17 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/armada.inc | require conf/machine/include/armada.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "17" | NRHW = "17" | ||||||
| NM_MODELS = "2800 2810" | NM_MODELS = "2800 2810" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "armada-385-hw17_defconfig" |  | ||||||
| 
 |  | ||||||
| # U-Boot reads actual DTB file name from board descriptor, see: | # U-Boot reads actual DTB file name from board descriptor, see: | ||||||
| # printenv fdt_image | # printenv fdt_image | ||||||
| KERNEL_DEVICETREE = "openwrt-nbhw17.dtb" | KERNEL_DEVICETREE = "openwrt-nbhw17.dtb" | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW18 based routers like NB1800 | #@NAME: NRHW18 based routers like NB1800 | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW18 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW18 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/armada.inc | require conf/machine/include/armada.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "18" | NRHW = "18" | ||||||
| NM_MODELS = "1800 1810" | NM_MODELS = "1800 1810" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "armada-385-hw18_defconfig" |  | ||||||
| 
 |  | ||||||
| # U-Boot reads actual DTB file name from board descriptor, see: | # U-Boot reads actual DTB file name from board descriptor, see: | ||||||
| # printenv fdt_image | # printenv fdt_image | ||||||
| KERNEL_DEVICETREE = " \ | KERNEL_DEVICETREE = " \ | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW16 based routers like NB800 | #@NAME: NRHW16 based routers like NB800 | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW16 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW16 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "20" | NRHW = "20" | ||||||
| NM_MODELS = "1601 B-1601" | NM_MODELS = "1601 B-1601" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "am335x_nrhw20_defconfig" |  | ||||||
| 
 |  | ||||||
| KERNEL_DEVICETREE = "\ | KERNEL_DEVICETREE = "\ | ||||||
| 	am335x-nrhw20-prod1.dtb \ | 	am335x-nrhw20-prod1.dtb \ | ||||||
| 	" | 	" | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW22 based routers like NB650 / Phoenix Timeserver | #@NAME: NRHW22 based routers like NB650 / Phoenix Timeserver | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW22 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW22 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "22" | NRHW = "22" | ||||||
| NM_MODELS = "650" | NM_MODELS = "650" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "am335x_nrhw22_defconfig" |  | ||||||
| 
 |  | ||||||
| KERNEL_DEVICETREE = "\ | KERNEL_DEVICETREE = "\ | ||||||
| 	am335x-nrhw22-prod1.dtb \ | 	am335x-nrhw22-prod1.dtb \ | ||||||
| 	" | 	" | ||||||
|  |  | ||||||
|  | @ -2,13 +2,11 @@ | ||||||
| #@NAME: NRHW24 based routers like NB800 facelift / NB800mk2 (or however you like to call it) | #@NAME: NRHW24 based routers like NB800 facelift / NB800mk2 (or however you like to call it) | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW24 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW24 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "24" | NRHW = "24" | ||||||
| NM_MODELS = "B-800" | NM_MODELS = "B-800" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "am335x_nrhw24_defconfig" |  | ||||||
| 
 |  | ||||||
| # WARNING: This file needs to be kept in sync with HW24. Therefor use the common include: | # WARNING: This file needs to be kept in sync with HW24. Therefor use the common include: | ||||||
| require include/am335x-nrhw16-nrhw24.inc | require conf/machine/include/am335x-nrhw16-nrhw24.inc | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,14 +2,12 @@ | ||||||
| #@NAME: NRHW25 based routers like TC-Router | #@NAME: NRHW25 based routers like TC-Router | ||||||
| #@DESCRIPTION: Machine configuration for the NBHW24 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the NBHW24 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "25" | NRHW = "25" | ||||||
| NM_MODELS ?= "660 670" | NM_MODELS ?= "660 670" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| UBOOT_MACHINE = "am335x_hw25_defconfig" |  | ||||||
| 
 |  | ||||||
| KERNEL_DEVICETREE = "\ | KERNEL_DEVICETREE = "\ | ||||||
| 	am335x-hw25-prod1.dtb \ | 	am335x-hw25-prod1.dtb \ | ||||||
| 	" | 	" | ||||||
|  |  | ||||||
|  | @ -2,16 +2,12 @@ | ||||||
| #@NAME: HW26 based routers like NG800 | #@NAME: HW26 based routers like NG800 | ||||||
| #@DESCRIPTION: Machine configuration for the HW26 based routers http://netmodule.com/en/products/iot-routers | #@DESCRIPTION: Machine configuration for the HW26 based routers http://netmodule.com/en/products/iot-routers | ||||||
| 
 | 
 | ||||||
| require include/ti33x.inc | require conf/machine/include/ti33x.inc | ||||||
| 
 | 
 | ||||||
| NRHW = "26" | NRHW = "26" | ||||||
| NM_MODELS = "G-800" | NM_MODELS = "G-800" | ||||||
| MAX_FS_SIZE = "279542" | MAX_FS_SIZE = "279542" | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| # HW26 is based on HW21, the boot config is the same |  | ||||||
| UBOOT_MACHINE = "am335x_nmhw21_defconfig" |  | ||||||
| 
 |  | ||||||
| KERNEL_DEVICETREE = "\ | KERNEL_DEVICETREE = "\ | ||||||
| 	am335x-hw26-prod1.dtb \ | 	am335x-hw26-prod1.dtb \ | ||||||
| 	" | 	" | ||||||
|  |  | ||||||
|  | @ -0,0 +1,38 @@ | ||||||
|  | diff --git a/netbox_pcie.c b/netbox_pcie.c
 | ||||||
|  | index 934368e..d982b78 100644
 | ||||||
|  | --- a/netbox_pcie.c
 | ||||||
|  | +++ b/netbox_pcie.c
 | ||||||
|  | @@ -36,7 +36,6 @@
 | ||||||
|  |  #include <linux/kern_levels.h> | ||||||
|  |  #include <linux/version.h> | ||||||
|  |   | ||||||
|  | -#include <nbsw.h>
 | ||||||
|  |  #include <misc/nrsw-global.h> | ||||||
|  |  #include <linux/board_descriptor.h> | ||||||
|  |   | ||||||
|  | @@ -806,7 +805,6 @@ static int nm_pcie_probe(struct platform_device *pdev)
 | ||||||
|  |  	pcie_slot_count = 0; | ||||||
|  |  	hwver = hwrel = -1; | ||||||
|  |   | ||||||
|  | -#ifdef NBSW_TARGET_netbolt_arm
 | ||||||
|  |  	if (NBHW == 14) { | ||||||
|  |  		for (i = 0; i < 6; i++) { | ||||||
|  |  			ps = pcie_add_slot(i, PCIE_MAIN); | ||||||
|  | @@ -850,8 +848,7 @@ static int nm_pcie_probe(struct platform_device *pdev)
 | ||||||
|  |  			if (ret) | ||||||
|  |  				goto error; | ||||||
|  |  		} | ||||||
|  | -#elif defined(NBSW_TARGET_netbird_arm)
 | ||||||
|  | -	if (NBHW == 16) {
 | ||||||
|  | +	} else if (NBHW == 16) {
 | ||||||
|  |  		ps = pcie_add_slot(0, PCIE_MAIN); | ||||||
|  |  		if (IS_ERR(ps)) { | ||||||
|  |  			ret = PTR_ERR(ps); | ||||||
|  | @@ -1116,7 +1113,6 @@ static int nm_pcie_probe(struct platform_device *pdev)
 | ||||||
|  |  		ret = pcie_init_slot(ps); | ||||||
|  |  		if (ret) | ||||||
|  |  			goto error; | ||||||
|  | -#endif
 | ||||||
|  |  	} else { | ||||||
|  |  		printk("Unknwon NBHW: %d\n", NBHW); | ||||||
|  |  		ret = -EINVAL; | ||||||
|  | @ -3,10 +3,11 @@ LICENSE = "GPL-2.0-only" | ||||||
| LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||||||
| 
 | 
 | ||||||
| SRC_URI = "git://git.netmodule.intranet/NRSW/netbox_pcie.git;protocol=ssh;user=gitea;branch=master \ | SRC_URI = "git://git.netmodule.intranet/NRSW/netbox_pcie.git;protocol=ssh;user=gitea;branch=master \ | ||||||
|  |            file://temporary-src-tree-fix-pcie.patch \ | ||||||
|            " |            " | ||||||
| 
 | 
 | ||||||
| PV = "1.0+git${SRCPV}" | PV = "1.0+git${SRCPV}" | ||||||
| SRCREV = "b479888720835ae1a03c78531e08ff5f70e26b50" | SRCREV="6467938980a2829539419a94edfe1324025bbdfb" | ||||||
| 
 | 
 | ||||||
| S = "${WORKDIR}/git" | S = "${WORKDIR}/git" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ SRC_URI = "git://git.netmodule.intranet/NRSW/system-info.git;protocol=ssh;user=g | ||||||
|            " |            " | ||||||
| 
 | 
 | ||||||
| PV = "1.0+git${SRCPV}" | PV = "1.0+git${SRCPV}" | ||||||
| SRCREV = "9ac224b6411758ec399518b0781659f1d8b7beb7" | SRCREV="de1f2235bf182c14462a8b9178c8efd76a7ed943" | ||||||
| 
 | 
 | ||||||
| S = "${WORKDIR}/git" | S = "${WORKDIR}/git" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,44 +0,0 @@ | ||||||
| From 52c3ac31426131c555093542d51f1e6e0623507c Mon Sep 17 00:00:00 2001 |  | ||||||
| From: Marc Mattmueller <marc.mattmueller@netmodule.com> |  | ||||||
| Date: Mon, 18 Jul 2022 19:26:59 +0200 |  | ||||||
| Subject: [PATCH] u-boot-armada: Remove redundant YYLOC global declaration |  | ||||||
| 
 |  | ||||||
| Same as the upstream fix for building dtc with gcc 10. |  | ||||||
| 
 |  | ||||||
| After having consulted the team, this patch is only applied to |  | ||||||
| the armada bootloader as this one is used on the core os |  | ||||||
| environment build-up. |  | ||||||
| 
 |  | ||||||
| Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com> |  | ||||||
| ---
 |  | ||||||
|  scripts/dtc/dtc-lexer.l             | 1 - |  | ||||||
|  scripts/dtc/dtc-lexer.lex.c_shipped | 1 - |  | ||||||
|  2 files changed, 2 deletions(-) |  | ||||||
| 
 |  | ||||||
| diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
 |  | ||||||
| index fd825ebba6..24af549977 100644
 |  | ||||||
| --- a/scripts/dtc/dtc-lexer.l
 |  | ||||||
| +++ b/scripts/dtc/dtc-lexer.l
 |  | ||||||
| @@ -38,7 +38,6 @@ LINECOMMENT	"//".*\n
 |  | ||||||
|  #include "srcpos.h" |  | ||||||
|  #include "dtc-parser.tab.h" |  | ||||||
|   |  | ||||||
| -YYLTYPE yylloc;
 |  | ||||||
|  extern bool treesource_error; |  | ||||||
|   |  | ||||||
|  /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ |  | ||||||
| diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped
 |  | ||||||
| index 3934d8624d..22f6e0d1f8 100644
 |  | ||||||
| --- a/scripts/dtc/dtc-lexer.lex.c_shipped
 |  | ||||||
| +++ b/scripts/dtc/dtc-lexer.lex.c_shipped
 |  | ||||||
| @@ -639,7 +639,6 @@ char *yytext;
 |  | ||||||
|  #include "srcpos.h" |  | ||||||
|  #include "dtc-parser.tab.h" |  | ||||||
|   |  | ||||||
| -YYLTYPE yylloc;
 |  | ||||||
|  extern bool treesource_error; |  | ||||||
|   |  | ||||||
|  /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ |  | ||||||
| -- 
 |  | ||||||
| 2.20.1 |  | ||||||
| 
 |  | ||||||
|  | @ -1,27 +0,0 @@ | ||||||
| require u-boot-nm.inc |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://git.netmodule.intranet/nmrouter/u-boot.git;protocol=ssh;user=gitea;branch=nrsw-armada-2017.11 \ |  | ||||||
|            file://0001-remove-redundant-YYLOC-declaration.patch;name=yylloc \ |  | ||||||
| " |  | ||||||
| SRC_URI[yylloc.md5sum] = "504cb5b73a174a32e55c58f60608925d" |  | ||||||
| 
 |  | ||||||
| DEPENDS += "bc-native" |  | ||||||
| 
 |  | ||||||
| SRCREV = "2fe363eb69a360c9e9b6bd53dfdab32772b2f41a" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| UBOOT_SUFFIX = "kwb" |  | ||||||
| UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}" |  | ||||||
| 
 |  | ||||||
| do_deploy() { |  | ||||||
|     # xmodem files |  | ||||||
|     cp ${B}/spl/u-boot-spl.bin ${DEPLOYDIR}/spl-u-boot-${MACHINE}.xmodem.bin |  | ||||||
|     cp ${B}/u-boot.bin ${DEPLOYDIR}/u-boot-${MACHINE}.xmodem.bin |  | ||||||
| 
 |  | ||||||
|     # file for wic file |  | ||||||
|     cp ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/u-boot-spl.${UBOOT_SUFFIX} |  | ||||||
| 
 |  | ||||||
|     # file for user usage |  | ||||||
|     cp ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/u-boot-${MACHINE}.${UBOOT_SUFFIX} |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
|  | @ -1,19 +0,0 @@ | ||||||
| require recipes-bsp/u-boot/u-boot.inc |  | ||||||
| 
 |  | ||||||
| LICENSE = "GPL-2.0-only" |  | ||||||
| LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| B = "${WORKDIR}/build" |  | ||||||
| do_configure[cleandirs] = "${B}" |  | ||||||
| UBOOT_INITIAL_ENV = "" |  | ||||||
| 
 |  | ||||||
| # This variable is set to "0" in distro in order to get reproducible build
 |  | ||||||
| # It is however not needed for uboot and unsetting it allows us to keep the build date in uboot output
 |  | ||||||
| unset SOURCE_DATE_EPOCH |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # CFLAGS are unset by u-boot.inc
 |  | ||||||
| # The user flags should be passed by KCFLAGS, but for some reason, it does not work
 |  | ||||||
| # KCCPFLAGS on the other hand also end in the actual cflags
 |  | ||||||
| export KCPPFLAGS = "-DCONFIG_NRSW_BUILD" |  | ||||||
|  | @ -1,22 +0,0 @@ | ||||||
| require u-boot-nm.inc |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://git.netmodule.intranet/nmrouter/u-boot.git;protocol=ssh;user=gitea;branch=nrsw-sitara-2016.04" |  | ||||||
| 
 |  | ||||||
| SRCREV = "66fb8f8532ba174b14542c0c8a0245818df14f02" |  | ||||||
| 
 |  | ||||||
| SPL_BINARY = "MLO" |  | ||||||
| UBOOT_SUFFIX = "img" |  | ||||||
| 
 |  | ||||||
| do_deploy() { |  | ||||||
|     # xmodem files |  | ||||||
|     cp ${B}/spl/u-boot-spl.bin ${DEPLOYDIR}/spl-u-boot-${MACHINE}.xmodem.bin |  | ||||||
|     cp ${B}/u-boot.bin ${DEPLOYDIR}/u-boot-${MACHINE}.xmodem.bin |  | ||||||
| 
 |  | ||||||
|     # files for wic file |  | ||||||
|     cp ${B}/MLO ${DEPLOYDIR}/ |  | ||||||
|     cp ${B}/u-boot.img ${DEPLOYDIR}/ |  | ||||||
| 
 |  | ||||||
|     # files for user usage |  | ||||||
|     cp ${B}/MLO ${DEPLOYDIR}/spl-u-boot-${MACHINE}.${UBOOT_SUFFIX} |  | ||||||
|     cp ${B}/u-boot.img ${DEPLOYDIR}/u-boot-${MACHINE}.${UBOOT_SUFFIX} |  | ||||||
| } |  | ||||||
|  | @ -666,7 +666,7 @@ CONFIG_MSDOS_PARTITION=y | ||||||
| # CONFIG_ULTRIX_PARTITION is not set | # CONFIG_ULTRIX_PARTITION is not set | ||||||
| # CONFIG_SUN_PARTITION is not set | # CONFIG_SUN_PARTITION is not set | ||||||
| # CONFIG_KARMA_PARTITION is not set | # CONFIG_KARMA_PARTITION is not set | ||||||
| CONFIG_EFI_PARTITION=y | # CONFIG_EFI_PARTITION is not set | ||||||
| # CONFIG_SYSV68_PARTITION is not set | # CONFIG_SYSV68_PARTITION is not set | ||||||
| # CONFIG_CMDLINE_PARTITION is not set | # CONFIG_CMDLINE_PARTITION is not set | ||||||
| # end of Partition Types | # end of Partition Types | ||||||
|  |  | ||||||
|  | @ -669,7 +669,7 @@ CONFIG_MSDOS_PARTITION=y | ||||||
| # CONFIG_ULTRIX_PARTITION is not set | # CONFIG_ULTRIX_PARTITION is not set | ||||||
| # CONFIG_SUN_PARTITION is not set | # CONFIG_SUN_PARTITION is not set | ||||||
| # CONFIG_KARMA_PARTITION is not set | # CONFIG_KARMA_PARTITION is not set | ||||||
| CONFIG_EFI_PARTITION=y | # CONFIG_EFI_PARTITION is not set | ||||||
| # CONFIG_SYSV68_PARTITION is not set | # CONFIG_SYSV68_PARTITION is not set | ||||||
| # CONFIG_CMDLINE_PARTITION is not set | # CONFIG_CMDLINE_PARTITION is not set | ||||||
| # end of Partition Types | # end of Partition Types | ||||||
|  | @ -1368,7 +1368,7 @@ CONFIG_GRO_CELLS=y | ||||||
| CONFIG_NET_DEVLINK=y | CONFIG_NET_DEVLINK=y | ||||||
| CONFIG_PAGE_POOL=y | CONFIG_PAGE_POOL=y | ||||||
| # CONFIG_FAILOVER is not set | # CONFIG_FAILOVER is not set | ||||||
| CONFIG_ETHTOOL_NETLINK=y | # CONFIG_ETHTOOL_NETLINK is not set | ||||||
| CONFIG_HAVE_EBPF_JIT=y | CONFIG_HAVE_EBPF_JIT=y | ||||||
| 
 | 
 | ||||||
| # | # | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ KERNEL_VERSION_SANITY_SKIP="1" | ||||||
| LINUX_VERSION = "5.15" | LINUX_VERSION = "5.15" | ||||||
| LINUX_VERSION_EXTENSION = "-netmodule" | LINUX_VERSION_EXTENSION = "-netmodule" | ||||||
| 
 | 
 | ||||||
| SRCREV = "5a18cd05107545cb6f971c01126a13fc6a5d7eb6" | SRCREV="15e5ac9e46205b7cf80efd72f957c83a76c84d67" | ||||||
| 
 | 
 | ||||||
| PV = "${LINUX_VERSION}+git${SRCPV}" | PV = "${LINUX_VERSION}+git${SRCPV}" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,13 +0,0 @@ | ||||||
| # Dual root partition for sitara devices |  | ||||||
| 
 |  | ||||||
| part SPL --offset 256S --source rawcopy --sourceparams="file=MLO" --ondisk mmcblk1 --part-name "spl" --no-table |  | ||||||
| part u-boot --offset 768S --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk1 --part-name "uboot0" --no-table |  | ||||||
| part u-boot --offset 6912S --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk1 --part-name "uboot1" --no-table |  | ||||||
| 
 |  | ||||||
| part / --source rootfs --fstype=ext4 --ondisk mmcblk1 --fixed-size 1G --label "rootfs0" |  | ||||||
| part / --source rootfs --fstype=ext4 --ondisk mmcblk1 --fixed-size 1G --label "rootfs1" |  | ||||||
| 
 |  | ||||||
| # Shared data partition to be extended on live system |  | ||||||
| part /data --fstype=ext4 --ondisk mmcblk1 --size 100M --label "data" --part-name "data" |  | ||||||
| 
 |  | ||||||
| bootloader --ptable gpt |  | ||||||
|  | @ -1,11 +0,0 @@ | ||||||
| # Dual root partition for armada devices |  | ||||||
| 
 |  | ||||||
| bootloader --ptable gpt |  | ||||||
| 
 |  | ||||||
| part u-boot --source rawcopy --sourceparams="file=u-boot-spl.kwb" --ondisk mmcblk --no-table --align 384 |  | ||||||
| 
 |  | ||||||
| part / --source rootfs --fstype=ext4 --ondisk mmcblk0 --fixed-size 1G --label "rootfs0" |  | ||||||
| part / --source rootfs --fstype=ext4 --ondisk mmcblk0 --fixed-size 1G --label "rootfs1" |  | ||||||
| 
 |  | ||||||
| # Shared data partition |  | ||||||
| part /data --fstype=ext4 --ondisk mmcblk0 --size 100M --label data |  | ||||||
|  | @ -1,7 +1,2 @@ | ||||||
| # Base classe for all image based on NWL | # Base classe for all image based on NWL | ||||||
| 
 |  | ||||||
| inherit coreos-image | inherit coreos-image | ||||||
| 
 |  | ||||||
| IMAGE_INSTALL:append = " \ |  | ||||||
|         packagegroup-nwl-core \ |  | ||||||
| " |  | ||||||
|  |  | ||||||
|  | @ -13,6 +13,14 @@ MAINTAINER = "Netmodule Software Teams" | ||||||
| DISTRO_VERSION = "2023.03" | DISTRO_VERSION = "2023.03" | ||||||
| DISTRO_CODENAME = "NWL 2023 Edition (DRAFT)" | DISTRO_CODENAME = "NWL 2023 Edition (DRAFT)" | ||||||
| 
 | 
 | ||||||
|  | # Use by default the in-tree developers set of keys for Secure Boot | ||||||
|  | COREOS_EFI_SECUREBOOT_KEYDIR ?= "${NWL_ROOT}/layers/meta-nwl-distro/files/keys" | ||||||
|  | 
 | ||||||
|  | # CoreOS ensure that COREOS_EFI_SECUREBOOT_KEYDIR has a vardep on the | ||||||
|  | # hash of each used keys. We don't have to depends on the full path | ||||||
|  | # to NWL_ROOT in the hash of COREOS_EFI_SECUREBOOT_KEYDIR | ||||||
|  | COREOS_EFI_SECUREBOOT_KEYDIR[vardepsexclude] = "NWL_ROOT" | ||||||
|  | 
 | ||||||
| # Here you can override settings from the CoreOS distro or from | # Here you can override settings from the CoreOS distro or from | ||||||
| # OpenEmbedded-core. But keep in mind that the CoreOS team doesn't support | # OpenEmbedded-core. But keep in mind that the CoreOS team doesn't support | ||||||
| # all the features of OpenEmbedded-Core. We have added some checks for some | # all the features of OpenEmbedded-Core. We have added some checks for some | ||||||
|  | @ -28,21 +36,10 @@ DISTRO_FEATURES:remove = "ptest virtualization" | ||||||
| PACKAGECONFIG:pn-systemd = "usrmerge rfkill kmod timedated vconsole" | PACKAGECONFIG:pn-systemd = "usrmerge rfkill kmod timedated vconsole" | ||||||
| # systemd-conf provides a packageconfig for a default dhcp client that we don't need | # systemd-conf provides a packageconfig for a default dhcp client that we don't need | ||||||
| PACKAGECONFIG:pn-systemd-conf = "" | PACKAGECONFIG:pn-systemd-conf = "" | ||||||
| PACKAGECONFIG:pn-networkmanager = "systemd nss gnutls wifi bluez5 nmcli modemmanager" | PACKAGECONFIG:pn-networkmanager = "systemd nss gnutls wifi bluez5 nmcli" | ||||||
| # NetworkManager is starting dnsmasq when it needs it for AP mode |  | ||||||
| SYSTEMD_AUTO_ENABLE:pn-dnsmasq = "disable" |  | ||||||
| 
 |  | ||||||
| PACKAGECONFIG:pn-bluez5 = "systemd udev" | PACKAGECONFIG:pn-bluez5 = "systemd udev" | ||||||
| 
 | 
 | ||||||
| # ModemManager is started by wwan-config | # Wit busybox "less" the output of "nmcli c" does not show up properly | ||||||
| SYSTEMD_AUTO_ENABLE:pn-modemmanager = "disable" |  | ||||||
| PACKAGECONFIG:pn-modemmanager = "systemd qmi" |  | ||||||
| EXTRA_OEMESON:pn-modemmanager = "-Dauto_features=disabled -Dplugin_generic=enabled" |  | ||||||
| 
 |  | ||||||
| # Enable the python3 bindings for libgpiod |  | ||||||
| PACKAGECONFIG:append:pn-libgpiod = " python3" |  | ||||||
| 
 |  | ||||||
| # With busybox "less" the output of "nmcli c" does not show up properly |  | ||||||
| RDEPENDS:networkmanager-nmcli += "less" | RDEPENDS:networkmanager-nmcli += "less" | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | -----BEGIN CERTIFICATE----- | ||||||
|  | MIIDBzCCAe+gAwIBAgIUMBZqg8KVjLqv+5xzlrr//O78ys0wDQYJKoZIhvcNAQEL | ||||||
|  | BQAwEzERMA8GA1UEAwwIVEVTVF9LRUswHhcNMjMwNzI2MDg0MDU2WhcNMjQwNzI1 | ||||||
|  | MDg0MDU2WjATMREwDwYDVQQDDAhURVNUX0tFSzCCASIwDQYJKoZIhvcNAQEBBQAD | ||||||
|  | ggEPADCCAQoCggEBALVZOmvAVYvmOjMITsZiGlKfeafohprnKyC/MEttlceBzwEu | ||||||
|  | DSXbvXaGpoaT+SsDkutcJIMkfVte4EEM7m7tmzfJT10++++saG7wzFRfn4qCiz7s | ||||||
|  | NVGp7lSQGwPKlqToHtEc3n62Ni9/t2opMbjAMh4MigYmmhgRb0EjubnxkQi02oXQ | ||||||
|  | b6vAMsqxsWgHTHQIqMQrMpWP+rxwVB2/0u4GfUvyROIP77gUweINaiaZFNwg5j/M | ||||||
|  | HbNpE/YIzvOO1iiut7fGuRq8nzKsRa6v/5sQxpQCiFhEeW+L2TBBLWcn38HkGhZQ | ||||||
|  | HL1wrMwIFnxhts+c/iXX/04hX7XLaE2VP8WbZq8CAwEAAaNTMFEwHQYDVR0OBBYE | ||||||
|  | FGd2nYmDABv3X2xX5ChFTBGAPT9NMB8GA1UdIwQYMBaAFGd2nYmDABv3X2xX5ChF | ||||||
|  | TBGAPT9NMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAK+PrMYv | ||||||
|  | /Riu59mNJBBg0IQ5Lg8njkZDJkTUNoPqfduxI8hShCVTazZTOUISrPCKvYWpti4r | ||||||
|  | 8OAuw/17vBcQzHa2ayJwaiKYL/xC94xxcMwZDsfIul/2TvMsUjh8Tbl6stVLhI5J | ||||||
|  | Yga+ytHKkBvTw7whW7uqZAlynk1lkFlCuK5/rTD+WcZADat2kcXVw4ILUSP2QNIj | ||||||
|  | HSW3q7YaerxUavPyUiYHTMmjMQtaqjvRv6AZaOFiPvl5/s0HIK2yfwGGyMbXgR/M | ||||||
|  | 70lqHtrgLORkAruWv35v16BBNaX1rQHholk+HIsjg1kTcjS5Tg9NAF1TAKH4G6LL | ||||||
|  | YvNkqBtolbJKmjs= | ||||||
|  | -----END CERTIFICATE----- | ||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,28 @@ | ||||||
|  | -----BEGIN PRIVATE KEY----- | ||||||
|  | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC1WTprwFWL5joz | ||||||
|  | CE7GYhpSn3mn6Iaa5ysgvzBLbZXHgc8BLg0l2712hqaGk/krA5LrXCSDJH1bXuBB | ||||||
|  | DO5u7Zs3yU9dPvvvrGhu8MxUX5+Kgos+7DVRqe5UkBsDypak6B7RHN5+tjYvf7dq | ||||||
|  | KTG4wDIeDIoGJpoYEW9BI7m58ZEItNqF0G+rwDLKsbFoB0x0CKjEKzKVj/q8cFQd | ||||||
|  | v9LuBn1L8kTiD++4FMHiDWommRTcIOY/zB2zaRP2CM7zjtYorre3xrkavJ8yrEWu | ||||||
|  | r/+bEMaUAohYRHlvi9kwQS1nJ9/B5BoWUBy9cKzMCBZ8YbbPnP4l1/9OIV+1y2hN | ||||||
|  | lT/Fm2avAgMBAAECggEAT5LwnJlPsEx8myn5Dvm7HSgXBMN2VQA8n2jlMyPJxjpC | ||||||
|  | b/0aDdOnBhw9c+34NpSh4h6TcuwPCYnPExwuf4RJSKhP59WcTOW1CYEl15wB8JAp | ||||||
|  | s5mIJ+ZNytNU10wM4B1ucEmfo7AmhJ8hBzc+Nxg2pZLQ+bP0h70WuVmIxHuoLU4X | ||||||
|  | f+V3x0jl5Dgeh0L+j61b6jDYcQmVZmldugj+HxoyJPXZ3z3VcCBHzcX+JdA1YQtz | ||||||
|  | 9YwH6njxFUs6sTIWpavIphWy7oiulGhRj+8sU6cDpO932T0oLrvFVIPCM1yVSw+k | ||||||
|  | h23wb8I20CN/qdjc8nk9uQ1kJfGhbEFCYq+QoQ6F+QKBgQD26N/yhslAVUH+tYQK | ||||||
|  | gaQwYJMowj32b77WHIxnTSxmrCZ+Hjelpx57fuBilgvAJtlwxZpd8PJM8fUQff4S | ||||||
|  | ob8YGrOg7qLzmtWLnx5VREYekLl6aHsOIlnaQLnsGUHEj6NQfn/2U4BRLv9G1zI+ | ||||||
|  | Y1SzwfX8QRFOFP9Q6tZXSd7A2wKBgQC8BnB/BmN2jqEgDF3eud+L6mAC5o7Jv/8X | ||||||
|  | Xi1/w6OImzhm/poVb9pU5cFAZdzqJ9oIg78YAKERFHjfdLHtASZ1RF7DR2ysVxFC | ||||||
|  | R5xPYMttmyfTE/umgIRLwkljMZ5ZTRNvPDkpT0n0BkXxs7D45XB7cEYPzgvUAhwb | ||||||
|  | ezEKSc2fvQKBgFHBIgXn41NN56Ay8hmYe4kZMSDZ0DJ9Ja83nLXHs9/7OHOiBcLv | ||||||
|  | 5wP1Ks7558IkGvNgOpDIazJXG1HupeX9cIzGqpuq6IHIztSAR0bsaFtOiFujpLs1 | ||||||
|  | XJMLw4QNiN1Qwj6w5CXn2CEJcrU+JADMWwt6Obzgvp4gDbn5SCd26i7pAoGABpcP | ||||||
|  | MFSP/eLH4PCuBZVsMWI4lUFxdb7F+RKy84xu2eXe1zVLPz8ZXupimJg5Yvecm7nK | ||||||
|  | Y9P50ThveB2F8vGcYHXSAHQraervTuxlnR6eYqwSfEJyCobsnB8mJVTi4Oxjpv1s | ||||||
|  | X3dI90WVBACxTjf0dk8cFYe6QGcGhywNLvghPd0CgYEAwHu7S16k/+5JL81QrJMS | ||||||
|  | lGUxdJ7xgPZp6G2lnzHKrumUXsE7u9efB3t5RauDX51dLOqaJGzoTVF403Cx/Xps | ||||||
|  | kWkWiN8r7g22gHvYWO43mvVyGZ+VUsu5D50gndaDdoCfWoHRZ6UbBPdhAztI/ePU | ||||||
|  | kUM2jC74IiCINRyszkcfEUw= | ||||||
|  | -----END PRIVATE KEY----- | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | -----BEGIN CERTIFICATE----- | ||||||
|  | MIIDBTCCAe2gAwIBAgIUaqd3t7MrDxsQCyBIp+ldFIexS+YwDQYJKoZIhvcNAQEL | ||||||
|  | BQAwEjEQMA4GA1UEAwwHVEVTVF9QSzAeFw0yMzA3MjYwODQwNTZaFw0yNDA3MjUw | ||||||
|  | ODQwNTZaMBIxEDAOBgNVBAMMB1RFU1RfUEswggEiMA0GCSqGSIb3DQEBAQUAA4IB | ||||||
|  | DwAwggEKAoIBAQDio1QgioSSx8tzr2YfYFxwxMZvONXTBgyEo1qH9eVnDhd/nN66 | ||||||
|  | odj0JOWQ6ZxZ1thAA94M0k9uNM60AYd4IPJfIok//MQbICzKbpSp8sTePBui2dxx | ||||||
|  | /Su3lkNim9ZkQ5hjbJHhogzF31DfSRhUej9mr5yzDjD+liGtvRKbLZ4RCEx3WeDn | ||||||
|  | taS3YojRNBXoNKumr/e6m+qACh9lOswAgAFw0FvS6v5j3y2AzBhL76pBNJ2+phzv | ||||||
|  | uDk2xFGz5Hwa2JnjdwbjFJTGMpHRoI8m9PCM9fTAXmgwTaXgP3/6d4HgxHyIyNMK | ||||||
|  | oPkPUp26CxpXeP+x6XfHlcUZdE3Agg4TTmaBAgMBAAGjUzBRMB0GA1UdDgQWBBSh | ||||||
|  | s2prPUwajZ++I9D8NqQprrUlPTAfBgNVHSMEGDAWgBShs2prPUwajZ++I9D8NqQp | ||||||
|  | rrUlPTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBBhsVJzuy2 | ||||||
|  | BMJft7nzLjplh5234R03/YMieMG3ryOclPaAj8nuEkIRzgE3uJdS/121T2A5wReW | ||||||
|  | Pg6o21bPGljXHHGFS6Xh2bav3WLWtB8G2HXQ5xum0sXcj58cNc3DGEq/ECDT+wcX | ||||||
|  | Y2RL3RHMZflSndXtcGnqT+9PrgCKaNaxtrIoIWk8SI6p2LEcHbidDiEJ5JHvUr4r | ||||||
|  | BWhLsgKmoGCDQsOPAz6ZXZPR34VF56BAVBLAJPymFiV5O/GGL99UfHhEXBO5kPt3 | ||||||
|  | ha1iPedOfxge+nRuGYxlGF0bcA7gZhPPzuy5rZSTZtXaNMWf8/Hteo18muX3aDqr | ||||||
|  | ekkVlpgnXEeJ | ||||||
|  | -----END CERTIFICATE----- | ||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,28 @@ | ||||||
|  | -----BEGIN PRIVATE KEY----- | ||||||
|  | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDio1QgioSSx8tz | ||||||
|  | r2YfYFxwxMZvONXTBgyEo1qH9eVnDhd/nN66odj0JOWQ6ZxZ1thAA94M0k9uNM60 | ||||||
|  | AYd4IPJfIok//MQbICzKbpSp8sTePBui2dxx/Su3lkNim9ZkQ5hjbJHhogzF31Df | ||||||
|  | SRhUej9mr5yzDjD+liGtvRKbLZ4RCEx3WeDntaS3YojRNBXoNKumr/e6m+qACh9l | ||||||
|  | OswAgAFw0FvS6v5j3y2AzBhL76pBNJ2+phzvuDk2xFGz5Hwa2JnjdwbjFJTGMpHR | ||||||
|  | oI8m9PCM9fTAXmgwTaXgP3/6d4HgxHyIyNMKoPkPUp26CxpXeP+x6XfHlcUZdE3A | ||||||
|  | gg4TTmaBAgMBAAECggEAKzOAC03sNICCPzSNjmiTZmmT+8qFM9sA0t3CmY0dY/YT | ||||||
|  | M5+m80N7tBo+ak+lnphuE1HJZ39FZdgKGNT7ykHZgZn3OKvJg/QvpYzLqNOehFBH | ||||||
|  | 4lSOCWp9hVrO0IKtLOKXr0gYTL7TmXpWk6F+0keVQ1ExWQ5Y94aNt+0FGXBqI4uq | ||||||
|  | ENDH3UfFIIZjtoyO4xLa3FBqj19lNsj/RIGAo/H2RgOUAIoG8N6uHBszROd48w1H | ||||||
|  | CUgdtCCL1YE2zoDcAcmFTUFI1KA6y5t7n248ZRkRlDZVeeGDSCcH9zFkiy41Vpct | ||||||
|  | Ej7BPdCU/t6F3axqXahtkDAAuRKfWjytoVa8iekX0wKBgQD2k0oee/4qaIv5M0Xx | ||||||
|  | ZNRcptMCkmX354XfFcWMgLchK1oloZNtLjvntgXmiK6jAGCR8yG1NWFwOB2vhgE0 | ||||||
|  | UuqU+Ah4JMJHivYVlqhUzFVASYt1XLIrxglHDVq05gfkMjUwVUavB90KPHXwLTJE | ||||||
|  | /5iMvyBO7NCJxGXtnwsKw5fKhwKBgQDrTPRbibb1BSCDSCTZHoyVYxTFX5Tyuas3 | ||||||
|  | Wu2bRmTWo/RsZHhAumemlOIjX/6gRMn2SYAvH4j7V9+V4SFprrajEDQaACwYbRP8 | ||||||
|  | 31yaUAUPbx4b1VgCY0XVS6CCExQOVQdT9YsQueNcmhZ2HU/aELN0InMSwyf+9F90 | ||||||
|  | vEGU79ZgtwKBgBcw+0OqvdkXRDMIE4gEx8R/HFGdm2GZsQmuboosgQzpmuz3KXqX | ||||||
|  | YqMEh8GLEYHbQzn2+DCm+KcpYAFmRS66rb2dJo7GRk+cTlDxfpubLFmDkU5UjZ14 | ||||||
|  | Xt8D7ogdKpjX8BC/tIo53xxbW2xfk97Re3OhdlR2CZcrlbqnvs4gX2J5AoGBALeM | ||||||
|  | oTVi2SCLLlCaj3v7E6lY0BQjOnqZkVEuEhnFMNYqsXl4akH75u0QSNNVh7gX0P/Z | ||||||
|  | WC/qRp3ib1xocPsSug+7jRkXN06akDP7PS5262udv3vw0aWTMR9wzjWJkmSXuY6q | ||||||
|  | BSA4EX7kCE99EBRIYORgFyn0qJd+o5PZYsM+0BlDAoGBALCEcSsZYWAX+k6/6EsA | ||||||
|  | kax0KscOFHji62PSLuWJX7PdLyGeAFnIKfm6X/RKXTInH+1dLJI/BXPuxrKIQFjB | ||||||
|  | CUrhmcwdSZ690mQLogT1tFAAt4+FfdGn8cnlPn9r8je/+6AR4sHUkbDTUJgBE3YG | ||||||
|  | /OVVo+MW242kcym893qgkPS/ | ||||||
|  | -----END PRIVATE KEY----- | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,19 @@ | ||||||
|  | -----BEGIN CERTIFICATE----- | ||||||
|  | MIIDBTCCAe2gAwIBAgIUL8w6OMWe5milePbOVue9IyI4pG4wDQYJKoZIhvcNAQEL | ||||||
|  | BQAwEjEQMA4GA1UEAwwHVEVTVF9kYjAeFw0yMzA3MjYwODQwNTZaFw0yNDA3MjUw | ||||||
|  | ODQwNTZaMBIxEDAOBgNVBAMMB1RFU1RfZGIwggEiMA0GCSqGSIb3DQEBAQUAA4IB | ||||||
|  | DwAwggEKAoIBAQCbGXtPx/xRCDHqPkUSC/g08eH4IQHW2ku7IJwGd3MOfB+hMLVN | ||||||
|  | YSMNNx2ltFguPm+bh1rDsT+6Lq+RiXf++KXjzpy7ShRyBQ6Xjy5hfz0hR6CtDonG | ||||||
|  | RpBmndgwl2yUVhpdgD0BZzhqO5OzmONqZpP968yIRts7Xl1zF2Z63/EiWdOY5m6Y | ||||||
|  | WaE3inRr2W0GttJ55eqVFeBRTX2tASyrh+b1NvWlo52phs/EAb2CCE+cUC82S68Q | ||||||
|  | tMsyvIGGNRiBr9tQ5x9rRtPIens8AK9/H9K8rG+ldXcAsop8C4SvQg+hBW8ViHEu | ||||||
|  | 9EQ1c9N3vA+KE3IP91jvRMP3HONxDWok4pjXAgMBAAGjUzBRMB0GA1UdDgQWBBRl | ||||||
|  | oRIc0AjAlJG4xzJAYA3RqoPVAzAfBgNVHSMEGDAWgBRloRIc0AjAlJG4xzJAYA3R | ||||||
|  | qoPVAzAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBCnMDK+noa | ||||||
|  | oYJZZ4H1dvqnjAk2C9Wy2UpeNbM6igFRQUgK6W/4WbUDeHktVB2/X5CqwYJxLC+Y | ||||||
|  | S1qNVUiabS4MuuXfGCdvJIcPRUcnx1RIUQL2VpE7I9Z1LQ1qAvJt5Bx1eyKdy/+O | ||||||
|  | wYMHQAAcd7lQuwnFLtOgHrOqHOtcp8jiltCoivEIyc+RyZrhq+w8xkZOvhIJ+Nxv | ||||||
|  | lo41xQKcXHU1bVV7O0FEyFv7Sj+VRo/Os2Eesk1mEYDiqYfF2mEvFnY+tj8e7jxJ | ||||||
|  | N9lRS7mb/5iBObZp6sv2y4afJfzAXDPEt7QVMDORjUqPHhIlkjCpE0/AIwbJVnvd | ||||||
|  | 5x4tiZjDcVZZ | ||||||
|  | -----END CERTIFICATE----- | ||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,28 @@ | ||||||
|  | -----BEGIN PRIVATE KEY----- | ||||||
|  | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCbGXtPx/xRCDHq | ||||||
|  | PkUSC/g08eH4IQHW2ku7IJwGd3MOfB+hMLVNYSMNNx2ltFguPm+bh1rDsT+6Lq+R | ||||||
|  | iXf++KXjzpy7ShRyBQ6Xjy5hfz0hR6CtDonGRpBmndgwl2yUVhpdgD0BZzhqO5Oz | ||||||
|  | mONqZpP968yIRts7Xl1zF2Z63/EiWdOY5m6YWaE3inRr2W0GttJ55eqVFeBRTX2t | ||||||
|  | ASyrh+b1NvWlo52phs/EAb2CCE+cUC82S68QtMsyvIGGNRiBr9tQ5x9rRtPIens8 | ||||||
|  | AK9/H9K8rG+ldXcAsop8C4SvQg+hBW8ViHEu9EQ1c9N3vA+KE3IP91jvRMP3HONx | ||||||
|  | DWok4pjXAgMBAAECggEAORiyWnZmnnYD2hW+W5xobSU2aJ/OC4glJOgmSAMlKgnr | ||||||
|  | ou1JcQj3XGAT2/J+G9gEQh8b/Lp9mU6id1NCB20FtM1UyWXGDQtricO98Upj+KJj | ||||||
|  | thGKCqHjesNU2N6FrD3eStlwm9mh3Qm9n/oCjiLhDDMIAosDHeHpSPsuUMGsBVa0 | ||||||
|  | zDcmcpujgb/aHWw5Iy9yy2Po+M4X2faLljZWwwFvgBDhftlVRGyZOwuUc+TxL6/v | ||||||
|  | HEmYGhsDiEle6XiqcV0hVt0obeic7yxQOPEahWbwLdLjrO+Wx1GaTsxbwfqLWU0g | ||||||
|  | ut8Te8+8RJiZGdT2mbtbkGiXrN2CbcPfkCvuzDE/UQKBgQDaLtEus8s6tVo9lvh/ | ||||||
|  | phtb0mwY9dQ7gekrbjVmlHl1Yrtc4UTP4u1MwKu1B8t6Oe0s3i2iYtre2z1F6MmR | ||||||
|  | cr1wweN4PNAZ5/6jwsTDDfUEAWPq+vriics5YmyCL9nLaBk4b7/3TZNpmBn/UuOu | ||||||
|  | JpFeAhLC3QG9XubHF0mEcKPicwKBgQC1+4ng0jg3jQofTdx29yDND5q1ftbZHx5Q | ||||||
|  | n9g4gR8Y9Gr8ETox3GVfiKTAIzaE53UfzEHpEmj756XdggxZIkNvHxWoIAsEEiwY | ||||||
|  | nI3ztz9rIQfx+10FVY9VrgTZDDYlv9NMcUg6cEuGbH0lKiZoqRLyVcqGWgWTF2Qg | ||||||
|  | gnll54RDDQKBgF3aK7M6Nd6gKhw6N9S5ACXEYyltfYjHfiRneOMSVRjQiqYOZMpD | ||||||
|  | 5C3S50ms+7Ms/cACJoEmot2gU0AiPaqqP6EkVhPfnOi36cpJutfoxg+eBXwL0CXo | ||||||
|  | fhnGI8TwjnA37DlhoKLhpNqUSgKRhkzgXEGjBKz74oayLvVPKBmnVmfPAoGAditM | ||||||
|  | MMzQ7GGNPR6WFjoK9p03XLtsT7jBOqFRCf/ubYnpHp0hKNdwjERylsFG2a5ig69i | ||||||
|  | 7TGjMlANiHS2B/sTxshsi6ui+5XBRIoEM0m+yJW+TwdmM9yHIp/JThd74a9aSb0V | ||||||
|  | pbzdjgBMkyF3p2aCgxHqXKuACy+ZOPMAWYeoftECgYEAjKEUKfsZIZfgHicZYxbZ | ||||||
|  | gVrIG/ifGKpzPdFYtR2Yq0F7/ECrKf4VRRpfVbs+KPOfaSYtlE400MecOgLsxK76 | ||||||
|  | LMaSsuJB/YURrUjjR7O5orupVAlIG8tblBiAwx5VAsFTfyw4WVcHP+AJ+kYUuCB0 | ||||||
|  | JriD7XK6yHORwPka9yD+SYg= | ||||||
|  | -----END PRIVATE KEY----- | ||||||
|  | @ -1,69 +0,0 @@ | ||||||
| DESCRIPTION = "WWAN modems configuration tool" |  | ||||||
| LICENSE = "Proprietary" |  | ||||||
| LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" |  | ||||||
| 
 |  | ||||||
| RDEPENDS:${PN} += " \ |  | ||||||
|     python3-pyserial \ |  | ||||||
|     libgpiod-python \ |  | ||||||
|     python3-setuptools \ |  | ||||||
|     python3-systemd \ |  | ||||||
|     lmsensors-sensors \ |  | ||||||
|     lmsensors-config-libsensors \ |  | ||||||
|     " |  | ||||||
| 
 |  | ||||||
| DEPENDS = "python3-setuptools-scm-native" |  | ||||||
| 
 |  | ||||||
| inherit gitpkgv systemd allarch |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # Package Version (built from tags) |  | ||||||
| PKGV = "${GITPKGVTAG}" |  | ||||||
| # Recipe Version |  | ||||||
| PV = "1.0-git${SRCPV}" |  | ||||||
| 
 |  | ||||||
| PR = "r1" |  | ||||||
| 
 |  | ||||||
| SRCREV = "a943fa76d5385c3f9bc54023c6fcf8b7bf339fd1" |  | ||||||
| SRC_URI = "git://gitlab.com/netmodule/tools/wwan-config.git;protocol=ssh;user=git;branch=master \ |  | ||||||
|            file://wwan-config@.service \ |  | ||||||
|            file://default.conf \ |  | ||||||
|            file://0001-Hotfixes-for-gemini.patch \ |  | ||||||
|            file://0002-hotfix-for-kirkstone.patch \ |  | ||||||
|            " |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| inherit setuptools3_legacy |  | ||||||
| 
 |  | ||||||
| # Should be set by machine.conf |  | ||||||
| WWAN_NBR ??= "1" |  | ||||||
| 
 |  | ||||||
| do_install:append() { |  | ||||||
|     install -d ${D}/${systemd_unitdir}/system/ |  | ||||||
|     install -m 0644 ${WORKDIR}/wwan-config@.service ${D}/${systemd_unitdir}/system/ |  | ||||||
| 
 |  | ||||||
|     install -d ${D}/${sysconfdir}/wwan |  | ||||||
|     if [ ! -z "${WWAN_NBR}" ] ; then |  | ||||||
|         install -d ${D}${sysconfdir}/systemd/system/multi-user.target.requires/ |  | ||||||
|         for i in `seq 0 ${WWAN_NBR}`; do |  | ||||||
|             if [ $i = ${WWAN_NBR} ]; then continue; fi |  | ||||||
| 
 |  | ||||||
|             if [ "${SYSTEMD_AUTO_ENABLE}" = "enable" ] ; then |  | ||||||
|                 ln -sf ${systemd_unitdir}/system/wwan-config@.service \ |  | ||||||
|                     ${D}${sysconfdir}/systemd/system/multi-user.target.requires/wwan-config@wwan$i.service |  | ||||||
|             fi |  | ||||||
| 
 |  | ||||||
|             install -m 0644 ${WORKDIR}/default.conf ${D}${sysconfdir}/wwan/wwan$i.conf |  | ||||||
|             if [ ! -z "${NM_WWAN_APN}" ]; then |  | ||||||
|                 sed -i 's/apn=/apn=${NM_WWAN_APN}/g' ${D}${sysconfdir}/wwan/wwan$i.conf |  | ||||||
|             fi |  | ||||||
|             if [ ! -z "${NM_WWAN_USER}" ]; then |  | ||||||
|                 sed -i 's/user=/user=${NM_WWAN_USER}/g' ${D}${sysconfdir}/wwan/wwan$i.conf |  | ||||||
|             fi |  | ||||||
|             if [ ! -z "${NM_WWAN_PASSWORD}" ]; then |  | ||||||
|                 sed -i 's/password=/password=${NM_WWAN_PASSWORD}/g' ${D}${sysconfdir}/wwan/wwan$i.conf |  | ||||||
|             fi |  | ||||||
|         done |  | ||||||
|     fi |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
|  | @ -1,68 +0,0 @@ | ||||||
| From 3ffd1a9c0b42c32e720f05b36b6b837fb1ea8c46 Mon Sep 17 00:00:00 2001 |  | ||||||
| From: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| Date: Thu, 22 Feb 2024 17:21:09 +0100 |  | ||||||
| Subject: [PATCH] Hotfixes for gemini |  | ||||||
| 
 |  | ||||||
| - Handling HUB_RST and GSM_RST lines
 |  | ||||||
| - Using GSM_EN instead of GSM_PWR
 |  | ||||||
| - Using gpio line EXT_SUPPLY_EN0 instead of "kernel" supply
 |  | ||||||
| 
 |  | ||||||
| Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| ---
 |  | ||||||
|  wwan_config/modems/wwan_modem.py | 28 +++++++++++++++++++++++----- |  | ||||||
|  1 file changed, 23 insertions(+), 5 deletions(-) |  | ||||||
| 
 |  | ||||||
| diff --git a/wwan_config/modems/wwan_modem.py b/wwan_config/modems/wwan_modem.py
 |  | ||||||
| index 710ec76..cc12a53 100755
 |  | ||||||
| --- a/wwan_config/modems/wwan_modem.py
 |  | ||||||
| +++ b/wwan_config/modems/wwan_modem.py
 |  | ||||||
| @@ -25,8 +25,24 @@ class WwanModem:
 |  | ||||||
|   |  | ||||||
|      def __init__(self, device_name): |  | ||||||
|          self.name = device_name |  | ||||||
| -        self.pwr_line = gpiod.find_line('GSM_PWR')
 |  | ||||||
| +
 |  | ||||||
| +        # Start by disabling the power supply
 |  | ||||||
| +        self.supply_line = gpiod.find_line('EXT_SUPPLY_EN0')
 |  | ||||||
| +        self.supply_line.request(consumer=self.name, type=gpiod.LINE_REQ_DIR_OUT, default_vals=[0])
 |  | ||||||
| +
 |  | ||||||
| +        # Release all RST lines
 |  | ||||||
| +        self.hub_rst_line = gpiod.find_line('HUB_RST~')
 |  | ||||||
| +        self.hub_rst_line.request(consumer=self.name, type=gpiod.LINE_REQ_DIR_OUT, default_vals=[1])
 |  | ||||||
| +
 |  | ||||||
| +        self.rst_line = gpiod.find_line('GSM_RST')
 |  | ||||||
| +        self.rst_line.request(consumer=self.name, type=gpiod.LINE_REQ_DIR_OUT, default_vals=[0])
 |  | ||||||
| +
 |  | ||||||
| +
 |  | ||||||
| +        # Prepare the the PWR line for the pulse
 |  | ||||||
| +        self.pwr_line = gpiod.find_line('GSM_EN')
 |  | ||||||
|          self.pwr_line.request(consumer=self.name, type=gpiod.LINE_REQ_DIR_OUT, default_vals=[0]) |  | ||||||
| +        time.sleep(1)
 |  | ||||||
| +
 |  | ||||||
|   |  | ||||||
|          while True: |  | ||||||
|              try: |  | ||||||
| @@ -34,7 +50,11 @@ class WwanModem:
 |  | ||||||
|                  break |  | ||||||
|              except ModemNotPoweredException as e: |  | ||||||
|                  logger.error("The modem did not power up, turning power off and on again") |  | ||||||
| -                self.power_down()
 |  | ||||||
| +                try:
 |  | ||||||
| +                    self.power_down()
 |  | ||||||
| +                except PwrNotControllableException as e:
 |  | ||||||
| +                    logger.error("The power cannot be controlled, not shutting down, the only we can do is wait...");
 |  | ||||||
| +
 |  | ||||||
|                  # Make sure the power is down long enough to avoid a glitch |  | ||||||
|                  # With toby-l2 this down time must be at least 130ms |  | ||||||
|                  time.sleep(1) |  | ||||||
| @@ -158,9 +178,7 @@ class WwanModem:
 |  | ||||||
|                  raise ModemNotPoweredException() |  | ||||||
|   |  | ||||||
|      def set_pwr_state(self, value): |  | ||||||
| -        state = "enabled" if value == 1 else "disabled"
 |  | ||||||
| -        with open("/sys/devices/platform/" + self.name + "-supply/state", "w") as supply_file:
 |  | ||||||
| -            supply_file.write(state + "\n")
 |  | ||||||
| +        self.supply_line.set_value(value)
 |  | ||||||
|   |  | ||||||
|      def power_up(self): |  | ||||||
|          logger.info("modem power up") |  | ||||||
|  | @ -1,26 +0,0 @@ | ||||||
| From a2b92fb896bdf2c5579676f05df4fcc7c488d94f Mon Sep 17 00:00:00 2001 |  | ||||||
| From: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| Date: Thu, 22 Feb 2024 17:28:56 +0100 |  | ||||||
| Subject: [PATCH] hotfix for kirkstone |  | ||||||
| 
 |  | ||||||
| With the upgrade from dunfell to kirkstone, setuptools-git-version does |  | ||||||
| not exists anymore. |  | ||||||
| 
 |  | ||||||
| Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| ---
 |  | ||||||
|  setup.py | 2 +- |  | ||||||
|  1 file changed, 1 insertion(+), 1 deletion(-) |  | ||||||
| 
 |  | ||||||
| diff --git a/setup.py b/setup.py
 |  | ||||||
| index 8009e49..88415ae 100755
 |  | ||||||
| --- a/setup.py
 |  | ||||||
| +++ b/setup.py
 |  | ||||||
| @@ -5,7 +5,7 @@ from setuptools import setup, find_packages
 |  | ||||||
|  setup( |  | ||||||
|      name='wwan_config', |  | ||||||
|      version_format='{tag}.{commitcount}+{gitsha}', |  | ||||||
| -    setup_requires=['setuptools-git-version'],
 |  | ||||||
| +    setup_requires=['setuptools-scm'],
 |  | ||||||
|      description='WWAN modem configurator', |  | ||||||
|      author='Alexandre Bard', |  | ||||||
|      author_email='alexandre.bard@netmodule.com', |  | ||||||
|  | @ -1,51 +0,0 @@ | ||||||
| # |  | ||||||
| # This file is part of wwan-config service |  | ||||||
| # |  | ||||||
| 
 |  | ||||||
| # Define a private APN to be used by the modem |  | ||||||
| #  ! ONLY REQUIRED WHEN USING UBLOX TOBY-L2, will be ignored for other modems |  | ||||||
| # |  | ||||||
| # Required fields: |  | ||||||
| #     apn:      Name of the access point |  | ||||||
| #     user:     Username used to authenticate on APN |  | ||||||
| #     password: Password used to authenticate on APN |  | ||||||
| # |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| [apn] |  | ||||||
| apn= |  | ||||||
| user= |  | ||||||
| password= |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # |  | ||||||
| # Select the SIM card to be used by the modem |  | ||||||
| # |  | ||||||
| # auto: The script will detect if a physical SIM card is |  | ||||||
| #       present and switch to eSIM if it is not the case |  | ||||||
| # sim1: Use the physical SIM card on the main board |  | ||||||
| # m2m: Use the eSIM of the main board |  | ||||||
| # ui-top: Use the SIM card that is on top of the User Interface |  | ||||||
| # ui-btm: Use the SIM card that is on the bottom of the User Interface |  | ||||||
| # |  | ||||||
| 
 |  | ||||||
| [sim] |  | ||||||
| SIM=auto |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # |  | ||||||
| # ublox specific configurations: |  | ||||||
| # |  | ||||||
| # mode (+UBMCONF) : |  | ||||||
| #  - Router : The modem will act as router and DHCP server. |  | ||||||
| #  - Bridge : The modem will only act as a Bridge between the local and the GSM network. |  | ||||||
| # |  | ||||||
| # usb_profile (+UUSBCONF) : |  | ||||||
| #  ! ONLY USED WITH TOBY-L2, will be ignored for other modems |  | ||||||
| #  Select between different network/usb interfaces : |  | ||||||
| #  - RNDIS |  | ||||||
| #  - ECM |  | ||||||
| # |  | ||||||
| [ublox] |  | ||||||
| mode=Bridge |  | ||||||
| usb_profile=ECM |  | ||||||
|  | @ -1,18 +0,0 @@ | ||||||
| [Unit] |  | ||||||
| Description=WWAN configurator for device %I |  | ||||||
| 
 |  | ||||||
| [Service] |  | ||||||
| Type=forking |  | ||||||
| ExecStart=/usr/bin/wwan-config %I |  | ||||||
| PIDFile=/run/%I.pid |  | ||||||
| Restart=on-failure |  | ||||||
| Nice=-20 |  | ||||||
| # Start time may include power cycles and start of ModemManager |  | ||||||
| TimeoutStartSec=180 |  | ||||||
| # The default kill mode is killing the subprocesses created by the "os.system" |  | ||||||
| # calls used to stop ModemManager when handling the kill signal. |  | ||||||
| KillMode=mixed |  | ||||||
| 
 |  | ||||||
| [Install] |  | ||||||
| RequiredBy=multi-user.target |  | ||||||
| 
 |  | ||||||
|  | @ -17,11 +17,24 @@ IMAGE_FSTYPES = "cpio.xz" | ||||||
| # Keep only the minimum packages | # Keep only the minimum packages | ||||||
| NO_RECOMMENDATIONS = "1" | NO_RECOMMENDATIONS = "1" | ||||||
| 
 | 
 | ||||||
| EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server" | TI_WIFI_PACKAGES = " \ | ||||||
|  | 	firmware-ti-wl18xx \ | ||||||
|  | 	" | ||||||
|  | 
 | ||||||
|  | WIFI_PACKAGES = " \ | ||||||
|  | 	${@bb.utils.contains("MACHINE_FEATURES", "ti-wifi", "${TI_WIFI_PACKAGES}", "", d)} \ | ||||||
|  | 	" | ||||||
| 
 | 
 | ||||||
| IMAGE_INSTALL:append = " \ | IMAGE_INSTALL:append = " \ | ||||||
|  | 	coreutils \ | ||||||
|  | 	ncurses-terminfo-base \ | ||||||
|  | 	kernel-module-board-descriptor \ | ||||||
|  | 	kernel-module-system-info \ | ||||||
|  | 	kernel-module-pcie \ | ||||||
|  | 	\ | ||||||
|  | 	networkmanager-nmcli \ | ||||||
|  | 	systemd-conf \ | ||||||
| 	nwl-tests \ | 	nwl-tests \ | ||||||
| 	\ | 	\ | ||||||
| 	bmap-tools \ | 	${@bb.utils.contains("MACHINE_FEATURES", "wifi", "${WIFI_PACKAGES}", "", d)} \ | ||||||
| 	xz \ |  | ||||||
| 	" | 	" | ||||||
|  |  | ||||||
|  | @ -12,22 +12,6 @@ inherit nwl-image | ||||||
| # NWL specific files can be added as well: | # NWL specific files can be added as well: | ||||||
| # COREOS_CI_DEPLOY_ARTIFACTS += "${IMAGE_LINK_NAME}.custom.binary" | # COREOS_CI_DEPLOY_ARTIFACTS += "${IMAGE_LINK_NAME}.custom.binary" | ||||||
| 
 | 
 | ||||||
| # Components required by uboot to boot an installed image |  | ||||||
| IMAGE_INSTALL:append = "\ |  | ||||||
| 	kernel-devicetree \ |  | ||||||
| 	${@bb.utils.contains('MACHINE_FEATURES', 'fpga', 'fpga-image', '', d)} \ |  | ||||||
| " |  | ||||||
| 
 |  | ||||||
| # Add features and packages that are used in our tests: | # Add features and packages that are used in our tests: | ||||||
| IMAGE_FEATURES += "ssh-server networkmanager swupdate" | IMAGE_FEATURES += "ssh-server networkmanager swupdate" | ||||||
| IMAGE_INSTALL:append = " \ | IMAGE_INSTALL:append = " packagegroup-core-full-cmdline swupdate-www" | ||||||
| 	packagegroup-core-full-cmdline \ |  | ||||||
| 	swupdate-www \ |  | ||||||
| 	nwl-tests \ |  | ||||||
| 	packagegroup-nwl-test-tools \ |  | ||||||
| 	" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| IMAGE_FSTYPES += "wic.xz wic.bmap" |  | ||||||
|  |  | ||||||
|  | @ -1,33 +0,0 @@ | ||||||
| inherit packagegroup |  | ||||||
| 
 |  | ||||||
| DESCRIPTION = "Base packages required for the NWL Distro" |  | ||||||
| 
 |  | ||||||
| PACKAGE_ARCH = "${MACHINE_ARCH}" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| NRSW_MODULES = " \ |  | ||||||
| 	kernel-module-board-descriptor \ |  | ||||||
| 	kernel-module-system-info \ |  | ||||||
| 	kernel-module-pcie \ |  | ||||||
| " |  | ||||||
| 
 |  | ||||||
| TI_WIFI_PACKAGES = " \ |  | ||||||
| 	firmware-ti-wl18xx \ |  | ||||||
| 	" |  | ||||||
| 
 |  | ||||||
| WIFI_PACKAGES = " \ |  | ||||||
| 	${@bb.utils.contains("MACHINE_FEATURES", "ti-wifi", "${TI_WIFI_PACKAGES}", "", d)} \ |  | ||||||
| 	" |  | ||||||
| 
 |  | ||||||
| RDEPENDS:${PN} = " \ |  | ||||||
| 	coreutils \ |  | ||||||
| 	ncurses-terminfo-base \ |  | ||||||
| 	networkmanager-nmcli \ |  | ||||||
| 	dnsmasq \ |  | ||||||
| 	systemd-conf \ |  | ||||||
| 	\ |  | ||||||
| 	kernel-modules \ |  | ||||||
| 	${@bb.utils.contains("MACHINE_FEATURES", "nrsw-ready", "${NRSW_MODULES}", "", d)} \ |  | ||||||
| 	\ |  | ||||||
| 	${@bb.utils.contains("MACHINE_FEATURES", "wifi", "${WIFI_PACKAGES}", "", d)} \ |  | ||||||
| " |  | ||||||
|  | @ -1,24 +0,0 @@ | ||||||
| inherit packagegroup |  | ||||||
| 
 |  | ||||||
| DESCRIPTION = "Common tools convenient for testing the features of NWL" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| RDEPENDS:${PN} = " \ |  | ||||||
| 	hostapd \ |  | ||||||
| 	\ |  | ||||||
| 	gps-utils \ |  | ||||||
| 	\ |  | ||||||
| 	can-utils \ |  | ||||||
| 	\ |  | ||||||
| 	libgpiod-tools \ |  | ||||||
| 	\ |  | ||||||
| 	chrony \ |  | ||||||
| 	minicom \ |  | ||||||
| 	\ |  | ||||||
| 	udev-rules-nmhw \ |  | ||||||
| 	\ |  | ||||||
| 	modemmanager \ |  | ||||||
| 	wwan-config \ |  | ||||||
| 	\ |  | ||||||
| 	gnss-mgr \ |  | ||||||
| " |  | ||||||
|  | @ -1,25 +0,0 @@ | ||||||
| # Copyright (C) 2019 Ramon Moesching <ramon.moesching@netmodule.com> |  | ||||||
| # Released under the MIT license (see COPYING.MIT for the terms) |  | ||||||
| 
 |  | ||||||
| DESCRIPTION = "udev rules for netmodule router and oem hardware" |  | ||||||
| HOMEPAGE = "netmodule.com" |  | ||||||
| LICENSE = "MIT" |  | ||||||
| LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |  | ||||||
| 
 |  | ||||||
| SECTION = "base" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://gitlab.com/netmodule/tools/udev-rules-nmhw;protocol=ssh;user=git;branch=master;" |  | ||||||
| SRCREV = "e2fe34ea2d0c1ebd08d26bf90197b5625765e242" |  | ||||||
| 
 |  | ||||||
| do_install () { |  | ||||||
|     install -d ${D}${libdir}/udev/rules.d |  | ||||||
| 
 |  | ||||||
|     if ls ${S}/machines/${MACHINE}/*.rules 1> /dev/null 2>&1 ; then |  | ||||||
|        install -m 0644 ${S}/machines/${MACHINE}/*.rules ${D}${libdir}/udev/rules.d/ |  | ||||||
|        if [ -f ${S}/machines/${MACHINE}/*.sh ]; then |  | ||||||
|            install -m 0755 ${S}/machines/${MACHINE}/*.sh ${D}${libdir}/udev/rules.d/ |  | ||||||
|        fi |  | ||||||
|     fi |  | ||||||
| } |  | ||||||
|  | @ -1,51 +0,0 @@ | ||||||
| DESCRIPTION = "NetModule GNSS management tool" |  | ||||||
| LICENSE = "LGPL-3.0-only" |  | ||||||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=3000208d539ec061b899bce1d9ce9404" |  | ||||||
| 
 |  | ||||||
| RDEPENDS:${PN} += " \ |  | ||||||
|     python3-setuptools \ |  | ||||||
|     nmubxlib \ |  | ||||||
|     python3-systemd \ |  | ||||||
|     " |  | ||||||
| 
 |  | ||||||
| DEPENDS = "python3-setuptools-scm-native" |  | ||||||
| 
 |  | ||||||
| inherit setuptools3 |  | ||||||
| inherit gitpkgv |  | ||||||
| 
 |  | ||||||
| inherit systemd |  | ||||||
| SYSTEMD_SERVICE:${PN} = "gnss-mgr.service" |  | ||||||
| 
 |  | ||||||
| inherit allarch |  | ||||||
| 
 |  | ||||||
| # Package Version (built from tags) |  | ||||||
| PKGV = "${GITPKGVTAG}" |  | ||||||
| # Recipe Version |  | ||||||
| PV = "1.0-git${SRCPV}" |  | ||||||
| PR = "r1" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://gitlab.com/netmodule/tools/gnssmgr.git;protocol=ssh;user=git;branch=master \ |  | ||||||
|            file://0001-setup.py-Make-compatible-with-kirkstone.patch \ |  | ||||||
|            file://0002-gnss-mgr.service-Hotfix-for-gemini.patch \ |  | ||||||
|            " |  | ||||||
| SRCREV = "3d80bb4871ddc2e3e84553a86b767b419b96148f" |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| PACKAGES =+ "${PN}-test" |  | ||||||
| SUMMARY:${PN}-test = "Addon to gnss-mgr for testing purposes" |  | ||||||
| FILES:${PN}-test = "${bindir}/gnss-config-reader" |  | ||||||
| 
 |  | ||||||
| do_install:append() { |  | ||||||
|     install -d ${D}${sysconfdir}/gnss |  | ||||||
|     install -m 0644 ${S}/config/gnss-neom8.conf ${D}${sysconfdir}/gnss/gnss0.conf |  | ||||||
| 
 |  | ||||||
|     install -d ${D}/${sbindir}/ |  | ||||||
|     install -m 0755 ${S}/systemd/gnss-mgr-service.py ${D}${sbindir}/gnss-mgr-service |  | ||||||
| 
 |  | ||||||
|     install -d ${D}/${systemd_unitdir}/system/ |  | ||||||
|     install -m 0644 ${S}/systemd/gnss-mgr.service ${D}/${systemd_unitdir}/system/ |  | ||||||
| 
 |  | ||||||
|     # Test tool |  | ||||||
|     install -d ${D}${bindir}/ |  | ||||||
|     install -m 0755 ${S}/testing/gnss-config-reader.py ${D}${bindir}/gnss-config-reader |  | ||||||
| } |  | ||||||
|  | @ -1,23 +0,0 @@ | ||||||
| From e1dc9e6a5e683dd8ed09a319d06ef0be8d0022cb Mon Sep 17 00:00:00 2001 |  | ||||||
| From: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| Date: Tue, 27 Feb 2024 11:33:39 +0100 |  | ||||||
| Subject: [PATCH] setup.py: Make compatible with kirkstone |  | ||||||
| 
 |  | ||||||
| Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| ---
 |  | ||||||
|  setup.py | 2 +- |  | ||||||
|  1 file changed, 1 insertion(+), 1 deletion(-) |  | ||||||
| 
 |  | ||||||
| diff --git a/setup.py b/setup.py
 |  | ||||||
| index 8d3714e..cda325e 100644
 |  | ||||||
| --- a/setup.py
 |  | ||||||
| +++ b/setup.py
 |  | ||||||
| @@ -5,7 +5,7 @@ from setuptools import setup, find_packages
 |  | ||||||
|  setup( |  | ||||||
|      name='gnss_mgr', |  | ||||||
|      version_format='{tag}.{commitcount}+{gitsha}', |  | ||||||
| -    setup_requires=['setuptools-git-version'],
 |  | ||||||
| +    setup_requires=['setuptools-scm'],
 |  | ||||||
|      description='GNSS Manager', |  | ||||||
|      author='Marc Mattmüller', |  | ||||||
|      author_email='marc.mattmueller@netmodule.com', |  | ||||||
|  | @ -1,34 +0,0 @@ | ||||||
| From 88eb6099cecfaa344dee3cacec54db0cd24f542f Mon Sep 17 00:00:00 2001 |  | ||||||
| From: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| Date: Thu, 29 Feb 2024 15:03:02 +0100 |  | ||||||
| Subject: [PATCH] gnss-mgr.service: Hotfix for gemini |  | ||||||
| 
 |  | ||||||
| Start the gnss receiver as part of the service startup because it is not |  | ||||||
| started automatically. |  | ||||||
| 
 |  | ||||||
| Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com> |  | ||||||
| ---
 |  | ||||||
|  systemd/gnss-mgr.service | 5 +++-- |  | ||||||
|  1 file changed, 3 insertions(+), 2 deletions(-) |  | ||||||
| 
 |  | ||||||
| diff --git a/systemd/gnss-mgr.service b/systemd/gnss-mgr.service
 |  | ||||||
| index 4694bee..2aa0a9b 100644
 |  | ||||||
| --- a/systemd/gnss-mgr.service
 |  | ||||||
| +++ b/systemd/gnss-mgr.service
 |  | ||||||
| @@ -1,13 +1,14 @@
 |  | ||||||
|  [Unit] |  | ||||||
|  Description=GNSS Manager |  | ||||||
| -Requires=dev-gnss0.device
 |  | ||||||
| -After=dev-gnss0.device
 |  | ||||||
|   |  | ||||||
|  [Service] |  | ||||||
|  Type=oneshot |  | ||||||
|  RemainAfterExit=yes |  | ||||||
| +ExecStartPre=/bin/sh -c 'gpioset $(gpiofind "GNSS_RST~")=1'
 |  | ||||||
| +ExecStartPre=sleep 5
 |  | ||||||
|  ExecStart=/usr/sbin/gnss-mgr-service start |  | ||||||
|  ExecStop=/usr/sbin/gnss-mgr-service stop |  | ||||||
| +ExecStopPost=/bin/sh -c 'gpioset $(gpiofind "GNSS_RST~")=0'
 |  | ||||||
|  ExecReload=/usr/sbin/gnss-mgr-service reload |  | ||||||
|  StandardOutput=null |  | ||||||
|   |  | ||||||
|  | @ -1,15 +0,0 @@ | ||||||
| 
 |  | ||||||
| TTY_DEVICE = "/dev/gnss0" |  | ||||||
| USBAUTO_STATE = "false" |  | ||||||
| 
 |  | ||||||
| do_install:append () { |  | ||||||
|     sed -i 's|DEVICES=""|DEVICES="${TTY_DEVICE}"|g' ${D}/etc/default/gpsd.default |  | ||||||
|     sed -i 's|USBAUTO="true"|USBAUTO="${USBAUTO_STATE}"|g' ${D}/etc/default/gpsd.default |  | ||||||
| 
 |  | ||||||
|     sed -i "s/GPSD_OPTIONS=\"\(.*\)\"/GPSD_OPTIONS=\"\1 -s 115200\"/g" \ |  | ||||||
|             ${D}${sysconfdir}/default/gpsd.default |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| # Service is started by gnss-mgr |  | ||||||
| SYSTEMD_AUTO_ENABLE = "disable" |  | ||||||
|  | @ -1,24 +0,0 @@ | ||||||
| DESCRIPTION = "Library implementing UBX protocol for u-blox gnss modems" |  | ||||||
| LICENSE = "MIT" |  | ||||||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=331a9220a74b05f133bf1ef09b6903b2" |  | ||||||
| 
 |  | ||||||
| RDEPENDS:${PN} += " \ |  | ||||||
|     python3-setuptools \ |  | ||||||
|     " |  | ||||||
| 
 |  | ||||||
| DEPENDS = "python3-setuptools-scm-native" |  | ||||||
| 
 |  | ||||||
| inherit setuptools3 |  | ||||||
| inherit gitpkgv |  | ||||||
| 
 |  | ||||||
| # Package Version (built from tags) |  | ||||||
| PKGV = "${GITPKGVTAG}" |  | ||||||
| # Recipe Version |  | ||||||
| PV = "1.0-git${SRCPV}" |  | ||||||
| PR = "r1" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://gitlab.com/netmodule/tools/nmubxlib.git;protocol=ssh;user=git;branch=master" |  | ||||||
| SRCREV = "7c22b57cdd169a6651cb0c17a215d1e448727bcb" |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  | @ -7,7 +7,7 @@ SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/nwl-test.git;protocol=ssh;b | ||||||
| 
 | 
 | ||||||
| PV = "1.0+git${SRCPV}" | PV = "1.0+git${SRCPV}" | ||||||
| 
 | 
 | ||||||
| SRCREV = "9989fb3c439db711ecaef4a8e8eb60f88533eccc" | SRCREV = "b20cf128663270b095f51d538b650d0536822069" | ||||||
| 
 | 
 | ||||||
| S = "${WORKDIR}/git" | S = "${WORKDIR}/git" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,18 +0,0 @@ | ||||||
| # We have a conf and classes directory, add to BBPATH |  | ||||||
| BBPATH .= ":${LAYERDIR}" |  | ||||||
| 
 |  | ||||||
| # We have recipes-* directories, add to BBFILES |  | ||||||
| BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ |  | ||||||
|             ${LAYERDIR}/recipes-*/*/*.bbappend" |  | ||||||
| 
 |  | ||||||
| BBFILE_COLLECTIONS += "nwl-marvell-bsp" |  | ||||||
| BBFILE_PATTERN_nwl-marvell-bsp = "^${LAYERDIR}/" |  | ||||||
| BBFILE_PRIORITY_nwl-marvell-bsp = "7" |  | ||||||
| 
 |  | ||||||
| # This should only be incremented on significant changes that will |  | ||||||
| # cause compatibility issues with other layers |  | ||||||
| LAYERVERSION_nwl-marvell-bsp = "1" |  | ||||||
| 
 |  | ||||||
| LAYERDEPENDS_nwl-marvell-bsp = "core meta-belden-coreos" |  | ||||||
| 
 |  | ||||||
| LAYERSERIES_COMPAT_nwl-marvell-bsp = "kirkstone" |  | ||||||
|  | @ -1,70 +0,0 @@ | ||||||
| #@TYPE: Machine |  | ||||||
| #@NAME: cn9131-nitroc |  | ||||||
| #@DESCRIPTION: Belden NetModule CN9131 NITROC |  | ||||||
| # |  | ||||||
| # cn913x is from Marvell octeon tx2 family, but it's based on a cortex-A72 |  | ||||||
| # so we can't use the armv8-2a/tune-octeontx2.inc (armv8a vs arm8-2a) |  | ||||||
| # instead we can use the older octeontx family previously known as thunderx |  | ||||||
| require conf/machine/include/arm/armv8a/tune-thunderx.inc |  | ||||||
| 
 |  | ||||||
| # SOC_FAMILY is added to MACHINE_OVERRIDES in the soc-family.inc file |  | ||||||
| SOC_FAMILY = "cn913x" |  | ||||||
| require conf/machine/include/soc-family.inc |  | ||||||
| 
 |  | ||||||
| # Bootloader configuration |  | ||||||
| # ***************************************************************************** |  | ||||||
| 
 |  | ||||||
| PREFERRED_PROVIDER_virtual/bootloader = "u-boot" |  | ||||||
| PREFERRED_VERSION_u-boot ?= "2020.10-marvell" |  | ||||||
| 
 |  | ||||||
| # Set the configuration and device tree for Nitroc |  | ||||||
| UBOOT_MACHINE = "nitroc_defconfig" |  | ||||||
| UBOOT_BUILDENV_DEVICE_TREE ??= "cn9131-nitroc-v1" |  | ||||||
| 
 |  | ||||||
| # Kernel configuration |  | ||||||
| # ****************************************************************************** |  | ||||||
| 
 |  | ||||||
| PREFERRED_PROVIDER_virtual/kernel ?= "linux-nitroc" |  | ||||||
| PREFERRED_VERSION_linux-netmodule ?= "v6.6.y%" |  | ||||||
| PREFERRED_VERSION_trusted-firmware-a ?= "2.9" |  | ||||||
| 
 |  | ||||||
| KERNEL_IMAGETYPE = "Image" |  | ||||||
| KERNEL_DEFCONFIG ?= "nitroc_defconfig" |  | ||||||
| KERNEL_DEVICETREE ?= "\ |  | ||||||
|     marvell/cn9131-nitroc-v1.dtb \ |  | ||||||
|     marvell/cn9131-nitroc-m12.dtb \ |  | ||||||
|     marvell/cn9131-nitroc-rj45.dtb \ |  | ||||||
| " |  | ||||||
| 
 |  | ||||||
| #  getty configuration |  | ||||||
| # ****************************************************************************** |  | ||||||
| 
 |  | ||||||
| SERIAL_CONSOLES = "115200;ttyS0" |  | ||||||
| SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}" |  | ||||||
| APPEND += "console=ttyS0,115200" |  | ||||||
| 
 |  | ||||||
| # Image generation |  | ||||||
| # ****************************************************************************** |  | ||||||
| 
 |  | ||||||
| # Ensure that both flash-image.bin and boot.scr are generated as they are needed |  | ||||||
| # for a wic image |  | ||||||
| do_image_wic[depends] += "trusted-firmware-a:do_deploy" |  | ||||||
| WKS_FILE = "cn913x-sdcard.wks.in" |  | ||||||
| COREOS_INSTALLER_WKS_FILE ?= "cn913x-sdcard-installer.wks" |  | ||||||
| IMAGE_FSTYPES += "wic.xz wic.bmap" |  | ||||||
| 
 |  | ||||||
| COREOS_IMAGE_SWUPDATE_EXTRACLASSES += " coreos-image-swupdate-cn913x" |  | ||||||
| 
 |  | ||||||
| # No watchdog available yet |  | ||||||
| EFIBOOTGUARD_TIMEOUT ?= "0" |  | ||||||
| require conf/machine/include/coreos-generic-features/efi.inc |  | ||||||
| require conf/machine/include/coreos-generic-features/partitions.inc |  | ||||||
| 
 |  | ||||||
| ### Device specific settings |  | ||||||
| # Kernel modules are not essential for booting but are needed for most things |  | ||||||
| MACHINE_EXTRA_RDEPENDS += "kernel-modules" |  | ||||||
| # Device trees are included in the unified kernel and not needed in the rootfs |  | ||||||
| # MACHINE_EXTRA_RDEPENDS += "kernel-devicetree" |  | ||||||
| # Needed for phy firmware |  | ||||||
| MACHINE_EXTRA_RDEPENDS += "linux-firmware-ath11k" |  | ||||||
| MACHINE_EXTRA_RDEPENDS += "linux-firmware-ath10k" |  | ||||||
|  | @ -1,29 +0,0 @@ | ||||||
| DESCRIPTION = "Marvell binaries like the system controller firmware" |  | ||||||
| LICENSE = "MIT" |  | ||||||
| LIC_FILES_CHKSUM = "file://README.md;md5=bbdf038ac62317d3a12a067c50dadc61" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/binaries-marvell.git;protocol=ssh;user=git;branch=nitroc" |  | ||||||
| 
 |  | ||||||
| # Modify these as desired |  | ||||||
| PV = "11.23.08+git${SRCPV}" |  | ||||||
| SRCREV = "6765e4fa3eae4000a307bdb891fe8c03f3422f91" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| do_configure () { |  | ||||||
| 	: |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| do_compile () { |  | ||||||
|    : |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| do_install () { |  | ||||||
|     # The sources are needed by arm-trusted-firmware |  | ||||||
|     install -d "${D}/usr/src/${PN}" |  | ||||||
|     cp -r "${S}/mrvl_scp_bl2.img" "${D}/usr/src/${PN}/" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| FILES:${PN}-dev = "/usr/src/${PN}" |  | ||||||
| INSANE_SKIP:${PN}-dev += "file-rdeps" |  | ||||||
| SYSROOT_DIRS +=  " /usr/src/${PN} " |  | ||||||
|  | @ -1,29 +0,0 @@ | ||||||
| DESCRIPTION = "Marvell DDR training library" |  | ||||||
| LICENSE = "GPL-2.0-or-later" |  | ||||||
| LIC_FILES_CHKSUM = "file://Makefile;md5=9993156c815673120e02a7c8e00a8cc3" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git;protocol=https;branch=master" |  | ||||||
| 
 |  | ||||||
| # Modify these as desired |  | ||||||
| PV = "devel+git${SRCPV}" |  | ||||||
| SRCREV = "bfcf62051be835f725005bb5137928f7c27b792e" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| do_configure () { |  | ||||||
| 	: |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| do_compile () { |  | ||||||
|    : |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| do_install () { |  | ||||||
|     # The sources are needed by arm-trusted-firmware |  | ||||||
|     install -d "${D}/usr/src/${PN}" |  | ||||||
|     cp -r "${S}/." "${D}/usr/src/${PN}/" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| FILES:${PN}-dev = "/usr/src/${PN}" |  | ||||||
| INSANE_SKIP:${PN}-dev += "file-rdeps" |  | ||||||
| SYSROOT_DIRS +=  " /usr/src/${PN} " |  | ||||||
|  | @ -1,21 +0,0 @@ | ||||||
| require recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc |  | ||||||
| 
 |  | ||||||
| DEPENDS += "mv-ddr-marvell binaries-marvell coreutils-native" |  | ||||||
| 
 |  | ||||||
| COMPATIBLE_MACHINE = "cn913x" |  | ||||||
| 
 |  | ||||||
| LIC_FILES_CHKSUM += "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde" |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/trusted-firmware-a.git;protocol=ssh;user=git;branch=nitroc-v2.9.0" |  | ||||||
| SRCREV = "41911b0db0a07878a384e8358950b79e6df7d1be" |  | ||||||
| 
 |  | ||||||
| EXTRA_OEMAKE += "MV_DDR_PATH=${PKG_CONFIG_SYSROOT_DIR}/usr/src/mv-ddr-marvell DDR_TOPOLOGY=2 SCP_BL2=${PKG_CONFIG_SYSROOT_DIR}/usr/src/binaries-marvell/mrvl_scp_bl2.img" |  | ||||||
| 
 |  | ||||||
| TFA_PLATFORM       = "t9130_nitroc" |  | ||||||
| TFA_BUILD_TARGET   = "all mrvl_flash" |  | ||||||
| TFA_INSTALL_TARGET = "flash-image" |  | ||||||
| TFA_DEBUG          = "1" |  | ||||||
| TFA_MBEDTLS        = "0" |  | ||||||
| TFA_UBOOT          = "1" |  | ||||||
| TFA_UEFI           = "0" |  | ||||||
| 
 |  | ||||||
|  | @ -1,32 +0,0 @@ | ||||||
| HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome" |  | ||||||
| DESCRIPTION = "U-Boot, a boot loader for Embedded boards based on PowerPC, \ |  | ||||||
| ARM, MIPS and several other processors, which can be installed in a boot \ |  | ||||||
| ROM and used to initialize and test the hardware or to download and run \ |  | ||||||
| application code." |  | ||||||
| SECTION = "bootloaders" |  | ||||||
| DEPENDS += "flex-native bison-native" |  | ||||||
| 
 |  | ||||||
| COMPATIBLE_MACHINE = "cn913x" |  | ||||||
| 
 |  | ||||||
| LICENSE = "GPL-2.0-or-later" |  | ||||||
| LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" |  | ||||||
| PE = "1" |  | ||||||
| 
 |  | ||||||
| SRCREV = "3534f6601c53362407bc6b3bf0af85908c38b81c" |  | ||||||
| SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/netmodule-u-boot.git;protocol=ssh;user=git;branch=sdk11.23.08-v2020.10-nitroc" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| require recipes-bsp/u-boot/u-boot.inc |  | ||||||
| require recipes-bsp/u-boot/u-boot-coreos.inc |  | ||||||
| 
 |  | ||||||
| # Solidrun patches require to build out-of-the-tree |  | ||||||
| B = "${WORKDIR}/build" |  | ||||||
| 
 |  | ||||||
| DEPENDS += "bc-native dtc-native u-boot-mkimage-native" |  | ||||||
| 
 |  | ||||||
| do_compile:prepend() { |  | ||||||
|     export DEVICE_TREE="${UBOOT_BUILDENV_DEVICE_TREE}" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| SYSROOT_DIRS +=  " /boot " |  | ||||||
|  | @ -1,71 +0,0 @@ | ||||||
| DESCRIPTION = "Linux kernel for the Nitroc hardware" |  | ||||||
| COMPATIBLE_MACHINE = "cn9131-nitroc" |  | ||||||
| 
 |  | ||||||
| inherit kernel |  | ||||||
| 
 |  | ||||||
| SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/netmodule-linux.git;protocol=ssh;user=git;branch=nitroc-v6.6.y" |  | ||||||
| SRCREV ?= "0b8f8f81ab0ec015002357820f50bfc2924390fe" |  | ||||||
| PV = "v6.6.y+git${SRCPV}" |  | ||||||
| 
 |  | ||||||
| LICENSE = "GPL-2.0-only" |  | ||||||
| LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |  | ||||||
| 
 |  | ||||||
| S = "${WORKDIR}/git" |  | ||||||
| 
 |  | ||||||
| #If a KERNEL_DEFCONFIG is specified, the defconfig specified in SRC_URI will be overwritten! |  | ||||||
| do_configure:append(){ |  | ||||||
|     if [ "${KERNEL_DEFCONFIG}" != "" ]; then |  | ||||||
|         oe_runmake ${KERNEL_DEFCONFIG} |  | ||||||
|     fi |  | ||||||
|     configs="${@" ".join(find_cfgs(d))}" |  | ||||||
|     if [ ! -z "${configs}" ]; then |  | ||||||
|         ${S}/scripts/kconfig/merge_config.sh -m -O ${WORKDIR}/build ${WORKDIR}/build/.config ${WORKDIR}/*.cfg |  | ||||||
|     fi |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| # The default kenrel.bbclass expects it can remove the source symlink, |  | ||||||
| # newer kernels don't have this symlink so we need to override kernel_do_install |  | ||||||
| kernel_do_install() { |  | ||||||
| 	# |  | ||||||
| 	# First install the modules |  | ||||||
| 	# |  | ||||||
| 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |  | ||||||
| 	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |  | ||||||
| 		oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install |  | ||||||
| 		rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" |  | ||||||
| 		# Remove empty module directories to prevent QA issues |  | ||||||
| 		find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete |  | ||||||
| 	else |  | ||||||
| 		bbnote "no modules to install" |  | ||||||
| 	fi |  | ||||||
| 
 |  | ||||||
| 	# |  | ||||||
| 	# Install various kernel output (zImage, map file, config, module support files) |  | ||||||
| 	# |  | ||||||
| 	install -d ${D}/${KERNEL_IMAGEDEST} |  | ||||||
| 
 |  | ||||||
| 	# |  | ||||||
| 	# When including an initramfs bundle inside a FIT image, the fitImage is created after the install task |  | ||||||
| 	# by do_assemble_fitimage_initramfs. |  | ||||||
| 	# This happens after the generation of the initramfs bundle (done by do_bundle_initramfs). |  | ||||||
| 	# So, at the level of the install task we should not try to install the fitImage. fitImage is still not |  | ||||||
| 	# generated yet. |  | ||||||
| 	# After the generation of the fitImage, the deploy task copies the fitImage from the build directory to |  | ||||||
| 	# the deploy folder. |  | ||||||
| 	# |  | ||||||
| 
 |  | ||||||
| 	for imageType in ${KERNEL_IMAGETYPES} ; do |  | ||||||
| 		if [ $imageType != "fitImage" ] || [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then |  | ||||||
| 			install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} |  | ||||||
| 		fi |  | ||||||
| 	done |  | ||||||
| 
 |  | ||||||
| 	install -m 0644 System.map ${D}/${KERNEL_IMAGEDEST}/System.map-${KERNEL_VERSION} |  | ||||||
| 	install -m 0644 .config ${D}/${KERNEL_IMAGEDEST}/config-${KERNEL_VERSION} |  | ||||||
| 	install -m 0644 vmlinux ${D}/${KERNEL_IMAGEDEST}/vmlinux-${KERNEL_VERSION} |  | ||||||
| 	[ -e Module.symvers ] && install -m 0644 Module.symvers ${D}/${KERNEL_IMAGEDEST}/Module.symvers-${KERNEL_VERSION} |  | ||||||
| 	install -d ${D}${sysconfdir}/modules-load.d |  | ||||||
| 	install -d ${D}${sysconfdir}/modprobe.d |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| require recipes-kernel/linux/linux-yocto-coreos-efi.inc |  | ||||||
|  | @ -10,7 +10,6 @@ BBLAYERS ?= " \ | ||||||
|   ##COREOS_LAYERSDIR##/meta-belden-coreos \ |   ##COREOS_LAYERSDIR##/meta-belden-coreos \ | ||||||
|   ##COREOS_LAYERSDIR##/meta-belden-coreos-bsp \ |   ##COREOS_LAYERSDIR##/meta-belden-coreos-bsp \ | ||||||
|   ##COREOS_LAYERSDIR##/meta-belden-marvell-bsp \ |   ##COREOS_LAYERSDIR##/meta-belden-marvell-bsp \ | ||||||
|   ##COREOS_LAYERSDIR##/meta-netmodule-coreos-bsp \ |  | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-oe \ |   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-oe \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-networking \ |   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-networking \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-filesystems \ |   ##COREOS_EXTLAYERSDIR##/meta-openembedded/meta-filesystems \ | ||||||
|  | @ -19,12 +18,8 @@ BBLAYERS ?= " \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-virtualization \ |   ##COREOS_EXTLAYERSDIR##/meta-virtualization \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-efibootguard \ |   ##COREOS_EXTLAYERSDIR##/meta-efibootguard \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-swupdate \ |   ##COREOS_EXTLAYERSDIR##/meta-swupdate \ | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-arm/meta-arm \ |  | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-arm/meta-arm-toolchain \ |  | ||||||
|   ##COREOS_EXTLAYERSDIR##/meta-ti/meta-ti-bsp \ |  | ||||||
|   ##NWL_LAYERSDIR##/meta-nwl-distro \ |   ##NWL_LAYERSDIR##/meta-nwl-distro \ | ||||||
|   ##NWL_LAYERSDIR##/meta-netmodule-legacy-bsp \ |   ##NWL_LAYERSDIR##/meta-netmodule-legacy-bsp \ | ||||||
|   ##NWL_LAYERSDIR##/meta-nwl-marvell-bsp \ |  | ||||||
|   ##NWL_EXTLAYERSDIR##/meta-netmodule-wlan \ |   ##NWL_EXTLAYERSDIR##/meta-netmodule-wlan \ | ||||||
|   " |   " | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -27,8 +27,8 @@ | ||||||
| You can now run 'bitbake <target>' | You can now run 'bitbake <target>' | ||||||
| 
 | 
 | ||||||
| Common targets are: | Common targets are: | ||||||
|     nwl-ramdisk-minimal |     nwl-image-minimal | ||||||
|     nwl-test-image |     nwl-image-testable | ||||||
| 
 | 
 | ||||||
| You can also run generated qemu images with a command like 'runqemu qemuarm64'. | You can also run generated qemu images with a command like 'runqemu qemuarm64'. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -26,7 +26,6 @@ | ||||||
| #MACHINE ?= "qemux86" | #MACHINE ?= "qemux86" | ||||||
| #MACHINE ?= "qemux86-64" | #MACHINE ?= "qemux86-64" | ||||||
| #MACHINE ?= "cn9130-cf-pro" | #MACHINE ?= "cn9130-cf-pro" | ||||||
| #MACHINE ?= "cn9131-nitroc" |  | ||||||
| # | # | ||||||
| # This sets the default machine to be qemuarm64 if no other machine is selected: | # This sets the default machine to be qemuarm64 if no other machine is selected: | ||||||
| MACHINE ??= "cn9130-cf-pro" | MACHINE ??= "cn9130-cf-pro" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue