linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Using framebuffer device under Linux
@ 2003-11-19  1:28 Lawrence
  2003-11-19 22:03 ` Karsten Scheibler
  0 siblings, 1 reply; 7+ messages in thread
From: Lawrence @ 2003-11-19  1:28 UTC (permalink / raw)
  To: linux-assembly

Hi Karsten,

Thanks for your suggestion. here is what I got from strace:

execve("./fb", ["./fb"], [/* 18 vars */]) = 0
ioctl(0, 0x4b3b, 0x80492e8)             = 0
ioctl(0, 0x4b3a, 0x1)                   = 0
open("/dev/fb0", O_RDWR)                = 3
ioctl(3, 0x4600, 0x804931c)             = 0
ioctl(3, 0x4604, 0x80492ec)             = 0
ioctl(3, 0x4601, 0x80493bc)             = -1 EINVAL (Invalid argument)
ioctl(3, 0x4601, 0x804931c)             = 0
ioctl(3, 0x4605, 0x80492ec)             = 0
ioctl(0, 0x4b3a, 0)                     = 0
_exit(1)                                = ?


The system call in question seems on setting screen parameters.  But I 
don't know how to deal with this.  Could you please give me some hints?

Thanks and Regards,
Lawrence



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Using framebuffer device under Linux
@ 2003-11-18 12:41 Lawrence
  2003-11-18 13:11 ` Frederic Marmond
  0 siblings, 1 reply; 7+ messages in thread
From: Lawrence @ 2003-11-18 12:41 UTC (permalink / raw)
  To: linux-assembly

Hi All,

I am planning to do graphic with asm under Linux without X11.  I am try
to use framebuffer as the "drawing plane".

I've reached the article entitled "Using the framebuffer device under
Linux" within http://linuxassembly.org and I've extracted and compiled
fb.n according to the instruction.  However, when I run "fb" under the
console in RH9, I only got a refresh and then back to the text console.

I've tried fb under the installation environment of Debian 3.0, with I
thought it is already in framebuffer mode, but still got a failure.


I've tried ald fb, but when it is going to switch to framebuffer mode,
Linux squeeze and I have to telnet into my linux box using another
machine and issue a reboot...

I can successfully run "leaves" under a-linux however, but I don't know
how to put fb under a-linux so as to see if it works, as there seems no
way to mount a floppy or access ethernet under a-linux.

Would anyone be so kind as to tell me how could I access linux
framebuffer correcely using assembly, or point me out the forgettable
steps in order to run 'fb' successfully?

my 'nasm -r' command spit out:

NASM version 0.98.22 compiled on Sep 19 2003

Thanks
Lawrence



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-11-20  1:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-19  1:28 Using framebuffer device under Linux Lawrence
2003-11-19 22:03 ` Karsten Scheibler
2003-11-20  1:34   ` Lawrence
  -- strict thread matches above, loose matches on Subject: below --
2003-11-18 12:41 Lawrence
2003-11-18 13:11 ` Frederic Marmond
2003-11-18 14:00   ` Lawrence
2003-11-18 21:01     ` Karsten Scheibler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).