Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RE: RZA1 RSK Change /dev/fb0 to 320x240

$
0
0

You said:

"I've created a 320x240 16bbp framebuffer ( /dev/fb1 ) and I can disable fb0."

but, then you have:

   [3].format = GR_FORMAT(GR_FORMAT_ARGB8888) | GR_RDSWA(4),

   [3].bpp = 32,

Also...

static const struct simplefb_platform_data simplefb_pdata = {
.width = 320,
.height = 240,
.stride = 240 * 4,
.format = "a8r8g8b8",
};

NOTE, the "stride" is the length of a line in bytes.So, you should have stride = 320 * 4

But, if you really just want 16bpp, it should be 320*2

Are you using a standard kernel (uImage) or XIP kernel?


Viewing all articles
Browse latest Browse all 1583

Trending Articles