Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup poky core-image-minimal + sdv-core image kas config #123

Merged
merged 2 commits into from
Feb 15, 2023

Conversation

vasilvas99
Copy link
Contributor

@vasilvas99 vasilvas99 commented Feb 14, 2023

Kas-config

  1. Directly include .config-components as a base (this would lead to all package groups being built, but only core is included in the image, e.g. no kantui)
  2. IMAGE_INSTALL packagegroup-sdv-core
  3. Set distro as poky and target as core-image minimal
  4. Use qemux86-64 as initial target machine

Results:

  • Successful build
  • Successful boot
  • Container management, kanto-cm available (No systemd unit, not autostarted, socket not created)
  • Containerd, runc available (no systemd unit)
  • kanto-auto-deployer available
  • ssh, sshd available. sshd working (you can ssh into the image with ssh -p 2222 root@127.0.0.1)
  • leda bash utils available but mostly broken (sdv-motd can't bind to kanto-cm socket, sdv-health fails on /etc/os-release not being available (running touch /etc/os-release lets it proceed however)
  • rauc available, but not working:
root@qemux86-64:~# rauc status
Error retrieving slot status via D-Bus: error creating proxy: Error calling StartServiceByName for de.pengutronix.rauc: Launch helper exited with unknown return code 1
  • mosquitto installed and running as service on localhost

Leda utils output

root@qemux86-64:/opt/containerd/bin# sdv-motd
 _          _       
| | ___  __| | __ _ 
| |/ _ \/ _` |/ _` |
| |  __/ (_| | (_| |
|_|\___|\__,_|\__,_|
Poky (Yocto Project Reference Distro) 4.0.7 \n \l (GNU/Linux 5.15.87-yocto-standard x86_64)
ip: can't find device 'eth0 '

 Hostname......: qemux86-64
 Uptime........: 0 days, 0:3 hours
 Ø System load.: 0.08 (1min)    | 0.07 (5min)   | 0.02 (15min)
 Disk Space....: Root: 304.9M   | Used: 251.8M  | Free: 32.3M
                 Data:          | Used:         | Free: 
 RAM ..........: Total: 223.9M  | Used: 81.0M   | Free: 16.3M
 Network.......: Interface : eth0 
                 IP Address: 
 Containers....: 0 running      | 0 stopped     | 0 exited

To check SDV services health, run $ sdv-health
Use $ sdv-device-info to display device configuration
Use $ sdv-provision to generate self-signed device certificates

/usr/bin/sdv-motd: line 99: systemctl: not found
Warning:  Container Management is not yet up and running.
root@qemux86-64:~# sdv-health
[SDV Info]
  * OS Release:             : 
  * Image Version:          : Poky (Yocto Project Reference Distro) 4.0.7 \n \l
  * Build Time:             : 20180309123456
-----------------------------------------------------------
[CAN Status]
  * can0                    : FAILED!    (can0 not found)
-----------------------------------------------------------
[SDV Ports]
  * OpenSSH                 : FAILED!    Port 22 not open!
  * Kanto CM                : FAILED!    Socket /run/container-management/container-management.sock not open!
  * Mosquitto Server        : FAILED!    Port 1883 not open!
-----------------------------------------------------------
[SDV Services]
  * containerd              : FAILED!    (/usr/bin/sdv-health: line 97: systemctl: not found)
  * rauc                    : FAILED!    (/usr/bin/sdv-health: line 97: systemctl: not found)
  * container-management    : FAILED!    (/usr/bin/sdv-health: line 97: systemctl: not found)
[SDV Optional Services]
  * sshd.socket             : N/A        (/usr/bin/sdv-health: line 97: systemctl: not found)
  * systemd-networkd        : N/A        (/usr/bin/sdv-health: line 97: systemctl: not found)
  * systemd-timesyncd       : N/A        (/usr/bin/sdv-health: line 97: systemctl: not found)
/usr/bin/sdv-health: line 428: systemctl: not found
-----------------------------------------------------------
[Kanto CM Containers]
  * Kanto Container Management               : FAILED! (Unavailable)
-----------------------------------------------------------
[Kanto CM Containers (OPTIONAL)]
  * Kanto Container Management               : FAILED! (Unavailable)
-----------------------------------------------------------
[SDV Connectivity]
  * Ping [Internet]         : FAILED!    (error: 1)      (ping 1.1.1.1)
/usr/bin/sdv-health: line 446: resolvectl: not found
  * DNS Lookup [Internet]   : OK         ()
/usr/bin/sdv-health: line 203: mosquitto_sub: not found
  * Cloud Connector         : FAILED!
/usr/bin/sdv-health: line 227: mosquitto_rr: not found
  * Device ID:              : FAILED!    (127)
-----------------------------------------------------------

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vasilvas99 vasilvas99 marked this pull request as ready for review February 15, 2023 08:55
Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stlachev stlachev merged commit b501031 into eclipse-leda:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants