I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / WebPal
16 bpp (or 32 bpp) framebuffer, cant get working
help

New Message16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) n1gp
Profile
I've been try all week to get 16 or 32 bit frame buffer support working with
my 2.4.18 kernel. I've tried various settings of the CONFIG_FBCON_CFB*, when
If I built-in multiple CONFIG_FBCON_CFB*'s I can use the "fbset -depth XX" no
problem, but 16bpp will change my text to yellow, and I loose the cursor.
32bpp will totally change my timings such that the screen is distorted.

I've been looking at the dev kernel 2.5.59 (has an ARM patch) and the drivers/video
fbcon stuff has changed quite a bit. I started merging the 2.4.18 webpal patch
in but quickly realized the complexity of the task and aborted.

From what I can gather through Google it appears that this may be a problem
with the fbcon layer and not the webpal hardware. Not sure, but the post below
sheads some light that there is a known problem in this area.

http://groups.google.com/groups?q=fbcon+group:linux.debian.ports.arm&hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8&selm=20020406163439.C17949%40flint.arm.linux.org.uk&rnum=4

I would be willing to work more on this, but sure could use some advice
on where to start digging into this. I'd love to be able to show
my photos on the TV via the webpal, I think the 16bpp would be a
nice step up from the dithered look of 8bpp.

Rick

02-20-2003 22:22:51

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) scratchy
Profile
I don't know how feasible this is, but another possibility might be to backport some or all of the fbcon code from 2.5-rmk or from the latest 2.4-rmk patch.
02-22-2003 11:13:17

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) n1gp
Profile
I've been trying various things to fix this problem.

With 2.5.59 I cannot seem to build for the ARCH clps7500.
It gets compile errors on mach-clps7500/core.c with several
undefined references (NR_IRQ is one).

I was hoping to at least establish a working base of the clps7500
before I started back porting, but no luck there. Nothing
came up on any searches through the arm linux forum about this
compile error. It almost seems no one has posted anything about
the clps7500 in quite some time :^(

I gave merging the webpal changes into 2.4.19 a shot with the patch-2.4.19-rmk6
preceding. I was able to build cleanly with the toolchain. -BUT-
after the boot loader decompressed and jumped into the kernel
it was deads-ville. Nada, no nuttin honey.

I double checked and triple checked my merge making sure everything
that was in bigbrd's patch was in the 2.4.19(rmk6), built clean
again, no dice.

I wonder if something changed as far as the boot options go between
2.4.18 -vs- 2.4.19, or somehow something more is needed besides
bigbrd's changes?

I'm crispy fried.

-Rick

02-25-2003 21:33:40

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) n1gp
Profile
OK, I've been playing with this acornfb.c frame buffer
driver now for a while and with RMK's help have been
able to get 16BPP mode working on the webpal.

There are still problems left, 1 major, 1 minor, I hope
someone can help with.

when setting for 16 "fbset -depth 16"

Minor: we loose the console's cursor (still there just
doesn't blink)

Major: X will not fully come up, I get a "caught signal 11"
and back to the console. I had modified scratchy's supplied
XF86Config to change the depth from 8 to 16.

I have verified the 16BPP working by using a program called
"fbi" http://bytesex.org/fbi.html , I did have to make one
change to that. I am fairly sure the change is needed for fbi
in this case and not the acornfb driver, but not 100% sure
until I can find other programs to verify.

If you want to try my version of fbi that corrects the RGB to
the CLPS7500E's BGR format, build and install fbi version 1.25
and overwrite /usr/local/bin/fbi with this:

http://n1gp.0catch.com/fbi.zip ,(unzip it 1st), I'll submit a
patch to this once I can verify it is indeed a problem.

I submitted 2 patches for acornfb.c to RMK's ARM site for
hopefully the next rmk patch. You can grab them from the
incoming dir:

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=1437/1
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=1444/1

Let me know how you make out with this. Really would like to
get X working in 16BPP...


-Rick

03-06-2003 13:17:26

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) justdavesj
Profile | Email
After I apply the patches microwindows displays the wrong colors in 16bpp mode, but it does run. When I did the patch it said that hunk 2 and 4 were successfully applied. I looked at the source and it seemed to have applied everything correctly although my cursor either disappears or turns yellow. It seems that if you use fbset after the first time it acts differently. I don't have x running so I am unsure about the problem there.

dave

03-23-2003 12:20:23

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) justdavesj
Profile | Email
When your were in contact with rmk did you ask about the sound? Are you trying to make it work on webpal?

Thanks

dave

03-23-2003 20:55:00

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) n1gp
Profile
If Microwindows also has the colors shifted (BLUE -vs- RED)
then I guess there is yet another problem with the acornfb
driver (at least when it comes to the CLPS7500).

I'm not familiar with MWindows (Would love to see you detail
how to install it on the webpal :^), but perhaps you could do
as I did on the fbi program and hack the code where it talks
to the CLPSE7500's palette and just swap the red for blue & visa-versa.

Didn't mention anything about the sound to rmk. He seemed to be
a VERY busy chap, although he did help quite a bit. Sign in to
his kernel maillist and have a go.

Have you got a browser working under MWindows yet?

Rick

04-01-2003 19:16:05

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) justdavesj
Profile | Email
If the problem is with the red and blue, shouldn't the fix be put into the framebuffer driver? I will try this after looking at your fbi changes. I don't have the browser working yet, but it is getting close and I have put up a website to detail my progress ( /http://justdave.mine.nu/webpal ) with both that and the mp3 player.

dave

04-10-2003 17:26:26

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) justdavesj
Profile | Email
Sorry, here is the link to my website http://justdave.mine.nu/webpal Also, could you email me the fbi source with the changes you made so that I can look into this.

thanks

dave

04-10-2003 17:31:35

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) n1gp
Profile
Your probably right about changing the acornfb.c driver
for the problem. Since I was never able to get into Xwindows
using 16BPP I couldn't verify that this was a driver
problem or an FBI problem. I did mess around a bit with
the driver, but was not able to swap the red & blue like I
did with the below patch to the fbi.c file.

Thanks for the info on MWindows. I'll try and check it out
this weekend. Here's the diff on version 1.25 of fbi.c, I
also sent this to your email address:


diff -ruN fbi.c.orig fbi.c
--- fbi.c.orig Fri Apr 11 10:52:49 2003
+++ fbi.c Fri Apr 11 10:56:32 2003
@@ -368,9 +368,9 @@
case 16:
for (out = 0; out < owidth; out++) {
in = (out << 16) >> shift;
- ptr2[out] = lut_red[buffer[in*3]] |
+ ptr2[out] = lut_red[buffer[in*3+2]] |
lut_green[buffer[in*3+1]] |
- lut_blue[buffer[in*3+2]];
+ lut_blue[buffer[in*3]];
}
ptr2 += owidth;
return (char*)ptr2;

04-11-2003 09:21:05

New MessageRE:16 bpp (or 32 bpp) framebuffer, cant get working (modified 0 times) justdavesj
Profile | Email
Thanks for sending. I have been searching the net and found that there are other people having problems with the 16bpp on the clps7500. Apparently it doesn't work exactly the same as the vidc20. I have found the data sheets for the 7500 and posted it on my website (http://justdave.mine.nu/webpal ) I will try to find out the differences as I have time available.

dave

04-12-2003 17:05:43

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3