Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

video memory



       cat   /proc/iomem

00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-07eeffff : System RAM
00100000-0022614c : Kernel code
0022614d-0029547f : Kernel data
07ef0000-07ef7fff : ACPI Tables
07ef8000-07efffff : ACPI Non-volatile Storage
07f00000-07ffffff : reserved
e7b00000-e7bfffff : PCI Bus #01
e7bfff00-e7bfffff : Analog Devices SM56 PCI modem
e8000000-ebffffff : Intel Corp. 82810E DC-133 CGC [Chipset Graphics Controller]
efd00000-efdfffff : PCI Bus #01
eff80000-efffffff : Intel Corp. 82810E DC-133 CGC [Chipset Graphics Controller]



If we r in  login level 3 of linux , what is video memory range .


can we  insert some piece of code in  init_module() , which can show some thing in Screen ?



0
karana
Asked:
karana
  • 2
1 Solution
 
jojuCommented:
you can write to vedio-ram area
000a0000-000bffff

dont know from user space,this document allows you to do at boot
http://www.linuxgazette.com/issue77/krishnakumar.html

Thanxs,
Joju.
0
 
manish_regmiCommented:
>> If we r in  login level 3 of linux , what is video memory range .
 Video memory range has nothing to do with log levels.
 In all PCs, 0xA0000 - 0xBffff points to video memory.
 
>>can we  insert some piece of code in  init_module() ,
>> which can show some thing in Screen ?
    you have printk(),
    printk("Hello");
 You may not see text in Graphical consoles. But you can see it in text consoles and logfiles.
dmesg command prints the log file.
 
regards
Manish Regmi
0
 
karanaAuthor Commented:
sir , thankx for an immediate response

>>>>>Video memory range has nothing to do with log levels.  In all PCs, 0xA0000 - 0xBffff points to video memory.
 

     When u r in  x-window system , is it same video memory .  (If u use vesa mode , u require more memory ,so we divide to memory banks and insert  data .


>>>you have printk(),
    printk("Hello");


that is not actually i meant . I m writing a module . So i m in kernel space . Can i use
 pointers to video memory and add data ?

 
0
 
manish_regmiCommented:
>> When u r in  x-window system , is it same video memory
    AGP cards provide Linear frame buffer address somewhere at the end of memory(physical) (0xF8000000 etc).

>> (If u use vesa mode , u require more memory ,so we divide to memory banks and insert  data .
  Yes, but alternatively Vesa provides its own linear frame buffer address.  

regards
Manish Regmi
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now