Skip to content

get_sysType() returns incorrect value for 32 bit userspace with 64 bit kernel #4777

Closed
@stuartf

Description

@stuartf

What kind of issue is this?

  • Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to the
    PlatformIO IDE for VSCode repository

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Raspbian 12.1

PlatformIO Version (platformio --version): 6.1.11

Description of problem

get_systype() in platformio/util.py returns the wrong architecture when run in docker on a 64 bit kernel with 32 bit userspace

Steps to Reproduce

  1. docker run -it python /bin/bash
  2. pip install platformio
  3. python
  4. from platformio import util
  5. util.get_systype()

Actual Results

'linux_aarch64'

Expected Results

'linux_armv7l'

Related issues

esphome/issues#3092
esphome/issues#4959

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions