GithubHelp home page GithubHelp logo

platformio / platform-linux_arm Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 25.0 54 KB

Linux ARM: development platform for PlatformIO

Home Page: https://registry.platformio.org/platforms/platformio/linux_arm

License: Apache License 2.0

Python 100.00%
linux-arm platformio artik raspberry-pi wiringpi iot platformio-platform

platform-linux_arm's Introduction

Linux ARM: development platform for PlatformIO

Linux ARM is a Unix-like and mostly POSIX-compliant computer operating system (OS) assembled under the model of free and open-source software development and distribution. Using host OS (Mac OS X, Linux ARM) you can build native application for Linux ARM platform.

  • Home (home page in the PlatformIO Registry)
  • Documentation (advanced usage, packages, boards, frameworks, etc.)

Usage

  1. Install PlatformIO
  2. Create PlatformIO project and configure a platform option in platformio.ini file:

Stable version

[env:stable]
platform = linux_arm
board = ...
...

Development version

[env:development]
platform = https://github.com/platformio/platform-linux_arm.git
board = ...
...

Configuration

Please navigate to documentation.

platform-linux_arm's People

Contributors

ivankravets avatar matteofumagalli1275 avatar valeros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

platform-linux_arm's Issues

Can't use Platform.io Inspection: [sizedata] AssertionError

Hello,

This may be related with this thread, I'm not sure, since I'm using the toolchain-sdcc but the raspberry gcc, and linux_arm platform.

The problem is the same thought:

