qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Pisa <pisa@fel.cvut.cz>
To: Nikita Ostrenkov <n.ostrenkov@gmail.com>,
	qemu-devel@nongnu.org, Matyas Bobek <bobekmat@fel.cvut.cz>
Subject: Plea for advice with PCIe on QEMU for iMX6 and plan to add FlexCAN controller support
Date: Wed, 2 Oct 2024 17:06:01 +0200	[thread overview]
Message-ID: <202410021706.01967.pisa@fel.cvut.cz> (raw)

Dear Nikita and other,

my student Matyas Bobek has chosen to work
on QEMU CAN support in a frame of his study
final project.

We have identified iMX6 FlexCAN as the next interesting
CAN controller for emulation. One of our industrial partners
is using iMX6 based system with CAN and iMX6 SabreLite
is supported by QEMU. iMX6 is often used in industry
still and FlexCAN has use even for iMX8 emulation
if it is added into QEMU in the future.

In the preparatory work, we want to setup
shared directory between host and guest
kernel using 9P FS on PCI virtio.

The development environment is based on current
mainline QEMU and mainline Linux kernel sources.

We use standard QEMU options

  -virtfs local,path=shareddir,security_model=none,mount_tag=shareddir

and the 1af4:1009 is seen by monitor command "info pci"
but on the guest kernel side only "16c3:abcd" DWC_usb3 / PCIe bridge
is seen but none from the mapped devices, virtio (1af4:1009),
CTU CAN FD, Kvaser CAN.

The imx6q-sabrelite DTS is used with standard device-tree

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/nxp/imx/imx6q-sabrelite.dts

We hope that all required drivers are enabled
in the kernel. But it is possible that something
has been overlooked.

Do you have some hint or some kernel
and QEMU working example for iMX6 PCIe
device mapping?

Thanks in advance.

Best wishes,

                Pavel
--
                Pavel Pisa
    phone:      +420 603531357
    e-mail:     pisa@cmp.felk.cvut.cz
    Department of Control Engineering FEE CVUT
    Karlovo namesti 13, 121 35, Prague 2
    university: http://control.fel.cvut.cz/
    personal:   http://cmp.felk.cvut.cz/~pisa
    social:     https://social.kernel.org/ppisa
    projects:   https://www.openhub.net/accounts/ppisa
    CAN related:http://canbus.pages.fel.cvut.cz/
    RISC-V education: https://comparch.edu.cvut.cz/
    Open Technologies Research Education and Exchange Services
    https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home


             reply	other threads:[~2024-10-02 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-02 15:06 Pavel Pisa [this message]
2025-03-30 10:05 ` Plea for advice with PCIe on QEMU for iMX6 and plan to add FlexCAN controller support Bernhard Beschow
2025-03-30 15:01   ` [WIP] QEMU FlexCAN controller support on iMX6, interrest in iMX8 and PCIe Virtio on iMX6/8 Pavel Pisa

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=202410021706.01967.pisa@fel.cvut.cz \
    --to=pisa@fel.cvut.cz \
    --cc=bobekmat@fel.cvut.cz \
    --cc=n.ostrenkov@gmail.com \
    --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).