Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canbus support (QEMU-209) #101

Open
3 tasks done
maedoc opened this issue Sep 13, 2024 · 2 comments
Open
3 tasks done

canbus support (QEMU-209) #101

maedoc opened this issue Sep 13, 2024 · 2 comments

Comments

@maedoc
Copy link

maedoc commented Sep 13, 2024

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Described the feature in detail and justified the reason for the request.
  • Provided specific use cases and examples.

Feature description

Support the canbus object per https://www.qemu.org/docs/master/system/devices/can.html

Use cases

I would like to debug my esp32 app using the twai (or similar) with a virtual can interface on linux

Alternatives

The linux target, but it doesn't compile with my app.

Additional context

No response

@github-actions github-actions bot changed the title canbus support canbus support (QEMU-209) Sep 13, 2024
@igrr
Copy link
Member

igrr commented Nov 11, 2024

@maedoc I've looked into the possibility of CAN support, and it seems very doable. QEMU already has an implementation of SJA1000 controller, we just need to implement a small wrapper device to attach SJA1000 as an MMIO peripheral (similar to hw/net/can/can_pcm3680_pci.c, just without PCI...)

This will only work on Linux hosts, though, since the only CAN host in QEMU is socketcan, which is only supported on Linux. I would just like to confirm whether you are okay with using Linux as host OS?

@maedoc
Copy link
Author

maedoc commented Nov 12, 2024

okay with using Linux as host OS?

yes only been using esp idf on Linux, or Docker on macOS, so that would be fine.

thanks for considering implementing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants