m68knommu: improve config ROM setting defaults
PATCH 1/1 m68knommu: improve config ROM setting defaults
From: Greg Ungerer <[email protected]>
The ROM region configuration settings used on some nommu m68k systems (historically mostly 68328 (Dragonball) CPUs) default to an address of 0. That can easily clash with default RAM address settings which also default to 0. Of course that is invalid and those ranges overlap, but if you make no value selection that is what you end up with. Those default values produce a valid configuration but will fail compilation like this:
m68k-linux-ld: section .rodata VMA [0000000000001000,0000000000262227] overlaps section .text VMA [0000000000000400,0000000000455e7f]
Looking at the platforms that use the ROM region configuration settings it is clear that we can choose much better defaults than 0. By far the most comman ROM region settings are these:
CONFIG_ROMVEC=0x10c10000
CONFIG_ROMSTART=0x10c10400So lets make these the default values.
It is still possible to configure overlapping ROM and RAM regions, but at least the defult selections are now valid.
--- arch/m68k/Kconfig.machine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/m68k/Kconfig.machine +2 -2
@@ -441,7 +441,7 @@ config ROM config ROMVEC hex "Address of the base of the ROM vectors" - default "0" + default "0x10c10000" depends on ROM help This is almost always the same as the base of the ROM. Since on all
@@ -450,7 +450,7 @@ config ROMVEC config ROMSTART hex "Address of the base of system image in ROM" - default "0x400" + default "0x10c10400" depends on ROM help Define the start address of the system image in ROM. Commonly this
Signature · 1 line
2.25.1
Geert Uytterhoeven
maintainerHi Greg,
Thanks for your patch!
Quoted 10 lines · Greg Ungerer
From: Greg Ungerer <[email protected]>
The ROM region configuration settings used on some nommu m68k systems (historically mostly 68328 (Dragonball) CPUs) default to an address of 0. That can easily clash with default RAM address settings which also default to 0. Of course that is invalid and those ranges overlap, but if you make no value selection that is what you end up with. Those default values produce a valid configuration but will fail compilation like this:
Quoted 5 lines
m68k-linux-ld: section .rodata VMA [0000000000001000,0000000000262227] overlaps section .text VMA [0000000000000400,0000000000455e7f]Looking at the platforms that use the ROM region configuration settings it is clear that we can choose much better defaults than 0. By far the most comman ROM region settings are these:
common
Quoted 7 lines
CONFIG_ROMVEC=0x10c10000 CONFIG_ROMSTART=0x10c10400So lets make these the default values.
It is still possible to configure overlapping ROM and RAM regions, but at least the defult selections are now valid.
default
Quoted 4 lines
Reported-by kernel test robot <[email protected]>Signed-off-by Greg Ungerer <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
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 Geert,
Quoted 26 lines · Geert Uytterhoeven
Hi Greg,
Thanks for your patch!
Quoted 10 lines · Greg Ungerer
From: Greg Ungerer <[email protected]>
The ROM region configuration settings used on some nommu m68k systems (historically mostly 68328 (Dragonball) CPUs) default to an address of 0. That can easily clash with default RAM address settings which also default to 0. Of course that is invalid and those ranges overlap, but if you make no value selection that is what you end up with. Those default values produce a valid configuration but will fail compilation like this:
Quoted 5 lines
m68k-linux-ld: section .rodata VMA [0000000000001000,0000000000262227] overlaps section .text VMA [0000000000000400,0000000000455e7f]Looking at the platforms that use the ROM region configuration settings it is clear that we can choose much better defaults than 0. By far the most comman ROM region settings are these:
common
Quoted 3 lines
CONFIG_ROMVEC=0x10c10000 CONFIG_ROMSTART=0x10c10400
Quoted 6 lines
Quoted 4 lines
So lets make these the default values.
It is still possible to configure overlapping ROM and RAM regions, but at least the defult selections are now valid.
default
And I thought I spell checked them before sending :-( I'll fix those up, thanks!
Regards
Greg
Quoted 9 lines
Quoted 4 lines
Reported-by kernel test robot <[email protected]>Signed-off-by Greg Ungerer <[email protected]>Gr{oetje,eeting}s,
Geert