Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Atom on ARM Information #7822

Closed
Closed

Description

@jlord

Hi 👋 This issue is an informational issue about the state of running Atom on computers with ARM processors (like those in Raspberry Pis and some Chromebooks).


Atom does not effectively work on ARM (July 9th, 2015)

atom-10-launch

It does, however, now build and launch on ARM (see image above from ARM Chromebook). This is due to the fact that Electron, as of v0.29.0 now builds an ARM compatible distribution ✨ (as an aside, this is really, really great news for future applications and tinkerers). But the latest versions of Electron use a newer version of Chrome and have not been tested against Atom which currently uses v.22.3 of Electron (at this time Electron was still named Atom-Shell). Typing and clicking don't work at all and/or trigger lots of exception notifications and render the application pretty useless. This could be because of the new Electron compatibility issues, but we can't be quite sure as we don't really know yet what those issues are.

What will it take to get there?

These errors will have to be sorted out and fixed. This is not on any roadmap right now and could be a lot of work (patches welcome! 🙌). Getting Atom upgraded to the latest Electron will help answer this question but it's not there just yet (#6877).

It's worth noting that even if Atom were on the latest Electron, you will still need to build it yourself because it requires some other adjustments (see below).

Want to try it out?

Maybe it will just work on your machine! I have a gist with the steps to build. It involves using forks of both apm (Atom's package manager) and Atom so that you can build apm with io.js instead of Node.js since the later does not support ARM.

Activity

  1. jlord commented on Jul 9, 2015

    @jlord
    Author
  2. zohead commented on Jul 22, 2015

    @zohead

    @jlord Are you using Samsung ARM Chromebook?

  3. jlord commented on Jul 23, 2015

    @jlord
    Author

    @zohead No, I have an 11" Asus C201.

  4. henrywright commented on Aug 25, 2015

    @henrywright

    @zohead I am.

  5. jacobrosenthal commented on Sep 10, 2015

    @jacobrosenthal

    Anyone tried again since #7877 landed? I dont have my arm box here

  6. jlord commented on Sep 10, 2015

    @jlord
    Author

    @jacobrosenthal I started to try, but got hung up on getting apm going. I have the fork of it so that it can use an ARM version of node and it had been working, but I started my system over from scratch and now it's not... I was thinking I would go ahead and make a branch to try and get atom/apm on the latest version of node, 4.0.0, which now has an ARM version.

  7. jacobrosenthal commented on Sep 11, 2015

    @jacobrosenthal

    I think that might be tough. My understanding is Node 4 is nan2 and electron v0.30.6 was purposely selected as the last nan1 release to dodge nan2 upgrades.

  8. jlord commented on Sep 11, 2015

    @jlord
    Author

    @jacobrosenthal I just built apm with this branch: atom/apm#430

    I had a bit of trouble on a couple modules but at least one was resolved and then the other maybe disappeared (ha).

    I just built Atom from this branch. I then move the apm I built to atom/apm/node_modules/ and rename it atom-package-manager. Then I run script/build within /atom.

    This works... Atom launches and there aren't errors, only opening a file as large (which is not in fact large) as package.json freezes the app basically and you get an application not responding dialog.

  9. jacobrosenthal commented on Oct 13, 2015

    @jacobrosenthal

    Took a shot today, patching out the apm and electron download
    https://github.com/jacobrosenthal/apm/tree/arm
    https://github.com/jacobrosenthal/atom/tree/arm

    I think I tried on 4.1.1 first and spellcheck and symbols failed, but when I tried again on 4.1.2 everything built, and it loads but to a chrome dev tools window with no tabs that I cant type into and in the console:

    jacob@gaia:~/Downloads$ /tmp/atom-build/Atom/atom 
    [11304:1013/052008:ERROR:browser_main_loop.cc(173)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
    [11304:1013/052012:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [11304:1013/052012:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [11304:1013/052012:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [11304:1013/052012:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command
    [11332:1013/052012:INFO:renderer_main.cc(200)] Renderer process started
    App load time: 3024ms
    [11350:1013/052016:INFO:renderer_main.cc(200)] Renderer process started
    [11304:1013/052016:INFO:CONSOLE(56)] "Error: Cannot find module '../build/Release/keyboard-layout-observer.node'
        at Module._resolveFilename (module.js:334:15)
        at Function.Module._resolveFilename (/tmp/atom-build/Atom/resources/app.asar/src/module-cache.js:383:52)
        at Function.Module._load (module.js:284:25)
        at Module.require (module.js:363:17)
        at require (module.js:382:17)
        at Object.<anonymous> (/tmp/atom-build/Atom/resources/app.asar/node_modules/atom-keymap/node_modules/keyboard-layout/lib/keyboard-layout.js:6:28)
        at Object.<anonymous> (/tmp/atom-build/Atom/resources/app.asar/node_modules/atom-keymap/node_modules/keyboard-layout/lib/keyboard-layout.js:50:4)
        at Module._compile (module.js:428:26)
        at Object.defineProperty.value [as .js] (/tmp/atom-build/Atom/resources/app.asar/src/compile-cache.js:169:21)
        at Module.load (module.js:353:32)", source: file:///tmp/atom-build/Atom/resources/app.asar/static/index.js (56)
    

    I looked at the current mac installer and indeed, app.asar.unpacked/node_modules/atom-keymap doesnt exist

  10. jacobrosenthal commented on Oct 17, 2015

    @jacobrosenthal

    apm merged node 4.2.1 support into master so trying again

    Node: v4.2.1
    npm: v2.14.7

    Same process as @jlord above, but to repeat

    It builds and 'works' but continuously spawns

    Atom Version: 1.2.0-dev-6495f1a
    System: Debian GNU/Linux
    Thrown From: Atom Core

    Stack Trace

    Uncaught TypeError: Cannot read property 'replace' of undefined

    At /home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-tile-component.js:265
    
    TypeError: Cannot read property 'replace' of undefined
        at LinesTileComponent.module.exports.LinesTileComponent.setLineInnerNodes (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-tile-component.js:265:72)
        at LinesTileComponent.module.exports.LinesTileComponent.buildLineNode (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-tile-component.js:198:14)
        at LinesTileComponent.module.exports.LinesTileComponent.updateLineNodes (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-tile-component.js:141:34)
        at LinesTileComponent.module.exports.LinesTileComponent.updateSync (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-tile-component.js:98:12)
        at LinesComponent.module.exports.TiledComponent.updateTileNodes (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/tiled-component.js:67:19)
        at LinesComponent.module.exports.TiledComponent.updateSync (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/tiled-component.js:30:12)
        at LinesYardstick.module.exports.LinesYardstick.prepareScreenRowsForMeasurement (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/lines-yardstick.js:26:37)
        at TextEditorPresenter.module.exports.TextEditorPresenter.getState (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/text-editor-presenter.js:183:27)
        at TextEditorComponent.module.exports.TextEditorComponent.updateSync (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/text-editor-component.js:199:38)
        at /home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/text-editor-component.js:302:28
        at ViewRegistry.module.exports.ViewRegistry.performDocumentUpdate (/home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/view-registry.js:177:9)
        at /home/jacob/Downloads/atom/buildir/Atom/resources/app.asar/src/view-registry.js:3:61
    

    Commands

    Config

    {}

    Installed Packages

    # User
    No installed packages
    
    # Dev
    No dev packages
  11. winstliu commented on Oct 17, 2015

    @winstliu
    Contributor
  12. as-cii commented on Oct 20, 2015

    @as-cii
    Contributor

    It seems like the GrammarRegistry isn't able to find a scope (scopeForId) and, therefore, it returns null. Not sure what the exact issue could be there, but it seems to point out towards first-mate not working correctly.

  13. franzhaas commented on Dec 25, 2015

    @franzhaas

    I just tried the build aproach described by jlord with atom 1.4.0-beta3 and it still works.
    (npm test showed no errors for the atom and the apm directory, and opening some files worked using odroid-xu4 with ubuntu preinstalled emmc card)

    I had to tweak the apm start script to remove the harmony-collectins flag tough...

    UPDATE While atom started over ssh -Y and looked promissing in the beginning, It is crashing and lacking responisitivity. This may be due to ssh -Y. I plan to try with a monitor....

    thanks,
    Franz

  14. NicoHood commented on Feb 29, 2016

    @NicoHood

    I tried to compile atom on raspberry pi 3 with the new ubuntu mate build for pi3. But it failed:

    sudo apt-get install build-essential git libgnome-keyring-dev fakeroot
    sudo apt-get install nodejs npm gcc g++ make
    sudo npm config set python /usr/bin/python2 -g
    sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
    
    git clone https://github.com/atom/atom
    cd atom/
    git fetch -p
    git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
    script/build
    pi@raspberrypi3:~/hackallthethings/atom$ script/build
    Node: v0.10.25
    npm: v1.4.21
    Installing build modules...
    => Took 731845ms.
    
    Installing apm...
    download not found: http://nodejs.org/dist/v0.10.40/node-v0.10.40-linux-arm.tar.gz
    npm ERR! Linux 4.1.18-v7+
    npm ERR! argv "node" "/home/pi/hackallthethings/atom/build/node_modules/.bin/npm" "--userconfig=/home/pi/hackallthethings/atom/build/.npmrc" "--target=0.10.35" "install" "--loglevel" "error"
    npm ERR! node v0.10.25
    npm ERR! npm  v2.13.3
    npm ERR! code ELIFECYCLE
    
    npm ERR! [email protected] install: `node ./script/download-node.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the [email protected] install script 'node ./script/download-node.js'.
    npm ERR! This is most likely a problem with the atom-package-manager package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node ./script/download-node.js
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls atom-package-manager
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/pi/hackallthethings/atom/apm/npm-debug.log

    It seems like a download is missing. Any ideas how to fix this?

  15. 95 remaining items

  16. mathuin commented on Dec 31, 2017

    @mathuin

    @hypersad I was able to build your repo on my Chromebook, running mksnapshot on an x86_64 system. I can open the Atom editor by executing ./out/atom-1.23.2-armv7l/atom. Yay!

  17. rdagger commented on Jan 1, 2018

    @rdagger

    @hypersad Very cool work! How's the performance?

  18. nonnymoose commented on Jan 4, 2018

    @nonnymoose

    @hypersad Build on my pi failed :(

    I created the issue hypersad/atom-armv7l#1

  19. danieltroger commented on May 13, 2018

    @danieltroger
  20. danieltroger commented on May 13, 2018

    @danieltroger
  21. acruzpr commented on May 19, 2018

    @acruzpr

    @hypersad Thanks for all the time an effort that you dedicated to this and make it a reality. I hope that the Atom team adds support for the armv7l platform soon. In the meantime, @nonnymoose @danieltroger there is an alternative out there that is easy to compile on armv7l.

  22. VA3SFA commented on Jul 2, 2018

    @VA3SFA

    I've just tried to build Atom on the Raspberry Pi but I still get the following error:

    Running electron-packager on /home/pi/atom/out/app with app name "atom"
    Error: Unsupported arch arm; must be one of: ia32, x64

    Even though I'm using electron 2.0.1, what else do I need to be able to build Atom on armv71?

    Thanks!

  23. gounthar commented on Oct 5, 2018

    @gounthar

    The Atom team does not support armv7l platform, and @hypersad your repo has gone.
    Where can I start from? I'm working on an Odroid XU4 running ArchLinux.
    Thanks!

  24. lock commented on Jun 14, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  25. locked as resolved and limited conversation to collaborators on Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions