Status of Raspberry Pi native support

NinjaCowboy · 25446

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #105 on: July 06, 2023, 03:02:53 AM
The system for Raspberry is still in continuous development



NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #106 on: July 06, 2023, 06:36:25 AM
Mouse and Keyboard PS2 and Wireless work perfectly on AROS, if the PC hardware is supported !
Unfortunately, the Raspberry Pi can't use PS/2 unless you somehow manage to bit bang it over GPIO.



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #107 on: July 06, 2023, 12:02:35 PM
Unfortunately, the Raspberry Pi can't use PS/2 unless you somehow manage to bit bang it over GPIO.
Depending on how serious you wish to take things, see f.e. https://hackaday.com/2016/01/14/ps2-keyboard-for-raspberry-pi/ Note that I personally do not have experience with this mod so mileage may vary.

It would at least allow you to circumvent messing with the USB stack.


NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #108 on: July 06, 2023, 01:26:46 PM
I still want to get USB working, since the vast majority of users have USB keyboards and mice to plug in, and the onboard ethernet controller is connected internally via USB as well.

Although USB is complicated and a bloody pain to implement, it's worth getting it to work.



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #109 on: July 06, 2023, 03:40:20 PM
@NinjaCowboy:
Fair enough.

I thought perhaps you wanted to focus on addressing other issues (first).

Yes indeed, it would be very nice to get USB working though as you discovered it is bloody complicated.

Thank you for your efforts so far. It is more progress than I've been able to get.

What Pi(s) are you working with ?


NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #110 on: July 06, 2023, 06:21:44 PM
I'm working with a Raspberry Pi 3, since that's the only model I own. I'm focusing on USB right now, because without any form of input, the OS is basically useless, and you might as well stare at art on a wall. There are plenty of other issues to address, though.



NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #111 on: July 12, 2023, 07:23:53 PM
Still struggling with USB. I keep getting things to work in qemu only to have them fail on real hardware. Qemu's emulation of the DWC2 controller seems very inaccurate and is probably just good enough to get Linux running. The more I work on this, the more I believe this isn't a one man job. Unfortunately, I don't know anyone who has experience dealing with low-level USB on Raspberry Pi.



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #112 on: July 12, 2023, 08:35:53 PM
Michal Schultz may be able to give some insights.

He can be found on Patreon for Emu68 project for PiStorm & PiStorm 32 Lite.

He has also worked quite a bit on the AROS subsystems for x86 & x86-64 & especially 68k. He wrote some of the hardware drivers for AROS & for the Vampire Standalone v4.



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #113 on: July 13, 2023, 01:02:09 AM
+1 on contacting Michal. He is also available on Discord. He most likely will not be interested in developing, but he has VAST experience with AROS and RPi and USB. He wrote the original AROS USB stack (before we integrated Poseidon)



ntromans

  • Member
  • ***
    • Posts: 157
    • Karma: +50/-0
Reply #114 on: July 13, 2023, 06:30:00 AM
Still struggling with USB. I keep getting things to work in qemu only to have them fail on real hardware. Qemu's emulation of the DWC2 controller seems very inaccurate and is probably just good enough to get Linux running. The more I work on this, the more I believe this isn't a one man job. Unfortunately, I don't know anyone who has experience dealing with low-level USB on Raspberry Pi.

Possibly another thing to try is contacting the developers of RiscOS Open (see https://www.riscosopen.org/content/) as they seem to have USB working for various models of PRi.

Cheers,
Nigel.



NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #115 on: July 13, 2023, 09:56:07 PM
Good news is that I've made some progress on USB today. The code for the current OTG driver is quite messy, so I've decided to rewrite it from scratch and use the current one as a reference. So far, I've gotten USB control transfers to work on real hardware, so enumeration now works, and it can properly detect a connected keyboard and mouse. I will need to implement interrupt transfers for the devices to actually do anything, though.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #116 on: July 14, 2023, 04:11:59 AM
But you mean that maybe we will have native AROS for Raspberry :D

« Last Edit: July 14, 2023, 04:21:36 AM by Amiwell »



NinjaCowboy

  • Junior Member
  • **
    • Posts: 66
    • Karma: +18/-0
Reply #117 on: July 14, 2023, 06:35:34 AM
No guarantees, but I really hope so!



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #118 on: July 14, 2023, 06:40:59 AM
many thanks :)



ntromans

  • Member
  • ***
    • Posts: 157
    • Karma: +50/-0
Reply #119 on: July 14, 2023, 10:01:45 AM
No guarantees, but I really hope so!

I also must say many thanks* for your work on this - AROS and RPi would be such a perfect combination. I'd really love to build a very compact AROS box that could be slipped into a pocket (and yes, i know you get the same functionality with a mobile 'phone but I really don't like either Android or iOS...)

Cheers,
Nigel.

* And of course all the AROS developers building the wider system.