Skip to contentSkip to conversation

m68k: Add 68000 nommu support

RFC PATCH Applied Daniel Palmer 2 participants 2 messages Apr 19 – May 29

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 m68k: Add 68000 nommu support

Everyone thinks they like ARM but secretly they want to run Linux on their Megadrive[0].

Building a working toolchain/userland for nommu m68k is a bit difficult because of the bitrotten tools all over the place and one big issue is GCC generates code that uses unaligned accesses that will cause an exception on 68000 machines if you aren't careful.

Buildroot can easily create a working toolchain and userland for nommu m68k so why not?

0 - This isn't a joke, I'm working on this. I have u-boot working
on the Megadrive, Linux is already working on a bunch of 68000 machines and I just need to get everything a little bit smaller to get into 4MB of RAM.

---
 arch/Config.in.m68k | 6 ++++++
 1 file changed, 6 insertions(+)
arch/Config.in.m68k +6 -0
index 235cafacf5b7..74a197934ff1 100644
@@ -23,6 +23,11 @@ choice
 	help
 	  Specific CPU variant to use
 
+config BR2_m68k_68000
+	bool "68000"
+	select BR2_m68k_m68k
+	select BR2_SOFT_FLOAT
+
 config BR2_m68k_68030
 	bool "68030"
 	select BR2_m68k_m68k
@@ -41,6 +46,7 @@ config BR2_m68k_cf5208
 endchoice
 
 config BR2_GCC_TARGET_CPU
+	default "68000"		if BR2_m68k_68000
 	default "68030"		if BR2_m68k_68030
 	default "68040"		if BR2_m68k_68040
 	default "5208"		if BR2_m68k_cf5208
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Daniel Palmer

Everyone thinks they like ARM but secretly they want to run Linux on their Megadrive[0].

Building a working toolchain/userland for nommu m68k is a bit difficult because of the bitrotten tools all over the place and one big issue is GCC generates code that uses unaligned accesses that will cause an exception on 68000 machines if you aren't careful.

Quoted 7 lines

Buildroot can easily create a working toolchain and userland for nommu m68k so why not?

0 - This isn't a joke, I'm working on this. I have u-boot working
on the Megadrive, Linux is already working on a bunch of 68000 machines and I just need to get everything a little bit smaller to get into 4MB of RAM.

Have fun! :-)

Quoted 2 lines

Applied to next, thanks.

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