arch/mips: Allow building for MIPS IV
PATCH 1/1 arch/mips: Allow building for MIPS IV
MIPS IV is an older ISA than R1 but is still useful to support older MIPS-based systems (e.g.: Cobalt Qube).
--- arch/Config.in.mips | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/Config.in.mips +5 -2
@@ -40,8 +40,8 @@ choice help Specific CPU variant to use - 64bit capable: 64, 64r2, 64r3, 64r5, 64r6 - non-64bit capable: 32, 32r2, 32r3, 32r5, 32r6 + 64bit capable: mips4, 64, 64r2, 64r3, 64r5, 64r6 + non-64bit capable: mips4, 32, 32r2, 32r3, 32r5, 32r6 config BR2_mips_32 bool "Generic MIPS32"
@@ -97,6 +97,8 @@ config BR2_mips_xburst to be used in order to prevent emitting these instructions. See http://www.ingenic.com/en/?xburst.html +config BR2_mips4 + bool "MIPS IV" config BR2_mips_64 bool "Generic MIPS64" depends on BR2_ARCH_IS_64
@@ -262,6 +264,7 @@ config BR2_GCC_TARGET_ARCH default "octeon2" if BR2_mips_octeon2 default "octeon3" if BR2_mips_octeon3 default "p6600" if BR2_mips_p6600 + default "mips4" if BR2_mips4 config BR2_MIPS_OABI32 bool
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Florian,
Quoted 4 lines · On Tue, 8 Aug 2023 14:41:53 -0700 Florian Fainelli <[email protected]>…
MIPS IV is an older ISA than R1 but is still useful to support older MIPS-based systems (e.g.: Cobalt Qube).
Signed-off-by Florian Fainelli <[email protected]>
Thanks for this patch. Support for MIPS IV was initially in Buildroot, and got removed in 2014, as part of:
commit dd45fe0efb678a8a674330ad46b7641a3284dff9
Author: Gustavo Zacarias <[email protected]> Date: Mon Dec 1 11:16:59 2014 -0300
arch/mips: remove deprecated mips1/2/3/4 support
Remove the support for generating mips1/2/3/4 code since it has been deprecated for more than a year now.
Also remove the unnecessary kludges in packages for it.
arch/Config.in.mips choice · line 44
Quoted 4 lines
arch/Config.in.mips +2
-2- 64bit capable: 64, 64r2, 64r3, 64r5, 64r6 - non-64bit capable: 32, 32r2, 32r3, 32r5, 32r6 + 64bit capable: mips4, 64, 64r2, 64r3, 64r5, 64r6 + non-64bit capable: mips4, 32, 32r2, 32r3, 32r5, 32r6
This list is quite odd, because it's not even an exhaustive list of the MIPS cores that we support.
Is mips4 supported by glibc, uclibc-ng and musl?
Since IMG kind of gave up on MIPS, we have difficulties in getting some help in Buildroot to maintain MIPS support and address issues, so I'm a bit cautious about adding more MIPS stuff.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 27 lines · Thomas Petazzoni
Hello Florian,
Quoted 4 lines · On Tue, 8 Aug 2023 14:41:53 -0700 Florian Fainelli <[email protected]>…
MIPS IV is an older ISA than R1 but is still useful to support older MIPS-based systems (e.g.: Cobalt Qube).
Signed-off-by Florian Fainelli <[email protected]>Thanks for this patch. Support for MIPS IV was initially in Buildroot, and got removed in 2014, as part of:
commit
dd45fe0efb678a8a674330ad46b7641a3284dff9Author: Gustavo Zacarias <[email protected]> Date: Mon Dec 1 11:16:59 2014 -0300
arch/mips: remove deprecated mips1/2/3/4 supportRemove the support for generating mips1/2/3/4 code since it has been deprecated for more than a year now.
Also remove the unnecessary kludges in packages for it.Signed-off-by Gustavo Zacarias <[email protected]>Signed-off-by Peter Korsgaard <[email protected]>
Quoted 7 lines
arch/Config.in.mips choice · line 44
Quoted 4 lines
arch/Config.in.mips +2
-2- 64bit capable: 64, 64r2, 64r3, 64r5, 64r6 - non-64bit capable: 32, 32r2, 32r3, 32r5, 32r6 + 64bit capable: mips4, 64, 64r2, 64r3, 64r5, 64r6 + non-64bit capable: mips4, 32, 32r2, 32r3, 32r5, 32r6This list is quite odd, because it's not even an exhaustive list of the MIPS cores that we support.
Good point, I suppose that should be addressed in a separate patch.
Quoted 2 lines
Is mips4 supported by glibc, uclibc-ng and musl?
Yes, all 3 C libraries still support mips4.
Quoted 4 lines
Since IMG kind of gave up on MIPS, we have difficulties in getting some help in Buildroot to maintain MIPS support and address issues, so I'm a bit cautious about adding more MIPS stuff.
If there are not too many issues, I suppose you can CC me when you encounter them and I could try to take a look.
Signature · 6 lines
Florian _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · On Tue, 8 Aug 2023 14:56:56 -0700 Florian Fainelli <[email protected]> wrote:
Quoted 2 lines
This list is quite odd, because it's not even an exhaustive list of the MIPS cores that we support.
Good point, I suppose that should be addressed in a separate patch.
Sure thing.
Quoted 3 lines
Quoted 1 line
Is mips4 supported by glibc, uclibc-ng and musl?
Yes, all 3 C libraries still support mips4.
OK.
Quoted 6 lines
Quoted 3 lines
Since IMG kind of gave up on MIPS, we have difficulties in getting some help in Buildroot to maintain MIPS support and address issues, so I'm a bit cautious about adding more MIPS stuff.
If there are not too many issues, I suppose you can CC me when you encounter them and I could try to take a look.
OK, sounds good. Sometimes it's not an issue, but simply trying to understand what all those MIPS cores are, what they support, etc. We'll definitely reach out to you when such questions arise.
Example of a MIPS-specific build failure:
http://autobuild.buildroot.net/results/4b4/4b488cc62c3c1496109528eb78020c64001d4300/build-end.log
(I haven't investigated, maybe it's trivial).
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 7 lines · On Tue, 8 Aug 2023 14:41:53 -0700 Florian Fainelli <[email protected]>…
MIPS IV is an older ISA than R1 but is still useful to support older MIPS-based systems (e.g.: Cobalt Qube).
Signed-off-by Florian Fainelli <[email protected]>--- arch/Config.in.mips | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Applied to next with a slightly tweaked commit log, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot