Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write into the VGA memory (not video buffer, memory) to display a logo on screen, in Linux?

I would like to write into the VGA memory (video memory, not buffer) from user space by mmap-ing in user space and sending the address to kernel space where, i would use pfn remap to map those mmap-ed address to the vga memory (i'll get the address through lspci). And by doing so, i want to display an image/logo on screen? any help regarding this?

like image 285
neo Avatar asked Nov 04 '22 09:11

neo


1 Answers

No need to jump through all those hoops.

Map the corresponding /sys/devices/pci<addr>/resource<N>-file into your process's memory via mmap, et voilà, direct access to PCI memory.

like image 174
wkz Avatar answered Nov 09 '22 12:11

wkz