qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: BALATON Zoltan <balaton@eik.bme.hu>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: QEMU Development <qemu-devel@nongnu.org>
Subject: Re: A few more patches for u-boot-sam460ex (based on 10.2.0-rc1)
Date: Sat, 22 Nov 2025 13:14:24 +0100 (CET)	[thread overview]
Message-ID: <2cededf4-2b69-9893-521d-add9a2eb43f8@eik.bme.hu> (raw)
In-Reply-To: <9101680c-9b01-4ca8-b54d-15d01451f592@tls.msk.ru>

Hello,

On Wed, 19 Nov 2025, Michael Tokarev wrote:
> Almost an year ago I submitted a few patches for
> u-boot-sam460ex code so it can be built by a
> current gcc:
> https://lists.nongnu.org/archive/html/qemu-devel/2025-01/msg00767.html
>
> Here's another try.  Some of the old issues are
> now gone, some remains, and some new emerged.

Thanks but maybe try upstream at https://acube-systems.biz/ as they are 
still maintaining this U-Boot version and I don't want to diverge too much 
from it so it's easier to update it when a new version comes from 
upstream. (There's already a version newer than the one we have in QEMU 
but that did not work with the emulation for some reason and I did not 
have time to find out why so went with the last version that works as that 
already has the USB fixes we needed and newer version does not have 
anything we need yet but maybe in the future we'll want to update 
further.)

> The below set allows me to build u-boot-sam460ex
> code with gcc-15.
>
> Some bugs are rather harsh and has been there for
> a long time (like multiple definition of fbi symbol -
> the file has been moved to a different dir, but the
> prob remains - it is really a bad code).
>
> Some are harsh but new (the reuse of `failed' variable -
> any compiler, even ancient gcc4, should've catched it).
>
> And some are due to too old code (supporting only gcc4).

The code may be bad and also based on an old U-Boot version that did not 
have support for newer compilers but apparently it works on real boards 
which we try to emulate so I'd like to keep the firmware close to that one 
including bugs so it works the same as the real machine.

For things fixed in newer U-Boot versions it may be better to cherry-pick 
from there and for things that broke because of -Werror settings in Debian 
different from gcc defaults it makes sense to carry patches for that in 
Debian or merge upstream and not just in QEMU.

Regards,
BALATON Zoltan


      reply	other threads:[~2025-11-22 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 20:42 A few more patches for u-boot-sam460ex (based on 10.2.0-rc1) Michael Tokarev
2025-11-22 12:14 ` BALATON Zoltan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2cededf4-2b69-9893-521d-add9a2eb43f8@eik.bme.hu \
    --to=balaton@eik.bme.hu \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).