[Buildroot] frame buffer problems

nina.holly at aerende.com nina.holly at aerende.com
Sat Apr 7 06:31:44 PDT 2007


The frame buffer test program I am using does the following:

A.  Open /dev/fb/0 with fb_ptr = open("/dev/fb/0", O_RDWR);
B.  ioctl(frame_buffer_ptr, FBIOGET_FSCREENINFO, &fix_info);
C.  ioctl(frame_buffer_ptr, FBIOGET_VSCREENINFO, &var_info);
D.  fbp = (char *)mmap(0, screensize, READ | WRITE, MAP_SHARED, fb_ptr, 0);


1.  If the kernel is compiled using buildroot version 17224
    and run in a buildroot version 17224 root filesystem it
    is failing with errno = -1 on

    errno = ioctl(frame_buffer_ptr, FBIOGET_FSCREENINFO, &fix_info);

2.  If the kernel is compiled using buildroot version 15763 but
    run in a buildroot 17224 root filesystem, the failure occurs
    when trying to map the framebuffer to memory using mmap with
    a return value of -1.


Nina




> On 4/6/07, nina.holly at aerende.com <nina.holly at aerende.com> wrote:
>> Hi,
>>     I am using Linux 2.6.10 with devfs on ARM.  I know that
>> devfs is deprecated/obsolete.  The framebuffer works fine
>> with buildroot svn version 15763.  But when I switched to
>> buildroot version 17224 I get a return value < 0 when I try to execute
>>
>> ioctl(frame_buffer_ptr, FBIOGET_VSCREENINFO, &var_info);
>
> Was the return value -14 or -19?
>
>   Luis
>




More information about the buildroot mailing list