Commit Graph

139 Commits

Author SHA1 Message Date
Alexandre Bard 17c6b96ac9 machine:hw20: Add gnss support 2023-05-22 08:36:01 +02:00
Alexandre Bard 6dc6ddc79c hw26/hw21: Fix order of machine overrides
For most of the overrides the order is not important since all overrides
are used.

But when using a file specific to a machine, only one override is used
and in this case the order is important: the last override matching is
used. So we must keep more specific overrides at the end.

id:366284
2023-02-15 09:44:30 +01:00
Alexandre Bard 5d00c9807b hw25: Remove machine override from hw24
This override was useful in the past when we had a lot of features
defined directly using the machine name. But now it is not needed
anymore.

It is actually the source of problems when using specific files for both
hw24 and 25: Since the HW24 overrides was at the end, the files for it
were always used and the files for HW25 were ignored.

id:366284
2023-02-15 09:44:23 +01:00
Alexandre Bard 6fa868f2d4 machines.conf: Add new machine hw26-vcupro
This is the new VCU pro based on HW26 but which includes the user
module.
Because of this change, we cannot reuse HW21 nor HW26 machines.

BugzID: 81969
2022-11-14 15:40:40 +01:00
Alexandre Bard 901c12f911 linux-netmodule: Split per kernel version
Instead of having one kernel recipe with two hashes, it makes more sense
and is easier to maintain two recipes with the same name but different
versions. The shared part is in an include file.

Each machine then chooses which version it wants to use with
PREFERRED_VERSION variable.

BugzID: 79987
2022-06-08 08:37:11 +02:00
Alexandre Bard d934b0e9d1 HW17: machine.conf: Rename and add machine features
Following new standard without nr or nb prefix in machine names.

BugzID: 77953
2022-05-05 15:41:13 +02:00
Alexandre Bard 58102512a5 HW17: machine.conf: Update kernel configuration
BugzID: 77953
2022-05-05 15:33:58 +02:00
Alexandre Bard cd3f47b05b armada: machine.conf: Update u-boot configs
BugzID: 77953
2022-05-05 15:02:28 +02:00
Alexandre Bard 54d559d706 hw23: Force wpa-supplicant and hostapd versions
hw23: Force wpa-supplicant and hostapd versions

meta-netmodule-wlan provides modified versions of these tools, but they
seem to not work properly on HW23. Since this HW is anyway not supported
in meta-netmodule-wlan, we force the usage of latest stable version.

BugzID: 77173

Co-authored-by: Patrick Zysset <patrick.zysset@netmodule.com>
Reviewed-on: https://git.netmodule.intranet/yoctoproject/meta-netmodule-bsp/pulls/111
Co-Authored-By: Alexandre Bard <alexandre.bard@netmodule.com>
Co-Committed-By: Alexandre Bard <alexandre.bard@netmodule.com>
2022-01-12 00:36:22 +01:00
Alexandre Bard 514cd7fd80 Add support for shared kernel between IMX machines
BugzID: 75223
2021-10-16 17:24:02 +02:00
Alexandre Bard 723c5db1de Use one kernel config for all armada devices
BugzID: 75223
2021-10-15 14:23:54 +02:00
Alexandre Bard 17f6ca3268 Move the kernel sharing variable into a common config file
BugzID: 75223
2021-10-15 14:23:54 +02:00
Alexandre Bard 17fae35e5e linux-kernel: Build only one kernel per platform
With this change we are building the same kernel config for all
hardwares belonging to the same platform. The configs only differ from
one or two drivers which are enabled or not and they are anyway not
loaded as long as the devicetree is not matching.

But having only one config for several hardwares is reducing maintenance
(like enabling or disabling kernel security features) and also reducing
build time when building for different machines.

BugzID: 75223
2021-10-15 14:05:12 +02:00
Lucien Mueller 554d477873 hw23, hw21: add da9063-ignition machine feature.
ATM the system state framework only works properly if we have the da9063
with working ignition.

BugzID: 74987

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-09-28 12:12:18 +02:00
Alexandre Bard 7cdc60e983 u-boot: make only one u-boot recipe per soc
BugzID: 74357

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-19 22:19:53 +02:00
Alexandre Bard b2bb823e3c machines.conf: add pci to MACHINE_FEATURES
This will bring pciutils automatically to all machines:
- all armada machines
- all am33x machines
- imx8 hw23

BugzID: 73589

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-19 22:19:41 +02:00
Alexandre Bard b0a1d9ead2 machines.conf: add machine feature user-module to hw21
and remove the machine feature on hw26 since it is derived from hw21
machine config.

BugzID: 73593

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-17 02:40:24 +02:00
Alexandre Bard 1fe3fd0780 machines.conf: add wifi machine features
In order to pull in some chip specific firmware / drivers or tool there
are also one specific wifi feature per wifi chip:
- ath-wifi for atheros chips
- ti-wifi for TI chips
- ublox-wifi for u-blox chips

BugzID: 75593

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-17 02:39:35 +02:00
Alexandre Bard 42f969ee33 machines.conf: add machine feature advanced-gnss to hw21 and hw23
This describes gnss chips with ADR which are supported by gnss-mgr.

BugzID: 73593

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-17 02:38:17 +02:00
Alexandre Bard 6204c7fbdc HW21+HW23: Add gnss as machine feature
BugzID: 73593
2021-08-02 13:00:07 +02:00
Alexandre Bard 7b757d4c9e HW21 + HW23: Add imu to machine features
BugzID: 73593
2021-08-02 13:00:07 +02:00
Alexandre Bard de1294228d HW21 and HW23: Add spi machine feature
BugzID: 73593
2021-08-02 13:00:07 +02:00
Alexandre Bard 200a4ee56b HW16: add wakeuptimer as a machine feature
BugzID: 73593
2021-08-02 13:00:07 +02:00
Alexandre Bard 473fedd18b machines.conf: Add can MACHINE_FEATURE when required
BugzID: 73593
2021-08-02 13:00:07 +02:00
Lucien Mueller 1bf9ce5778 add netmodule-fitimage recipe.
This recipe lets us create a fitimage outside of the kernel recipe.
For this to work we need to create just the zImage from the standard
 kernel recipe.

BugzID: 73616

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-07-30 12:37:35 +02:00
Marc Mattmueller dbdef42445 v2x/gnss-init/usb-hub-reset: extracted the usb hub reset part from v2x
The v2x firmware load script contained also the usb hub reset which
affects the GNSS modem. This means that the GNSS modem worked only
when the v2x recipe was enabled. But without firmware the v2x-service
fails at start-up which affects all other images except vcu.

Therefore the usb-hub reset part was extracted from the v2x firmware
load script so that we decouple those two functions. ZF/OM need a
failing v2x service when no firmware is loaded, thus the v2x service
was moved back to the vcu image (see meta-netmodule-om).

The systemd services v2x and gnss-init depend now on usb-hub-reset
whereas gnss-init additionally depends on v2x (if available).

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 12:22:47 +02:00
Alexandre Bard 007da9524c HW26: Add support for PPS
BugzID: 66249
2021-03-25 19:19:37 +01:00
Alexandre Bard 69b1bfbdad hw23: Use A35 tune instead of generic aarch64
Afer upgrading meta-freescale to dunfell, the new default tune is
a35-crypto instead of aarch64.

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard 8a4c0869d3 network-manager-conf: Don't always use eth0 as default
It was already the case for HW18: eth2 was the default.
Now with HW25, we can't rely either on eth0 name since it is assigned by
default to the wrong port.

We are therefor using lan0 for HW25 and make the nm-conf recipe more
generic.

BugzID: 69468
2020-12-14 14:05:27 +01:00
Alexandre Bard 3ffadd7487 HW23: Add machine feature imx-boot
Since imx-boot is different than a classic u-boot we need to handle it
separatly. bootloader-config does not support it so we use this variable
to remove it at build time.

BugzID: 69098
2020-11-24 13:56:59 +01:00
Ramon Moesching 1c88d5b97a ti33x.inc: add NM_TARGET and add it to MACHINEOVERRIDES
BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Ramon Moesching 1faf92f794 armada.inc: add NM_TARGET and add it to MACHINEOVERRIDES
BugzID: 67825

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-11-11 12:50:48 +01:00
Alexandre Bard 1125597f8a HW25: Remove bluetooth tools
Bluetooth is not supported on this board, therefor the related tools are
not required.

BugzID: 66158
2020-10-21 10:19:05 +02:00
Alexandre Bard 8a46892b27 hw25: Fix console definition
BugzID: 66158
2020-10-20 12:57:13 +02:00
Alexandre Bard a171b1c96a Add HW25 machine.conf
BugzID: 66158
2020-09-30 16:08:07 +02:00
Alexandre Bard 3538141bb0 DLM: Remove V2X support
The DLM board does not have V2X module. Therefor we must remove related
software components. These components will there be enabled by looking
at v2x in MACHINE_FEATURES.

BugzID: 66088
2020-09-23 17:35:10 +02:00
Alexandre Bard 83eae69159 Add new machine HW23-DLM
Variant of HW23 with different CPU

BugzID: 65899
2020-09-09 17:19:56 +02:00
Alexandre Bard 3349f227a0 hw26: Use machine overrides from HW21
Since HW26 is sharing a lot with HW21, we can avoid redefining
everything twice by using this feature.

BugzID: 63682
2020-09-08 14:35:33 +02:00
Ramon Moesching 64cbcbd2cd am335x-hw26.conf: initial machine configuration
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-09-08 13:37:49 +02:00
Ramon Moesching b9f6f0e3f7 am335x-hw26.conf: new machine configuration
Require nmhw21 as base machine

BugzID: 63681

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-24 15:54:32 +02:00
Alexandre Bard 26cc313322 wwan-config: replace ublox-gsm-config
wwan-config is a rework of ublox-gsm-config.
It is more generic and allows better extension and customization.

BugzID: 61873

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-03-06 02:22:50 +01:00
Lucien Mueller 41ac224de8 machine configuration: Define the SERIAL_CONSOLES parameter.
The SERIAL_CONSOLES defaults to ttyS0 and
therefore a getty on ttyS0 is opened by systemd.
set USE_VT to 0 because we don't have virtual ttys.

BugzID: 61141

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2020-02-04 14:17:14 +01:00
Patrick Zysset e9ae851dfe nmhw24: machine config: use default defconfig
renamed defconfig from <machine>-fct_defconfig to <machine>_defconfig.

BugzID: 60559

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-12-12 14:50:12 +01:00
Alexandre Bard a440f9b0b4 Add atsha to MACHINE_FEATURES
atsha is the security chip used on NetModule HW
BugzID: 58663
2019-09-13 10:44:05 +02:00
Ramon Moesching 4093099103 am335x-nmhw24: inital machine configuration
BugzID: 58178

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-08-14 11:42:39 +02:00
Ramon Moesching 899e555d31 imx8-nmhw23 conf: add jody-w1 pcie to ublox features (driver support)
meta-ublox-modules driver installation by packagegroups

BugzID: 58087

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-07-29 10:30:16 +02:00
Alexandre Bard c5c26793f6 hw21 and 23: Add neo-m8l to MACHINE_FEATURES 2019-07-23 11:49:11 +02:00
Alexandre Bard 667fbe16d9 tibluetooth: Cleanup and use MACHINE_FEATURES 2019-07-23 11:29:40 +02:00
Alexandre Bard f72bea9848 imx8: Move all recipes in main layer and use generic conf files from distro layer
To avoid problems when meta-freescale is not present, recipes-imx is masked
when building for other HWs.

meta-freescale us now dynamically added to bblayers when building for HW23.

BugzID: 57911
2019-07-16 18:14:35 +02:00
Alexandre Bard 83ab5b38c2 hw20: Add toby-l2 MACHINE_FEATURE 2019-07-15 14:18:05 +02:00