From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Guenter Roeck <linux@roeck-us.net>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Andrew Baumann" <Andrew.Baumann@microsoft.com>,
qemu-arm@nongnu.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH 0/2] hw/char/bcm2835_aux: Provide full 16550 UART support
Date: Tue, 20 Aug 2019 17:08:13 +0200 [thread overview]
Message-ID: <509576fb-6fc1-7812-f73f-bda210c5ce99@redhat.com> (raw)
In-Reply-To: <3e3fcb30-1e12-eaf4-07a2-47d09aea2511@roeck-us.net>
On 8/20/19 4:31 PM, Guenter Roeck wrote:
> On 8/20/19 5:34 AM, Philippe Mathieu-Daudé wrote:
>> Hi,
>>
>> Since there has been some activity on the list asking about
>> Rasberry PI USB support, I had a look a some previous unfinished
>> work and rebased it to share, in case it helps hobbyist interested
>> in improving these machines.
>>
>> This series is some proof-of-concept on improving the AUX UART
>> support. See the commit description for various TODO/questions.
>>
>> This can be tested using files documented by Peter Maydell in
>> his blog post:
>> https://translatedcode.wordpress.com/2018/04/25/debian-on-qemus-raspberry-pi-3-model/
>>
>>
>> And using the kernel command line arguments suggested by Guenter Roeck:
>>
>> qemu-system-aarch64 -M raspi3 -m 1024 \
>> -kernel raspi3/bootpart/vmlinuz-4.14.0-3-arm64 \
>> -initrd raspi3/bootpart/initrd.img-4.14.0-3-arm64 \
>> -dtb raspi3/bootpart/bcm2837-rpi-3-b.dtb \
>> -append 'earlycon=uart8250,mmio32,0x3f215040 rdinit=/sbin/init
>> panic=-1 console=ttyS1,115200' \
>> -drive
>> file=raspi3/2018-01-08-raspberry-pi-3-buster-PREVIEW.img,format=raw,if=sd
>> \
>> -serial null -serial stdio \
>> -d unimp,guest_errors -trace bcm283\*
>
> [ ... ]
>
>> [ 3.123313] Unpacking initramfs...
>>
>> Here it hangs, even with CPRMAN patch from Guenter:
>> https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg03153.html
>>
>
> This command line works for me:
>
> qemu-system-aarch64 -M raspi3 -kernel arch/arm64/boot/Image -no-reboot \
> -nographic -snapshot -smp 4 -m 1G \
> -drive file=rootfs.ext2,format=raw,if=sd \
> -serial null -serial stdio -monitor none -no-reboot \
> --append 'panic=-1 slub_debug=FZPUA root=/dev/mmcblk0 rootwait
> earlycon=uart8250,mmio32,0x3f215040 console=ttyS1,115200' \
> -dtb arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtb
>
> or, with initrd:
>
> qemu-system-aarch64 -M raspi3 -kernel arch/arm64/boot/Image -no-reboot \
> -nographic \
> -initrd rootfs.cpio \
> -m 1G -serial null -serial stdio -monitor none -no-reboot \
> --append 'panic=-1 slub_debug=FZPUA rdinit=/sbin/init
> earlycon=uart8250,mmio32,0x3f215040 console=ttyS1,115200' \
> -dtb arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtb
>
> This is with the mainline kernel.
>
> I don't see a significant difference to your patch series.
Thank you for taking the time to test!
The biggest difference is the diffstat:
hw/char/bcm2835_aux.c | 211 +++-------------------------------
The model is now cleaner and easier to maintain.
The logical differences are noted in 2nd patch, basically:
1- not same FIFO length (easily fixable)
2- now the model implements more feature than supposed to
3- migration
I'll wait for the different ARM/Migration subsystem review.
[...]
> One possibility might be that your initrd has a problem. Can you boot
> without your patch
> series, or is it always stuck ?
I remember it used to work for me back when I wrote it, so it is
probably an initrd problem. I'll test later and keep you updated.
Thanks!
Phil.
next prev parent reply other threads:[~2019-08-20 15:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 12:34 [Qemu-devel] [RFC PATCH 0/2] hw/char/bcm2835_aux: Provide full 16550 UART support Philippe Mathieu-Daudé
2019-08-20 12:34 ` [Qemu-devel] [PATCH 1/2] hw/char/serial: Add a helper to set the divisor register Philippe Mathieu-Daudé
2019-08-20 12:34 ` [Qemu-devel] [RFC PATCH 2/2] hw/char/bcm2835_aux: Provide full 16550 UART support Philippe Mathieu-Daudé
2019-08-20 12:58 ` [Qemu-devel] [RFC PATCH 0/2] " Philippe Mathieu-Daudé
2019-08-20 14:31 ` Guenter Roeck
2019-08-20 14:34 ` Peter Maydell
2019-08-20 14:45 ` Guenter Roeck
2019-08-20 14:53 ` Guenter Roeck
2019-08-20 15:08 ` Philippe Mathieu-Daudé [this message]
2019-08-20 15:16 ` Guenter Roeck
2019-09-23 13:26 ` Peter Maydell
2019-09-23 15:39 ` Philippe Mathieu-Daudé
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=509576fb-6fc1-7812-f73f-bda210c5ce99@redhat.com \
--to=philmd@redhat.com \
--cc=Andrew.Baumann@microsoft.com \
--cc=f4bug@amsat.org \
--cc=linux@roeck-us.net \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--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).