Commit Graph

112 Commits

Author SHA1 Message Date
Mr Jenkins 7cad5c1048 meta-netmodule-bsp: updated source revisions 2023-12-13 11:09:21 +01:00
Mr Jenkins bc645c4c48 meta-netmodule-bsp: updated source revisions 2023-03-06 22:33:48 +01:00
Alexandre Bard a020f9406e lmsensors: Add ignition voltage to HW24
id:366281
2023-02-15 09:44:13 +01:00
Mr Jenkins 1f8c466f7d meta-netmodule-bsp: updated source revisions 2022-11-25 11:19:51 +01:00
Alexandre Bard 3c281d8e78 lmsensors: hw20: Remove input voltage
This is not implemented.
2022-09-27 08:50:13 +02:00
Alexandre Bard 76457f2106 lmsensors: Fully extend configs for DA9063 on all hardwares
BugzID: 81382
2022-09-13 15:00:44 +02:00
Alexandre Bard 275d265ee7 lmsensors: Add configs for HW21 and HW26
Label and compute all input from the PMIC.

BugzID: 81382
2022-09-12 16:31:11 +02:00
Alexandre Bard 2fca63a11b lmsensors-config: Update da9063 rules
Names with dashes are not allowed. They were working only because of a
patch.

BugzID: 81093
2022-08-24 10:00:47 +02:00
Alexandre Bard 9183a5f886 lmsensors: Remove uneeded patch
After discussion with the maintainers, the problem actually lies in the
kernel drivers where a dash is forbidden. But the da9063-hwmon driver
was using a deprecated function which was not checking the name.

BugzID: 81093
2022-08-24 09:59:10 +02:00
Alexandre Bard a8254343f4 Add lmsensors rules for HW24 and HW25
These two hardware have the ability to read out the wwan modem supply to
know when it is completely turned off.

This is abstracted to wwan-config through lmsensors rules.

BugzID: 80542
2022-08-16 15:55:05 +02:00
Alexandre Bard f4fcefbc19 Patch lmsensors to support da9063-hwmon driver
lmsensors is not able to handle driver names with dashes inside by
default.

BugzID: 80542
2022-08-16 15:55:05 +02:00
Marc Mattmueller a5300c936e u-boot: set default URL to public GitLab
BugzID: 80085
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-07-28 12:21:35 +02:00
Mr Jenkins 87cf99189d meta-netmodule-bsp: updated source revisions 2022-06-28 09:17:53 +02:00
Alexandre Bard 8b20e8ef04 fpga-image: Restrict compatible machines
This avoid a warning when building for machines which don't have an
fpga.
2022-06-10 19:07:10 +02:00
Mr Jenkins bf8e21637a meta-netmodule-bsp: updated source revisions 2022-05-31 12:22:29 +02:00
Alexandre Bard 8b8abe9561 fpga-image: Update HW18 image
BugzID: 77953
2022-05-05 15:42:31 +02:00
Alexandre Bard e99985266c fpga-image: Make compatible with HW17
BugzID: 77953
2022-05-05 15:42:08 +02:00
Alexandre Bard e284973988 mac-address-set: BT: do a hard reset when soft reset fails
It happens that a soft reset is failing and blocking the chip in a state
where it always times out. The only wait to get out of this is to hard
reset the bluetooth chip.

BugzID: 77171
2022-02-08 10:59:01 +01:00
Alexandre Bard b1540a4555 mac-address-set: Make the bt mac inverted on demand
Detecting if the mac address must be inverted means doing two resets of
the chip in a short period when the mac must be inverted.
These two resets is sometimes letting the BT chip in a state where it
does not answer for more than a minute.

Also fixes getopts string: options -w and -b don't have arguments.

BugzID: 77171
2022-02-03 16:52:44 +01:00
Patrick Zysset 7c3befb14c mac-address-set: use own services for bt and wlan settings
settin mac address of bt and wlan is now triggered in two separated
services.

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-31 23:43:02 +01:00
Patrick Zysset d4799485a9 mac-address-set: bug fixes and testify support
added several enhancements to the mac-address-set script:

- splittet wlan and bt address setting (use -w / -b options)
- fixed upper and lower case problem with vcu1 addresses
- fixed hexadecimal support with vcu2 addresses
- added testify support (incl. log_test function)

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-31 23:24:13 +01:00
Patrick Zysset 2734a8b02f mac-address-set: add testify unit-test
adding a unit test script which uses testify framework to test the
mac-address-set script for vuc1 and vcu2.

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-31 23:24:03 +01:00
Patrick Zysset 2173bda09c mac-address-set: add timeout to wait_on function
if a device is never getting ready on startup sequence, the wait_on()
function runs forever. with this patch it aborts after 10 seconds.

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-25 18:17:23 +01:00
Alexandre Bard 197b4f6f07 mac-address-set: start service before NetworkManager
If NetworkManager starts before, it may change the mac address for
scanning and store the chip mac address. When finaly using a static mac
address (for an established connection or AP) it will restore the chip
address instead of our address.

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-18 16:45:45 +01:00
Alexandre Bard da62ee6786 mac-address-set: adding vcu2 support (hw23)
After an overall refactoring this script now does:

 * Wait on devices being ready before changing the address
 * Handle errors when setting wlan or bluetooth mac address
 * Handle different MAC address schemes
 * Handle different behaviors when setting wlan mac:

On HW21, the address must be set while the interface is down, but on
HW23 it must be set while the interface is up and if it is down, no
error is thrown, so the modified address is checked.

 * Handle different behaviors while setting BT mac:

On HW21, the address must be given with the bytes in reverse order.
We therefore first try with the right order and check the address and
retry with the reversed address if it failed.

BugzID: 77171

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2022-01-18 16:43:06 +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
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
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
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 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
Marc Mattmueller e367bcf0c1 usb-hub/gnss-init: handle releasing resets at power-up and reboot
start-up changes:
 - usb-hub is just released from reset
 - gnss-init service calls a script twice:
   - as pre-step: checking the hub state depending on the start
                  reason:
                   - at reboot   --> just go on, at power-up
                   - at power-up --> wait for a USB disconnect
                                     of a device for a certain
                                     time
   - as start step: releasing gnss module from reset

shutdown changes:
 - no resets were triggered

BugzID: 72787
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-02 18:53:38 +02:00
Marc Mattmueller c2eabcb4e9 usb-hub/gnss-init: handle potential enabling within bootloader
The bootloader might already release the usb-hub, the v2x module and
the gnss modem from reset. Thus the usb-hub and the gnss modem are put
into reset first so that a proper enumeration would be possible.

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-20 13:42:44 +02:00
Marc Mattmueller 09903e21fc ubs-hub-reset/gnss-init: added postfix and fixed post command path
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-19 19:11:51 +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
Marc Mattmueller 2b3c3f3e9f v2x: added exit criteria when no v2x module was found on the usb bus
the v2x service won't fail anymore if no modem is found on the usb
bus.

BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-18 14:27:54 +02:00
Marc Mattmueller 0b52ba81d1 v2x: added recipe (moved from meta-netmodule-om)
BugzID: 72787

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-18 11:36:40 +02:00
Alexandre Bard da7ad95535 u-boot-hw23: Set empty initial environment
The default behavior is to try to build u-boot-initial-env
Which is not implemented in our u-boot repo.

Part of yocto update to dunfell release.

BugzID: 69636
2021-01-16 18:47:54 +01:00
Alexandre Bard b8efbe729a Get rid of u-boot-fw-utils
These tools are not required anymore and not present in dunfell release.

BugzID: 69636
2021-01-04 16:23:54 +01:00
Ramon Moesching 3bdeb0a83b u-boot-am335x-nmhw21: don't use symlink for hw26 artifacts
Replace with copy command.

BugzID: 69325

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-12-15 10:07:35 +01:00
Ramon Moesching 5bec9ecf1f u-boot-am335x-nmhw21: deploy nmhw21 as hw26 binaries
nmhw21 and hw26 are using common u-boot code base.
Thus we are creating symlink from nmhw21 to hw26.
With this fix jenkins packaging stage is working again.

BugzID: 69325

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-12-14 13:17:19 +01:00
Alexandre Bard f9eb3a95ee uboot: Prevent overwriting of build date
After changing the distro config to allow reproducible builds, a side
effect was that the date printed during uboot startup was 1 Jan 1970.

In order to get the real build date in uboot, we must unset the
SOURCE_DATE_EPOCH variable.

BugzID: 67738
2020-11-11 16:13:17 +01:00