Lcd Nightmare


Robster

Dodgy hardware mod maker
Joined
Jul 8, 2003
Messages
439
Location
New Zealand
Website
www.cobbleware.com
I'm trying to initialise and use the LCD in raw mode. Seemed easy, and the display hardware is really funky. Or it will be, once it's up and running. But I just can't shift that stripey mess that U-Boot displays, and I know my LCD is fine because the GP2X logo comes up fine if I boot into Linux.

Now, I dumped all the registers when I was in Linux, and I now have a colossal table in a C program which loads those values into the registers in raw mode. But I haven't succeeded in getting so much as a flicker from the LCD!

All of the ports are set up as they are in Linux, as is everything even remotely display-related (including the clock and power manager). So what can I be doing wrong?

I unzipped kernel4 to see if I could RE the LCD initialisation code, but I gave that up as a bad job after an hour or so.

Is there something really simple that I'm missing? Any advice gratefully received! :(
 
I'm sorry I can't help you, since I don't have the real HW. The only thing I can think of is that perhaps the order in wich you set the values on the LCD controller may be of importance.

In any case, hang in there!
 
Sorry about not updating this sooner!

I did solve the LCD problem, I had to floggle some GPIOs as well as setting the CPU registers.

If you want to try it on your system, just grab this file and run it under U-Boot. If you're interested in the source, let me know and I'll send it to you.
 
If GPH hadn't used an external chip, I could have written a small program launchable via uboot that took an exe over the usb port and executed that. It what I intend to use once we have a launcher and fully functioning SD driver.
 
Very cool stuff; I suppose ditching the OS shouldn't be too hard after all this work you guys have done. (Though i have no problem living on an OS ..all this Linux dissing is silly; course ditching the OS is more cool :) Besides, means we can operate without the likely-GPL-voilating version :p

How do you use uboot to boot an alternate app? (ie: There will be a lot of 'newbie' questions soon, since none of us have had a device to screw on :)

jeff
 
GPH still violate the GPL even if we delete Linux, as u-boot is GPL and no source code is provided :p

uboot has two commands - 'loads' and 'loadb', the first allows you to upload srecords to the device, and execute them. The second allows you to upload binary files via the Kermit protocol. Both are incredibly slow - Kermit manages about 1.4KB/sec at 115200 baud. 'loads' is slightly faster and is the preferred method.

Of course, once the SD driver and replacement boot loader are done, we can reflash the units, and boot from SD card instead. I'm looking into uploading executable and data files via USB to save wear and tear on the SD card, and making testing stuff that bit more tolerable (constantly swapping cards between the device and your card reader is never that much fun).
 
Back
Top