From: Rob Landley <rob@landley.net>
To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Artur Rojek <contact@artur-rojek.eu>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Rich Felker <dalias@libc.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Uros Bizjak <ubizjak@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
"D . Jeff Dionne" <jeff@coresemi.io>,
linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] J2 Turtle Board fixes
Date: Fri, 28 Feb 2025 16:19:12 -0600 [thread overview]
Message-ID: <9cf43bbe-898f-4b29-bd85-04f5320bce77@landley.net> (raw)
In-Reply-To: <48881e2d8efa9d7df8156f5f81cd662c2286e597.camel@physik.fu-berlin.de>
On 2/28/25 02:34, John Paul Adrian Glaubitz wrote:
> Hi Rob,
>
> On Thu, 2025-02-27 at 21:03 -0600, Rob Landley wrote:
>> On 2/27/25 01:52, John Paul Adrian Glaubitz wrote:
>>> Hi Artur,
>>>
>>> On Sun, 2025-02-16 at 18:55 +0100, Artur Rojek wrote:
>>>> this series fixes boot issues and allows J2 Turtle Board to boot
>>>> upstream Linux again.
>>>>
>>>> Patch [1/2] enforces 8-byte alignment for the dtb offset.
>>>>
>>>> Patch [2/2] resolves a problem with PIT interrupts failing to register.
>>>
>>> I can confirm that this series makes my J2 Turtle Board boot again!
>>>
>>>> Even with the above fixes, Turtle Board is prone to occasional freezes
>>>> related to clock source transition from periodic to hrtimers. I however
>>>> decided to send those two patches ahead and debug the third issue at a
>>>> later time.
>>>
>>> Yep, it just got stuck for me right after these messages at my first boot attempt:
>>>
>>> clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
>>> futex hash table entries: 512 (order: 1, 8192 bytes, linear)
>>> NET: Registered PF_NETLINK/PF_ROUTE protocol family
>>> clocksource: Switched to clocksource jcore_pit_cs
>>>
>>> It boots past these messages on second attempt, although it's now stuck trying to start
>>> /init. However, it's still echoing <RETURN> strokes, so it might be an issue with Toybox.
>>
>> Which was fixed a year ago, which is why I told you to use the new
>> toolchain with a current musl-libc:
>>
>> http://lists.landley.net/pipermail/toybox-landley.net/2024-February/030040.html
>>
>> Unless you're hitting the OTHER issue I fixed last year...
>>
>> https://github.com/landley/toybox/commit/0b2d5c2bb3f1
>
> I just downloaded the latest toolchain from:
>
> https://landley.net/bin/toolchains/latest/sh2eb-linux-muslfdpic-cross.tar.xz
>
> and the issue still persists.
>
> Am I missing anything?
The march 2024 rebuild was in response to that Feb 2024 bugfix, so it
_should_ have the fix? (I'm waiting for another musl release to rebuild
them again...)
I just downloaded the toolchain currently at that URL and built mkroot
and it worked for me:
Run /init as init process
sntp: time.google.com:123: Try again
Type exit when done.
$ cat /proc/version
Linux version 6.14.0-rc3 (landley@driftwood) (sh2eb-linux-muslfdpic-cc
(GCC) 11.2.0, GNU ld (GNU Binutils) 2.33.1) #1 SMP Fri Feb 28 15:47:36
CST 2025
And the failure _without_ the fix was deterministic rather than
intermittent, so...
Keep in mind the init script has a 3 second timeout trying to call sntp
to set the clock, which will fail if the ethernet isn't connected (or no
driver, or no internet...)
Rob
P.S. Speaking of intermittent, I hit that hang after "clocksource:
Switched to clocksource jcore_pit_cs" on one attempt just now. I should
sit down with the engineers next time I'm in japan and try to root cause
it. The scheduler fires reliably, so it's _probably_ not a hardware
issue? We've had Linux uptime of over a year, not just idle but running
an energy monitoring app, so it's pretty stable in our systems...
next prev parent reply other threads:[~2025-03-01 1:47 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-16 17:55 Artur Rojek
2025-02-16 17:55 ` [PATCH 1/2] sh: align .bss section padding to 8-byte boundary Artur Rojek
2025-02-18 12:41 ` Rob Landley
2025-03-11 17:28 ` John Paul Adrian Glaubitz
2025-03-11 23:40 ` Artur Rojek
2025-03-12 8:06 ` Geert Uytterhoeven
2025-03-13 10:36 ` John Paul Adrian Glaubitz
2025-03-12 8:21 ` John Paul Adrian Glaubitz
2025-03-12 8:32 ` Uros Bizjak
2025-03-12 8:44 ` John Paul Adrian Glaubitz
2025-03-12 9:47 ` Geert Uytterhoeven
2025-03-12 9:55 ` Uros Bizjak
2025-03-13 9:38 ` David Laight
2025-04-05 17:38 ` John Paul Adrian Glaubitz
2025-02-16 17:55 ` [PATCH 2/2] irqchip: clocksource: fix jcore-pit irq request Artur Rojek
2025-02-17 7:14 ` Uros Bizjak
2025-02-17 22:35 ` [tip: irq/urgent] irqchip/jcore-aic, clocksource/drivers/jcore: Fix jcore-pit interrupt request tip-bot2 for Artur Rojek
2025-02-18 12:43 ` [PATCH 2/2] irqchip: clocksource: fix jcore-pit irq request Rob Landley
2025-02-19 14:43 ` Daniel Lezcano
2025-02-19 14:50 ` Geert Uytterhoeven
2025-02-19 14:52 ` Daniel Lezcano
2025-02-27 7:52 ` [PATCH 0/2] J2 Turtle Board fixes John Paul Adrian Glaubitz
2025-02-28 3:03 ` Rob Landley
2025-02-28 8:34 ` John Paul Adrian Glaubitz
2025-02-28 22:19 ` Rob Landley [this message]
2025-02-28 22:34 ` John Paul Adrian Glaubitz
2025-03-01 3:20 ` Rob Landley
2025-04-08 15:23 ` John Paul Adrian Glaubitz
2025-04-11 11:25 ` Rob Landley
2025-06-09 10:01 ` John Paul Adrian Glaubitz
2025-06-10 20:22 ` Rob Landley
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=9cf43bbe-898f-4b29-bd85-04f5320bce77@landley.net \
--to=rob@landley.net \
--cc=contact@artur-rojek.eu \
--cc=dalias@libc.org \
--cc=daniel.lezcano@linaro.org \
--cc=geert+renesas@glider.be \
--cc=glaubitz@physik.fu-berlin.de \
--cc=jeff@coresemi.io \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=ubizjak@gmail.com \
--cc=ysato@users.sourceforge.jp \
/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
all inboxes | Powered by JetHome®