remove arch/h8300
Subsystems (7)
Hi all,
h8300 hasn't been maintained for quite a while, with even years old pull request lingering in the old repo. Given that it always was rather fringe to start with I'd suggest to go ahead and remove the port:
The following changes since commit 5c1ee569660d4a205dced9cb4d0306b907fb7599:
Merge branch 'for-5.17-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2022-02-22 16:14:35 -0800)
are available in the Git repository at:
git://git.infradead.org/users/hch/misc.git remove-h8300
for you to fetch changes up to 1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24:
remove the h8300 architecture (2022-02-23 08:52:50 +0100)
----------------------------------------------------------------
Christoph Hellwig (1):
remove the h8300 architecture
.../bindings/clock/renesas,h8300-div-clock.txt | 24 -- Documentation/devicetree/bindings/h8300/cpu.txt | 13 - .../interrupt-controller/renesas,h8300h-intc.txt | 22 -- .../interrupt-controller/renesas,h8s-intc.txt | 22 -- .../memory-controllers/renesas,h8300-bsc.yaml | 35 -- .../features/core/cBPF-JIT/arch-support.txt | 1 - .../features/core/eBPF-JIT/arch-support.txt | 1 - .../core/generic-idle-thread/arch-support.txt | 1 - .../features/core/jump-labels/arch-support.txt | 1 - .../core/thread-info-in-task/arch-support.txt | 1 - .../features/core/tracehook/arch-support.txt | 1 - .../features/debug/KASAN/arch-support.txt | 1 - .../debug/debug-vm-pgtable/arch-support.txt | 1 - .../debug/gcov-profile-all/arch-support.txt | 1 - Documentation/features/debug/kcov/arch-support.txt | 1 - Documentation/features/debug/kgdb/arch-support.txt | 1 - .../features/debug/kmemleak/arch-support.txt | 1 - .../debug/kprobes-on-ftrace/arch-support.txt | 1 - .../features/debug/kprobes/arch-support.txt | 1 - .../features/debug/kretprobes/arch-support.txt | 1 - .../features/debug/optprobes/arch-support.txt | 1 - .../features/debug/stackprotector/arch-support.txt | 1 - .../features/debug/uprobes/arch-support.txt | 1 - .../debug/user-ret-profiler/arch-support.txt | 1 - .../features/io/dma-contiguous/arch-support.txt | 1 - .../locking/cmpxchg-local/arch-support.txt | 1 - .../features/locking/lockdep/arch-support.txt | 1 - .../locking/queued-rwlocks/arch-support.txt | 1 - .../locking/queued-spinlocks/arch-support.txt | 1 - .../features/perf/kprobes-event/arch-support.txt | 1 - .../features/perf/perf-regs/arch-support.txt | 1 - .../features/perf/perf-stackdump/arch-support.txt | 1 - .../sched/membarrier-sync-core/arch-support.txt | 1 - .../features/sched/numa-balancing/arch-support.txt | 1 - .../seccomp/seccomp-filter/arch-support.txt | 1 - .../time/arch-tick-broadcast/arch-support.txt | 1 - .../features/time/clockevents/arch-support.txt | 1 - .../time/context-tracking/arch-support.txt | 1 - .../features/time/irq-time-acct/arch-support.txt | 1 - .../features/time/virt-cpuacct/arch-support.txt | 1 - .../features/vm/ELF-ASLR/arch-support.txt | 1 - .../features/vm/PG_uncached/arch-support.txt | 1 - Documentation/features/vm/THP/arch-support.txt | 1 - Documentation/features/vm/TLB/arch-support.txt | 1 - .../features/vm/huge-vmap/arch-support.txt | 1 - .../features/vm/ioremap_prot/arch-support.txt | 1 - .../features/vm/pte_special/arch-support.txt | 1 - MAINTAINERS | 11 - arch/h8300/Kbuild | 5 - arch/h8300/Kconfig | 50 --- arch/h8300/Kconfig.cpu | 99 ----- arch/h8300/Kconfig.debug | 2 - arch/h8300/Makefile | 44 --- arch/h8300/boot/Makefile | 27 -- arch/h8300/boot/compressed/Makefile | 45 --- arch/h8300/boot/compressed/head.S | 49 --- arch/h8300/boot/compressed/misc.c | 76 ---- arch/h8300/boot/compressed/vmlinux.lds | 35 -- arch/h8300/boot/compressed/vmlinux.scr | 9 - arch/h8300/boot/dts/Makefile | 6 - arch/h8300/boot/dts/edosk2674.dts | 108 ----- arch/h8300/boot/dts/h8300h_sim.dts | 97 ----- arch/h8300/boot/dts/h8s_sim.dts | 100 ----- arch/h8300/configs/edosk2674_defconfig | 48 --- arch/h8300/configs/h8300h-sim_defconfig | 48 --- arch/h8300/configs/h8s-sim_defconfig | 48 --- arch/h8300/include/asm/Kbuild | 8 - arch/h8300/include/asm/bitops.h | 179 --------- arch/h8300/include/asm/bug.h | 13 - arch/h8300/include/asm/byteorder.h | 7 - arch/h8300/include/asm/cache.h | 12 - arch/h8300/include/asm/elf.h | 102 ----- arch/h8300/include/asm/flat.h | 36 -- arch/h8300/include/asm/hash.h | 54 --- arch/h8300/include/asm/io.h | 67 ---- arch/h8300/include/asm/irq.h | 25 -- arch/h8300/include/asm/irqflags.h | 97 ----- arch/h8300/include/asm/kgdb.h | 45 --- arch/h8300/include/asm/mmu_context.h | 6 - arch/h8300/include/asm/page.h | 17 - arch/h8300/include/asm/page_offset.h | 2 - arch/h8300/include/asm/pgtable.h | 43 -- arch/h8300/include/asm/processor.h | 127 ------ arch/h8300/include/asm/ptrace.h | 39 -- arch/h8300/include/asm/segment.h | 40 -- arch/h8300/include/asm/signal.h | 23 -- arch/h8300/include/asm/smp.h | 1 - arch/h8300/include/asm/string.h | 18 - arch/h8300/include/asm/switch_to.h | 52 --- arch/h8300/include/asm/syscall.h | 43 -- arch/h8300/include/asm/thread_info.h | 105 ----- arch/h8300/include/asm/tlb.h | 7 - arch/h8300/include/asm/traps.h | 41 -- arch/h8300/include/asm/user.h | 75 ---- arch/h8300/include/asm/vmalloc.h | 4 - arch/h8300/include/uapi/asm/Kbuild | 2 - arch/h8300/include/uapi/asm/byteorder.h | 7 - arch/h8300/include/uapi/asm/posix_types.h | 13 - arch/h8300/include/uapi/asm/ptrace.h | 43 -- arch/h8300/include/uapi/asm/sigcontext.h | 19 - arch/h8300/include/uapi/asm/signal.h | 92 ----- arch/h8300/include/uapi/asm/unistd.h | 8 - arch/h8300/kernel/.gitignore | 2 - arch/h8300/kernel/Makefile | 22 -- arch/h8300/kernel/asm-offsets.c | 70 ---- arch/h8300/kernel/entry.S | 434 --------------------- arch/h8300/kernel/h8300_ksyms.c | 35 -- arch/h8300/kernel/head_ram.S | 61 --- arch/h8300/kernel/head_rom.S | 111 ------ arch/h8300/kernel/irq.c | 99 ----- arch/h8300/kernel/kgdb.c | 135 ------- arch/h8300/kernel/module.c | 71 ---- arch/h8300/kernel/process.c | 173 -------- arch/h8300/kernel/ptrace.c | 200 ---------- arch/h8300/kernel/ptrace_h.c | 256 ------------ arch/h8300/kernel/ptrace_s.c | 44 --- arch/h8300/kernel/setup.c | 213 ---------- arch/h8300/kernel/signal.c | 287 -------------- arch/h8300/kernel/sim-console.c | 31 -- arch/h8300/kernel/syscalls.c | 15 - arch/h8300/kernel/traps.c | 156 -------- arch/h8300/kernel/vmlinux.lds.S | 69 ---- arch/h8300/lib/Makefile | 9 - arch/h8300/lib/abs.S | 21 - arch/h8300/lib/ashldi3.c | 25 -- arch/h8300/lib/ashrdi3.c | 25 -- arch/h8300/lib/delay.c | 41 -- arch/h8300/lib/libgcc.h | 78 ---- arch/h8300/lib/lshrdi3.c | 24 -- arch/h8300/lib/memcpy.S | 86 ---- arch/h8300/lib/memset.S | 70 ---- arch/h8300/lib/moddivsi3.S | 73 ---- arch/h8300/lib/modsi3.S | 73 ---- arch/h8300/lib/muldi3.c | 45 --- arch/h8300/lib/mulsi3.S | 39 -- arch/h8300/lib/ucmpdi2.c | 18 - arch/h8300/lib/udivsi3.S | 77 ---- arch/h8300/mm/Makefile | 6 - arch/h8300/mm/fault.c | 57 --- arch/h8300/mm/init.c | 101 ----- arch/h8300/mm/memory.c | 53 --- drivers/clk/Makefile | 1 - drivers/clk/h8300/Makefile | 3 - drivers/clk/h8300/clk-div.c | 57 --- drivers/clk/h8300/clk-h8s2678.c | 145 ------- drivers/clocksource/Kconfig | 20 - drivers/clocksource/Makefile | 3 - drivers/clocksource/h8300_timer16.c | 192 --------- drivers/clocksource/h8300_timer8.c | 211 ---------- drivers/clocksource/h8300_tpu.c | 158 -------- drivers/irqchip/Kconfig | 11 - drivers/irqchip/Makefile | 2 - drivers/irqchip/irq-renesas-h8300h.c | 94 ----- drivers/irqchip/irq-renesas-h8s.c | 102 ----- drivers/net/ethernet/smsc/Kconfig | 4 +- drivers/net/ethernet/smsc/smc91x.h | 11 - drivers/tty/serial/Kconfig | 5 +- init/Kconfig | 3 +- tools/arch/h8300/include/asm/bitsperlong.h | 15 - tools/arch/h8300/include/uapi/asm/mman.h | 7 - 160 files changed, 5 insertions(+), 6981 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/renesas,h8300-div-clock.txt delete mode 100644 Documentation/devicetree/bindings/h8300/cpu.txt delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,h8300h-intc.txt delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,h8s-intc.txt delete mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas,h8300-bsc.yaml delete mode 100644 arch/h8300/Kbuild delete mode 100644 arch/h8300/Kconfig delete mode 100644 arch/h8300/Kconfig.cpu delete mode 100644 arch/h8300/Kconfig.debug delete mode 100644 arch/h8300/Makefile delete mode 100644 arch/h8300/boot/Makefile delete mode 100644 arch/h8300/boot/compressed/Makefile delete mode 100644 arch/h8300/boot/compressed/head.S delete mode 100644 arch/h8300/boot/compressed/misc.c delete mode 100644 arch/h8300/boot/compressed/vmlinux.lds delete mode 100644 arch/h8300/boot/compressed/vmlinux.scr delete mode 100644 arch/h8300/boot/dts/Makefile delete mode 100644 arch/h8300/boot/dts/edosk2674.dts delete mode 100644 arch/h8300/boot/dts/h8300h_sim.dts delete mode 100644 arch/h8300/boot/dts/h8s_sim.dts delete mode 100644 arch/h8300/configs/edosk2674_defconfig delete mode 100644 arch/h8300/configs/h8300h-sim_defconfig delete mode 100644 arch/h8300/configs/h8s-sim_defconfig delete mode 100644 arch/h8300/include/asm/Kbuild delete mode 100644 arch/h8300/include/asm/bitops.h delete mode 100644 arch/h8300/include/asm/bug.h delete mode 100644 arch/h8300/include/asm/byteorder.h delete mode 100644 arch/h8300/include/asm/cache.h delete mode 100644 arch/h8300/include/asm/elf.h delete mode 100644 arch/h8300/include/asm/flat.h delete mode 100644 arch/h8300/include/asm/hash.h delete mode 100644 arch/h8300/include/asm/io.h delete mode 100644 arch/h8300/include/asm/irq.h delete mode 100644 arch/h8300/include/asm/irqflags.h delete mode 100644 arch/h8300/include/asm/kgdb.h delete mode 100644 arch/h8300/include/asm/mmu_context.h delete mode 100644 arch/h8300/include/asm/page.h delete mode 100644 arch/h8300/include/asm/page_offset.h delete mode 100644 arch/h8300/include/asm/pgtable.h delete mode 100644 arch/h8300/include/asm/processor.h delete mode 100644 arch/h8300/include/asm/ptrace.h delete mode 100644 arch/h8300/include/asm/segment.h delete mode 100644 arch/h8300/include/asm/signal.h delete mode 100644 arch/h8300/include/asm/smp.h delete mode 100644 arch/h8300/include/asm/string.h delete mode 100644 arch/h8300/include/asm/switch_to.h delete mode 100644 arch/h8300/include/asm/syscall.h delete mode 100644 arch/h8300/include/asm/thread_info.h delete mode 100644 arch/h8300/include/asm/tlb.h delete mode 100644 arch/h8300/include/asm/traps.h delete mode 100644 arch/h8300/include/asm/user.h delete mode 100644 arch/h8300/include/asm/vmalloc.h delete mode 100644 arch/h8300/include/uapi/asm/Kbuild delete mode 100644 arch/h8300/include/uapi/asm/byteorder.h delete mode 100644 arch/h8300/include/uapi/asm/posix_types.h delete mode 100644 arch/h8300/include/uapi/asm/ptrace.h delete mode 100644 arch/h8300/include/uapi/asm/sigcontext.h delete mode 100644 arch/h8300/include/uapi/asm/signal.h delete mode 100644 arch/h8300/include/uapi/asm/unistd.h delete mode 100644 arch/h8300/kernel/.gitignore delete mode 100644 arch/h8300/kernel/Makefile delete mode 100644 arch/h8300/kernel/asm-offsets.c delete mode 100644 arch/h8300/kernel/entry.S delete mode 100644 arch/h8300/kernel/h8300_ksyms.c delete mode 100644 arch/h8300/kernel/head_ram.S delete mode 100644 arch/h8300/kernel/head_rom.S delete mode 100644 arch/h8300/kernel/irq.c delete mode 100644 arch/h8300/kernel/kgdb.c delete mode 100644 arch/h8300/kernel/module.c delete mode 100644 arch/h8300/kernel/process.c delete mode 100644 arch/h8300/kernel/ptrace.c delete mode 100644 arch/h8300/kernel/ptrace_h.c delete mode 100644 arch/h8300/kernel/ptrace_s.c delete mode 100644 arch/h8300/kernel/setup.c delete mode 100644 arch/h8300/kernel/signal.c delete mode 100644 arch/h8300/kernel/sim-console.c delete mode 100644 arch/h8300/kernel/syscalls.c delete mode 100644 arch/h8300/kernel/traps.c delete mode 100644 arch/h8300/kernel/vmlinux.lds.S delete mode 100644 arch/h8300/lib/Makefile delete mode 100644 arch/h8300/lib/abs.S delete mode 100644 arch/h8300/lib/ashldi3.c delete mode 100644 arch/h8300/lib/ashrdi3.c delete mode 100644 arch/h8300/lib/delay.c delete mode 100644 arch/h8300/lib/libgcc.h delete mode 100644 arch/h8300/lib/lshrdi3.c delete mode 100644 arch/h8300/lib/memcpy.S delete mode 100644 arch/h8300/lib/memset.S delete mode 100644 arch/h8300/lib/moddivsi3.S delete mode 100644 arch/h8300/lib/modsi3.S delete mode 100644 arch/h8300/lib/muldi3.c delete mode 100644 arch/h8300/lib/mulsi3.S delete mode 100644 arch/h8300/lib/ucmpdi2.c delete mode 100644 arch/h8300/lib/udivsi3.S delete mode 100644 arch/h8300/mm/Makefile delete mode 100644 arch/h8300/mm/fault.c delete mode 100644 arch/h8300/mm/init.c delete mode 100644 arch/h8300/mm/memory.c delete mode 100644 drivers/clk/h8300/Makefile delete mode 100644 drivers/clk/h8300/clk-div.c delete mode 100644 drivers/clk/h8300/clk-h8s2678.c delete mode 100644 drivers/clocksource/h8300_timer16.c delete mode 100644 drivers/clocksource/h8300_timer8.c delete mode 100644 drivers/clocksource/h8300_tpu.c delete mode 100644 drivers/irqchip/irq-renesas-h8300h.c delete mode 100644 drivers/irqchip/irq-renesas-h8s.c delete mode 100644 tools/arch/h8300/include/asm/bitsperlong.h delete mode 100644 tools/arch/h8300/include/uapi/asm/mman.h
Arnd Bergmann
maintainerQuoted 12 lines · Christoph Hellwig
Hi all,
h8300 hasn't been maintained for quite a while, with even years old pull request lingering in the old repo. Given that it always was rather fringe to start with I'd suggest to go ahead and remove the port:
The following changes since commit
5c1ee569660d4a205dced9cb4d0306b907fb7599:Merge branch 'for-5.17-fixes' of
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup(2022-02-22 16:14:35 -0800)
Quoted 7 lines
are available in the Git repository at:
git://git.infradead.org/users/hch/misc.gitremove-h8300for you to fetch changes up to
1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24:remove the h8300 architecture (2022-02-23 08:52:50 +0100)
I agree, this is clearly the least actively maintained architecture we have at the moment,
and probably the least useful. It is now the only one that does not support MMUs at all,
and most of the boards only support 4MB of RAM, out of which the defconfig kernel
needs more than half just for .text/.data.
Guenter Roeck did the original patch to remove the architecture in 2013 after it had already been obsolete for a while, and Yoshinori Sato brought it back in a much more modern form in 2015. Looking at the git history since the reinstantiation,
it's clear that even he barely cared, almost all commits in the tree are build fixes or
cross-architecture cleanups:
$ git log --no-merges --format=%an v4.5.. arch/h8300/ | sort | uniq
-c | sort -rn | head -n 12
25 Masahiro Yamada
18 Christoph Hellwig
14 Mike Rapoport
9 Arnd Bergmann
8 Mark Rutland
7 Peter Zijlstra
6 Kees Cook
6 Ingo Molnar
6 Al Viro
5 Randy Dunlap
4 Yury Norov
4 Yoshinori SatoIf there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.
Arnd
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.
So it is the last day of te merge window and arch/h8300 is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(
Arnd Bergmann
maintainerQuoted 9 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(
I was really hoping that someone else would at least comment. I've queued it up now for 5.19.
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)
2. arch/sh Hitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it
8<----- This may we where we want to draw the line ----
3. arch/sh j2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future
4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
5. K210 was added in 2020. I assume you still want to keep it.
7. Arm32 has several Cortex-M based platforms that are mainly kept for legacy users (in particular stm32) or educational value.
Arnd
John Paul Adrian Glaubitz
maintainerHello Arnd!
Quoted 5 lines · Arnd Bergmann
2.
arch/shHitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it8<----- This may we where we want to draw the line ----
Quoted 8 lines
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
I'm always interested in everything m68k and SH, so if something needs attention, I'm happy to help. I actually have SH-2 hardware at home although I haven't tried a recent kernel.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Geert Uytterhoeven
maintainerHi Arnd,
Quoted 11 lines · Arnd Bergmann
Quoted 8 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment.
Doh, I hadn't seen this patch before ;-) Nevertheless, I do not have access to H8/300 hardware.
Quoted 4 lines
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future
Yep, when the SH4 patents will have expired.
I believe that's planned for 2016 (Islamic calendar? ;-)
BTW, the unresponsiveness of the SH maintainers is also annoying. Patches are sent to the list (sometimes multiple people are solving the same recurring issue), but ignored.
Anyway, I do regular boot tests on SH4.
Quoted 1 line
5. K210 was added in 2020. I assume you still want to keep it.
FTR, I do regular boot tests on K210.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Arnd,
Quoted 29 lines · Arnd Bergmann
Quoted 9 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment. I've queued it up now for 5.19.
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)2.
arch/shHitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it8<----- This may we where we want to draw the line ----
Quoted 8 lines
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
I have no plans to stop maintaining ColdFire v2 and v3 (and v4), FWIW.
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (68328serial.c) was removed in 2015. No one seems too have noticed and complained.
Regards
Greg
Quoted 7 lines
5. K210 was added in 2020. I assume you still want to keep it.
7. Arm32 has several Cortex-M based platforms that are mainly kept for legacy users (in particular stm32) or educational value.
Arnd
Hi Arnd,
Quoted 2 lines · Arnd Bergmann
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
I have a different picture here. If you look at the logs at
https://kerneltests.org/builders/qemu-xtensa-master/
there's a line for noMMU config in every one of them:
Building xtensa:de212:kc705-nommu:nommu_kc705_defconfig ... running
............ passed
Please let me know if you observe any specific build/runtime issues.
Signature · 7 lines
Thanks. -- Max _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Arnd Bergmann
maintainerQuoted 7 lines · Max Filippov
Hi Arnd,
Quoted 2 lines · Arnd Bergmann
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
Quoted 8 lines
I have a different picture here. If you look at the logs at
https://kerneltests.org/builders/qemu-xtensa-master/there's a line for noMMU config in every one of them:
Building xtensa:de212:kc705-nommu:nommu_kc705_defconfig ... running
............ passedPlease let me know if you observe any specific build/runtime issues.
This is what I get:
$ make ARCH=xtensa O=build/xtensa nommu_kc705_defconfig vmlinux V=1 .... xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED= -Wp,-MMD,arch/xtensa/kernel/.head.o.d -nostdinc -I/git/arm-soc/arch/xtensa/include -I./arch/xtensa/include/generated -I/git/arm-soc/include -I./include -I/git/arm-soc/arch/xtensa/include/uapi -I./arch/xtensa/include/generated/uapi -I/git/arm-soc/include/uapi -I./include/generated/uapi -include /git/arm-soc/include/linux/compiler-version.h -include /git/arm-soc/include/linux/kconfig.h -D__KERNEL__ -I/git/arm-soc/arch/xtensa/variants/de212/include -I/git/arm-soc/arch/xtensa/platforms/xtfpga/include -fmacro-prefix-map=/git/arm-soc/= -D__ASSEMBLY__ -fno-PIE -mlongcalls -mtext-section-literals -Wa,--fatal-warnings -I /git/arm-soc/arch/xtensa/kernel -I ./arch/xtensa/kernel -c -o arch/xtensa/kernel/head.o /git/arm-soc/arch/xtensa/kernel/head.S /git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages: /git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register 'atomctl' for 'wsr' instruction
I think there were other errors in the past, but every time I tried it, the build failed for me.
Arnd
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 8 lines · Arnd Bergmann
Quoted 1 line · Max Filippov
Please let me know if you observe any specific build/runtime issues.
This is what I get:
$ make ARCH=xtensa O=build/xtensa nommu_kc705_defconfig vmlinux V=1 .... xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED=
...
Quoted 3 lines
/git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages:
/git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register 'atomctl' for 'wsr' instruction
Sure, one cannot use an arbitrary xtensa compiler for the kernel build, the compiler configuration must match the core variant selected in the linux configuration. Specifically, for the nommu_kc705_defconfig the following compiler can be used:
If you build the toolchain yourself using crosstool-ng or buildroot they accept the 'configuration overlay' parameter that does the compiler customization.
Perhaps the documentation for this part is what needs to be improved.
Quoted 2 lines
I think there were other errors in the past, but every time I tried it, the build failed for me.
Signature · 7 lines
Thanks. -- Max _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Arnd Bergmann
maintainerQuoted 14 lines · Max Filippov
Quoted 3 lines · Arnd Bergmann
Quoted 1 line · Max Filippov
Please let me know if you observe any specific build/runtime issues.
xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED=
...
Quoted 3 lines
/git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages:
/git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register 'atomctl' for 'wsr' instructionSure, one cannot use an arbitrary xtensa compiler for the kernel build, the compiler configuration must match the core variant selected in the linux configuration. Specifically, for the
nommu_kc705_defconfigthe following compiler can be used:
Quoted 7 lines
If you build the toolchain yourself using crosstool-ng or buildroot they accept the 'configuration overlay' parameter that does the compiler customization.
Perhaps the documentation for this part is what needs to be improved.
It sounds like a bug in the kernel Makefile. On all other architectures, you can generally just pick any (recent) compiler and build any kernel, as the compiler arguments set the exact target machine type based on the kernel config. You can't normally rely on the compiler defaults for kernel builds.
Arnd
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Arnd Bergmann
maintainerQuoted 22 lines · Arnd Bergmann
Quoted 20 lines · Max Filippov
Quoted 3 lines · Arnd Bergmann
Quoted 1 line · Max Filippov
Please let me know if you observe any specific build/runtime issues.
xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED=
...
Quoted 3 lines
/git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages:
/git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register 'atomctl' for 'wsr' instructionSure, one cannot use an arbitrary xtensa compiler for the kernel build, the compiler configuration must match the core variant selected in the linux configuration. Specifically, for the
nommu_kc705_defconfigthe following compiler can be used:If you build the toolchain yourself using crosstool-ng or buildroot they accept the 'configuration overlay' parameter that does the compiler customization.
Quoted 7 lines
Quoted 1 line
Perhaps the documentation for this part is what needs to be improved.
It sounds like a bug in the kernel
Makefile. On all other architectures, you can generally just pick any (recent) compiler and build any kernel, as the compiler arguments set the exact target machine type based on the kernel config. You can't normally rely on the compiler defaults for kernel builds.
FWIW, the compiler I used is the one I built for kernel.org [1] using unmodified upstream sources The config I used for this is
${SRCTREE}/configure ../log-gcc-configure /home/arnd/git/gcc/configure --target=xtensa-linux --enable-targets=all --prefix=/home/arnd/cross/x86_64/gcc-11.1.0-nolibc/xtensa-linux --enable-languages=c --without-headers --disable-bootstrap --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --disable-libquadmath --disable-libatomic --disable-libcc1 --disable-libmpx --enable-checking=release
Let me know if I need to enable additional options to get a compiler that works for all xtensa targets. Usually the --enable-targets=all is meant to be sufficient.
Arnd
[1] https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 21 lines · Arnd Bergmann
Quoted 20 lines · Max Filippov
Quoted 3 lines · Arnd Bergmann
Quoted 1 line · Max Filippov
Please let me know if you observe any specific build/runtime issues.
xtensa-linux-gcc-11.1.0 -DKCONFIG_SEED=
...
Quoted 3 lines
/git/arm-soc/arch/xtensa/kernel/head.S: Assembler messages:
/git/arm-soc/arch/xtensa/kernel/head.S:87: Error: invalid register 'atomctl' for 'wsr' instructionSure, one cannot use an arbitrary xtensa compiler for the kernel build, the compiler configuration must match the core variant selected in the linux configuration. Specifically, for the
nommu_kc705_defconfigthe following compiler can be used:If you build the toolchain yourself using crosstool-ng or buildroot they accept the 'configuration overlay' parameter that does the compiler customization.
Quoted 7 lines
Quoted 1 line
Perhaps the documentation for this part is what needs to be improved.
It sounds like a bug in the kernel
Makefile. On all other architectures, you can generally just pick any (recent) compiler and build any kernel, as the compiler arguments set the exact target machine type based on the kernel config. You can't normally rely on the compiler defaults for kernel builds.
It's not just the defaults. The binary instruction encoding is configurable on the xtensa architecture, configuration overlay replaces parts of the toolchain that do that.
The additional CPU state is configurable and the kernel gets customized with the code that loads and stores this state when someone builds it for a specific xtensa core.
These customizations are done by the users of the xtensa architecture and there are hundreds of configurations in existence. The toolchain has never been supposed to support all of them at once.
Signature · 7 lines
Thanks. -- Max _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 3 lines · Arnd Bergmann
Let me know if I need to enable additional options to get a compiler that works for all xtensa targets. Usually the --enable-targets=all is meant to be sufficient.
This is not possible with the current design of the xtensa toolchain port. There's an effort to make switching between the core configurations easy (without the whole toolchain rebuild:
https://github.com/jcmvbkbc/xtensa-dynconfig
https://github.com/jcmvbkbc/gcc-xtensa/tree/xtensa-dynconfig
https://github.com/jcmvbkbc/binutils-gdb-xtensa/tree/xtensa-plugin-env ),
but it still involves building plugins for the parts of the toolchain for each new xtensa core.
Signature · 7 lines
Thanks. -- Max _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 34 lines · Arnd Bergmann
Quoted 9 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment. I've queued it up now for 5.19.
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)2.
arch/shHitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it8<----- This may we where we want to draw the line ----
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future
Quoted 5 lines
4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
5. K210 was added in 2020. I assume you still want to keep it.
Still working on this one, I would like to keep it.
Quoted 11 lines
7. Arm32 has several Cortex-M based platforms that are mainly kept for legacy users (in particular stm32) or educational value.
Arnd
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 30 lines · Geert Uytterhoeven
Hi Arnd,
Quoted 11 lines · Arnd Bergmann
Quoted 8 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment.
Doh, I hadn't seen this patch before ;-) Nevertheless, I do not have access to H8/300 hardware.
Quoted 4 lines
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the futureYep, when the SH4 patents will have expired.
I believe that's planned for 2016 (Islamic calendar? ;-)BTW, the unresponsiveness of the SH maintainers is also annoying. Patches are sent to the list (sometimes multiple people are solving the same recurring issue), but ignored.
Quoted 5 lines
Anyway, I do regular boot tests on SH4.
Quoted 1 line
5. K210 was added in 2020. I assume you still want to keep it.
FTR, I do regular boot tests on K210.
FYI, we identified the problem that makes userspace execution unreliable. Working on a fix.
Signature · 2 lines
Damien Le Moal Western Digital Research
Hi Greg,
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine.
I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial.
It might be a few months.
It looked like 68328serial.c was removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.
Cheers,
Daniel
Hi Daniel,
Quoted 14 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.I noticed this and I am working on fixing it up for a new Dragonball homebrew machine.
I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial.
It might be a few months.
Quoted 6 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.
Nice. I will leave all the 68000/68328 code alone for now then.
Regards
Greg
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 17 lines · Arnd Bergmann
Quoted 9 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment. I've queued it up now for 5.19.
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
Quoted 6 lines
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)
Hmm, I build and test nommu_kc705_defconfig in my test system.
Quoted 11 lines
2.
arch/shHitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it8<----- This may we where we want to draw the line ----
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future
Quoted 9 lines
4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
5. K210 was added in 2020. I assume you still want to keep it.
7. Arm32 has several Cortex-M based platforms that are mainly kept for legacy users (in particular stm32) or educational value.
I do build and test mps2_defconfig with qemu's mps2-an385 emulation.
I am not saying that those are actively used, and I don't mind dropping them, but they do still work.
Guenter
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Arnd Bergmann
maintainerQuoted 5 lines · Guenter Roeck
Quoted 4 lines · Arnd Bergmann
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
Quoted 8 lines
Quoted 6 lines
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)Hmm, I build and test
nommu_kc705_defconfigin my test system.
What toolchain do you use for this? Max already pointed out my mistake regarding xtensa, which I thought does not build at all, but just needs a toolchain specific to the cpu.
Quoted 16 lines
Quoted 16 lines
2.
arch/shHitachi/Renesas sh2 (non-j2) support appears to be in a similar state to h8300, I don't think anyone would miss it8<----- This may we where we want to draw the line ----
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the future4. m68k Dragonball, Coldfire v2 and Coldfire v3 are just as obsolete as SH2 as hardware is concerned, but Greg Ungerer keeps maintaining it, along with the newer Coldfire v4 (with MMU)
5. K210 was added in 2020. I assume you still want to keep it.
Quoted 7 lines
Quoted 3 lines
7. Arm32 has several Cortex-M based platforms that are mainly kept for legacy users (in particular stm32) or educational value.
I do build and test
mps2_defconfigwith qemu's mps2-an385 emulation.I am not saying that those are actively used, and I don't mind dropping them, but they do still work.
To clarify, the list was sorted based on what I expected to be the least to most actively maintained ones, with the stm32 clearly being in use, and above it in the the list somewhat less.
Arnd
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 13 lines · Arnd Bergmann
Quoted 12 lines · Guenter Roeck
Quoted 10 lines · Arnd Bergmann
Should we garbage-collect some of the other nommu platforms where we're here? Some of them are just as stale:
1. xtensa nommu has does not compile in mainline and as far as I can tell never did
(there was https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-5.6-esp32,
which
worked at some point, but I don't think there was enough interest
to get in merged)
Quoted 6 lines
Quoted 1 line
Hmm, I build and test
nommu_kc705_defconfigin my test system.What toolchain do you use for this? Max already pointed out my mistake regarding xtensa, which I thought does not build at all, but just needs a toolchain specific to the cpu.
Home-built using buildroot. I have three different xtensa toolchains (de212, dc232b, and dc233c). The toolchain for kc705_nommu needs the de212 overlay; I think Max pointed to to the information needed to build the compiler. Buildroot has the "XTENSA_OVERLAY_FILE" option to specify the compiler overlay file for the target.
Guenter
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 9 lines · Geert Uytterhoeven
Hi Arnd,
Quoted 6 lines · Arnd Bergmann
Quoted 5 lines · Christoph Hellwig
Quoted 3 lines · Arnd Bergmann
If there are no other objections, I'll just queue this up for 5.18 in the asm-generic
tree along with the nds32 removal.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
So it is the last day of te merge window and
arch/h8300is till there. And checking nw the removal has also not made it to linux-next. Looks like it is so stale that even the removal gets ignored :(I was really hoping that someone else would at least comment.
Doh, I hadn't seen this patch before ;-) Nevertheless, I do not have access to H8/300 hardware.
The 8300 never got qemu support but I had lunch with the maintainer in Tokyo a few years back and he showed me how to use gdb to simulate it, which included booting Linux under the gdb simulation (built-in initramfs talking to serial console). Here's somebody else using gdb simulation for h8/300:
https://www4.cs.fau.de/~felser/RCXSimulator/
I'm interested in H8300 because it's a tiny architecture (under 6k lines total, in 93 files) and thus a good way to see what a minimal Linux port looks like. If somebody would like to suggest a different one for that...
Quoted 6 lines
Quoted 4 lines
3.
arch/shj2 support was added in 2016 and doesn't see a lot of changes, but I think
Rich still cares about it and wants to add J32 support (with MMU)
in the futureYep, when the SH4 patents will have expired.
They've had a working J32 on FPGA for a while now, the problem is porting Linux to it. The MMU design they went with wasn't compatible with sh3/sh4. (Userspace is, kernel side needs some tweaking.) And they don't want to finalize the design until they have proper test loads running on it, and then they went off to do VPN hardware and such during the pandemic...
Quoted 1 line
I believe that's planned for 2016 (Islamic calendar? ;-)
The website's kind of archived and needs to be completely redone. (It moved hosts and I lost access to update it for a while, and I got sucked into other projects since. The mailing list server is also mothballed. Ask Jeff, I brought it up every weekly call for 6 months...)
Jeff's team is working on making a J2 asic this year (through sky130), and everything else is queued up after that. They've been grabbing various I/O subsystems (like the GPS correlators and crypto engine and such) and doing work on them to make go/no-go decisions for the asic inclusion. (Lots of activity goes by on the Signal channel, but I can't even get cut and paste to work in that thing's Android app, and I don't really have the domain expertise to help out with that part.)
Quoted 3 lines
BTW, the unresponsiveness of the SH maintainers is also annoying. Patches are sent to the list (sometimes multiple people are solving the same recurring issue), but ignored.
I mailed four or five turtle boards out to people last year, in hopes of getting wider testing, but everybody I sent one to seems to have vanished. (The pandemic chip shortage kinda derailed plans to productize that...)
I tested 5.17 on J2 FPGA when it came out, and it booted with two local patches:
1) Commit 790eb67374 needs to be reverted or the j2 boot just hangs before producing any console output. Dunno why, it seems COMPLETELY unrelated, and yet. (Wild guess: disturbs the alignment of some important piece of data? Rich knows and it's in queue.)
2) This patch from Rich stops the j2 boot messages from being a thousand lines of IRQ warnings, but he called it a hack when he sent it to me and I have no clue what a "proper" fix would look like (or why that isn't)?
drivers/irqchip/irq-jcore-aic.c +6 -0
@@ -68,6 +68,7 @@ static int __init aic_irq_of_init(struct device_node *node,unsigned min_irq =JCORE_AIC2_MIN_HWIRQ ;unsigned dom_sz =JCORE_AIC_MAX_HWIRQ +1 ;struct irq_domain *domain; +int rc;pr_info ("Initializing J-Core AIC\n" );
@@ -100,6 +101,11 @@ static int __init aic_irq_of_init(struct device_node *node, jcore_aic.irq_unmask = noop; jcore_aic.name ="AIC" ; + rc =irq_alloc_descs (min_irq, min_irq, dom_sz - min_irq, +of_node_to_nid (node)); +if (rc <0 ) +pr_info ("Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n" , + min_irq); domain =irq_domain_add_legacy (node, dom_sz - min_irq, min_irq, min_irq, &jcore_aic_irqdomain_ops, &jcore_aic);
I'm spinning too many plates to reliably reply to stuff, but I try to check in as often as I can, and at LEAST regression test each new release.
Rob
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Arnd Bergmann
maintainerQuoted 3 lines · Rob Landley
I'm interested in H8300 because it's a tiny architecture (under 6k lines total, in 93 files) and thus a good way to see what a minimal Linux port looks like. If somebody would like to suggest a different one for that...
Anything that is maintained is usually a better example, and it helps when the code is not old enough to have accumulated a lot of historic baggage.
The arch/riscv/ code is generally a good example base for others to copy. It's not nearly as small, but that is mostly because it implements optional features that could be left out. csky is a smaller example that is also fairly clean and new, but less featureful.
Arnd
John Paul Adrian Glaubitz
maintainerQuoted 8 lines · Arnd Bergmann
Quoted 3 lines · Rob Landley
I'm interested in H8300 because it's a tiny architecture (under 6k lines total, in 93 files) and thus a good way to see what a minimal Linux port looks like. If somebody would like to suggest a different one for that...
Anything that is maintained is usually a better example, and it helps when the code is not old enough to have accumulated a lot of historic baggage.
But if it's not a lot of code, would it really accumulate a lot of cruft?
If the code just works as is and doesn't need much attention to keep it working why not keep it? As long as the code doesn't break anything else what's the problem with keeping it?
FWIW, the H8 backend in GCC was just recently modernized and improved and converted to MODE_CC.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 3 lines · John Paul Adrian Glaubitz
But if it's not a lot of code, would it really accumulate a lot of cruft?
If the code just works as is and doesn't need much attention to keep it working
Because no one gives it even that little bit of attention.
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 8 lines · John Paul Adrian Glaubitz
Quoted 7 lines · Arnd Bergmann
Quoted 4 lines · Rob Landley
I'm interested in H8300 because it's a tiny architecture (under 6k lines total, in 93 files) and thus a good way to see what a minimal Linux port looks like. If somebody would like to suggest a different one for that...
Quoted 7 lines
Quoted 3 lines
Anything that is maintained is usually a better example, and it helps when the code is not old enough to have accumulated a lot of historic baggage.
But if it's not a lot of code, would it really accumulate a lot of cruft?
Where you see "TODO" in Documentation/features/*/*/arch-support.txt it may mean that an architecture is preventing the removal of an old API.
You're quite right, though, it is incorrect to call this an "accumulation" of baggage. It is actually the failure to remove cruft. (OTOH, shiny new things can be said to "accumulate". That's how cruft gets made.)
Quoted 16 lines · Greg Ungerer
Hi Daniel,
Quoted 13 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.I noticed this and I am working on fixing it up for a new Dragonball homebrew machine.
I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial.
It might be a few months.
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loops
It certainly THINKS it's got m68000...
$ qemu-system-m68k -cpu ? cfv4e m5206 m5208 m68000 m68010 m68020 m68030 m68040 m68060 any
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
Quoted 8 lines
Quoted 6 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.Nice. I will leave all the 68000/68328 code alone for now then.
The q800 config uses CONFIG_SERIAL_PMACZILOG. Seems to work fine?
Quoted 2 lines
Regards
Greg
Rob
Quoted 25 lines · Rob Landley
Quoted 8 lines · Greg Ungerer
Quoted 7 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.Quoted 4 lines
Quoted 4 lines
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine. I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial. It might be a few months.
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loops
Quoted 2 lines
It certainly THINKS it's got m68000...
Most 68040 processor variants have a built-in MMU and the m68k "nommu" Linux port doesn't support them. The nommu port covers processors like 68000, Dragonball etc. whereas the m68k "mmu" port covers 680x0 where x is one of 2,3,4,6 with MMU.
Quoted 12 lines
$ qemu-system-m68k -cpu ? cfv4e m5206 m5208 m68000 m68010 m68020 m68030 m68040 m68060 any
Quoted 4 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
I could never figure out how to boot a coldfire machine in qemu either. There was no documentation about that back when I attempted it but maybe things have improved since.
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it. My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.Nice. I will leave all the 68000/68328 code alone for now then.
The q800 config uses
CONFIG_SERIAL_PMACZILOG. Seems to work fine?
That driver would work on certain 68000 systems e.g. early Macs. (And IIRC someone did once boot a customized Linux kernel on a Mac SE...)
Hi Rob,
Quoted 11 lines · Rob Landley
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loops
Quoted 1 line
It certainly THINKS it's got m68000...
I couldn't work out how to define a mc68000 machine on the command line alone. There might be a way but it didn't seem like it.
Quoted 3 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
Once I get QEMU to emulate a simple mc68000 system my plan is to get u-boot going (I managed to get it to build for plain mc68000 but I didn't get far enough with the QEMU bit to try booting it yet) then put together the buildroot configs to build qemu, u-boot, a kernel and rootfs that just work. Then I can hook it into CI and have it build and boot test automatically and it won't bit rot anymore.
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.Nice. I will leave all the 68000/68328 code alone for now then.
The q800 config uses
CONFIG_SERIAL_PMACZILOG. Seems to work fine?
Dragonball uses a weird UART that doesn't seem to be compatible with any of the common ones so it needs its own driver.
Cheers,
Daniel
Quoted 41 lines · Rob Landley
Quoted 8 lines · Greg Ungerer
Quoted 7 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.Quoted 6 lines
Quoted 6 lines
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine.
I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial.
It might be a few months.I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loopsIt certainly THINKS it's got m68000...
$ qemu-system-m68k -cpu ? cfv4e m5206 m5208 m68000 m68010 m68020 m68030 m68040 m68060 any
Quoted 3 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
I run and test all development rc and release kernels on the qemu m5208 target (that is a ColdFire v2 nommu core, the "-machine mcf5208evb" qemu target). Of course I test real hardware as well :-)
The kernel's m5208evb_defconfig works for qemu. Though you will need to sort out a user space to get to a login/shell. I mostly use the last uClibc for that.
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.Nice. I will leave all the 68000/68328 code alone for now then.
The q800 config uses
CONFIG_SERIAL_PMACZILOG. Seems to work fine?
Sure, but the Dragonball are a 68328 SoC family. Its serial hardware block is different, needs a different driver. At least all the ColdFire parts use the same internal hardware serial block.
Regards
Greg
Quoted 47 lines · Finn Thain
Quoted 25 lines · Rob Landley
Quoted 8 lines · Greg Ungerer
Quoted 7 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.Quoted 4 lines
Quoted 4 lines
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine. I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial. It might be a few months.
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loopsQuoted 2 lines
It certainly THINKS it's got m68000...
Most 68040 processor variants have a built-in MMU and the m68k "nommu" Linux port doesn't support them. The nommu port covers processors like 68000, Dragonball etc. whereas the m68k "mmu" port covers 680x0 where x is one of 2,3,4,6 with MMU.
Quoted 12 lines
$ qemu-system-m68k -cpu ? cfv4e m5206 m5208 m68000 m68010 m68020 m68030 m68040 m68060 any
Quoted 8 lines
Quoted 4 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
I could never figure out how to boot a coldfire machine in qemu either. There was no documentation about that back when I attempted it but maybe things have improved since.
FWIW this will do it:
qemu-system-m68k -nographic -machine mcf5208evb -kernel vmlinux
That will boot an m5208evb_defconfig generated vmlinux. But you will need a user space to get a full boot to login/shell.
Regards
Greg
Quoted 15 lines · Daniel Palmer
Hi Rob,
Quoted 11 lines · Rob Landley
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loops
Quoted 4 lines
Quoted 1 line
It certainly THINKS it's got m68000...
I couldn't work out how to define a mc68000 machine on the command line alone. There might be a way but it didn't seem like it.
By adding "-cpu m68000" to the qemu command line?
The problem is you need a working _system_. If you wget
http://landley.net/toybox/downloads/binaries/mkroot/latest/m68k.tgz and extract it and run
./qemu-m68k.sh it boots to a shell prompt. If you "./qemu-m68k.sh -cpu m68000" it doesn't boot because the kernel is built for 68040.
Quoted 10 lines
Quoted 3 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
Once I get QEMU to emulate a simple mc68000 system my plan is to get u-boot going (I managed to get it to build for plain mc68000 but I didn't get far enough with the QEMU bit to try booting it yet) then put together the buildroot configs to build qemu, u-boot, a kernel and rootfs that just work. Then I can hook it into CI and have it build and boot test automatically and it won't bit rot anymore.
I don't bother with buildroot much, I wrote a 300 line bash script that builds a bootable Linux system instead:
https://github.com/landley/toybox/blob/master/scripts/mkroot.sh
As for adding coldfire support, let's see... google for "qemu coldfire" first hit is https://qemu.readthedocs.io/en/latest/system/target-m68k.html which says the default board in qemu-system-m68k is coldfire and has run uclinux. There's a defconfig for it (arch/m68k/configs/m5208evb_defconfig) so:
$ make ARCH=m68k m5208evb_defconfig ... $ CROSS_COMPILE=m68k-linux-musl- make ARCH-m68k ... $ qemu-system-m68k -nographic -kernel vmlinux
Hey, console output on serial using my existing m68k toolchain. Good sign. Ok, let's see, can I get a userspace...
No, I can't. The coldfire kernel only supports BINFLT, which is an a.out derivative. All the nommu targets I'm supporting are either FDPIC or (where gcc hasn't merged fdpic support yet) I'm building static pie and using the FDPIC loader in the kernel, which can load normal ELF: FDPIC makes the 4 bss/data/text/rodata sections independently relocatable and static PIE has those 4 glued together into one contiguous lump but at least that lump is relocatable, so it's a lot worse about fragmentation but does at least RUN...
If I can't wire up the fdpic loader for coldfire, I can't build ELF format binaries for it, and I just don't mess with a.out anymore.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It looked like
68328serial.cwas removed because someone tried to clean it up and it was decided that no one was using it and it was best to delete it.
My plan was to at some point send a series to fix up the issues with the Dragonball support, revert removing the serial driver and adding the patch that cleaned it up.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Nice. I will leave all the 68000/68328 code alone for now then.
The q800 config uses
CONFIG_SERIAL_PMACZILOG. Seems to work fine?Dragonball uses a weird UART that doesn't seem to be compatible with any of the common ones so it needs its own driver.
Indeed.
That said, the 5208 is using CONFIG_SERIAL_MCF and I got serial output from the kernel I just built. Pity it hasn't got FDPIC support...
Quoted 3 lines
Cheers,
Daniel
Rob
Quoted 29 lines · Greg Ungerer
Quoted 27 lines · Finn Thain
Quoted 25 lines · Rob Landley
Quoted 8 lines · Greg Ungerer
Quoted 7 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.Quoted 4 lines
Quoted 4 lines
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine. I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial. It might be a few months.
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loops
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
It certainly THINKS it's got m68000...
Most 68040 processor variants have a built-in MMU and the m68k "nommu" Linux port doesn't support them. The nommu port covers processors like 68000, Dragonball etc. whereas the m68k "mmu" port covers 680x0 where x is one of 2,3,4,6 with MMU.
In theory you can switch the MMU off. (Or at least give it a NOP page table that maps all the physical memory into one big contiguous block 1:1 with the physical address and leave it there.)
Doesn't mean anybody's bothered to implement and add a config option to stub that out in the kernel yet. But presumably you could have a bootloader shim do it...
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
I could never figure out how to boot a coldfire machine in qemu either. There was no documentation about that back when I attempted it but maybe things have improved since.
Quoted 6 lines
FWIW this will do it:
qemu-system-m68k -nographic -machine mcf5208evb -kernel vmlinux
That will boot an
m5208evb_defconfiggenerated vmlinux. But you will need a user space to get a full boot to login/shell.
No FDPIC support. :(
I had a binflt toolchain working with uClibc in 2015 or so, but I end of lifed
https://landley.net/aboriginal in 2017 (five years ago now). Multiple reasons, but one was the old "last GPLv2 release" toolchain was getting painful to force the kernel to build with.
These days there's articles on lwn.net about yanking a.out support, which fdpic is a buggy variant of that didn't actually have a maintained elf2flt repository when I was assembling my toolchain. (I vaguely recall I poked enough people that somebody picked it up and stuck a repository on github, but Jeff Dionne explained some fundamental design flaw that had been introduced having to do with register offsets being calculated in the wrong framework or something?
I don't remember, I lost interest because it's _conceptually_ obsolete. FDPIC is ELF with a little extra header info, it's clean and potentially even useful on with-MMU systems as extra ASLR. BINFLT is a.out run through a postprocessing tool that nominally converts ELF files into the new format but actually needs .o files from earlier in the process and is kind of an alternate linker except it doesn't replace the linker... It's layers of ugly.
Quoted 2 lines
Regards
Greg
Rob
Quoted 8 lines · Rob Landley
Quoted 6 lines
FWIW this will do it:
qemu-system-m68k -nographic -machine mcf5208evb -kernel vmlinux
That will boot an
m5208evb_defconfiggenerated vmlinux. But you will need a user space to get a full boot to login/shell.No FDPIC support. :(
First stab at switching on CONFIG_BINFMT_FDPIC in the coldfire config and adding enough stuff to shut up the compiler. Maybe it'll let me load a PIE binary? Dunno yet, but it compiled a vmlinux that booted to the same panic as the previous one because I haven't fed it an initramfs yet...
I also had to disable CONFIG_ELF_CORE or else the link died with:
m68k-linux-musl-ld: fs/binfmt_elf_fdpic.o: in function `elf_dump_thread_status':
binfmt_elf_fdpic.c:(.text+0x18): undefined reference to `task_user_regset_view'
make: *** [Makefile:1155: vmlinux] Error 1
But when I did THAT it compiled. :)
arch/m68k/include/asm/elf.h +2 -0
@@ -114,4 +114,6 @@ typedef struct user_m68kfp_struct elf_fpregset_t;#define ELF_PLATFORM (NULL) +#define ELF_FDPIC_CORE_EFLAGS 0 +#endif
arch/m68k/include/asm/mmu.h +4 -0
@@ -8,6 +8,10 @@ typedef unsigned long mm_context_t;#else typedef struct {unsigned long end_brk; +#ifdef CONFIG_BINFMT_ELF_FDPIC +unsigned long exec_fdpic_loadmap; +unsigned long interp_fdpic_loadmap; +#endif }mm_context_t ;#endif
(quoted diff) +0 -0
b/arch/m68k/include/uapi/asm/ptrace.h
index 19a1b9d0d858..869601381f30 100644
arch/m68k/include/uapi/asm/ptrace.h +4 -0
@@ -71,6 +71,10 @@ struct switch_stack {#define PTRACE_SETREGS 13#define PTRACE_GETFPREGS 14#define PTRACE_SETFPREGS 15 +#define PTRACE_GETFDPIC 31 + +#define PTRACE_GETFDPIC_EXEC 0 +#define PTRACE_GETFDPIC_INTERP 1#define PTRACE_GET_THREAD_AREA 25
fs/Kconfig.binfmt +1 -1
@@ -45,7 +45,7 @@ config ARCH_USE_GNU_PROPERTY config BINFMT_ELF_FDPIC bool "Kernel support for FDPIC ELF binaries" default y if !BINFMT_ELF - depends on (ARM || (SUPERH && !MMU)) + depends on (ARM || (SUPERH && !MMU) || M68K) select ELFCORE help ELF FDPIC binaries are based on ELF, but allow the individual load
Rob
Quoted 77 lines · Rob Landley
Quoted 29 lines · Greg Ungerer
Quoted 27 lines · Finn Thain
Quoted 25 lines · Rob Landley
Quoted 8 lines · Greg Ungerer
Quoted 7 lines · Daniel Palmer
Quoted 5 lines · Greg Ungerer
But we could consider the Dragonball support for removal. I keep it compiling, but I don't use it and can't test that it actually works. Not sure that it has been used for a very long time now. And I didn't even realize but its serial driver (
68328serial.c) was removed in 2015. No one seems too have noticed and complained.Quoted 4 lines
Quoted 4 lines
I noticed this and I am working on fixing it up for a new Dragonball homebrew machine. I'm trying to add a 68000 machine to QEMU to make the development easier because I'm currently waiting an hour or more for a kernel to load over serial. It might be a few months.
I've been booting Linux on qemu-system-m68k -M q800 for a couple years now? (The CROSS=m68k target of mkroot in toybox?)
# cat /proc/cpuinfo CPU: 68040 MMU: 68040 FPU: 68040 Clocking: 1261.9MHz BogoMips: 841.31 Calibration: 4206592 loopsQuoted 7 lines
Quoted 7 lines
Quoted 2 lines
It certainly THINKS it's got m68000...
Most 68040 processor variants have a built-in MMU and the m68k "nommu" Linux port doesn't support them. The nommu port covers processors like 68000, Dragonball etc. whereas the m68k "mmu" port covers 680x0 where x is one of 2,3,4,6 with MMU.
In theory you can switch the MMU off. (Or at least give it a NOP page table that maps all the physical memory into one big contiguous block 1:1 with the physical address and leave it there.)
Doesn't mean anybody's bothered to implement and add a config option to stub that out in the kernel yet. But presumably you could have a bootloader shim do it...
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
(I'd love to get an m68k nommu system working but never sat down and worked out a kernel .config qemu agreed to run, plus compiler and libc. Musl added m68k support but I dunno if that includes coldfire?)
I could never figure out how to boot a coldfire machine in qemu either. There was no documentation about that back when I attempted it but maybe things have improved since.
Quoted 6 lines
FWIW this will do it:
qemu-system-m68k -nographic -machine mcf5208evb -kernel vmlinux
That will boot an
m5208evb_defconfiggenerated vmlinux. But you will need a user space to get a full boot to login/shell.No FDPIC support. :(
I had a binflt toolchain working with uClibc in 2015 or so, but I end of lifed
https://landley.net/aboriginal in 2017 (five years ago now). Multiple reasons, but one was the old "last GPLv2 release" toolchain was getting painful to force the kernel to build with.These days there's articles on lwn.net about yanking a.out support, which fdpic is a buggy variant of that didn't actually have a maintained elf2flt repository when I was assembling my toolchain. (I vaguely recall I poked enough people that somebody picked it up and stuck a repository on github, but Jeff Dionne explained some fundamental design flaw that had been introduced having to do with register offsets being calculated in the wrong framework or something?
Quoted 6 lines
I don't remember, I lost interest because it's _conceptually_ obsolete. FDPIC is ELF with a little extra header info, it's clean and potentially even useful on with-MMU systems as extra ASLR. BINFLT is a.out run through a postprocessing tool that nominally converts ELF files into the new format but actually needs .o files from earlier in the process and is kind of an alternate linker except it doesn't replace the linker... It's layers of ugly.
FLAT format has nothing to do with a.out.
Removing a.out support from the kernel will have no impact on binfmt_flat.
Regards
Greg
Geert Uytterhoeven
maintainerHi Chrisoph,
Quoted 21 lines · Christoph Hellwig
h8300 hasn't been maintained for quite a while, with even years old pull request lingering in the old repo. Given that it always was rather fringe to start with I'd suggest to go ahead and remove the port:
The following changes since commit
5c1ee569660d4a205dced9cb4d0306b907fb7599:Merge branch 'for-5.17-fixes' of
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup(2022-02-22 16:14:35 -0800)are available in the Git repository at:
git://git.infradead.org/users/hch/misc.gitremove-h8300for you to fetch changes up to
1c4b5ecb7ea190fa3e9f9d6891e6c90b60e04f24:remove the h8300 architecture (2022-02-23 08:52:50 +0100)
----------------------------------------------------------------
Christoph Hellwig (1):
remove the h8300 architecture
Quoted 5 lines
.../bindings/clock/renesas,h8300-div-clock.txt | 24 -- Documentation/devicetree/bindings/h8300/cpu.txt | 13 - .../interrupt-controller/renesas,h8300h-intc.txt | 22 -- .../interrupt-controller/renesas,h8s-intc.txt | 22 -- .../memory-controllers/renesas,h8300-bsc.yaml | 35 --
More DT bindings to garbage-collect:Documentation/devicetree/bindings/clock/renesas,h8s2678-pll-clock.txt Documentation/devicetree/bindings/timer/renesas,16bit-timer.txt Documentation/devicetree/bindings/timer/renesas,8bit-timer.txt
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds