-
Notifications
You must be signed in to change notification settings - Fork 5.9k
ARM binary release #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@frozenmaple due to the resource usage of VSCode, no, its not possible unless you use a Memory-optimized version of Electron for Raspberry Pi. |
We'll be reducing the amount of memory Would running this on a PI just require us to have an ARM target? |
@kylecarbs yep, |
Will take a bit as nexe 2.x.x doesn't support arm as a target. |
@kylecarbs do you insist on using nexe? pkg is a similar project to create executable from Node project with arm support. It's just my two cents. |
Hm that's fair. We've considered using |
It would be amazing to be able to run this in docker on my Odroid XU4Q & ODROID-N2 when it's released. |
@Jakst3r are they arm64? If not you can forget it cause build time on qemu arm32 is like 10x and more. |
Looks like the Odroid XU4Q is out of the question, what do you think about the ODROID-N2? Odroid XU4Q = 32-bit ODROID-N2 = 64-bit |
@kylecarbs I would like to also note we need to tell V8 explicitly to use Ignition (JITLess) to lower memory requirements for ARM boards (but I believe we should also apply this to x86 as well). |
Would love to see this also. 👍 A couple notes on pkg though..
As much as I'd like to see ARM binaries, it seems like another option would be to just offer "binaries" for x86 (Linux, Mac, Windows), but Docker images to include ARM32 and ARM64 -- where the entrypoint is node rather than a packaged code-server binary. Really I'd find this project more useful on ARM than x86 for our projects. Would be great to have nice Web IDE access to IoT projects -- similar to how some devices used to bundle Cloud9 back in the day. For now we just mound the FS over SSH and use VS Code. :/ . @SuperSandro2000 is build time that important? I assume that would just be automated in the end. |
@Codelica I didn't pay to much attention to the arm builds yesterday and basically build amd64 trough qemu. Derp But I encountered another problem while building the image. The travis job https://travis-ci.org/SuperSandro2000/docker-images/jobs/506429199 And the problem with build times is that I hate using Docker Hub cause it is really slow and travis limits opensource projects to like 50 min of runtime. |
Progress has been made on this with our binary packager nbin. Should allow us to export for |
Any ETA on this? Pi server users would appreciate. |
@mqmq0 last time I checked it used so much RAM that you would need a pi for this alone. |
@mqmq0 the RAM usage of |
Another build for folks to try, this was build against buster on arm... it dies with an illegal instruction on my Pi Zero W though. The Pi Zero isn't a great test machine as it's armv6 and has only 512mb ram. @mirsella, @Toxblh or someone if you can give this a run and let me know if it starts... |
thanks, really appreciate your work, but i'm not using buster anymore haha |
I've created a new bug that describes the issue I'm hitting with armv6 build. Essentially it loads and looks like it's going to work but then node mysteriously exits with status 0. |
@deftdawg relative that #35 (comment) |
@deftdawg Maybe this can work on an RPi 4? |
Arm v6 now works but must be run with the unofficial build of 12.14.1 I'm still working on a problem with build.ts using too much memory for my little Pi Zero which prevents me from building a self-contained binary. |
Oh, I understand... but that means that some day even a docker container can be made which will work with armv6? |
@deftdawg I can try to build it on my RPi 3B, but I’m not fully understand how to do that |
I posted how I setup 12.14.1 on arm6 here Not sure if building on a Pi3 will work, I have one at home I may fire it up though I think making build.ts not buffer all 220MB of binary data in memory before writing it is the best way to fix the last issue. |
@radokristof |
Open the shell script and append |
New build; this was tested on the Raspberry Pi Zero (armv6), and Pi2 (armv7)... it requires nodejs-12.14.1-arm6 (script installs it in home dir) and raspbian or debian 9 or higher. Debug logging is off and I could not build the standalone binary with the Pi2, it dies at the same spot after attempting to allocate more than the 1GB of ram on the Pi2. |
@deftdawg Your build is work without some bugs on RPi3. Awesome. |
If you would like to try I wrap it to docker Just need to fix |
for people wanting to running on the Pi 3 and above you can get a 64bit userspace in buster via chroot
put this config in /etc/schroot/chroot.d/pi64
then run |
I just need 32bit arm docker image. will 32bit images not be supported ? |
the |
@brandosha I disable it just for the show its work)) But yes it's work, I can to recreate it with ARG params |
what does your docker run command look like ? |
@deftdawg How can I install that new build on my RPi? There is no script, just the packages extensions, node_modules, out and the files package.json and product.json. npm run start doesn‘t work either. |
Back out from that directory. There's a script called "cs-on-pi0w.sh" outside of it that you have to run. So far this build is working fine for me on Pi 4. |
@deftdawg Tried to find your build via http://69.195.146.38/code-server/cs-arm32.tar.bz2 and got a 404. I tried looking through the comments and couldn't find any other builds. Am I missing anything? I have a Raspberry Pi 4B |
@bpmct see "new build" link in this post #35 (comment) |
Hey guys update at #1337 (comment)
|
I have a RPi 3B+ module,and i hope code-server will be running within this platform, thank u
The text was updated successfully, but these errors were encountered: