GithubHelp home page GithubHelp logo

mipsle compile about serial HOT 4 CLOSED

tarm avatar tarm commented on July 20, 2024
mipsle compile

from serial.

Comments (4)

tarm avatar tarm commented on July 20, 2024

Looks the same as this issue:
golang/go#18866

Looks like there are some suggested approaches in that thread.

I would be open to patches that specialize with build constraints based on GOARCH (we have build constraints based on GOOS and CGO right now, but not GOARCH).

from serial.

ljubomirb avatar ljubomirb commented on July 20, 2024

the same issue with GOARCH=mips
(using Go 1.9.2)

EDIT:
after a whole day of try and error, and after trying several other serial port packages for GO, I've found that package: "github.com/jacobsa/go-serial/serial" works for MIPS, however, I needed to cross-compile c++ program (included in comments there) to test it on my MIPS platform (in my case, ar7xxx). After that, I was able to find out that constants to be changed there are:

original LINUX
	kTCSETS2 = 0x402C542B
	kBOTHER  = 0x1000
	kNCCS    = 19

changes for AR7xxx
       TCSETS2 = 0x8030542B
       BOTHER  = 0x00001000
       NCCS    = 23

After that, that package works. However, this is way complicated, time consuming, and not portable (one would have to cross compile c++, and manually change constants... etc etc).
I hope this information will help you fix this package, since otherwise it works fine. I'm guessing it's just a matter of some constants somewhere, but...

from serial.

nocko avatar nocko commented on July 20, 2024

This is still broken on mipsle and mips with the same error that OP reported.

After the merged patch, the missing fields are still referenced.

from serial.

tarm avatar tarm commented on July 20, 2024

@nocko I believe this is compiling as expected on mips. I just pushed a change to the travis.yml file that adds cross compile targets for arm, mips, and mipsle and those at least compile (I have not personally tested mips, but arm and x64 are in production).

from serial.

Related Issues (20)

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.