Thanks a lot Stefan for your explanation about the driver configuration.
I followed your roadmap and tried to configure the drivers with help of the driver subsystem file that you mentioned for virt_qemu_arm_v8a platform and generated the image.elf at /genode/build/arm_v8a/var/run/sculpt/boot/image.elf.
While executing it to get the gui on QEMU i got the following error message.

Maybe I did something wrong in the genode/repos/gems/sculpt/drivers/virt_qemu_arm_v8a  and missed any drivers in the /genode/repos/gems/sculpt/default-virt_qemu_arm_v8a.sculpt.
Also I am not sure how to write this configuration.
Kindly guide me to configure the required drivers to boot the image in qemu.


Regards,
Divya.

On Tue, Oct 4, 2022 at 5:27 PM Stefan Kalkowski <stefan.kalkowski@genode-labs.com> wrote:
Hello Divya,

as has been said, the virt_qemu_arm_v8a platform is not supported to run
Sculpt yet. Nonetheless, essential drivers that need to be assembled
to run Sculpt OS on this platform are already available in Genode.
Therefore, it is mostly some integration work necessary, which you
would need to do on your own. I'm afraid there is no ready-to-use
documentation available to assist you in doing this integration work.
However, there are some helpful pointers I can deliver.

First you should read how the process of Sculpt OS image creation
works, which is described in Genode release 22.02:

  https://genode.org/documentation/release-notes/22.02#Framework_for_special-purpose_Sculpt-based_operating_systems

Second you can have a look at the genode-imx repository from the
genodelabs Gitub account. It showcases how to provide a Sculpt OS
variant for i.MX 8MQ EVK for instance. Here you might have a look at
the driver subsytem in file `sculpt/drivers/imx8q_evk`, which states
what drivers are statically started at boot time, and the file
`sculpt/default-imx8q_evk.sculpt`, which describes what driver
subsystem has to be used, and what packages need to be integrated
additionally to the generic ones.
To decide how to adapt the driver subsystem for the virt_qemu_armv8a
board, you might have a look into the drivers_interactive package for
this platform, especially the file:
`repos/os/recipes/raw/drivers_interactive-virt_qemu_arm/drivers.config`.
It shows which drivers are needed, and how to combine them to drive a
graphical user-interface.
Persistent storage is not available for this platform, but you won't
need it to run Sculpt OS. You can use the RAM filesystem available in
Sculpt instead.

As soon as you have a setup that successfully starts the Sculpt OS GUI
on top of Qemu, you can extend the sculpt.run script's `nic_drv`
procedure to return the right NIC driver's name for the
virt_qemu_armv8a board, which is `virtio_mmio_nic` in your case.

Best regards
Stefan

On Tue, Oct 04, 2022 at 01:43:15PM +0530, Divya Sharma wrote:
> Hello genodians
> This is continuous from previous mail
>
> I'm fine a lot about virt_qemu in previous mails and any other sources but
> unable to find proper documentation or anything.
>
> So if anyone suggest anything for virt_qemu for arm that would be great.
>
> Thanks and Regards
>  Divya
>
>
> On Sat, 1 Oct, 2022, 1:30 pm Divya Sharma, <divyasharma26546@gmail.com>
> wrote:
>
> > Hello genodians,
> > We are trying to port genode for BOARD=virt_qemu_arm_v8a
> >
> > So for that we need to change this file
> >
> > " Given the sculpt.run script in 'repos/gems/run/', you'll find the
> > restrictions in lines 13-23. Of course you might add the virt_qemu
> > platform here. However, you've to build a proper drivers configuration
> > for sculpt to work on this emulator under 'repos/gems/sculpt/drivers',
> > and a default-virt_qemu_arm_v8a.sculpt file under 'repos/gems/sculpt'. "
> >
> > Can you please explain more about this?
> >
> > On Tue, 20 Sep, 2022, 7:21 pm Stefan Kalkowski, <
> > stefan.kalkowski@genode-labs.com> wrote:
> >
> >> Hello,
> >>
> >> On Thu, Sep 15, 2022 at 10:45:41PM +0530, Divya Sharma wrote:
> >> > Hello genodians,
> >> >
> >> > Based on the suggestion we tried to build sculpt for virt_qemu.
> >> >
> >> > We tried to add support for virt qemu and adding it default.sculpt file
> >> but
> >> > still we are getting error "Board not supported".
> >>
> >> Indeed, the support for individual run-scripts might be restricted to
> >> certain board/kernel combinations only, e.g., because there is no
> >> sufficient driver support available.
> >>
> >> Given the sculpt.run script in 'repos/gems/run/', you'll find the
> >> restrictions in lines 13-23. Of course you might add the virt_qemu
> >> platform here. However, you've to build a proper drivers configuration
> >> for sculpt to work on this emulator under 'repos/gems/sculpt/drivers',
> >> and a default-virt_qemu_arm_v8a.sculpt file under 'repos/gems/sculpt'.
> >>
> >> Alternatively, you can first investigate interactive run-scripts like
> >> the "demo.run" script, which already supports the virt_qemu_arm_v8a
> >> platform.
> >>
> >> Regards
> >> Stefan
> >>
> >> >
> >> >
> >> >
> >> > On Wed, 14 Sep, 2022, 3:08 pm Divya Sharma, <divyasharma26546@gmail.com
> >> >
> >> > wrote:
> >> >
> >> > > hello genodians,
> >> > >
> >> > > I'm Trying to port Genode OS for i.MX 8MQ boards (arm_v8a).
> >> > > successfully generated .img file but don't know how to run this img
> >> file
> >> > > i don't have i.MX board so I have to run on Ubuntu (linux).
> >> > > I have tried qemu emulator but i think qemu doesn't supported board.
> >> > > (basically want to run genode os for ARM.)
> >> > >
> >> > > Please give some guidance on this.
> >> > >
> >> > > Thanks & Regards
> >> > >
> >>
> >>
> >> > _______________________________________________
> >> > Genode users mailing list
> >> > users@lists.genode.org
> >> > https://lists.genode.org/listinfo/users
> >>
> >>
> >> --
> >> Stefan Kalkowski
> >> Genode labs
> >>
> >> https://github.com/skalk | https://genode.org
> >>
> >> _______________________________________________
> >> Genode users mailing list
> >> users@lists.genode.org
> >> https://lists.genode.org/listinfo/users
> >>
> >

> _______________________________________________
> Genode users mailing list
> users@lists.genode.org
> https://lists.genode.org/listinfo/users


--
Stefan Kalkowski
Genode labs

https://github.com/skalk | https://genode.org

_______________________________________________
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users