Commit Graph

552 Commits

Author SHA1 Message Date
Lucien Mueller 180f8c8028 scfw: dlm update to 02348b77dae2096e536a193f51936d2294efbad8
master update to 29839d110cf4566709b1f2ba653df6638d5ad95d

BugzID: 75851

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-12-10 13:51:22 +01:00
Alexandre Bard 8bc99070fa udev-rules-nmhw: Update rule to also add scripts
Some scripts trigerred by udev rules must also be installed.

BugzID: 75479
2021-12-10 09:48:38 +01:00
Alexandre Bard 27a82d21c9 linux-netmodule: Update kernel to 5.10 branch
BugzID: 75479
2021-12-09 16:07:03 +01:00
Marc Mattmueller d887e262a8 storage-info: set license to MIT
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-29 09:50:24 +01:00
Marc Mattmueller 4856b5a3d8 storage-info: adapted install of config and systemd service files
those files reside now in the repository itself, thus the recipe
needed to be adapted

BugzID: 75350
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-24 15:59:21 +01:00
Marc Mattmueller 842e337481 recipes-bsp: added storage-info as systemd service
BugzID: 75350
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-24 15:38:27 +01:00
Marc Mattmueller 96c52172f7 linux-netmodule: changed git url from gitea to (internal) gitlab
BugzID: 75775
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-17 17:01:31 +01:00
Alexandre Bard 405c374f05 linux-netmodule: Remove redundant find_cfgs function
This function is already present in the cml1 bbclass which is
automatically inherited by the kernel bbclass.

BugzID: 75318
2021-10-19 10:39:18 +02: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
Alexandre Bard 7bc85ccf32 linux-netmodule: Remove useless do_install steps
The two "ifs" are covering cases where the fitImage is not used and we
don't support this case.

And as the Module.symvers comment says, this has been fixed upstream in
kernel.bbclass.

BugzID: 75220
2021-10-12 16:44:43 +02:00
Lucien Mueller 23ef02e236 u-boot: use mainline u-boot.inc
Our u-boot-nm.inc was just a copy of an outdated u-boot.inc.
I now changed the u-boot-nm.inc file to be a common configuration file
for our u-boot recipes.

BugzID: 75187

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-10-12 13:42:21 +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 8c76216b9b linux-netmodule: Remove useless HW23 overrides
The only thing which is different for HW23 is the kernel source (which
contains a different license)

BugzID: 74961
2021-09-24 16:34:54 +02:00
Alexandre Bard 7627d49b28 linux-netmodule: Remove PV variables
These values are out of date with the real kernel versions and may be
misleading. Since we have only one version of the kernel, we can remove
them and "git" will be used as default value.

BugzID: 74959
2021-09-24 16:06:53 +02:00
Alexandre Bard 3efbecb49f linux-netmodule: Remove symlinks for devicetrees
These symlinks were required for compatibility with NRSW u-boot.
Since we are now using fitimage, the name of the devicetree is not
relevant since it is directly part of the fitimage.

BugzID: 74958
2021-09-24 15:48:22 +02:00
Alexandre Bard dc6566f9a6 linux-netmodule: Don't install kernel in /boot directory
We don't need the kernel in the rootfs since it is always packed into a
fitimage.

BugzID: 74573
2021-09-02 13:19:11 +02:00
Lucien Mueller 93af481ded hw23: remove additional configs.
BugzID: 74562

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-09-01 13:19:03 +02:00
Alexandre Bard c76e078016 kernel-fitimage: Fix fpga support in fitimage
Instead of rewriting the full fitimage_assemble, we can just append to
the part generating the kernel entry, therefore reducing the duplicated
code.

BugzID: 74530
2021-08-30 11:03:16 +02:00
Alexandre Bard 29d4398168 gpsd.bbappend: Use machine features instead of machine overrides
With this approach, we just need to change a machine.conf file to add
advanced-gnss to machine_feature in machine.conf to enable gnss-mgr,
force gpsd to start with 115200 bitrate and to disable gpsd service
because it will be started by gnss-mgr.

BugzID: 74458
2021-08-26 13:11:56 +02:00
Lucien Mueller 26e480a6e0 netmodule-fitimage: do_assemble_fitimage is now run before the do_deploy
step.

BugzID: 74417

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-08-24 13:12:36 +02:00
Alexandre Bard a9ac74dac7 u-boot-armada: Deploy u-boot-spl.kwb file
This is the name used for the wic file creation.

BugzID: 74357
2021-08-23 15:02:36 +02:00
Alexandre Bard 139bb581ba u-boot-ti: Deploy MLO and u-boot.img files
These are the names used for the wic file creation.

BugzID: 74357
2021-08-23 14:16:56 +02:00
Alexandre Bard 4d68c84dfc u-boot: fix name of deployed artifacts
And also reduce the number of created artifacts and simplify do_deploy.
The rm commands are not required. bitbake is smart enough to remove the
old deployed artifacts of a recipe.

BugzID: 74357

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2021-08-19 22:20:41 +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
Lucien Mueller cac425ad89 Add missing UBOOT_LOADADDRESS variable.
Because we don't have the kernel class in the netmodule-fitimage recipe,
we have to add this line there.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-08-04 09:24:47 +02:00
Lucien Mueller dd047c4fbd fix the PROVIDES variable.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-08-03 13:51:40 +02:00
Lucien Mueller 898c9d60a8 fix ostree build with netmodule-fitimage.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-08-03 12:20:09 +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
Stefan Eichenberger 1b86182dc6 ssc-sysstate-driver: add Module.symvers path
Make sure that the sysstate driver finds the Module.symvers file of the
broker driver.

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
2021-06-09 18:38:59 +02:00
Alexandre Bard 89440ae8d9 imx-sc-firmware: Cleanup
Removed state machine, ignition handling and V2X power handling.

BugzID: 73163
2021-06-09 15:24:27 +02:00
Marc Mattmueller ddd720dc11 v2x: added error check when aborting get_status in v2x-fw-load
BugzID: 67750
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-08 12:59:12 +02:00
Marc Mattmueller f626798f94 v2x-fw-load: waiting for exiting DFU mode with placeholder fw
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 18:40:49 +02:00
Marc Mattmueller db235c3453 v2x: added config file for shipment
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 16:55:02 +02:00
Marc Mattmueller c18178f212 gnss-init: reverted the gnss-init service back to "original" state
Reason for reverting to originial state:
- adaption of the v2x-fw-load script
- re-introduction of the v2x recipe in all of our images
- no difference when wainting on USB disconnect event or directly
  releaseing the gnss module from its reset

BTW: The original timeout of 50s can be explained as the SCU held a
delay of 40s until powering the v2x module. This delay shall be
removed in the next couple of days.

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 14:46:32 +02:00
Marc Mattmueller b9e18a3a0b gnss-init: disable device state check when timeout is set to 0 (default)
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-07 14:06:18 +02:00
Marc Mattmueller 21679f459f v2x: reworked the v2x-fw-load script for shell
BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 22:32:10 +02:00
Marc Mattmueller 29bc1b86ac v2x: removed capture of get_status error during abort
we power cylce now the power of the v2x module hence it is no longer
needed.

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 17:41:46 +02:00
Marc Mattmueller 06295ec022 v2x: v2x-fw-load script reads a config file, where the fw load can be skipped
the v2x-fw-load script was refactored and ready now a config file. The v2x
recipe installs a v2x config file depending on a distro variable
V2X_ENABLE_FW_LOAD. Inthere it is possible to declare a parameter line like
'is-placeholder-firmware=true' to skip the firmware load in the v2x-fw-load
script. The skip includes also the detection of the DFU mode of the module.

These changes enables us to introduce the v2x package in all our images so
that the service doesn't fail anymore when we are using our placeholder
firmware.

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-03 17:01:51 +02:00