Git Product home page Git Product logo

atom-armv7l's Introduction

atom-armv7l

๐Ÿ‘‹ Hello! This repository contains several patched files and instructions that allow you to build and run Atom 1.23 on armv7l machines like Raspberry Pi's.

Building

Gettings sources & building

Firstly, clone Atom sources from 1.23-releases branch and this repository, then merge them:

git clone https://github.com/atom/atom.git -b 1.23-releases
git clone https://github.com/hypersad/atom-armv7l.git
cp -r atom-armv7l/script/* atom/script/
rm -rf atom-armv7l

Now you could start building:

cd atom
script/build

Building Atom on armv7l machines usually takes around 1-2 hours, but build time depends on your hardware.

Generating startup blob separately

This steps must be done on i386/amd64 machine.

We will use mksnapshot binaries for i386/amd64 with armv7l as target to get startup blob. I've tried to build mksnapshot binaries for armv7l that works natively, but Atom just throws Illegal instruction error with their blobs. Currently, I don't know how to skip this step and make snapshot natively. You could try to use i386 emulator for this, if you want of coure.

Get suitable mksnapshot binary. For now it is mksnapshot-v1.6.0-linux-armv7l:

wget https://github.com/electron/electron/releases/download/v1.6.0/mksnapshot-v1.6.0-linux-armv7l.zip
unzip -j mksnapshot-v1.6.0-linux-armv7l.zip mksnapshot
rm mksnapshot-v1.6.0-linux-armv7l.zip

Get generated startup snapshot (out/startup.js) from your armv7l machine. You could do it via scp, for example:

scp [email protected]:/home/helix/atom/out/startup.js startup.js

Generate startup blob from startup.js via mksnapshot:

./mksnapshot startup.js --startup_blob snapshot_blob.bin

Send generated startup blob back to your armv7l machine. You could do it via scp too, for example:

scp snapshot_blob.bin [email protected]:/home/helix/atom/out/atom-1.23.2-armv7l/snapshot_blob.bin

Now, you could try to launch Atom! ๐ŸŽ‰

Notes

This file was written on Raspberry Pi 3 Model B with Atom 1.23.2 :^)

atom-armv7l's People

Watchers

James Cloos avatar

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.