Commit Graph

31 Commits

Author SHA1 Message Date
Arturo Buzarra 3e0d713837 sysinfo: improve script to avoid errors on platforms without some variables
This commit improves the sysinfo script to skip error on platforms that don't
provide some variables.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 09:32:35 +02:00
Javier Viguera 2452e85a6b kirkstone migration: cosmetic, clean build warnings
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Gabriel Valcazar 52c37a6fe5 hardknott: meta-digi: replace GPL-2.0 license file with GPL-2.0-only
The common license file GPL-2.0 is now called GPL-2.0-only in poky, so we need
to reflect this name change to avoid errors

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Arturo Buzarra f6c2cec797 sysinfo: add 0x prefix to SEC_CONFIG_WORD to fix conditional expression
Commit c24d1d96 ("sysinfo: adapt script after removal of deprecated fsl_otp
driver") introduced a mistake masking the SEC_CONFIG[1] bit read from the OTP.
This commit fix the read command to force it in hex format and finally match
with the mask in the script.

https://jira.digi.com/browse/DEL-7263

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-15 11:10:09 +02:00
Arturo Buzarra 77e30407fd sysinfo: fix security status section for ConnectCore 8M platforms
Commit c24d1d96 ("sysinfo: adapt script after removal of deprecated fsl_otp
driver") introduced support to determine if a device is closed by checking
a new boolean property on the DT for the CC8X platforms, however the CC8M
platforms use the same mechanism. This commit modifies the sysinfo script to
check also the DT for the CC8M platforms.

https://jira.digi.com/browse/DEL-7263

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-07 09:32:42 +02:00
Arturo Buzarra 06189293f4 sysinfo: fix error on devices without SOC revision in their device tree
Commit cbb38440 ("meta-digi-dey: sysinfo: Add chip revision sysinfo output")
introduced a new script variable to determine the SOC revision of the module.
However this entry only is available on the CC8X platforms. This commit checks
if the entry exist and then tries to read it to avoid unexpected issues with
devices without this entry.

https://jira.digi.com/browse/DEL-7263

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-07 09:32:42 +02:00
Mike Engel cbb38440b6 meta-digi-dey: sysinfo: Add chip revision sysinfo output.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-7203
2020-09-14 07:15:48 +02:00
Hector Palacios c24d1d96a7 sysinfo: adapt script after removal of deprecated fsl_otp driver
- OTP section
  - Use just one fixed path to the OTP nvmem device descriptor (instead
    of a loop).
  - Use '-v' for dumping all values with hexdump.

- TrustFence section
  - For cc8x, determine if the device is closed by checking a new boolean
    property on the DT: digi,tf-open|closed
  - For the rest, check the SEC_CONFIG[1] bit using the new nvmem
    descriptor.
  - Change log from 'Device status' to 'Security status'
  - Report UNKNOWN if nvmem device does not exist.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7185
(cherry picked from commit f6a8de0067)
2020-07-24 13:13:37 +02:00
Francisco Gil Martinez 45058e35f9 sysinfo: improve the search of the otp folder
With the change of bsp now we have several entries under
/sys/bus/nvmem/devices/ in the CC6UL platform and we should
reduce the num of folders where the otp folder can be found.

ls /sys/bus/nvmem/devices/

bootloader
environment
imx-ocotp0
linux
recovery
rootfs
safe
update

https://jira.digi.com/browse/DEL-7082

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-05-12 09:07:07 +02:00
Arturo Buzarra 9c21f10698 meta-digi-dey: sysinfo: adapt script to CC8M platforms
https://jira.digi.com/browse/DEL-6911

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:37:25 +01:00
Jose Diaz de Grenu 2db7558236 sysinfo: add OTP values
The values of the OTP can be relevant for some issues.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-12-11 19:23:00 +01:00
Jose Diaz de Grenu 9e349305a3 sysinfo: add device tree used to the report
The device-tree being used on a system is a very important piece of
information to debug issues. On a host machine, dtc can be used to
reconstruct the DTS used from the /proc/device-tree folder structure.

While on it, remove extra white lines at the beginning and end.

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2019-03-21 11:15:34 +01:00
Arturo Buzarra d159eae03a meta-digi-dey: sysinfo: adapt script to CC8X platform
https://jira.digi.com/browse/DEL-6261

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-11-13 17:17:29 +01:00
Alex Gonzalez f85cd4e2ee meta-digi-dey: sysinfo: Fix for use with mainline kernels
* Check for file before using it

This just avoids the failure, on mainline access to OTP would need to be
done differently, see:

https://jira.digi.com/browse/ACL-163

* Use compatible node instead of digi,machine,name

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2018-10-09 14:57:59 +02:00
Arturo Buzarra 314d4c82d6 meta-digi: fix scripts to remove undesired warning ignoring null bytes
Bash v4.4 or higher warns when discarding NULL bytes in command substitution
output. Remove these bytes to avoid the undesired warnings.

https://jira.digi.com/browse/DEL-5588

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-01-24 17:59:14 +01:00
Arturo Buzarra 957e8623a5 sysinfo: fix IOEXP and MCA kernel nodes
This commit modifies sysinfo tool to use the kernel symlinks for
the devices instead of using the full node path and maintain
compatibility with different kernel versions.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-17 14:03:21 +02:00
Diaz de Grenu, Jose 234f783b81 sysinfo: remove errors if the IOEXP is not programmed
If the IOExpander is not programmed but the kernel is running its driver,
the following messages will appear when running sysinfo:

cat: can't open '/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-006e/hw_version': No such file or directory
cat: can't open '/sys/devices/platform/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-006e/fw_version': No such file or directory

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-10 10:53:22 +02:00
Javier Viguera 3fa939fdc3 Merge tag 'dey-2.2-r1.4' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-04 13:58:33 +02:00
Diaz de Grenu, Jose 02730dcdab sysinfo: add meta-digi revision
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-27 13:01:51 +02:00
Diaz de Grenu, Jose b75f48d1dc sysinfo: escape wildcard
Sysinfo was showing error messages if the working directory contains any file
with .log extension.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-19 10:57:26 +02:00
Alejandro Navarro 36d35d2ed4 sysinfo: add new wireless configuration files
We have introduced new default configuration files for wireless that do
not show on sysinfo, so add them if they exist.

https://jira.digi.com/browse/DEL-3974

Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-04-11 11:31:59 +02:00
Sebastian Pastor da6e2198b1 sysinfo: Add information about I/O Expander if present
Print the HW and FW versions for the I/O Expander in the CC6UL SBC platform.

https://jira.digi.com/browse/DEL-3958

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-03-24 18:42:23 +01:00
Hector Palacios 02a0b4ab0b sysinfo: (cosmetic) make 'Version' field a JIRA table header
Add missing | char to make 'version' field in JIRA table a
header.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-23 16:12:22 +01:00
Diaz de Grenu, Jose e0b7905d67 sysinfo: fix device status report
The OTP word read was incorrect. HW_OCOTP_CFG5 corresponds to bank 0 word 6.

https://jira.digi.com/browse/ADK4A-1129

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-08 14:52:12 +01:00
Gabriel Valcazar 32a234b0d1 sysinfo: Add wireless configuration info
Print the wireless configuration as well as supplicant and hostapd version info

https://jira.digi.com/browse/DEL-3147

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2016-11-04 17:57:13 +01:00
Diaz de Grenu, Jose 7a1f46175c sysinfo: Add information about TrustFence (TM)
https://jira.digi.com/browse/DEL-3025

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-02 13:11:42 +01:00
Diaz de Grenu, Jose 66728c99fd sysinfo: read U-Boot from the device tree
This allows to correctly read the U-Boot version when using encrypted images.
Leave the current implementation as a fallback, in case the system is using an
old U-Boot which does not populate the device tree property.

https://jira.digi.com/browse/DEL-3025

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-02 11:05:45 +01:00
Isaac Hermida dc5d85cb3b meta-digi-dey: sysinfo: add support for CC6UL
https://jira.digi.com/browse/DEL-2729

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +02:00
Isaac Hermida 529102b2dc meta-digi-dey: sysinfo: extend report information with more details
Extend the report with more details about:
 - memory usage
 - all network ports (-a) with their related PIDs (-p)
 - network link details (to determine if interface is up)

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-18 16:31:12 +02:00
Alex Gonzalez 7dda6380c2 meta-digi-dey: sysinfo: Use DISTRO and machine name.
The following utilities are supposed to be available on the environment's
PATH:

uptime, uname, cat, zcat, free, ps, mount, netstat, route, ifconfig, gzip

https://jira.digi.com/browse/DEL-2447

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-06-30 10:12:48 +02:00
Victor Rubio 0aa26fb70a meta-digi-dey: add sysinfo package to dey-core packagegroup
sysinfo is a bash script which gathers all the relevant information
from a running system on a timestamped compressed file.

https://jira.digi.com/browse/DEL-2447

Signed-off-by: Victor Rubio Victor.RubioTorroba@digi.com
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-02 20:04:31 +02:00