-
Notifications
You must be signed in to change notification settings - Fork 200
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
Can you compiling file or opkg OpenWRT for MIPS, MIPSBE, MMIPS etc? ;) #545
Comments
went ahead and added all the goarch options that did compile with the code. I can't guarantee all the features will work though |
Ok) OpenWRT 19.07.8 on MikroTik SXT Lite2 CPU 600MHz AR9344 mips kernel-4.14.241 [17:15][root@OpenWrt:~]# nice -n 19 .bins/db1000n :) |
mipsle maybe? https://go.dev/doc/install/source#environment
|
with mipsle :) [17:25][root@OpenWrt:~]# .bins/db1000n It is MIPSBE :) https://mikrotik.com/product/RBSXT2nDr3 need to compile for MIPSBE .... |
Based on what I'm seeing, I'm not sure go can cross compile for mipsbe but I'll check a bit more thoroughly in couple hours |
UPD: according to all the docs I've found mipsbe should be just mips. Go has an option to compile hardfloat vs softfloat (default being only hardfloat) though, maybe that could be the missing part? |
Ideally we'd want to try and install go on that machine and inspect env variables it sets here |
No) I can't install go 99.5 MB) there's not enough space) available 101.5 MB :) |
Have you tried mips_softfloat? |
yes [08:55][root@OpenWrt:~]# nice -n 19 .bins/db1000n |
hmm, I think segfault in this case means that this is the architecture to use but there's a bug somewhere in the code itself that doesn't present itself on other systems (maybe some of the packages used have some bugs or logic that doesn't work for softfloat or smth like that). |
so I've tried running mips binary via qemu and it seems to be working fine (weirdly enough it works both with softfloat and hardfloat)
you could try building the executable yourself on your main OS with |
@1o1o1 I think I know what the issue is. How much RAM does that router have? db1000n needs at least 200mb to be able to run properly (and you'd need to provide |
:) MikroTik SXT Lite2 CPU 600MHz AR9344 (--> RAM 64Mb <--) NAND 128Mb with 256-512Mb is too much expensive and usually with arm cpu :) |
Can you compiling file or opkg OpenWRT for MIPS, MIPSBE, MMIPS etc?
Its will be cool to use in routers too)
The text was updated successfully, but these errors were encountered: