LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-18-2024, 11:07 PM   #1
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Rep: Reputation: 34
Slarm64-15.0 trusted-firmware-a-master aarch64-none-elf-gcc


Greetings Slackware Arm64 community, I have been attempting to build the trusted-firmware-a-master from a default Slarm64-15.0 install, running on a Banana Pi M64.

When I attempt to compile the firmware, I follow the instruction on the website and issue ...
Code:
export BL31=$(pwd)/build/sun50i_a64/debug/bl31.bin
make PLAT=sun50i_a64 DEBUG=1 bl31

/bin/sh: line 1: aarch64-none-elf-gcc: command not found
The compile immediately produces the above error ...

All the online pre-packaged aarch64-none-elf-gcc compilers I have found for native Aarch64 systems, are all built from different glibc, so the Slarm64-15.0 system fails to use them successfully. So, now I am left with some question ....

First, what is the difference between the aarch64-slackware-linux-gcc and the aarch64-none-elf-gcc?

Second, Is there a workaround, so I can use the aarch64-slackware-linux-gcc which is already installed in the system rather than an aarch64-none-elf-gcc to compile the trusted-firmware-a-master?

Third, would building an aarch64-none-elf-gcc for slarm64-15.0 and Slackware-current Aarch64 be beneficial for Slackware Arm's & Aarch64's further development? ( Since the trusted-firmware-a-master used by u-boot for Arm / Aarch64 depends on an aarch64-none-elf-gcc compiler )

Fourth, do I need to compile my own aarch64-none-elf-gcc compiler from the gcc-11.2.0 source with ./configure --target=aarch64-none-elf?

Fifth, How would I go about compiling my own aarch64-none-elf-gcc compile if it is more complicated than just ./configure --target=aarch64-none-elf?

Anyway, I'm not sure if this is more of the whole cross-compiling nightmare of using an Arm32/Arm64 systems or not.

Plus: Why do some many build scripts from github assume I am cross-compiling from a x86_64 system?
 
Old 03-19-2024, 12:55 AM   #2
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
Oh, Sorry - I forgot to add the URL for the build instructions for the BPI-M64 (Allwinner A64) TF-A bl31.bin

Code:
https://trustedfirmware-a.readthedocs.io/en/latest/plat/allwinner.html
 
Old 03-19-2024, 01:44 AM   #3
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Hi

Slarm64 is a separate community project and has its own forum.

Cheers
s.
 
1 members found this post helpful.
Old 03-19-2024, 02:02 AM   #4
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
Well then - Thank you for telling me I'm not welcome here - it's good to know!
 
Old 03-19-2024, 02:04 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by Stragonian View Post
Well then - Thank you for telling me I'm not welcome here - it's good to know!
If you're using a different distribution, surely you'd be pleased to be directed appropriately to have your question answered ?
 
Old 03-19-2024, 02:20 AM   #6
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
So where is it? Is it on linuxquestions.org? You didn't tell me where to find it, you just told me that is exists.

Besides, Slarm64 is Slackware that is running on an Aarch64 system, it's all Slackware ( Slackware Arm32, Slackware Arm64, Slarm64, Bonslack ) They're all Slackware for ARM / Aarch64 systems.

This is why I hardly ever ask questions on linuxquestions.org, because everyone here would rather, either argue with you about your question, or tell me to go somewhere else.

Slarm64 is Slackware running on an AArch64 system, it's a shame the people in this forum don't want to help resolve a Slackware AArch64 questions.

Last edited by Stragonian; 03-19-2024 at 02:28 AM.
 
Old 03-19-2024, 02:33 AM   #7
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by Stragonian View Post
Besides, Slarm64 is Slackware that is running on an Aarch64 system, it's all Slackware ( Slackware Arm32, Slackware Arm64, Slam64, Bonslack ) They're all Slackware for ARM / Aarch64 systems.
There are differences. For example, the way Slackware ARM/AArch64's initial RAM disk works is unique to Slackware. It doesn't exist in any of the others you mentioned because they are not Slackware ARM.
 
Old 03-19-2024, 03:09 AM   #8
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
Thank you for proving my point!

All you're interested in doing is arguing about the questions I ask, rather than attempt to answer those questions.

My questions have nothing to do with the initial RAM disk. The question is about compiling Aarch64 firmware, for the Allwinner A64 SoC, and regardless of which flavor of Slackware ARM/AArch64 a person is running the questions remain, the same.

What is the difference between the aarch64-slackware-linux-gcc and the aarch64-none-elf-gcc? <- See, that questions has nothing to do with an initial RAM disk.

If you don't know how to help answer a question, then just say, "I don't know what the difference is between aarch64-slackware-linux-gcc and aarch64-none-elf-gcc, I don't know if there is a workaround, nor do I know how to help you compile an aarch64-none-elf-gcc."

See, the only way the question would not be relevant in this forum, is if your version of Slackware AArch64, does not have aarch64-slackware-linux-gcc. However, if the flavor of Slackware AArch64, you are currently running does have aarch64-slackware-linux-gcc installed in it, then my question remain relevant, even within this forum.

What's the difference between aarch64-slackware-linux-gcc and aarch64-none-elf-gcc? Is there a workaround? And do, and how, can I compile aarch64-none-elf-gcc on Slackware AArch64? <- See, once again nothing about an initial RAM disk.
 
Old 03-19-2024, 04:00 AM   #9
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,543

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
Quote:
Originally Posted by Stragonian View Post
Thank you for proving my point! .
You're welcome!
 
Old 03-19-2024, 04:12 AM   #10
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
Just posting this here for my own future reference ...

https://www.linuxquestions.org/questions/slarm64-132/
 
Old 03-19-2024, 08:08 AM   #11
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
So, here is how this whole conversation could have gone ...

Stragonian - Q: aarch64-none-elf-gcc error when compiling TF-A, help?

drmozes - A: Check out the content on the Slackware ARM ftp server, under slackwarearm-devtools and bootware. I used (and/or wrote or modified) when I faced a similar situation related to my own TF-A. Particularly focus on the "atf.build" script written by Brenton Earl, and modified by myself in the slackwarearm/platform/aarch64/bootware/src/.

It may not be a total solution to your problem, but it might help aid you in your efforts. You can find those resources here ...

ftp://ftp.arm.slackware.com/slackwar...rearm-devtools and
ftp://ftp.arm.slackware.com/slackwar.../bootware/src/

Stragonian (response): Golly gee wiz! Thank you, Mr.drmozes, I sure will take a look at those slackwarearm-devtools and bootware directories on the Slackware ARM ftp server, thank you for that information!

drmozes (response): You're welcome! Just be glad I didn't go all Official Slackware ARM release tribal on your *ss, and tell you to go ask your Slackware ARM/AArch64 question somewhere else. Just think of all the time you would have wasted looking for similar TF-A resources on the internet.

Stragonian (response): Yeah, I know, I would have spent hours searching the internet before running across an obscure link to your own bootware arm-trusted-firmware source directory and found all those files, scripts and documents you left for yourself related to your own TF-A situation.

Fictitious humans are so much cooler than real humans. - :-)
 
Old 03-19-2024, 07:25 PM   #12
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by drmozes View Post
Slarm64 is a separate community project and has its own forum.
was clear to me, outside of scope referring to inside of scope
 
Old 03-19-2024, 09:27 PM   #13
Stragonian
Member
 
Registered: Dec 2003
Location: Indiana
Distribution: Slackware & PassionX
Posts: 102

Original Poster
Rep: Reputation: 34
Wow! Thank you for once again proving my point you're not about community or helping other people, but rather semantics and tribalism.

Oh! look a person posting a question about Slam64 in the Slackware forum (Slam64 wasn't an official Slackware Release)

Oh Wow! And look AceofSpades19, onebuck, JustInterested, T3slider, onebuck, Woodsman discuss the question with him, rather than tell him "Slam64 is a separate community project and has its own forum."

Let's count how many times they tell him to go to the Slam64 forum? Oh! Look! It's 0 times.

https://www.linuxquestions.org/quest...ecture-642229/

Oh, and look here again another person Drone4four, joining xaos5's post, and shares his experience using Slam64 with xaos5 related to a sound problem, on the Slackware forum, let's count how many times Drone4four is told "Slam64 is a separate community project and has its own forum." Oh! Look once again it's 0 times.

https://www.linuxquestions.org/quest...roblem-269973/

So, I guess there have been some good natured people on the Slackware forum, who both ask questions, and help others to answer questions of a Slam64 nature.

Not to worry, my learning curve is not a flat line. I mistakenly assumed that the people on this forum were good natured people, I will not make that mistake again. If semantics and tribalism is your thing, then I will leave you both to them.
 
  


Reply

Tags
compiling, firmware, gcc, slarm64, toolchain



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slarm64 (aarch64 unofficial slackware) sndwvs Slackware - ARM 347 12-15-2021 01:45 PM
[SOLVED] Station M1(RK3328)/P1(RK3399) (slarm64, aarch64) sndwvs Slackware - ARM 10 12-07-2021 09:34 AM
[SOLVED] Quartz64 RK3566 (slarm64, aarch64) sndwvs Slackware - ARM 21 12-07-2021 09:11 AM
How to grep *.info;mail.none;authpriv.none;cron.none; in /etc/syslog.conf sharadchhetri Linux - Server 9 01-06-2012 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration