Commit Graph

87 Commits

Author SHA1 Message Date
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
Alexandre Bard a55783bb20 Add u-boot recipe for HW25
BugzID: 66158
2020-09-30 16:02:40 +02:00
Ramon Moesching 6f1f6a73ee u-boot-imx8-mek: remove recipe
BSP is not longer available.

BugzID: 63879

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-06-30 16:38:26 +02:00
Alexandre Bard 68727c8b26 Add bootloader-config tool
This tool is parsing first sector of MMC to find bootloaders, and then
reports the data of these bootloaders to /run/bootloader.

It also creates the file /dev/bootloaderX for each bootloader, allowing
to do a safe and redundant update.

BugzID: 62317
2020-04-01 10:10:57 +02:00
Alexandre Bard 1b87b138cd hw24: uboot: change u-boot defconfig name
u-boot defconfig name changed from nmhw24 to nrhw24

BugzID: 59516

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-10-11 11:22:49 +02:00
Ramon Moesching 21fe9db20c u-boot recipe: inital nmhw24 u-boot
BugzID: 58178 57912

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-08-14 10:34:48 +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 e6ad5c5a93 Use MACHINE_FEATURE to include ublox-gsm-config
BugzID: 57829
2019-07-09 10:29:06 +02:00
Ramon Moesching c979bab719 scfw_tcm firmware: latest binary, PMIC enable all peripherals
Reference: 7b583ec797b05bf5ca199c5bac7d4a64b4936e6a
Remote: git.netmodule.intranet:hancock/imx8-scfw.git
2019-07-05 16:14:40 +02:00
Ramon Moesching 8506320178 initial nmhw23 (imx8) bsp layer
To apply: include meta-netmodule-bsp/recipes-bsp/imx8 to local bblayer
Requires: offical meta-freescale layer
linux kernel: use 4.14 kernel exclusive for imx8

BugzID: 57544

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-07-05 16:14:09 +02:00
Andrejs Cainikovs a31869ff33 nmhw22 target renamed to nmhw23 2019-06-18 17:27:30 +02:00
Andrejs Cainikovs 5e82c74c04 Add imx8-nmhw22 target 2019-06-18 17:23:24 +02:00
Patrick Zysset d9cbc9d9fe nrhw18: remote u-boot recipe for deprecated hw
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-05-28 20:13:08 +02:00
Patrick Zysset 09db777a87 imx8-mek: adjust u-boot source tree
u-boot imx8-mek recipe is fetching from 2019.04/standard/imx8-mek
branch.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-05-23 14:50:54 +02:00
Andrejs Cainikovs aa546d3312 imx8-mek: add imx8-mek target
This is the official NXP imx8 evaluation board used as preview for nmhw23
target.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-05-23 14:50:12 +02:00
Alexandre Bard 168c584c96 nmhw21: mac-address-set: set wlan/bt mac address
on nmhw21 the following mac address scheme is used:
- Ethernet:    xx:xx:xx:50:xx:xx
- User Module: xx:xx:xx:60:xx:xx
- Wifi:        xx:xx:xx:70:xx:xx
- BT:          xx:xx:xx:80:xx:xx

Note: this scheme is only valid for nmhw21.

BugzID: 54514

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-05-23 14:47:21 +02:00
Alexandre Bard 473eafa303 fpga-image: Deploy fpga image to DEPLOYDIR
Deploying this image make it easily available to be added in
a fitImage.
2019-05-07 14:27:30 +02:00
Alexandre Bard 520aacff92 hw18: uboot: Use more meaningfull binary names 2019-04-23 12:01:32 +02:00
Alexandre Bard ea8c822d6d hw18: Cleanup and set ostree image configuration 2019-04-23 10:06:51 +02:00
Alexandre Bard 442fbdcd7b hw20:uboot: Use autorev to get latest version of uboot 2019-04-16 14:29:05 +02:00
Alexandre Bard dc9dbb89c4 hw16: uboot: Fix uboot revision for HW16_v2
It was using the same revision as v1 before: outdated
2019-04-16 14:12:01 +02:00
Alexandre Bard b968842975 Add mac-address-set
This script sets mac address of wifi and bluetooth chip
according to serial number

Also add NetworkManager config to not use random mac address on wifi

BugzID: 54514
2019-04-09 11:05:35 +02:00
Patrick Zysset c55e52e579 nrhw18: update fpga bitstream to v1.0
update fpga bitstream to v1.0 (imported from:
https://svn.netmodule.intranet/svn/projects/Projects/9100026_NRHW_18/FW_NRHW_18-MB/tags/20190314_FW_NBHW_18_v01.00/NBHW_18_deployement/LatticeDiamond/impl_nbhw18/output/LG00000000)

BugzID: 56159

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:05:35 +02:00
Patrick Zysset 3fbfab7cc0 u-boot: am335x: nrhw20: fix srcrev to 2018.07.17
use last known functional nrhw20 revision.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:05:35 +02:00
Patrick Zysset 915909c54e u-boot: am335x: update u-boot deployments
u-boot deployed files of am335x based platforms (nrhw16/20) should be renamed according former nmhw21 refactoring.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:05:35 +02:00
Patrick Zysset 37dfef71c7 nmhw21: remove v1 from am335x-nmhw21 u-boot name
since u-boot is backward compatible and today mainly used on v2 boards,
this naming is misleading.

BugzId: 55650

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:05:35 +02:00