PIO Core Call Error: "Processing raspi2b (platform: linux_arm; board: raspberrypi_2b)
--------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/linux_arm/raspberrypi_2b.html
PLATFORM: Linux ARM (1.5.1) > Raspberry Pi 2 Model B
HARDWARE: BCM2836 900MHz, 1GB RAM, 1GB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ strict
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Mpx> (/home/ubuntu/workspaces/false.alarm/lib/Mpx)
Building in debug mode
Retrieved `build/raspi2b/src/main.o' from cache
Retrieved `build/raspi2b/libadc/Mpx/Mpx.o' from cache
Retrieved `build/raspi2b/libadc/libMpx.a' from cache
Retrieved `build/raspi2b/program' from cache
MethodWrapper([\"sizedata\"], [\"build/raspi2b/program\"])

*** [sizedata] AssertionError : 
Traceback (most recent call last):
 File \"/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Action.py\", line 1279, in execute
 result = self.execfunction(target=target, source=rsources, env=env)
 File \"/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py\", line 748, in __call__
 return self.method(*nargs, **kwargs)
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 224, in DumpSizeData
 for symbol in _collect_symbols_info(env, elffile, elf_path, sections):
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 159, in _collect_symbols_info
 symbol_locations = _get_symbol_locations(env, elf_path, symbol_addrs)
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 56, in _get_symbol_locations
 assert len(addrs) == len(locations)
AssertionError
========================== [FAILED] Took 4.09 seconds ==========================
Environment Status Duration
------------- -------- ------------
raspi2b FAILED 00:00:04.086
==================== 1 failed, 0 succeeded in 00:00:04.086 ===================="

It seems that on piosize.py, the function _get_symbols_locations is not receiving the proper debug symbols.

Support Raspberry Pi 4 B

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 appropriate repository:
    PlatformIO IDE for Atom or
    PlatformIO IDE for VSCode

  • [ X] 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

One vote for adding support for Raspberry Pi 4 B...


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

TypeError: argument of type 'NoneType' is not iterable

Configuration

Operating system: macOS Mojave 10.14.1

PlatformIO Version (platformio --version): 3.6.5

Description of problem

When running platformio run, after installing the dependencies, the whole thing fails with TypeError: argument of type 'NoneType' is not iterable.

Steps to Reproduce

  1. Run platformio run

Actual Results

➜ platformio run
Processing raspberrypi_zero (platform: linux_arm; board: raspberrypi_zero)
-----------------------------------------------------------------------------------------------------------
LibraryManager: Installing Grove_Temperature_And_Humidity_Sensor
git version 2.17.2 (Apple Git-113)
Cloning into '/Users/luca@machine/Projects/hytta/.piolibdeps/_tmp_installing-b8C8AV-package'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 13 (delta 0), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
LibraryManager: Installing Grove_Ultrasonic_Ranger
git version 2.17.2 (Apple Git-113)
Cloning into '/Users/luca@machine/Projects/hytta/.piolibdeps/_tmp_installing-In9kA1-package'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 15 (delta 3), reused 6 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
LibraryManager: Installing WiringPi
git version 2.17.2 (Apple Git-113)
Cloning into '/Users/luca@machine/Projects/hytta/.piolibdeps/_tmp_installing-eeniAc-package'...
remote: Enumerating objects: 216, done.
remote: Counting objects: 100% (216/216), done.
remote: Compressing objects: 100% (165/165), done.
remote: Total 216 (delta 93), reused 126 (delta 43), pack-reused 0
Receiving objects: 100% (216/216), 201.68 KiB | 913.00 KiB/s, done.
Resolving deltas: 100% (93/93), done.
LibraryManager: Installing aws-iot-device-sdk-embedded-C
git version 2.17.2 (Apple Git-113)
Cloning into '/Users/luca@machine/Projects/hytta/.piolibdeps/_tmp_installing-1uz2OG-package'...
remote: Enumerating objects: 154, done.
remote: Counting objects: 100% (154/154), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 154 (delta 25), reused 80 (delta 13), pack-reused 0
Receiving objects: 100% (154/154), 205.96 KiB | 840.00 KiB/s, done.
Resolving deltas: 100% (25/25), done.
Error: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/platformio/__main__.py", line 120, in main
    cli(None, None, None)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 16, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/platformio/commands/run.py", line 107, in cli
    result = (envname, ep.process())
  File "/usr/local/lib/python2.7/site-packages/platformio/commands/run.py", line 207, in process
    result = self._run()
  File "/usr/local/lib/python2.7/site-packages/platformio/commands/run.py", line 313, in _run
    return p.run(build_vars, build_targets, self.silent, self.verbose)
  File "/usr/local/lib/python2.7/site-packages/platformio/managers/platform.py", line 353, in run
    self.configure_default_packages(variables, targets)
  File "/Users/luca@machine/.platformio/platforms/linux_arm/platform.py", line 35, in configure_default_packages
    "pioframework"):
TypeError: argument of type 'NoneType' is not iterable

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
  https://docs.platformio.org/page/faq.html

* Report this problem to the developers
  https://github.com/platformio/platformio-core/issues

============================================================

Expected Results

Should run normally.

If problems with PlatformIO Build System:

The content of platformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[env:raspberrypi_zero]
platform = linux_arm
board = raspberrypi_zero
lib_deps =
  https://github.com/Seeed-Studio/Grove_Temperature_And_Humidity_Sensor
  https://github.com/Seeed-Studio/Grove_Ultrasonic_Ranger
  https://github.com/WiringPi/WiringPi
  https://github.com/aws/aws-iot-device-sdk-embedded-C

The package 'toolchain-gccarmlinuxgnueabi' is not available

Temporary solution

PlatformIO currently does not support cross-compilation for RaspberryPi and similar boards.
Please use one of:

a) PlatformIO Core directly on a target device
b) PIO Remote and work with your hardware from anywhere in the world.


Attempt to use the arm / raspberrypi platform. gets the error.
Error: The package 'toolchain-gccarmlinuxgnueabi' is not available for your system 'linux_x86_64'

Also had this error under 64 bit windows.


Configuration

Operating system: Linux, x86_64 x-ubuntu

PlatformIO Version (platformio --version):
PlatformIO, version 2.8.5

Description of problem

Steps to Reproduce

  1. Using the IDE, Initalise new project
  2. Select "Raspberry Pi 1 Model B"
  3. Click Initalize

Actual Results

PlaftormIO: Failed to initialize PlatformIO project!
Error: The package 'toolchain-gccarmlinuxgnueabi' is not available for your system 'linux_x86_64'

Expected Results

I would expect to be able to cross compile to arm from 64 bit linux..


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

WiringPi on RaspberryPi W

PIO Core Call Error: "The current working directory C:\Users\xvery\Documents\PlatformIO\Projects\Raspberry Pi W - WiringPi will be used for the project.\r\n\r\nThe next files/directories have been created in C:\Users\xvery\Documents\PlatformIO\Projects\Raspberry Pi W - WiringPi\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\nPlatform Manager: Installing linux_arm\r\nUnpacking\r\nPlatform Manager: linux_arm @ 1.5.1 has been installed!\r\nTool Manager: Installing toolchain-gccarmlinuxgnueabi @ ~1.40802.0\r\n\n\nError: Could not find the package with 'toolchain-gccarmlinuxgnueabi @ ~1.40802.0' requirements for your system 'windows_amd64'"


followed the remove linux_arm through cli and added through provided link and this was result in terminal

git version 2.34.1.windows.1
Cloning into 'C:\Users\xvery.platformio.cache\tmp\pkg-installing-0ct5bknq'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (23/23), done.
Receiving objects: lta 6), reused 20 (delta 3), pack-reused 0 eceiving objects: 14% (5/34)
Receiving objects: 100% (34/34), 12.63 KiB | 3.16 MiB/s, done.
Resolving deltas: 100% (6/6), done.
Platform Manager: linux_arm @ 1.5.1+sha.e87b828 has been installed!
Tool Manager: Installing platformio/toolchain-gccarmlinuxgnueabi @ ~1.40802.0
Error: Could not find the package with 'platformio/toolchain-gccarmlinuxgnueabi @ ~1.40802.0' requirements for your system 'windows_amd64'

Raspberry Pi Error

Trying to build a blink example on raspberry pi 2.
Got error:
screen shot 2017-06-03 at 15 55 59

Latest raspbian lite:
Linux bian 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux

How add Board_RK3568 into platformIO?

---------------- In English ----------------
[Question]
As title shows : How add Board_RK3568 into platformIO? I found that the platformIO board list not have "Board_RK3568", but I wanna add this "Board_RK3568" and use platformIO to build Linux Driver project for learning.
Dear author or warmhearted anyone else, please help me to figure this problem out.
Thanks a lot!
---------------- In Chinese ----------------
【问题】
正如标题说的,怎么把RK3568开发板添加到platformIO里,我想在这个插件里学习Linux内核驱动的知识。
亲爱的作者或者别的热心人,请帮助我解决这个问题。
万分感谢。

framework-wiringpi update complains about version requirement

Hi,

First of all I would like to thank you for this awesome software.

However, after upgrading platformio from version 2.11.2 to the current stable version 3.0.1 (and even the develop version 3.0.2a1), framework-wiringpi won't update complaining about version requirements. Subsequently I can't build anymore. Please see the console output below.

I'm building on a Raspberry Pi 2b running Raspian.

`ropu@devbox:~/devel/rpi$ pio run
[Fri Sep 9 15:58:35 2016] Processing raspberrypi_2b (platform: linux_arm, build_flags: -DBCM2835 -DRH_PLATFORM=RH_PLATFORM_RASPI -Ilib/RadioHead/RHutil -I/usr/include/event2 -lpthread -std=gnu++11 -L/usr/lib/arm-linux-gnueabihf -levent -levent_core -levent_pthreads, board: raspberrypi_2b, framework: wiringpi)

PackageManager: Installing framework-wiringpi @ ~1.232.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Warning! Package Mirror: Package version 1.1.0 doesn't satisfy requirements ~1.232.0
Looking for the another mirror...
Downloading [####################################] 100%
Unpacking [####################################] 100%
Warning! Package Mirror: Package version 1.1.0 doesn't satisfy requirements ~1.232.0
Looking for the another mirror...
Downloading [####################################] 100%
Unpacking [####################################] 100%
Warning! Package Mirror: Package version 1.1.0 doesn't satisfy requirements ~1.232.0
Looking for the another mirror...
Error: Can not install 'framework-wiringpi' with version requirements '~1.232.0' for your system 'linux_armv6l'`

Best regards,
Robin

Feature Request: VIM boards

I would like to see the addition of the VIM line of boards from Khadas
Link to site: https://www.khadas.com/vim
They're a nice set of boards with non standard 40pin gpio and seeing support for them in PlatformIO in VS Code would be great.

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.