From: Nathan Chancellor <natechancellor@gmail.com>
To: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Cc: clang-built-linux@googlegroups.com,
bcm-kernel-feedback-list@broadcom.com,
Peter Robinson <pbrobinson@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-rpi-kernel@lists.infradead.org
Subject: Re: Issues attempting to use Raspberry Pi 4 serial console on mainline
Date: Wed, 22 Jul 2020 09:02:18 -0700 [thread overview]
Message-ID: <20200722160218.GA1016797@ubuntu-n2-xlarge-x86> (raw)
In-Reply-To: <afe9b10adee7b6085d0e880be84bfa8446b2a6a6.camel@suse.de>
On Wed, Jul 22, 2020 at 05:46:22PM +0200, Nicolas Saenz Julienne wrote:
> Hi Nathan, Peter,
>
> On Wed, 2020-07-22 at 15:41 +0100, Peter Robinson wrote:
>
> [...]
>
> > On Wed, Jul 22, 2020 at 2:27 PM Nicolas Saenz Julienne
> > > For reference I just booted linux-next with this setup:
> > >
> > > boot partition:
> > > ...Latest firmware files taken from the RPi firmware repo [1]...
>
> Natan, it seems I lied here and been using an outdated firmware version. I've
> just validated what Peter comments below, and the last working firmware release
> with this setup is Feb12[1]. Given your use case I'd just use that and forget
> about it.
Excellent, that worked perfectly with the settings that I had initially.
> > > Image #Copied from linux build
> > > bcm2711-rpi-4-b.dtb #Copied from linux build
> > > config.txt
> > > cmdline.txt
> > >
> > > config.txt:
> > > kernel=Image
> > > enable_uart=1
> > > arm_64bit=1
> > >
> > > cmdline.txt:
> > > console=tty console=ttyS1,115200 text root=/dev/nfs
> > > nfsroot=10.42.0.1:/home/nico/netboot/root,vers=3 rw ip=dhcp
> > > rootwait
> > > elevator=deadline
> > >
>
> [...]
>
> > >
> > > The issue with the mini UART is its clock, which is derived from VPU's, which
> > > is itself controlled by RPi's firmware. Changes might happen behind the
> > > kernel's back, and the mini UART divisors will not be updated accordingly.
> > > This is an area the we could do better, but no one found a good solution yet.
> > > That said, for now, when using the upstream kernel, VPU's clock should be
> > > stable as we forbid the firmware from performing frequency scaling on that
> > > clock.
> >
> > There has actually been a regression in the firmware here, prior to
> > mid April if the enable_uart=1 I always had clean output on the serial
> > console, since that date on the rpi3/3b+/4 I get a whole bunch of
> > junk, revert to an older firmware (I've been using April 1st ) and it
> > all goes back to being fine. I've not had time to actually report it
> > yet, and it's still a problem with the latest firmware but a quick
> > look it likes similar to this issue reported in late April:
> >
> > https://github.com/raspberrypi/firmware/issues/1376
>
> Thanks for pointing it out! I missed that bug report. I'll try to get the gist
> of it.
>
> Regards,
> Nicolas
>
> [1] https://github.com/raspberrypi/firmware/releases
>
Same goes for me as Peter, let me know if you need any information or
debugging info.
Cheers,
Nathan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2020-07-22 16:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 22:57 Issues attempting to use Raspberry Pi 4 serial console on mainline Nathan Chancellor
2020-07-22 13:25 ` Nicolas Saenz Julienne
2020-07-22 14:41 ` Peter Robinson
2020-07-22 15:46 ` Nicolas Saenz Julienne
2020-07-22 15:56 ` Peter Robinson
2020-07-22 16:02 ` Nathan Chancellor [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=20200722160218.GA1016797@ubuntu-n2-xlarge-x86 \
--to=natechancellor@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=clang-built-linux@googlegroups.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=nsaenzjulienne@suse.de \
--cc=pbrobinson@gmail.com \
/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