[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<VI0P195MB273999EC8797270AE732D8BAEDE7A@VI0P195MB2739.EURP195.PROD.OUTLOOK.COM>
Date: Thu, 2 Oct 2025 18:34:53 +0300
From: Franz-Josef Haider <fj.haider@...look.com>
To: Arnd Bergmann <arnd@...db.de>, Linus Walleij <linus.walleij@...aro.org>
Cc: Russell King <linux@...linux.org.uk>, Ard Biesheuvel <ardb@...nel.org>,
Russell King <rmk+kernel@...linux.org.uk>, Eric Biggers
<ebiggers@...nel.org>, Nathan Chancellor <nathan@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>, Kees Cook <kees@...nel.org>,
Dave Vasilevsky <dave@...ilevsky.ca>, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, trivial@...nel.org
Subject: Re: [PATCH] ARM: Make sure CPU_ARM940T kernel can be built.
On 10/1/25 23:52, Arnd Bergmann wrote:
> On Wed, Oct 1, 2025, at 18:04, Franz-Josef Haider wrote:
>> On 9/30/25 15:09, Linus Walleij wrote:
>>> On Thu, Sep 25, 2025 at 11:33 PM Franz-Josef Haider <fj.haider@...look.com> wrote:
>>>
>>>> From 33ce5a26ef08199625bc5bb01a176047bfacff91 Mon Sep 17 00:00:00 2001
>>>> From: Franz-Josef Haider <fj.haider@...look.com>
>> Hello, I have done this change because when trying to "select
>> CPU_ARM940T" from a Kconfig for a device with arm940t cpu, the build
>> ends up failing with errors like
>> arch/arm/lib/ashldi3.S: Assembler messages:
>> arch/arm/lib/ashldi3.S:44: Error: cannot honor width suffix
>> -- `rsb ip,r2,#32'
>>
>> With the change I am able to build a kernel which runs on a device with
>> arm940t cpu (with the patch "ARM: Add missing mmu flags entry to arm940
>> proc info." which I've submitted as well. And with the necessary mach
>> files etc).
>>
>> I can elaborate on this in the commit message and also adjust the
>> condition to include the other CPU types you mentioned.
> Hi Franz-Josef,
>
> We removed support for ARMv4T NOMMU a couple of years ago in
> commit 2f618d5ef5dd ("ARM: remove support for NOMMU ARMv4/v5"),
> in order to simplify the Kconfig CPU selection.
>
> Adding a new platform in turn means you'll have to add that
> infrastructure we skipped back then, and the dependency here
> is only a very small part of that.
>
> Do you have a public git tree with the rest of your patches?
>
> Arnd
Hi,
Ok if the support for ARMv4T NOMMU has been removed, then maybe we can leave this as resolved.
It's actually just for a hobby project, nothing important. I just thought these two patches might be helpful to other people who encounter a similar issue on similar cpus, but if the support for ARMv4T NOMMU has been dropped then there is no point maybe.
Here are the patches for 6.2 in any case but it's very much a hacky WIP, and there is some stuff in there that's not needed anymore on top of later commits. https://github.com/krnlyng/linux-ipod/commits/n2g-wip
I also have a version on top of a recent (~29 SEPT 2025) commit locally if that is interesting too.
Best regards and thanks,
Franz-Josef
Powered by blists - more mailing lists