Quantcast
Channel: Programmer's Town - Unix
Viewing all articles
Browse latest Browse all 227

Linux kernel record to the physical address. How?

$
0
0

I write the driver for not which  (video card). It is necessary  the data from  in storage of the device. I do here under this description (probably it too old): http://www.tldp.org/LDP/khg/HyperNews/g … xlate.html I Do here so: char * baseptr = ioremap (0xFC000000, 1024*1024);/* write a ' A ' to the offset 10 of the area *///actually here//here I should write down a cycle in video storage mbyte,//which begins with physical 0xFC000000 writeb address (' A ', baseptr+10);/* unmap when we unload the driver */iounmap (baseptr); And happens nothing. Well that is,  works, the screen is lit, but on the screen a chaotic mash of points. Images are not present. Without  (and any other OS) the same  works. I WRITE to the necessary area of storage, the picture is. It means that hardware problems are not present. A kernel 2.6.* (I Know that different versions of a kernel can have different mechanisms of operation with storage) Help to understand! Is better stick with the link.


Viewing all articles
Browse latest Browse all 227

Latest Images

Trending Articles



Latest Images