New Sony LCDX35 LCD, linux support?

stereo_m
Hello,
I have bought a mini2440 with a 3.5" touchscreen, now this new one seems to
have a different touchscreen compared to the previous ones. On the back of
it it says LCDX35 instead of LCDT35 that has been on my previous ones with
the Toppoly display. 
Is here anyone with the new display? I can't get it to work with the
Buserror's kernel, does anyone have any ideas? Now it only shows some
lines, what do I need to do?

According to
http://www.thaieasyelec.com/Development-Tools/Development-Board/Embedded...
it is made by Sony and has been available since 18.10.

open-nandra
Hi, zes it seems there is new type of display. We need to add it to kernel
to work properly. Anyway there's statement:3.5 inch screen switch to (X35,
SONY) Driver is now available on DVD. So possibility would be to ask for
driver or get DVD.

cheers,

marek

stereo_m
Buserrors kernel doesn't seem to have the support for X35 yet, but I found
a config_mini2440_x35 in the latest kernel source (20100921) on
http://www.arm9.net/download.asp, maybe that could work?

I uploaded the file here for a bit faster download, if anyone needs:
http://www.filefactory.com/file/b44h06b/n/linux-2.6.32.2-mini2440-201009...

Here is also a datasheet for it:
http://arm9download.cncncn.com/datasheet/ACX502BMU.pdf

Would it be possible to use the settings/driver from the friendlyarm
(arm9.net) kernel in the buserrors kernel? Are some driver files required
or only the settings from the config_mini2440_x35 file?

open-nandra
I'll try to add values from friendlyarm kernel to buseror but I'm confused.
There is different setup for FA kernel and buserror kernel (also values are
different). Anybody experienced here?
FA T35 kernel:
#define LCD_WIDTH 240                                                      
                                                                           
                                                                           
         
#define LCD_HEIGHT 320                                                     
                                                                           
                                                                           
         
#define LCD_PIXCLOCK 170000                                                
                                                                           
                                                                           
         
#define LCD_RIGHT_MARGIN 25                                                
                                                                           
                                                                           
         
#define LCD_LEFT_MARGIN 0                                                  
                                                                           
                                                                           
         
#define LCD_HSYNC_LEN 4                                                    
                                                                           
                                                                           
         
#define LCD_UPPER_MARGIN 1                                                 
                                                                           
                                                                           
         
#define LCD_LOWER_MARGIN 4                                                 
                                                                           
                                                                           
         
#define LCD_VSYNC_LEN 1

FA X35 kernel:
#define LCD_WIDTH 240                                                      
                                                                           
                                                                           
         
#define LCD_HEIGHT 320                                                     
                                                                           
                                                                           
         
#define LCD_PIXCLOCK 170000                                                
                                                                           
                                                                           
         
#define LCD_RIGHT_MARGIN 25                                                
                                                                           
                                                                           
         
#define LCD_LEFT_MARGIN 0                                                  
                                                                           
                                                                           
         
#define LCD_HSYNC_LEN 4                                                    
                                                                           
                                                                           
         
#define LCD_UPPER_MARGIN 0                                                 
                                                                           
                                                                           
         
#define LCD_LOWER_MARGIN 4                                                 
                                                                           
                                                                           
         
#define LCD_VSYNC_LEN 9 

buseror kernel t35 (some values):
_xres=240
margin_left=21
margin_right=25
hsync=6
_yres=230
margin_top=2
margin_bottom=4
vsync=2

I can't assume values for X35 ;). Anyway you can try compile FA x35
defconfig and load it if it display correctly.

good luck,

marek

AndreT
Does your LCD have a X35 printed on the top right hand corner on the front
of the display?

If it does, it will explain some of the problems I am experiencing! :)

stereo_m
Hello,
No it's on the back of the display, on the circuit board. With the T35
kernel I see only some colored lines on the X35 display. 

I think I will try to change the hsync and vsync values in the buserror
kernel, and if it doensn't help I probably need to change to the FA kernel.

Snooter
Hi,
I have the same problem!
In my lcd there is a "x35" printed on the top right.
Anyone found any solution? I can't compile the kernel because does not have
the configuration file for this lcd model..
Into the DVD there is an zImage for x35 that work's, so someone has this
configuration file.

Referent lcd configuration look at this link:
http://osdir.com/ml/handhelds.linux.kernel/2004-08/msg00063.html

O mais estranho é que o kernel dos outros dispositivos não chega nem a ser
gravado na memoria do kit. "Erasing... Fail..."

Snooter
Sorry for the last sentence...

[The strange thing is that the kernel of the other devices is not even
being recorded in the kit memory. "Erasing ... Fail ..."]

AndreT
Try compiling this kernel:

http://rapidshare.com/files/431859567/linux-2.6.32.2-mini2440-20100921.t...

It came on the dvd with my mini2440

stereo_m
I compiled the kernel from Friendlyarm (from
linux-2.6.32.2-mini2440-20100921.tar.gz), and at least the kernel logo is
displayed correctly. But the FriendlyArm-kernel doesn't seem to work with
SD-cards in the same way as Buserror's kernel, so I can't get it to load
the filesystem from the same SD card as where the kernel uImage is...

So I think it would be easier to try to edit the config file from buserrors
kernel, if anyone knows how the LCD hsync and vsync and other parameters
should be set, please share.

In buserrors kernel, the "mini2440=4tb" option gives me some picture, but
the picture is too bright, and the resolution is wrong (640x480).

open-nandra
AndreT successfully test X35 display on 2.6.37-rc3 kernel today. Add lines
to arch/arm/mach-s3c2440/mach-mini2440.c
This source is from AndreT: http://pastebin.com/ZZCVxF9x (thanks).

Snooter
Hi,
I successfully compile the kernel linux-2.6.32.2-mini2440-20100921.tar.gz
to x35 LCD. Now I would like to know if there is a max size of zImage. I've
compiled this kernel with the original configuration, but when I added more
support into the kernel (bluetooth and wireless drivers for example) and
his size increases of 2,16Mbytes for 2,38Mbytes, I can't write the zImage
into the mini2440. Someone know why?
"Erasing.... fail..."
My flash memory have 256Mbytes.

open-nandra
Writing with supervivi or u-boot?

davef
Must be using Supervivi.  Search <zImage too big>

AndreT
http://www.friendlyarm.net/forum/topic/541

pascal
Hello everyone,

I built the kernel for android running on micro2440 kit with the new X35
LCD. I modified the mach-mini2440.c as AndreT did but I couldn't get
working the backlight; Could anybody can tell me what should I do?

Thanks all!

andret
Did you pass kernel parameters?

pascal
Hello Andret,
What parameters do you mention?I follows this guide
://mymicro2440.wordpress.com/2010/11/10/boot-android-from-sd-card/ and
modified the display parameters in the file mach-mini2440.c
(android-kernel_20090825.tgz) as you did here. It seem that the file
mach-mini2440.c is modified to support only for X35 display in this kernel,
others are removed. But thebacklight does not work.

Khang.

open-nandra
What kernel_params are you passing in u-boot? There should be something
like: mini2440=3tb (3=display type, t=touchscreen, b=backlight).

marek

pascal
Hello open-nandra,

The params that I passed to the kernel are:

setenv bootcmd mmcinit \; ext2load mmc 0:2 0×31000000 uImage \; bootm
0×31000000
setenv bootargs root=/dev/mmcblk0p3 rootfstype=ext3 mini2440=xtb
rootdelay=3 init=/linuxrc

with xtb = 1tb, 2tb, 3tb, ... It has not effect on the display because the
support of other display has been removed from mach-mini2440.c file except
for X35.

Thanks!

manjula
I have got a new mini2440 board on which it has a mark x35 on top right
corner. How to port android for this board, please give any links for
download of kernel and tool to cross compile the kernel..

whitebank
Hi. Here is zImage for Android which is used to port into mini2440 X35
screen. Get it and try to install into your X35 board and tell me the
result. Because I have T35 type so that I could not try it by myself.

Link to download
http://www.mediafire.com/?d4f45usa5x0k9b5

Good luck.

Souvik
Hello whitebank,

I have tried your image available at :
http://www.mediafire.com/?d4f45usa5x0k9b5.It works on my mini2440 with X35
display. Thanks a lot.

But now I am trying to modify the kernel source android-kernel_20090825.tgz
to add support for X35. I have made following changes in the source code :

Added in the file <source code>/driver/video/Kconfig

config FB_S3C2410_X240320
        boolean "3.5 inch 240X320 LCD(ACX502BMU)"
        depends on FB_S3C2410
        help
          3.5 inch 240X320 LCD(ACX502BMU)

Also in the file mach-mini2400.c
.......
.......
#elif defined(CONFIG_FB_S3C2410_X240320)
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#define LCD_PIXCLOCK 170000
#define LCD_RIGHT_MARGIN 25
#define LCD_LEFT_MARGIN 0
#define LCD_HSYNC_LEN 4
#define LCD_UPPER_MARGIN 0
#define LCD_LOWER_MARGIN 4
#define LCD_VSYNC_LEN 9
#define LCD_CON5 (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_INVVDEN |
S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVLINE |
S3C2410_LCDCON5_INVVCLK | S3C2410_LCDCON5_HWSWP ) 

After this I have rebuilt the kernel. Although I am able to boot the board
with this newly built image, but there is no display on the X35 screen. 
The board works find with Android when I am using the zImage that you have
built for X35.

Can you please tell me if I am missing something here?

Thanks and Regards,
Souvik

Souvik
Solved the issue. 

Ported mini2440_backlight.c driver code to Android kernel. Now I am able to
see the display.

Regards,
Souvik

Paulo
hey Souvik, is ur kernel working well with the touchscreen and display x35?
I'm having problems with the touchscreen.

naveen kumar
hi all
              i hav sony 3.5" x-35 lcd with friendly arm board .but it need
some power on delay to display. but lcd T-35 is working fine with my
hardware . so please let me know it is hardware problem or software
problem.

sunil880089
Hi,

I have mini2440 with 3.5" LCD X35. But I can't find WinCE 5.0 image English
version. Who has these image, share it please.

Thanks