Compare commits

...

27 Commits

Author SHA1 Message Date
Stefan Eichenberger f9cac0d428 meta-vcu3-bsp: update to latest version 2023-01-12 21:10:26 +01:00
Stefan Eichenberger cf356b06b9 meta-vcu3-bsp: update to latest version 2023-01-12 17:53:02 +01:00
Stefan Eichenberger 299c657bb1 meta-vcu3-bsp: update to latest version 2022-12-01 15:35:13 +01:00
Stefan Eichenberger 104298e31d meta-vcu3-bsp: update to latest version 2022-11-29 16:38:17 +01:00
Stefan Eichenberger f6509f8058 README.md: update README
Update the README and fix some information.
2022-11-17 15:13:15 +01:00
Stefan Eichenberger 25daf7270d local.conf: remove release_revisions.inc
Remove the dependency to release_revisions.inc. The recipes now use
fixed versions so that this is not required anymore.
2022-11-17 15:13:15 +01:00
Stefan Eichenberger 572e91d6f7 yocto-bsp: update to newer version
Update the Yocto BSP to a newer version. This involves also splitting
some recipes from meta-netmodule-bsp layer into meta-vcu3-bsp. This
allows us to update the other layers independently of meta-vcu3-bsp.

Further this release improves building an sdk with:
bitbake -c populate_sdk netmodule-linux-image
Also building a fit image is supported again when sourcing the
env.image-minimal.
2022-11-17 15:13:15 +01:00
Stefan Eichenberger 2bbfbc4a78 meta-netmodule-bsp: update to latest version 2022-11-10 10:10:43 +01:00
Stefan Eichenberger 04c9478555 meta-netmodule-bsp: update to latest version 2022-10-06 14:59:59 +02:00
Stefan Eichenberger 5e88af9c56 meta-netmodule-bsp: update to latest version 2022-10-06 14:04:29 +02:00
Stefan Eichenberger f0a15d0846 meta-netmodule: update to latest version 2022-10-04 17:39:07 +02:00
Stefan Eichenberger b0f282d300 meta-netmodule-bsp: bump to latest version 2022-09-29 16:52:53 +02:00
Stefan Eichenberger c671ea5941 meta-netmodule-bsp: update to latest version 2022-08-23 18:34:10 +02:00
Stefan Eichenberger 1a8d34d655 meta-netmodule-bsp: update to latest version 2022-08-17 09:53:31 +02:00
Stefan Eichenberger da4fec6935 meta-netmodule-bsp: update to latest version 2022-08-08 15:14:24 +02:00
Stefan Eichenberger 7b6299ce98 meta-netmodule-bsp: update to latest version 2022-08-08 14:48:27 +02:00
Stefan Eichenberger 74c8cb2d9f meta-netmodule-bsp: update to latest version 2022-08-02 14:37:56 +02:00
Stefan Eichenberger e70463fa81 meta-netmodule-bsp: update to latest version 2022-07-28 08:36:22 +02:00
Stefan Eichenberger 212ea42fe1 meta-netmodule-bsp: update to latest version 2022-07-21 11:43:14 +02:00
Stefan Eichenberger 67323f4756 meta-netmodule-bsp: update to latest version 2022-07-19 09:33:31 +02:00
Stefan Eichenberger dd3c65148d meta-netmodule-bsp: update to latest version 2022-07-05 15:55:05 +02:00
Stefan Eichenberger 0f042cdcd2 meta-netmodule-bsp: update to latest version 2022-06-23 15:14:01 +02:00
Stefan Eichenberger d4e76ebcbd meta-netmodule-bsp: update to latest version 2022-06-21 14:23:56 +02:00
Stefan Eichenberger 36b943c06a meta-netmodule-bsp: update to latest version
Update meta-netmodule-bsp to latest version with updated kernel and ipc.
2022-06-20 16:38:19 +02:00
Stefan Eichenberger 7a153b17ed meta-netmodule-bsp: update to latest version 2022-05-09 15:36:31 +02:00
Stefan Eichenberger cad80eca49 meta-netmodule-bsp: update to latest version 2022-05-02 11:35:35 +02:00
Stefan Eichenberger d132a774fc meta-netmodule-bsp: update to new version 2022-04-29 11:44:56 +02:00
15 changed files with 26 additions and 110 deletions

5
.gitmodules vendored
View File

@ -16,7 +16,7 @@
branch = dunfell
[submodule "meta-netmodule-bsp"]
path = meta-netmodule-bsp
url = git@gitlab.com:netmodule/procv_v2x/meta-netmodule-bsp.git
url = git@gitlab.com:netmodule/yoctoproject/meta-netmodule-bsp.git
branch = develop-procv22
[submodule "meta-netmodule-distro"]
path = meta-netmodule-distro
@ -25,3 +25,6 @@
[submodule "meta-netmodule-wlan"]
path = meta-netmodule-wlan
url = git@gitlab.com:netmodule/yoctoproject/meta-netmodule-wlan.git
[submodule "meta-vcu3-bsp"]
path = meta-vcu3-bsp
url = git@gitlab.com:netmodule/procv_v2x/meta-vcu3-bsp.git

View File

@ -11,14 +11,11 @@ git submodule init
git submodule update
```
### Copy PFE firmware
Please make sure that you copy the PFE firmware with the right version meta-netmodule-bsp/recipes-kernel/pfe/pfe_<version> to meta-netmodule-bsp/recipes-kernel/pfe/pfe/. You need to copy the class and util firmware files. This is necessary because the firmware is currently only available under NDA.
## Selecting hardware target
The hardware target can be selected by sourcing the machine_select script:
```
source machine_select
9 # Selecting ProCV2.2
9 # Selecting VCU3
```
## Building an image
@ -54,79 +51,3 @@ It can be build with the following commands:
source env.image-ostree
bitbake netmodule-linux-image-dev
```
## Usage
### 1000BaseT1
The PFE driver comes up automatically. However, it does by default rely on autoneg. This doesn't seem to work with the Göpel Media Converter EasyCON. Therefore, a reset is required. Currently pfe0 shares the reset signal with eth0. That's why the following works:
```
brginup.sh enable-pfe
ifconfig eth0 down
ifconfig eth0 up
```
Now the 1000BaseT1 PHY works in default mode.
### Modem
The modem is disabled by default. However, it is possible to enable it with the following command:
```
bringup.sh enable-modem
```
To use adb you have to do the following:
```
echo 0x2c7c >> ~/.android/adb_usb.ini
adb shell
```
### Wifi
Enable the Wifi module (make sure you enable the modem first):
```
bringup.sh enable-wifi
```
### ADCs
Read out the SPI ADCs:
```
bringup.sh read-adc
```
### IMU
To enable the IMU you can call enable-imu.sh:
```
bringup.sh enable-imu.sh
```
To communicate with the imu you can use test-imu.sh:
```
# Read/Write
bringup.sh read-write-imu /dev/spidev1.0 1 2020
# Read
bringup.sh read-write-imu /dev/spidev1.0 1
```
### Secure Element
To enable the secure elelment call enable-secure-element:
```
bringup.sh enable-secure-element
```
There is no helper for the secure element available yet. You can use spidev_test to communicate with it:
```
spidev_test --help
```
### V2X
Enable the V2X and load a firmware (make sure you enable the modem first):
```
bringup.sh enable-v2x <path to fw>
```
### GPIOS
Set gpio:
```
bringup.sh set-gpio <gpio> <value>
```
Get gpio:
```
bringup.sh get-gpio <gpio>
```

@ -1 +1 @@
Subproject commit 017a39ed05d065bf28fd38f91bcde8a098300551
Subproject commit 0784db7dd0fef6f0621ad8d74372f44e87fef950

View File

@ -17,4 +17,5 @@ BBLAYERS ?= " \
${YOCTOROOT}/meta-openembedded/meta-networking \
${YOCTOROOT}/meta-openembedded/meta-filesystems \
${YOCTOROOT}/meta-updater \
${YOCTOROOT}/meta-vcu3-bsp \
"

View File

@ -1 +1 @@
DISTRO_VERSION = "1.2.4"
DISTRO_VERSION = "1.5.2"

View File

@ -36,6 +36,5 @@ PREMIRRORS_prepend = "\
https://.*/.* file://${YOCTOROOT}/sla-mirror/ \n"
require distro_version.inc
require release_revisions.inc
require public-mirrors.inc
require proprietary-dev-tools.inc

View File

@ -1,19 +1,12 @@
# Changing internal SRC_URI to public
## Bootloaders
UBOOT_TI_SRC = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;user=git;branch=2016.05/standard/am335x;protocol=ssh;"
SRC_URI_pn-u-boot-am335x-nrhw16-v2 = "${UBOOT_TI_SRC}"
SRC_URI_pn-u-boot-am335x-nrhw20-v1 = "${UBOOT_TI_SRC}"
SRC_URI_pn-u-boot-am335x-nmhw21 = "${UBOOT_TI_SRC}"
SRC_URI_pn-u-boot-am335x-nmhw24 = "${UBOOT_TI_SRC}"
SRC_URI_pn-u-boot-am335x-hw25 = "${UBOOT_TI_SRC}"
SRC_URI_pn-u-boot-armada-385-nrhw18-v2 = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;user=git;branch=2017.11/standard/armada-385;protocol=ssh;"
SRC_URI_pn-u-boot-ti33x = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;user=git;branch=2016.05/standard/am335x;protocol=ssh;"
SRC_URI_pn-u-boot-armada = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;user=git;branch=2017.11/standard/armada-385;protocol=ssh;"
SRC_URI_pn-u-boot-imx8-nmhw23 = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;user=git;branch=2018.03/imx/imx8-nmhw23;protocol=ssh"
## Kernel
KERNEL_SRC = "git://gitlab.com/netmodule/kernel/linux-netmodule.git;user=git;branch=4.19/standard/base;protocol=ssh"
KERNEL_SRC = "git://gitlab.com/netmodule/kernel/linux-netmodule.git;user=git;branch=5.10/standard/base;protocol=ssh"
SRC_URI_pn-linux-netmodule = "${KERNEL_SRC}"
SRC_URI_pn-linux-netmodule-initramfs = "${KERNEL_SRC}"
@ -21,12 +14,10 @@ KERNEL_HW23_SRC = "git://gitlab.com/netmodule/kernel/linux-netmodule.git;user=gi
SRC_URI_pn-linux-netmodule_imx8-nmhw23 = "${KERNEL_HW23_SRC}"
SRC_URI_pn-linux-netmodule-initramfs_imx8-nmhw23 = "${KERNEL_HW23_SRC}"
# sys-mon
SRC_URI_pn-scripts-nm = "git://gitlab.com/netmodule/tools/features.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-json2textlog = "git://gitlab.com/netmodule/tools/json2textlog.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-sys-mon = "git://gitlab.com/netmodule/tools/features.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-sys-mon-native = "git://gitlab.com/netmodule/tools/features.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-nativesdk-sys-mon = "git://gitlab.com/netmodule/tools/features.git;user=git;branch=develop;protocol=ssh"
# tools
SRC_URI_pn-sys-mon = "git://gitlab.com/netmodule/tools/sys-mon.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-sys-mon-native = "git://gitlab.com/netmodule/tools/sys-mon.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-nativesdk-sys-mon = "git://gitlab.com/netmodule/tools/sys-mon.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-libnmapp = "git://gitlab.com/netmodule/tools/libnmapp.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-libnmapp-native = "git://gitlab.com/netmodule/tools/libnmapp.git;user=git;branch=develop;protocol=ssh"
SRC_URI_pn-nativesdk-libnmapp = "git://gitlab.com/netmodule/tools/libnmapp.git;user=git;branch=develop;protocol=ssh"

View File

@ -14,10 +14,10 @@ HW23="hw23 - VCU2"
HW24="hw24 - NB800 facelift"
HW25="hw25 - TC Router"
HW26="hw26 - NG800"
ProCV2X="ProCV2X - ZF ProCV2X"
VCU3="ZF - VCU3"
set -a
select opt in "$HW16" "$HW18" "$HW20" "$HW21" "$HW23" "$HW24" "$HW25" "$HW26" "$ProCV2X"
select opt in "$HW16" "$HW18" "$HW20" "$HW21" "$HW23" "$HW24" "$HW25" "$HW26" "$VCU3"
do
case $opt in
"$HW16")
@ -52,8 +52,8 @@ do
MACHINE=am335x-hw26
break
;;
"$ProCV2X")
MACHINE=s32g274a-procv22
"$VCU3")
MACHINE=s32g274a-vcu3
break
;;
*) echo "invalid option $opt";;

@ -1 +1 @@
Subproject commit e7e84f06534dd4f83c0c03ac5c16df6844b9847f
Subproject commit 87cf99189df44ae290407cd40d2e8a76a8c1c14d

@ -1 +1 @@
Subproject commit 719b0a2fdeb6ca1ddb1eafc335368808f3339a67
Subproject commit 6c6702a8cfa7832153439da5d159fe40533cacb7

@ -1 +1 @@
Subproject commit ab04a2ac667067516f51ddbd3ac499986a606813
Subproject commit afeb746c8e8d3b6daf5f05cdb1e692ea593db696

@ -1 +1 @@
Subproject commit c1a50683225b0bf10f8d7a18280acefa7469ecc2
Subproject commit 8ff12bfffcf0840d5518788a53d88d708ad3aae0

@ -1 +1 @@
Subproject commit 5d49b28570ed030924ed5d45fbced24d3cb6e588
Subproject commit f2f5ca077baa1f08001cff9608ae59ed4dbeca3d

1
meta-vcu3-bsp Submodule

@ -0,0 +1 @@
Subproject commit 728aed98b3a83a4c72f7d0264b2437dc3dc74036

@ -1 +1 @@
Subproject commit 2cc9e06807026b86038db88c2175c626feadc0be
Subproject commit 8e81d38048c953d0823abf04d5b2506cd988f0bb