-
Notifications
You must be signed in to change notification settings - Fork 59
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
R7000 / RT-AC68U (xwrt/merlin-assus) has arm arch and arm-brcm-linux-uclibcgnueabi toolchain #27
Comments
I think According to Broadcom_BCM4708, R7000 / RT-AC68U use a cortex-a9 cpu. (The Cortex-A series CPUs all have backward compatibility, so the Cortex-A9 should be able to run) try run and run: |
I have the same problem too, managed to compile for my AC87U with cortex-a9 but won't run and returns 'Illegal instruction'. Looked it up and seems like the Broadcom BCM4709 SoC does not have VFP like this issue mentioned: openwrt/packages#10967 I tried to compile a simple hellow world with 'zig cc -target arm-linux-musleabi -mcpu=cortex_a9 -mfpu=none -o hello hello.c' and the compiled hellow world still won't run on the router and returns 'Illegal instruction'. Tried all possible options for 'mfpu' including 'softvpu' listed here https://developer.arm.com/documentation/dui0774/b/compiler-command-line-options/-mfpu but the compiled binary does not change at all (they have the same checksum):
Seems like zig cc has some issues passing -mfpu option so I don't know what to do now |
uname -a
cat /proc/cpuinfo Features : swp half thumb fastmult edsp CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x3 CPU part : 0xc09 CPU revision : 0 Hardware : Northstar Prototype |
You can try this: https://github.com/xfangfang/PPPwn_cpp/actions/runs/9101996371 arm-linux-musleabi(cortex_a7_soft) The latest build attempts to disable Maybe no work, but you can try to add more options like: |
I managed to compile the code for 'mpcorenovfp' and it finally works: Maybe open a wiki page so we can document build target options for different platforms |
By the way the last build with
|
I'm glad to hear that According to ziglang/zig#4261 (comment) we can using You can test it here: https://github.com/xfangfang/PPPwn_cpp/actions/runs/9103419502 (arm-linux-musleabi(cortex_a7_soft)) I'm not sure if removing only vfp4 is enough. You can view more features here and test them: maybe we need: You can use: |
I get the exact outcome on my router with both.
can this be shared as an artifacts/nightly built? Thank you. |
admin@R7000-EADE:/jffs/addons# ./pppwn OPTIONS Looks good! thank you very much sir. Are there any support/ko-fi links available? |
Thank you, it's just a little bit of work. Maybe you can take a look at https://github.com/TheOfficialFloW He is the hero in this scene |
I have a NetGear R7000 router. Is the same hardware inside as the Asus RT-AC68U, which made possible the porting of Asus-Merlin. The project name is Xwrt, documented here: https://www.linksysinfo.org/index.php?threads/asuswrt-merlin-on-netgear-r7000.71108
Long story short, I was trying to make use of this C++ implementation on it, but failed with the two types I've tried:
The dev over there mentioned that (on the last page):
R7000) / RT-AC68U has arm arch and arm-brcm-linux-uclibcgnueabi toolchain.
toolchains are here: https://github.com/RMerl/am-toolchains
Q? Would it be possible to get "nightlies" for this type of architecture? Or how can one make/built it to run on my device?
Any pointers would be appreciated.
Thank you, M.
The text was updated successfully, but these errors were encountered: