RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → General →

RISC OS and NetBSD at the same time!

Subscribe to RISC OS and NetBSD at the same time! 24 posts, 6 voices

 
Mar 23, 2020 6:38pm
Avatar Michael Grunditz (467) 531 posts

To follow up my work in running two systems on the same soc, I am now bringing up NetBSD on the A53 cpu on RK3399 , while RISC OS is running on A72.

Can be quite handy if I get mailboxing to work. NetBSD can be (ab)used for ipv6 and other stuff.

https://twitter.com/QtARM/status/1242144824406523905

 
Mar 23, 2020 7:58pm
Avatar David Feugey (2125) 2626 posts

Would love to see that on the Pi :)

 
Mar 24, 2020 10:44am
Avatar Michael Grunditz (467) 531 posts

Would love to see that on the Pi :)

I wish I could learn every SoC in the world, but that isn’t possible :(

Interrupts and timer is now up in both systems. Interesting .. NetBSD uses GIC in GICv3 mode.. I needed to disable GICD init and some critical things in GICC. As before the RISC OS driver sets affinity of selected IRQ’s to A53.

 
Mar 24, 2020 12:06pm
Avatar Michael Grunditz (467) 531 posts

https://twitter.com/QtARM/status/1242420701677707265

 
Mar 24, 2020 9:17pm
Avatar Alan Robertson (52) 420 posts

Wow! I would assume that to get this to work you are some sort of wizard of code.

May I ask what you intend to do with this? Is there a cunning plan afoot?

 
Mar 24, 2020 9:52pm
Avatar Michael Grunditz (467) 531 posts

May I ask what you intend to do with this? Is there a cunning plan

There are several possibilities. One is to use netbsd for networking, until we have a whiz bang ipv6 stack.. Another one is using it for user stuff , as a complement not having to switch sdcards and so on.

 
Mar 25, 2020 11:18am
Avatar Alan Robertson (52) 420 posts

Using it for networking would be a very good interim solution until RISC OS gets its own internal solution.

Another question (or two) for you.

1) Are there are any other OS’s that replicate what you are trying to do?
2) Is the method of communicating between OS’s to achieve a task actually actually given a name?

 
Mar 25, 2020 7:04pm
Avatar Michael Grunditz (467) 531 posts

1) Are there are any other OS’s that replicate what you are trying to do?

I don’t know exactly, I haven’t seen any. The Genode project does similar things with ARM virtualization, but not running “natively” on the cpu’s.

2) Is the method of communicating between OS’s to achieve a task actually actually given a name?

Is “shared memory communication” a name? I was hoping to use SGI’s (software generated interrupts) which are made for inter core communication, but it seems very complicated (close to impossible) to install a isr for it in a NetBSD driver. So right now I am working on a polling solution. Will test with keyboard,mouse events first. It will be tricky to do networking since it is more timing critical (and needs to be error free).

Another question is how to launch NetBSD. I use u-boot now to start RISC OS on the A72 returning to start NetBSD. The best thing would be to be able to start it from RISC OS. I also don’t know how they behaves if started simultaneously.

 
Mar 26, 2020 2:43am
Avatar Michael Grunditz (467) 531 posts

Basic INTER OS communication first steps:
https://twitter.com/QtARM/status/1243004674472640512

 
Mar 26, 2020 6:36pm
Avatar Alan Robertson (52) 420 posts

Fascinating work that you are undertaking. I have no idea how efficient “Shared Memory Communication” is but I think it’s VERY cool. Looking forward to seeing and hearing more on this project.

 
Mar 27, 2020 8:47am
Avatar David Feugey (2125) 2626 posts

I wish I could learn every SoC in the world, but that isn’t possible :(

Of course. But you made a lot of work that could be replicated somewhere else.
Or be linked to the work already done on multiprocessing support inside RISC OS 5.
Promising.

Do you work on ROCKPro64 or another board?

 
Mar 28, 2020 2:50pm
Avatar Michael Grunditz (467) 531 posts

https://twitter.com/QtARM/status/1243912303998894081

Keyboard input now works.

 
Mar 28, 2020 8:59pm
Avatar Michael Grunditz (467) 531 posts

And XWindows!
https://twitter.com/QtARM/status/1244005051775029249

 
Mar 29, 2020 1:57pm
Avatar David Feugey (2125) 2626 posts

Fantastic. The only non RISC OS apps I’m using are Firefox, LibreOffice and Gimp. No less, no more.
So it sounds like a fantastic opportunity for me.

“This particular board is unreleased.”

Be sure I’ll be buy it day one.
Especially if there is some EMMC or SATA support :)

 
Mar 29, 2020 2:49pm
Avatar Alan Robertson (52) 420 posts

Michael announces casually:

And XWindows!

You’ve been busy.

 
Apr 1, 2020 6:47am
Avatar Michael Grunditz (467) 531 posts

https://twitter.com/QtARM/status/1245239146152591360

Keyboard wasn’t working in X11, now it does.

 
Apr 2, 2020 11:27pm
Avatar Michael Grunditz (467) 531 posts

 
Apr 3, 2020 8:13am
Avatar Andrew McCarthy (3688) 461 posts

Nice! +1

 
Apr 3, 2020 10:09am
Avatar David Feugey (2125) 2626 posts

https://www.youtube.com/watch?v=n_A3T0UcAJc

 
Apr 3, 2020 3:16pm
Avatar Leo Smiers (245) 55 posts

I am following this thread with great interest, good work Michael!

However I keep wondering who is the master OS, in other words is RISC OS started from netbsd (netbsd is then the master) or the other way round, which makes RISC OS the master?

 
Apr 3, 2020 4:08pm
Avatar Michael Grunditz (467) 531 posts

http://www.update.uu.se/~micken/ronetbsd.html

No one is master , both are started at the same time. The plan is to be able to start netbsd from RISC OS.

Please read the linked page.

 
Apr 4, 2020 4:23pm
Avatar Michael Grunditz (467) 531 posts

 
Apr 4, 2020 8:58pm
Avatar Steve Pampling (1551) 7405 posts

Hmmm, wasn;t Andrew at R-Comp wanting to do something with things like the ArmBook running both OS’s?

 
Apr 5, 2020 3:46pm
Avatar David Feugey (2125) 2626 posts

I do :)

It would be so cool to record my learning sessions (Firefox, LibreOffice, Gimp) from RISC OS. Of course, HDMI support is needed too (and EMMC please, for speed/reliability). On ARMbook, ARMbook Pro and ARMrock, of course!

Reply

To post replies, please first log in.

Forums → General →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

General discussions.

Voices

  • Michael Grunditz (467)
  • David Feugey (2125)
  • Alan Robertson (52)
  • Andrew McCarthy (3688)
  • Leo Smiers (245)
  • Steve Pampling (1551)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys