hdmi output does not work with linux-sunxi kernel but works with android 3.0.8 kernel.

843 views
Skip to first unread message

Rajesh Mallah

unread,
Nov 24, 2013, 5:00:07 AM11/24/13
to linux...@googlegroups.com

Hi ,

I have a no-name board basically a cheap tv box with allwinner A10 and 1 GB ddr3.
I am running debian 7.1 image from sdcard  with a compiled kernel from linux-sunxi github repository.

the problem is when i insert the hdmi module it does not get the EDID info.

[   55.437376] I2C: i2c-3: HDMI I2C adapter
[   65.495753] Timeout waiting for EDID info
[   65.507765] disp clks: lcd 108000000 pre_scale 1 hdmi 108000000 pll 270000000 2x 1

i2cdetect does not detect any data at 0x50 on bus 3

i2cdetect  3
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-3.
I will probe address range 0x03-0x77.
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                        


while running it i see following kernel messages:
6>HDMI not connected
[  455.281258] HDMI not connected
<6>HDMI not connected
[  455.289080] HDMI not connected
<6>HDMI not connected
[  455.303913] HDMI not connected
<6>HDMI not connected
[  455.315596] HDMI not connected
<6>HDMI not connected
[  455.327386] HDMI not connected
<6>HDMI not connected
[  455.339105] HDMI not connected

I am connecting the HDMI cable of monitor directly to the board's  HDMI port.
(no hdmi2vga adapter , the result is same however if i use that).

my uEnv.txt commandline is:

console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait loglevel=8 panic=10 rootwait console=tty0 hdmi.audio=0 disp.screen0_output_type=3 disp.screen0_output_mode=EDID:1280x1024p60 mac_addr=de:31:c6:19:a6:18


any help shall be greatly appreciated. sorry if i have posted in a wrong mailing list  i could not
find any better more active list on linux-sunxi  in my research.

regds
Rajesh Kumar Mallah.



Jari Helaakoski

unread,
Nov 24, 2013, 5:05:19 AM11/24/13
to linux...@googlegroups.com



2013/11/24 Rajesh Mallah <mallah...@gmail.com>


Hi ,

I have a no-name board basically a cheap tv box with allwinner A10 and 1 GB ddr3.
I am running debian 7.1 image from sdcard  with a compiled kernel from linux-sunxi github repository.

the problem is when i insert the hdmi module it does not get the EDID info.

I'm not sure if loading hdmi as module works. Disp "modules" has depedencies which requires them to be loaded in precise order.. If you make them build-in it should work.

-Jari


Rajesh Mallah

unread,
Nov 24, 2013, 9:28:29 AM11/24/13
to linux...@googlegroups.com
earlier they were all builtin then i changed to modules in order to debug it.
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

Jari Helaakoski

unread,
Nov 24, 2013, 10:28:44 AM11/24/13
to linux...@googlegroups.com



2013/11/24 Rajesh Mallah <mallah...@gmail.com>

earlier they were all builtin then i changed to modules in order to debug it.


Does HPD comparison on 3.0.8 return true?

-Jari

Rajesh Mallah

unread,
Nov 24, 2013, 12:00:27 PM11/24/13
to linux...@googlegroups.com


Sorry could you please elaborate on  HPD comparison ?  I can post the dmesg of android boot tomorrow.

Thanks
-- mallah.
 

-Jari

Jari Helaakoski

unread,
Nov 24, 2013, 4:00:54 PM11/24/13
to linux...@googlegroups.com



2013/11/24 Rajesh Mallah <mallah...@gmail.com>
But looks like it should work(return true) if you got the picture.

-Jari

Rajesh Mallah

unread,
Nov 24, 2013, 9:47:23 PM11/24/13
to linux...@googlegroups.com
Thanks so much for precisely pointing out , as soon as i get hold of the setup in my office i shall respond. Regds mallah.


On Mon, Nov 25, 2013 at 2:30 AM, Jari Helaakoski <tek...@gmail.com> wrote:



2013/11/24 Rajesh Mallah <mallah...@gmail.com>


On Sunday, November 24, 2013 8:58:44 PM UTC+5:30, techn wrote:



2013/11/24 Rajesh Mallah <mallah...@gmail.com>

earlier they were all builtin then i changed to modules in order to debug it.


Does HPD comparison on 3.0.8 return true?


Sorry could you please elaborate on  HPD comparison ?  I can post the dmesg of android boot tomorrow.


But looks like it should work(return true) if you got the picture.

-Jari

--

Rajesh Mallah

unread,
Nov 25, 2013, 1:19:46 PM11/25/13
to linux...@googlegroups.com

HPD is actually false.

not sure how much it will help but the dmesg for android is below:

http://pastebin.com/YH1hQHcL

regds
mallah.

Rajesh Mallah

unread,
Nov 28, 2013, 1:04:22 PM11/28/13
to linux...@googlegroups.com


OK! I managed to get HDMI working on linux for this device but using the android kernel.

I extracted the the 3.0.8 android kernel from nandc of android
and finally boot debian  and i got the lightdm login screen.


root@cubieez:~# uname -a
Linux cubieez 3.0.8 #9 PREEMPT Sat Jan 12 17:39:36 CST 2013 armv7l GNU/Linux

root@cubieez:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.1 (wheezy)
Release:        7.1
Codename:       wheezy
root@cubieez:~#
root@cubieez:~#

Can anyone help (guide) from this point onwards on how to get the HDMI working
on the linux-sunxi tree ? ( now that i have debian at my disposal to do all the tinkering :)
 
regds
mallah.

Rajesh Mallah

unread,
Nov 29, 2013, 11:00:03 PM11/29/13
to linux...@googlegroups.com
Hi ,

the A10 based device below makes a perfect candidate for a thinclient as it comes with a cabinet also.

http://dx.com/p/jesurun-q5-android-4-0-google-tv-media-player-iptv-w-1gb-ram-8gb-rom-hdmi-av-black-eu-plug-233735

All in about 40 $

Hence it will be VERY nice to have HDMI working for a device with a kernel for which source is available.

PS: this device has wifi too!

regds
Rajesh Kumar Mallah.


Jari Helaakoski

unread,
Nov 30, 2013, 3:13:35 AM11/30/13
to linux...@googlegroups.com



2013/11/28 Rajesh Mallah <mallah...@gmail.com>
Could you send 3.4 dmesg log when hdmi, lcd and disp modules are build-in?

-Jari

Rajesh Mallah

unread,
Nov 30, 2013, 3:58:26 AM11/30/13
to linux...@googlegroups.com

Dear Jari , Thanks i would send in a while.

regds
mallah.

Rajesh Mallah

unread,
Nov 30, 2013, 5:30:08 AM11/30/13
to linux...@googlegroups.com
Dear List ,

now hdmi  , lcd  , disp etc are builit-in in kernel.

dmesg for  linux-sunxi , 3.4.67
http://pastebin.com/r6ZUUFNf

output from the serial line:
http://pastebin.com/40Cp2eB9

# lsmod
Module                  Size  Used by
sw_ahci_platform        3715  0
mali                  108397  0
ump                    50853  1 mali

root@cubieez:~# uname -a
Linux cubieez 3.4.67 #11 PREEMPT Sat Nov 30 15:26:13 IST 2013 armv7l GNU/Linux

Rajesh Mallah

unread,
Nov 30, 2013, 5:33:03 AM11/30/13
to linux...@googlegroups.com


The bin2fex too for script.bin

http://pastebin.com/LENaaVj6

Rajesh Mallah

unread,
Nov 30, 2013, 5:42:21 AM11/30/13
to linux...@googlegroups.com
The above script.bin is the stock one ie, from the android boot partition. sorry for the chatter.

Jari Helaakoski

unread,
Nov 30, 2013, 7:13:23 AM11/30/13
to linux...@googlegroups.com



2013/11/30 Rajesh Mallah <mallah...@gmail.com>

Dear List ,

now hdmi  , lcd  , disp etc are builit-in in kernel.

dmesg for  linux-sunxi , 3.4.67
http://pastebin.com/r6ZUUFNf

output from the serial line:
http://pastebin.com/40Cp2eB9

According those traces hdmi should work ok. You problem might be that auto detect logic selects wrong mode.
This might solve your issue (disp.screen0_output_mode=EDID:1280x720p60):

-Jari

Michal Suchanek

unread,
Nov 30, 2013, 9:07:03 AM11/30/13
to linux-sunxi
On 30 November 2013 05:00, Rajesh Mallah <mallah...@gmail.com> wrote:
> Hi ,
>
> the A10 based device below makes a perfect candidate for a thinclient as it
> comes with a cabinet also.
>
> http://dx.com/p/jesurun-q5-android-4-0-google-tv-media-player-iptv-w-1gb-ram-8gb-rom-hdmi-av-black-eu-plug-233735
>

Very low end thing client at best.

Only one HDMI output so no multiscreen configurations available.

1080p causes display artifacts when the CPU is busy so limited to low
resolution screens.

I had this idea too but a decent thin client needs enough memory
bandwidth to do at least one 1920x1200 screen without issues.

It does not seem Alwinner released a chip that can do that so far.

Thanks

Michal

Rajesh Mallah

unread,
Nov 30, 2013, 9:49:12 AM11/30/13
to linux...@googlegroups.com
We have used cubieboard with similar specs as thinclient. For our use
the processing power has been sufficient. The only problem with
cubieborad or even olimex borads for such applications is the lack of
decent casing. With this android tv box with get all these.
We use 1280x1024 resolution only.


Regds
mallah

Rajesh Mallah

unread,
Nov 30, 2013, 9:53:36 AM11/30/13
to linux...@googlegroups.com
Dear Jari,

