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

ARM Support? #109

Closed
drautb opened this Issue Dec 4, 2015 · 19 comments

Comments

Projects
None yet
7 participants
@drautb

drautb commented Dec 4, 2015

I'd like to use this on a Raspberry Pi. I'm willing to attempt building it myself, but it would super nice if there were a binary for ARM architectures too.

@rephus

This comment has been minimized.

rephus commented Feb 8, 2016

+1
I'd prefer not to install and setup golang (or any other dependency) on my Pi just to build this.

@troy

This comment has been minimized.

Contributor

troy commented Feb 8, 2016

Anyone have experience cross-compiling to ARM (from Linux) for the Pi and/or Pi 2? Some docs imply that just setting GOARM=6 is enough, other docs say, well, otherwise :-)

@leonsodhi

This comment has been minimized.

leonsodhi commented Feb 8, 2016

It might be as easy as running ./all.bash (any other steps needed are listed here), changing the arch to arm, and then removing the -cgo switch. I believe it's even easier on Go 1.5, but r_s2 won't currently build on it so we're using 1.3 for the moment.

I don't have an ARM system to test on but did manage to produce a standard ARM binary and a GOARM=5 binary.

@jotadepicas

This comment has been minimized.

jotadepicas commented Apr 7, 2016

@leonsodhi I've just set it up on a raspberry pi B 3.18.9+ armv6l Raspbian wheezy and I can confirm it works ok. Thanks!

@leonsodhi

This comment has been minimized.

leonsodhi commented Apr 8, 2016

Thanks for confirming, @jotadepicas. Did you use the GOARM=5 binary, the other one, or maybe you built something yourself?

@johlym

This comment has been minimized.

Member

johlym commented Jun 1, 2016

I'm going to think about testing this in 0.18b2, maybe b3. I don't really have any devices to test this on so I don't know if it'll make it to the GM.

@johlym johlym added this to the 0.18 Beta 2 milestone Jun 1, 2016

@johlym johlym self-assigned this Jun 1, 2016

@johlym

This comment has been minimized.

Member

johlym commented Jun 1, 2016

Will add it to the 0.18b2 milestone for now.

@johlym johlym removed this from the 0.18 Beta 2 milestone Jun 8, 2016

@johlym

This comment has been minimized.

Member

johlym commented Jun 8, 2016

Added ARM builds to 0.18b1 release. These are 100% UNTESTED at this time. YMMV.

@MonicaG

This comment has been minimized.

MonicaG commented Jun 10, 2016

Hi,

I am getting the following error when I install the "remote-syslog2_0.18_arm.deb" package:

command: sudo dpkg -i remote-syslog2_0.18_arm.deb

error:
dpkg: error processing archive remote-syslog2_0.18_arm.deb (--install):
package architecture (arm) does not match system (armhf)
Errors were encountered while processing:
remote-syslog2_0.18_arm.deb

I am using a raspberry pi 3.

@MonicaG

This comment has been minimized.

MonicaG commented Jun 10, 2016

Hi,

I tried the remote_syslog_linux_arm.tar.gz and it works! I was able to set it up and see log messages appearing on my dashboard.

Thank you @johlym! 😄

@johlym

This comment has been minimized.

Member

johlym commented Jun 10, 2016

Hi @MonicaG!

That's great news! The .deb and .rpm packages themselves are still pretty flaky so I'm honestly not surprised that it didn't work. I'm super happy to see the ARM binary is actually functional, though :)

I'm going to leave this open until I can test and verify on my own, especially those packages.

Thanks, again! Have a great weekend.

@johlym

This comment has been minimized.

Member

johlym commented Jun 10, 2016

@MonicaG If you're up for it, would you be interested in attempting to add arm architecture support?

dpkg --add-architecture arm

And retry the dpkg install?

@MonicaG

This comment has been minimized.

MonicaG commented Jun 10, 2016

Hi @johlym

I followed the instructions you gave above on my raspberry pi and the install worked! I did a quick test and verified that log messages were showing up on the papertrail dashboard.

Thank you! 😄

@johlym

This comment has been minimized.

Member

johlym commented Jun 14, 2016

@MonicaG Thanks for that :) I really appreciate it. I'll have an RPI next week so I would have discovered this eventually.

Which OS on your RPI 3 are you using?

@MonicaG

This comment has been minimized.

MonicaG commented Jun 15, 2016

Hi @johlym,

I am using the raspbian - jessie os, which I installed with NOOBS.

One side effect I noticed from using the dpkg --add-architecture arm command was I received errors when updating my pi. When I did sudo apt-get update I got errors stating:

'Unable to find expected entry 'main/binary-arm/Packages''

I was able to get around this by specifying [ arch=armhf ] in my /etc/apt/sources.list.d/raspi.list and /etc/apt/sources.list files. Example:

deb [arch=armhf] http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

Is it possible to compile for the armhf architecture to avoid this?

@johlym

This comment has been minimized.

Member

johlym commented Jun 15, 2016

@MonicaG thanks for making me aware of the hidden danger of --add-architecture arm. :)

I think it's possible but honestly I can't say for sure, yet, as I'm writing this before I've tried. I'll be able to find out in the next week or so. Stay tuned.

@johlym johlym added build and removed packaging labels Jun 16, 2016

@johlym johlym added this to the 0.18 Beta 2 milestone Jun 21, 2016

@johlym

This comment has been minimized.

Member

johlym commented Jun 27, 2016

I'm able to build with both ARM and ARMHF as platforms. I'm not entirely sure if there's a difference in the build process or the codebase. I know non-HF platforms lack a hardware floating point unit (hence the lack of HF) but what that means for the binary, I can only guess. Modern non-HF boards that are reasonable to use seem to be harder to get my hands on.

@johlym johlym referenced this issue Jun 29, 2016

Merged

Add armhf & darwin support to makefile #160

3 of 3 tasks complete
@johlym

This comment has been minimized.

Member

johlym commented Jun 29, 2016

Fixed in #160

@johlym johlym closed this Jun 29, 2016

@MonicaG

This comment has been minimized.

MonicaG commented Jul 3, 2016

@johlym - Cool! Thank you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment