LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2022, 12:29 AM   #1
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107
Blog Entries: 1

Rep: Reputation: 27
Smile Porting Slackware LoongArch process shared(stage1-4)


# Slackware/LoongArch port

Hi everyone,

I'm your average Slackware user ,and just decided to start porting Slackware to LoongArch.
As this is a new architecture,I'm posting this to announce my intent and gather advice on how to best push this.


I'll first give some background material to help people gain context, then
describe my porting plan. This is going to be a bit long; apologizes for that.


## A bit of introduction on the LoongArch

LoongArch is a new RISC ISA, which is a bit like MIPS or RISC-V. There are
currently 3 variants: a reduced 32-bit version (LA32R), a standard 32-bit
version (LA32S) and a 64-bit version (LA64).

ISA documentation: https://github.com/loongson/LoongArch-Documentation
ELF ABI specification: https://github.com/loongson/LoongArc...LF-ABI-EN.adoc


Already upstream:

binutils: https://sourceware.org/git/?p=binuti...c12c52d43a38a7

gcc: https://gcc.gnu.org/pipermail/gcc/20...ch/238452.html

linux: https://lkml.org/lkml/2022/7/31/295
https://git.kernel.org/pub/scm/linux...73211e4d9390cb

glibc: https://sourceware.org/pipermail/lib...st/141193.html

qemu(system emulation and user-mode emulation): https://wiki.qemu.org/ChangeLog/7.1

llvm: llvm/llvm-project@42fd2bf

go: https://go.dev/blog/go1.19

nodejs: https://github.com/nodejs/node/pull/41323


## Slackware porting plans

Execute "uname -m" output on LoongArch physical machine:
$ uname -m
loongarch64


I'm planning to take ARCH=loongarch for the port; and support the LP64 ABI
first. I'd like to support both LP64 and ILP32 ABIs, but that's not a
priority.
But “ARCH=loongarch” a bit long,I'm open to suggestions.


And that's about all; the message is getting long! Your opinions are welcome,
and thanks again for following along.

Cheers~

Last edited by shipujin; 09-03-2022 at 03:11 AM.
 
Old 08-30-2022, 12:35 AM   #2
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Sorry, I don't know if this is appropriate for Slackware mailing list, so I'm Posting it here to discuss with you


Cheers~
 
Old 08-30-2022, 09:43 PM   #3
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
ping
 
Old 08-31-2022, 12:35 AM   #4
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,178

Rep: Reputation: 236Reputation: 236Reputation: 236
Quote:
Originally Posted by shipujin View Post
ping
Nice if report progress, not re-up with empty post.
 
Old 08-31-2022, 01:14 AM   #5
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Select ARCH= loongarch,

Do you have any suggestions for the length of ARCH
 
Old 08-31-2022, 01:26 AM   #6
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
Arch Linux uses "loongarch64" as the ARCH value for the 64bit Loongson CPU architecture.
 
1 members found this post helpful.
Old 08-31-2022, 01:34 AM   #7
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Quote:
Originally Posted by Windu View Post
Arch Linux uses "loongarch64" as the ARCH value for the 64bit Loongson CPU architecture.
He is now ready to become ARCH=loong64
 
Old 08-31-2022, 02:40 AM   #8
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
Quote:
Originally Posted by shipujin View Post
He is now ready to become ARCH=loong64
I think "loong64" sounds a lot better than "loongarch64".
Use of the string "arch" in a CPU architecture name is quite redundant.
 
1 members found this post helpful.
Old 08-31-2022, 05:29 AM   #9
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Since we get "x86_64" on x86 CPUs, how about "LA64" or even "LA_64" ?
 
Old 08-31-2022, 11:05 AM   #10
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by Slax-Dude View Post
... "LA64" or even "LA_64" ?
I'd go with either of these as well. So that is my "vote"
 
Old 08-31-2022, 08:25 PM   #11
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Quote:
Originally Posted by Windu View Post
I think "loong64" sounds a lot better than "loongarch64".
Use of the string "arch" in a CPU architecture name is quite redundant.
Yes, it looks like loong64 is more appropriate than loongarch64
 
Old 08-31-2022, 08:34 PM   #12
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Quote:
Originally Posted by Slax-Dude View Post
Since we get "x86_64" on x86 CPUs, how about "LA64" or even "LA_64" ?
At first I considered using "la64 (LA64)", but "la64" and "ia64 (IA64)" are so similar that it's easy to mistake them, This is also the reason why I didn't choose LA64 later
 
Old 08-31-2022, 08:42 PM   #13
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 107

Original Poster
Blog Entries: 1

Rep: Reputation: 27
Hi everyone, how do you feel about "64-bit: ARCH=loong64"? (your opinions are welcome)

Last edited by shipujin; 08-31-2022 at 08:47 PM.
 
Old 08-31-2022, 08:54 PM   #14
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,178

Rep: Reputation: 236Reputation: 236Reputation: 236
Quote:
Originally Posted by shipujin View Post
Hi everyone, how do you feel about "64-bit: ARCH=loong64"? (your opinions are welcome)
Doesn't matter. Just check that it's consistent everywhere, e.g., also for qemu, gcc and etc.
 
Old 08-31-2022, 09:48 PM   #15
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
I am good with loong64 for 64-bit, loong for 32-bit.
 
1 members found this post helpful.
  


Reply

Tags
port, slackware, slackware -current



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
LXer: Porting and tuning applications for Linux on Power, Part 2: 15 Porting and tuning tools for Linux on Power LXer Syndicated Linux News 0 05-18-2018 01:05 PM
In linux boot process what is the role of stage1, stage1.5's file and stage 2 maheshp86 Linux - Hardware 7 07-13-2012 08:47 AM
Gentoo Stage1 install problems... GryphonTech Linux - Distributions 7 09-14-2003 04:40 AM
GENTOO 1.4; Stage1 Installation: Installation freezes arthur1968 Linux - Hardware 1 08-28-2003 11:08 AM
Fatal Error in Stage1 I/O error xtec2 Linux - Newbie 10 07-16-2003 04:09 PM

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

All times are GMT -5. The time now is 06:46 PM.

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