i will try it but as far as i remember it times out getting the edid
data from the I2C bus. I2cdetect does not report any address on bus
3.

Rajesh Mallah

unread,
Nov 30, 2013, 10:21:32 AM11/30/13
to linux...@googlegroups.com
Dear Michal,
i agree that its going to be a low end thinclient at best and ofcourse
not a perfect thinclient. I take my word back. For my use ofcourse its
perfect
:-)

regds
mallah.

Alejandro Mery

unread,
Dec 1, 2013, 3:02:36 PM12/1/13
to linux...@googlegroups.com
On 30/11/13 15:49, Rajesh Mallah wrote:
> We have used cubieboard with similar specs as thinclient. For our use
> the processing power has been sufficient. The only problem with
> cubieborad or even olimex borads for such applications is the lack of
> decent casing. With this android tv box with get all these.
> We use 1280x1024 resolution only.

a mele a100 or a100g is also a good solution, considering it has VGA and
a nice case.

cheers,
Alejandro Mery

Rajesh Mallah

unread,
Dec 6, 2013, 12:10:20 PM12/6/13
to linux...@googlegroups.com
looks like i am not the only one bitten by this problem . for sake of reference:

http://archlinuxarm.org/forum/viewtopic.php?f=33&t=6475


--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.

Rajesh Mallah

unread,
Dec 6, 2013, 12:31:27 PM12/6/13
to linux...@googlegroups.com
hi, Is it possible to get kernel source for 3.0.8 which is being used in the android firmware. I compiled the kernel from
https://github.com/amery/linux-sunxi/tree/allwinner-v3.0-android  but its gets stuck at DDR:1024
regds mallah


On Mon, Dec 2, 2013 at 1:32 AM, Alejandro Mery <am...@geeks.cl> wrote:
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.

Rajesh Mallah

unread,
Dec 6, 2013, 9:58:08 PM12/6/13
to linux...@googlegroups.com


on Booting 3.0.8+ on the Jesrun Q5 board it gets stuck
at DRAM:1024 any clues ?


=======================================================


 U-Boot SPL 2013.07-rc1-07435-g234e002 (Jun 28 2013 - 17:43:22)
Board: Cubieboard
DRAM: 1024MB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
SUNXI SD/MMC: 0


U-Boot 2013.07-rc1-07435-g234e002 (Jun 28 2013 - 17:43:22) Allwinner Technology

CPU:   Allwinner A10 (SUN4I)
Board: Cubieboard
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  0
reading uEnv.txt
262 bytes read in 3 ms (85 KiB/s)
Loaded environment from uEnv.txt
reading boot.scr
** Unable to read file boot.scr **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading script.bin
44484 bytes read in 15 ms (2.8 MiB/s)
reading uImage
3729028 bytes read in 174 ms (20.4 MiB/s)
## Booting kernel from Legacy Image at 48000000 ...
   Image Name:   Linux-3.0.8+
   Created:      2013-12-07   2:40:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3728964 Bytes = 3.6 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

DRAM: 1024

Rajesh Mallah

unread,
Dec 7, 2013, 11:01:19 PM12/7/13
to linux...@googlegroups.com
Dear Amery ,

The price is a big consideration and the Jesurun Q5 was available for 41 $ .
It would be nice to see linux-sunxi working as ubiquitously on off-the-self ARM hardware
as linux works on x86 .

I found another product also that is based on A20 and has VGA also at a similar
price.

http://www.aliexpress.com/store/product/OTT-BOX-based-on-Allwinner-A20-processor-which-integrated-ARM-Cortex-A7-running-up-to-1GHz/518183_1432038465.html  ( its available at much lesser than list price for higher Qty)
Hope i shall be able to get the VGA out at least if not HDMI.

 
PS: If any hacker  would want to work on this device Q5 i would ship it for free. ( and not ask it back too  :) ).
      (pls contact privately)


regds
mallah.



On Mon, Dec 2, 2013 at 1:32 AM, Alejandro Mery <am...@geeks.cl> wrote:
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.

Michal Suchanek

unread,
Dec 8, 2013, 9:31:51 AM12/8/13
to linux-sunxi
On 7 December 2013 03:58, Rajesh Mallah <mallah...@gmail.com> wrote:
>
>
> on Booting 3.0.8+ on the Jesrun Q5 board it gets stuck
> at DRAM:1024 any clues ?

Wasn't it working previously?

What did you change since then?

HTH

Michal

Rajesh Mallah

unread,
Dec 8, 2013, 3:03:48 PM12/8/13
to linux...@googlegroups.com
No the only 3.0.8 ever worked with this box is the stock android kernel.
i have been able to boot the debian rootfs with the android kernel. The hdmi
works with that kernel. somehow the 3.4.x kernel is not able to turn on
the hdmi.  dunno why i feel it has to do with the hdmi_cec. As i see that the
boot trace of 3.0.8 keeps referring to CEC commands.

regds.
Reply all
Reply to author
Forward
0 new messages