nongiach / arm_now

arm_now is a qemu powered tool that allows instant setup of virtual machines on arm cpu, mips, powerpc, nios2, x86 and more, for reverse, exploit, fuzzing and programming purpose.
https://github.com/nongiach/arm_now/wiki
MIT License
867 stars 87 forks source link

Compiling Go package on MIPS32EL for openwrt #38

Closed sxiii closed 4 years ago

sxiii commented 5 years ago

Hi! I've got a question and hope someone from the community can help me.

Question is quite general. I need to compile google cloud-print-conntector; which is written in Go language; for the Lantiq XRX200 CPU; which is probably what MIPS32EL is also. This all stuff have to work in the future on the Lantiq device with OpenWRT firmware (so I will have also to create a package for it). In general, do you think, is it possible to do that?

Thanks for help!

nongiach commented 5 years ago

Hi sxii,

arm_now can't help you out of the box for the compilation process But arm_now helps you to run the binary on a qemu emulated mips32el.

$ ls
your_binary
$ arm_now start mips32el --sync
# ./your_binary

Visit the wiki for more information about the compilation process, altough this will differ from Go compilation. https://github.com/nongiach/arm_now/wiki/5.3-Compile-and-play-2048-on-ARM,-MIPS-and-PowerPc64-within-a-minute

Thanks.