Git Product home page Git Product logo

edi-var's People

Contributors

lueschem avatar villewitt avatar

Stargazers

 avatar  avatar

Watchers

 avatar

edi-var's Issues

Modifications for VAR-SOM-iMX8M-MINI

Hi, guys. Sorry for the beginner question but I'm not used to cross-compile/building embedded images in complex environments.
Could you guide me on how hard and what should I adopt in order to use your repo?

I'm currently using a Debian bullseye and would like to use Mender for OTA as you did. Thanks!

Create Initial Release

Open tasks till initial release:

  • Prepare bullseye cross development container
  • Make edi-boot-shim available for Debian bullseye
  • Upgrade U-Boot
  • Upgrade Kernel to 5.4
  • Upgrade to Debian Bullseye
  • Change default user (currently named imx)
  • Add libubootenv-tool package
  • Add fdisk package
  • Update README.md
  • Adjust Mender poll interval
  • Remove preconfigured WiFi
  • Document Kernel build
  • Dynamically mount firmware and data partition
  • Adjust primary boot.scr to boot from eMMC (mmcdev=2 instead of mmcdev=1)
  • Dynamically adjust fw_env.config on first boot
  • Dynamically adjust mender config on first boot
  • Switch device type to "-v2"
  • Switch to GPT partition table
  • Adjust copyright in write_doc, rootfs2image, image2mender, lxd2rootfs

Kernel: Enable binfmt_misc

Currently one edi-ci test fails:

variscite@var-som-mx8m-nano-f8dc7a452e20:~$ sudo systemctl list-units --failed
  UNIT                   LOAD   ACTIVE SUB    DESCRIPTION                     
● systemd-binfmt.service loaded failed failed Set Up Additional Binary Formats

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
variscite@var-som-mx8m-nano-f8dc7a452e20:~$ sudo systemctl status systemd-binfmt
× systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static)
     Active: failed (Result: exit-code) since Fri 2023-03-17 13:17:03 UTC; 14min ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             https://docs.kernel.org/admin-guide/binfmt-misc.html
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
    Process: 1780 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
   Main PID: 1780 (code=exited, status=1/FAILURE)
        CPU: 25ms

Mar 17 13:17:02 var-som-mx8m-nano-f8dc7a452e20 systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
Mar 17 13:17:03 var-som-mx8m-nano-f8dc7a452e20 systemd-binfmt[1780]: Failed to flush binfmt_misc rules, ignoring: No such file or directory
Mar 17 13:17:03 var-som-mx8m-nano-f8dc7a452e20 systemd-binfmt[1780]: /usr/lib/binfmt.d/python3.11.conf:1: Failed to add binary format 'python3.11': No such file or directory
Mar 17 13:17:03 var-som-mx8m-nano-f8dc7a452e20 systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
Mar 17 13:17:03 var-som-mx8m-nano-f8dc7a452e20 systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
Mar 17 13:17:03 var-som-mx8m-nano-f8dc7a452e20 systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.
variscite@var-som-mx8m-nano-f8dc7a452e20:~$ sudo ls /proc/sys/fs/binfmt_misc
ls: cannot access '/proc/sys/fs/binfmt_misc': No such file or directory

Required kernel option:

CONFIG_BINFMT_MISC=m

failed to build due to python3-apt package missing

Hello,
I try to build without any modification, but I'm facing this error
[WARNING]: Updating cache and auto-installing missing dependency: python3-apt
fatal: [edi-tmp-64928cb510fe1a1276d0]: FAILED! => {"changed": false, "cmd": "apt-get install --no-install-recommends python3-apt -y -q", "msg": "E: Package 'python3-apt' has no installation candidate", "rc": 100, "stderr": "E: Package 'python3-apt' has no installation candidate\n", "stderr_lines": ["E: Package 'python3-apt' has no installation candidate"], "stdout": "Reading package lists...\nBuilding dependency tree...\nPackage python3-apt is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\n\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Package python3-apt is not available, but is referred to by another package.", "This may mean that the package is missing, has been obsoleted, or", "is only available from another source", ""]}

how to fix that ?

Thank you

Identical machine-id on multiple devices

Problem Description

Despite the deletion of /etc/machine-id during the image build it was observed that the machine-id is identical on multiple device instances.

Root Cause

There is a "redundant" copy of /etc/machine-id in /var/lib/dbus/machine-id. During the first boot /etc/machine-id gets derived from /var/lib/dbus/machine-id.

Solution

Also delete /var/lib/dbus/machine-id during image build.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.