Skip to content
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

aarch64 support #116

Open
alphafox02 opened this issue Mar 3, 2021 · 7 comments
Open

aarch64 support #116

alphafox02 opened this issue Mar 3, 2021 · 7 comments

Comments

@alphafox02
Copy link

While attempting to buiild Crocodile hunter on a Pi4 running Ubuntu 20.04 aarch64 I find the following is failing, which seems most likely an issue with srsLTE after reading this comment on another program ( F5OEO/rpitx#173 ).

ubuntu@ubuntu:/usr/src/crocodilehunter/src/srsLTE/build$ sudo make -j4
Scanning dependencies of target srslte_asn1
Scanning dependencies of target arch_select
Scanning dependencies of target gen_build_info
[ 1%] Building CXX object lib/src/asn1/CMakeFiles/rrc_asn1.dir/rrc_asn1.cc.o
[ 1%] Building CXX object lib/src/common/CMakeFiles/arch_select.dir/arch_select.cc.o
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
c++: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [lib/src/asn1/CMakeFiles/rrc_asn1.dir/build.make:63: lib/src/asn1/CMakeFiles/rrc_asn1.dir/rrc_asn1.cc.o] Error 1
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
make[1]: *** [CMakeFiles/Makefile2:2103: lib/src/asn1/CMakeFiles/rrc_asn1.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
c++: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [lib/src/common/CMakeFiles/arch_select.dir/build.make:63: lib/src/common/CMakeFiles/arch_select.dir/arch_select.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2157: lib/src/common/CMakeFiles/arch_select.dir/all] Error 2
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
-- Generating build_info.h
[ 1%] Built target gen_build_info
[ 2%] Building CXX object lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_common.cc.o
[ 2%] Building CXX object lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_mme.cc.o
[ 2%] Building CXX object lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_s1ap.cc.o
[ 3%] Building CXX object lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_m2ap.cc.o
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
c++: error: unrecognized command line option ‘-mfpu=neon’
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
c++: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [lib/src/asn1/CMakeFiles/srslte_asn1.dir/build.make:63: lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_common.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/src/asn1/CMakeFiles/srslte_asn1.dir/build.make:76: lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_mme.cc.o] Error 1
c++: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [lib/src/asn1/CMakeFiles/srslte_asn1.dir/build.make:89: lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_s1ap.cc.o] Error 1
c++: error: unrecognized command line option ‘-mfloat-abi=hard’
c++: error: unrecognized command line option ‘-mfpu=neon’
make[2]: *** [lib/src/asn1/CMakeFiles/srslte_asn1.dir/build.make:102: lib/src/asn1/CMakeFiles/srslte_asn1.dir/liblte_m2ap.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2130: lib/src/asn1/CMakeFiles/srslte_asn1.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

@alphafox02 alphafox02 changed the title Compile Crocodile Hunter's srsLTE on aarch64 aarch64 support Mar 8, 2021
@alphafox02
Copy link
Author

Aarch support

@alphafox02
Copy link
Author

I got it working by manually applying aarch patches found in later versions of srsLTE. If I figure out the proper way to do a pull request I’ll submit.

@cooperq
Copy link
Collaborator

cooperq commented Mar 11, 2021

ah this might be a documentation issue, I have compiled this successfully on a pi4 and it shoudl support arm already. I will look into it.

@cooperq cooperq reopened this Mar 11, 2021
@alphafox02
Copy link
Author

So I think you’re fine when using a pi image, like raspbian, however if you use the official Ubuntu 20.04 headless image it’s aarch64 and the version of srsLTE you’re using is missing the patches there were added later. I’ll find them again and send you the link. Again for most people this will probably not be noticed as I think the normal pi image does not mark itself as “aarch64”.

@alphafox02
Copy link
Author

I manually added everything here to the version of srsLTE you’re using.

srsran/srsRAN_4G@4a1b8a5

@cooperq
Copy link
Collaborator

cooperq commented Mar 24, 2021

Nice! Could you open up a pull request for that? I would love to add it to the main branch!

@cooperq cooperq closed this as completed Mar 24, 2021
@cooperq cooperq reopened this Mar 24, 2021
@alphafox02
Copy link
Author

This will be homework for me at some point because I do need to get familiar with doing proper pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants