GithubHelp home page GithubHelp logo

Comments (5)

n8henrie avatar n8henrie commented on August 13, 2024

Just tried to see if I could compile a Go binary (since they are statically linked and easy to cross-compile for ARM / Raspberry Pi), but I couldn't find any way to get a "hello world" to work compiling from my Mac using GOOS=linux GOARCH=arm GOARM=7 go build, also tried GOARM=6 and 7. Also tried compiling from a Raspberry Pi 3 with those same settings, no luck. Would get "invalid instruction" or a segfault when trying to run the binaries on my yi home 1080 v2.

So then I tried a C++ hello_world compiled on my Raspberry Pi 3: g++ -static hello_world.cpp -o hello_world, it also segfaults.

Any suggestions would be much appreciated.

from yi-hack-v2.

shadow-1 avatar shadow-1 commented on August 13, 2024

@n8henrie
I suggest biting the bullet and use the cross compiler included with the SDK.

It is a little more difficult to compile applications and libraries compared to compiling natively (usually requires an additional 1 or 2 command line options). However on the positive side, the compiler is specific to the chipset used on the camera and can take advantage of any optimisations specific to the chipset rather than compiling to the lowest common denominator (e.g. armv5).

from yi-hack-v2.

n8henrie avatar n8henrie commented on August 13, 2024

Thanks for the response.

I will report back to this thread if I'm able to find a walkthrough or any more documentation about the Ambarella SDK -- it looks like it is pretty hard to get ahold of. I sent in a info request at their site and the form response basically says "if you're not considering a large order we probably won't get back to you."

from yi-hack-v2.

n8henrie avatar n8henrie commented on August 13, 2024

Possibly helpful for future readers:

https://github.com/hello/kasa
https://github.com/hello/kasanojo

from yi-hack-v2.

n8henrie avatar n8henrie commented on August 13, 2024

Walkthrough for extracting the firmware: https://tech.fpt.com.vn/language/en/extracting-firmware-xiaomi-ants-xiaoyi-smart-camera-part-1/

from yi-hack-v2.

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.