Hi Sebastian,

Getting NoMali to work with Linux isn't that different from Android. You'll 
need to integrate the kernel-side driver with your kernel (just follow the 
instructions for Android). The difference is the user space driver.

Instead of using the user space driver for a Android 4.4 in gem5 (see [1]), you 
should be able to use the Linux drivers for the Firefly board. NoMali in gem5 
is normally configured to look like that particular GPU, so it should work out 
of the box.

There are a few things you need to keep in mind. First, the Mali device node 
(/dev/maliX) needs to be accessible from the user that is running the GLES 
application since the user space driver needs access to it. You'll most likely 
need access to the frame buffer device (/dev/fbX) as well if you're rendering 
on the screen.

Also, please keep in mind that good graphics performance relies a lot on proper 
buffer management. This is a bit tricky when using the old FB API in Linux. 
Guillaume Tucker wrote up a blog entry [2] about some of the issues and a 
custom IOCTL that adds support for buffer sharing in the FB API. We support 
this extension in the new gem5 kernels. See [3] for the wiki page that 
describes how to build and run your own kernel. You'll need to use the 4.3 
branch to get the new IOCTL.

Cheers,
Andreas

<http://malideveloper.arm.com/resources/drivers/arm-mali-midgard-gpu-user-space-drivers/>[1]
 
http://malideveloper.arm.com/resources/drivers/arm-mali-midgard-gpu-user-space-drivers/
<https://community.arm.com/groups/arm-mali-graphics/blog/2015/10/28/improving-mali-drivers-on-fbdev>[2]
 
https://community.arm.com/groups/arm-mali-graphics/blog/2015/10/28/improving-mali-drivers-on-fbdev
<http://www.gem5.org/ARM_Linux_Kernel>[3] http://www.gem5.org/ARM_Linux_Kernel

On 17/06/2016, 22:45, "gem5-users on behalf of Sebastian Cai" 
<[email protected]<mailto:[email protected]> on behalf of 
[email protected]<mailto:[email protected]>> wrote:


Hello All,


Just started looking at gem5 and using it, so bear with me.

I am currently trying to run some basic OpenGL programs through the full system 
emulation on Linux with ARM. There are lots of instructions and texts about 
running graphics programs on Android KitKat using the NoMali model, but I 
cannot seem to find anything at all on Linux.

So, how can I add the NoMali model to my Linux simulation and then proceed to 
run simple OpenGL programs on it.


Thanks


IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to