angelo
2012-12-12 15:48:00 UTC
Dear All,
i am running
Linux 2.6.36.2 main line, over uClinux on a ColdFire mcf5307.
I have written then a little framebuffer driver for a 128x64 graphic lcd.
Driver works fine until file write operations are used, and also,
console output works fine when linked with "fbcon".
I cannot in anyway get access to it from userspace, as a memory area,
i implemented the "fb_mmap" routine, then tried:
fd = open("/dev/fb0", O_RDWR);
buffer = mmap( 0, buflen, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0 );
This fails (-1)
Then i tried:
buffer = mmap( 0, buflen, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0 );
works, returns a valid pointer, but i cannot see any change on the
screen writing in this area.
Any help is very appreciated.
Angelo Dureghello
--
i am running
Linux 2.6.36.2 main line, over uClinux on a ColdFire mcf5307.
I have written then a little framebuffer driver for a 128x64 graphic lcd.
Driver works fine until file write operations are used, and also,
console output works fine when linked with "fbcon".
I cannot in anyway get access to it from userspace, as a memory area,
i implemented the "fb_mmap" routine, then tried:
fd = open("/dev/fb0", O_RDWR);
buffer = mmap( 0, buflen, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0 );
This fails (-1)
Then i tried:
buffer = mmap( 0, buflen, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0 );
works, returns a valid pointer, but i cannot see any change on the
screen writing in this area.
Any help is very appreciated.
Angelo Dureghello
--