17 Replies Latest reply on Aug 10, 2016 2:16 PM by flozn

    Linux freezes when connected to HDMI

    cdobrescu

      I have loaded the Linux image SVN2652 on Riotboard, but it only boots if HDMI is not connected.

      If I connect the HDMI after Linux starts running it also freezes.

      The kernel is: Linux version 3.10.17_1.0.0_RIoTboard+g9ba99b4 (luofc@embest-tech) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Thu Jun 19 09:46:07 CST 2014.

      I have tried it on two other boards with the same result. If I stop the boot it displays the Freescale logo, so the hardware seems to work.

      Could it be a driver problem?

      Is there a fix for this?

      Thanks.

        • Re: Linux freezes when connected to HDMI
          tushar panda

          hi cristian,

           

          I guess you have downloaded from here : https://www.dropbox.com/sh/nuhzba8uqpijenb/AAAt8l9g6u6T6-DOqJHozyKca/fsl-image-fb-riotboard.sdcard?dl=1

           

          If I connect the HDMI after Linux starts running it also freezes.

          The HDMI screen freezes or Riotboard booting ??

           

          it only boots if HDMI is not connected.

          The HDMI GUI support is not yet enabled in kernel.

          on display devices it will show a terminal with Yocto signature as shown below.

           

           

          kernel1.png

            • Re: Linux freezes when connected to HDMI
              tushar panda

              If I stop the boot it displays the Freescale logo

               

              if possible, plz share a snapsort  .

                • Re: Linux freezes when connected to HDMI
                  cdobrescu

                  Hi,

                  Just to clarify, I don't want a GUI, my application uses GStreamer to output straight to the framebuffer.

                  I have tried both the downloaded file and also one that I build with Yocto (fsl-image-fb),  with the same result.

                   

                  If I have the HDMI cable connected the kernel would not start. Here is the console output:

                  ---------------------------------------------------------------------------------------------------------

                  U-Boot 2013.04-04988-gd2e8066-dirty (Jul 04 2014 - 09:18:53)

                   

                   

                  CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz

                  CPU:   Temperature 35 C, calibration data: 0x5915165f

                  Reset cause: POR

                  Board: MX6SOLO RIoTboard

                  I2C:   ready

                  DRAM:  1 GiB

                  MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

                  *** Warning - bad CRC, using default environment

                   

                   

                  No panel detected: default to HDMI

                  Display: HDMI (640x480)

                  In:    serial

                  Out:   serial

                  Err:   serial

                  mmc2(part 0) is current device

                  Net:   FEC [PRIME]

                  Warning: failed to set MAC address

                   

                   

                  Normal Boot

                  Hit any key to stop autoboot:  0

                  mmc2(part 0) is current device

                  reading boot.scr

                  ** Unable to read file boot.scr **

                  reading uImage

                  5275824 bytes read in 274 ms (18.4 MiB/s)

                  Booting from mmc ...

                  reading imx6solo_RIoTboard.dtb

                  43553 bytes read in 21 ms (2 MiB/s)

                  ## Booting kernel from Legacy Image at 12000000 ...

                     Image Name:   Linux-3.10.17_1.0.0_RIoTboard+g9

                     Image Type:   ARM Linux Kernel Image (uncompressed)

                     Data Size:    5275760 Bytes = 5 MiB

                     Load Address: 10008000

                     Entry Point:  10008000

                     Verifying Checksum ... OK

                  ## Flattened Device Tree blob at 18000000

                     Booting using the fdt blob at 0x18000000

                     Loading Kernel Image ... OK

                  OK

                     Using Device Tree in place at 18000000, end 1800da20

                   

                   

                  Starting kernel ...

                  --------------------------------------------------------------------------------------------

                   

                  If I have the cable initially disconnected it works OK. As soon as I connect the cable Linux freezes. No serial console and the LED stops blinking.

                   

                  The strange thing is that I have a board that works with no problems at all and another four that behave like I described.

                  I currently don't have the working board with me to see if there is a hardware difference (however unlikely that is). I should get it back next week.

                  The software is exactly the same on all.

                    • Re: Linux freezes when connected to HDMI
                      create

                      I have the same problem.  I have 6 boards all flashed with the same u-boot, 3.10 kernel and ubuntu 14.04.

                       

                      4 of them work great.  Both the serial console and the hdmi work well.

                       

                      On 1 the serial console does not display anything but the hdmi works.

                       

                      The last 1 has the same problem described here.  If I plug the hdmi cable it freezes.  From the serial console I am able to see u-boot go but it gets stuck at "Starting kernel ..." just like yours:

                       

                      U-Boot 2013.04-04992-g002bd44 (Oct 10 2014 - 16:41:48)

                       

                      CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz

                      CPU:   Temperature 41 C, calibration data: 0x5935125f

                      Reset cause: POR

                      Board: MX6SOLO RIoTboard

                      I2C:   ready

                      DRAM:  1 GiB

                      MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

                      *** Warning - bad CRC, using default environment

                       

                      No panel detected: default to HDMI

                      Display: HDMI (640x480)

                      In:    serial

                      Out:   serial

                      Err:   serial

                      mmc2(part 0) is current device

                      Net:   FEC [PRIME]

                      Warning: failed to set MAC address

                       

                      Normal Boot

                      Hit any key to stop autoboot:  0

                      mmc2(part 0) is current device

                      reading boot.scr

                      ** Unable to read file boot.scr **

                      reading uImage

                      5580480 bytes read in 352 ms (15.1 MiB/s)

                      Booting from mmc ...

                      reading imx6solo_RIoTboard.dtb

                      46379 bytes read in 20 ms (2.2 MiB/s)

                      ## Booting kernel from Legacy Image at 12000000 ...

                         Image Name:   Linux-3.10.17_1.0.0_RIoTboard-80

                         Image Type:   ARM Linux Kernel Image (uncompressed)

                         Data Size:    5580416 Bytes = 5.3 MiB

                         Load Address: 10008000

                         Entry Point:  10008000

                         Verifying Checksum ... OK

                      ## Flattened Device Tree blob at 18000000

                         Booting using the fdt blob at 0x18000000

                         Loading Kernel Image ... OK

                      OK

                         Using Device Tree in place at 18000000, end 1800e52a

                       

                      Starting kernel ...

                        • Re: Linux freezes when connected to HDMI
                          cdobrescu

                          About the time I posted my first message I have also contacted Embest via their web site. I got a couple of replies asking for more info, but I haven't heard from them since. I can only assume they don't have an answer or simply don't care.

                          Since I am developing a commercial product and have no time to muck around  I had to go back to kernel 3.0.35 (using the good old LTIB).

                          So far, so good. All my boards seem to work OK.

                          • Re: Linux freezes when connected to HDMI
                            tushar panda

                            same u-boot, 3.10 kernel and ubuntu 14.04.

                            I don't think we have a official release for  3.10 kernel with ubuntu 14.04 bsp.

                              • Re: Linux freezes when connected to HDMI
                                create

                                tushar panda wrote:

                                 

                                I don't think we have a official release for  3.10 kernel with ubuntu 14.04 bsp.

                                This is the u-boot and linux-img I am using:

                                git clone https://github.com/embest-tech/u-boot-imx.git -b embest_imx_v2013.04_3.10.17_1.0.0_ga

                                git clone https://github.com/embest-tech/linux-imx.git -b embest_imx_3.10.17_1.0.0_ga

                                 

                                Since it is getting stuck at loading the kernel I am not sure it is an Ubuntu issue but I may be wrong.

                                 

                                The ubuntu distribution I am using is from the bottom of this page: http://www.armhf.com/download/ I like that it is a bare minimal install without the GUI desktop.

                                 

                                As mentioned above, 5 of my boards do not show this problem at all.  Only 1 and they all have the exact same u-boot, kernel, dtb and rootfs.

                                  • Re: Linux freezes when connected to HDMI
                                    flozn

                                    Hey guys!

                                     

                                    With the help of panda's little tutorial for building a yocto-linux, I managed to build an own linux for riotboard - thanks for that!

                                    Unfortunately I have the same problem as the thread-starter. Linux starts fine without hdmi and is accessible via the debug-uart-tty.

                                    After uboot the following output is given:

                                    Starting kernel ...

                                     

                                    Booting Linux on physical CPU 0x0

                                    Linux version 3.10.17_1.0.0_RIoTboard+g084d5c3 (flo@thinkpad.localdomain) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Tue Nov 25 14:28:33 CET 2014

                                    CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

                                    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

                                    Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 Solo RIoTboard

                                    cma: CMA: reserved 320 MiB at 3c000000

                                    Memory policy: ECC disabled, Data cache writealloc

                                    PERCPU: Embedded 8 pages/cpu @8156f000 s8896 r8192 d15680 u32768

                                    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

                                    Kernel command line: console=ttymxc1,115200 nosmp video=mxcfb0:dev=hdmi,1280x720M@60,bpp=32 video=mxcfb1:off fbmem=10M root=/dev/mmcblk1p2 rootwait rw consoleblank=0

                                    ... (and so on) ...

                                    As soon I stick in the hdmi cable during boot, the uart-tty freezes. If the cable is mountet at boot, the last I see in minicom is "Starting kernel ..."

                                     

                                    The above posts sound like a hardware error to be the cause, not?

                                    Do you maybe have a way out of this problem now? If someone has an idea to be tried by me please mention it !

                                    Thanks!

                                     

                                    Cheers

                                    Flo

                          • Re: Linux freezes when connected to HDMI
                            karthiks1989

                            Hello Tushar

                             

                            Greetings

                             

                            From your post I understand that the kernel does not have HDMI support enabled. Could you confirm if BSP Linux Yocto v3.10.17 available at RIoTboard BSP Images and Tools Download - Android and Linux has the same issue too. The booting freezes at "starting kernel" when the HDMI cable is connected.

                             

                            Regards

                            Karthik

                              • Re: Linux freezes when connected to HDMI
                                tushar panda

                                The BSP in Download center is SVN2652(deprecated), it has no GUI support, (hdmi is a later thing).

                                This BSP (tutorial) is SVN3000 &  has GUI support for HDMI & LVDS .

                                  • Re: Linux freezes when connected to HDMI
                                    fgt

                                    Hey.

                                     

                                    I have the same problem as stated above.

                                    Riotboard, Yocto Image from E14 homepage, Linux 3.10.17 yocto BSP  image_SVN2652.zip

                                     

                                     

                                    uart tells me:

                                     

                                    -----------

                                    CPU: Freescale i.MX6SOLO rev1.1 at 792 MHz
                                    CPU: Temperature 43 C, calibration data: 0x5845075f
                                    Reset cause: POR
                                    Board: MX6SOLO RIoTboard
                                    I2C: ready
                                    DRAM: 1 GiB
                                    MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
                                    No panel detected: default to HDMI
                                    Display: HDMI (640x480)
                                    In: serial
                                    Out: serial
                                    Err: serial
                                    mmc2(part 0) is current device
                                    Net: FEC [PRIME]
                                    Warning: failed to set MAC address

                                     

                                    Normal Boot
                                    Hit any key to stop autoboot: 0
                                    mmc2(part 0) is current device
                                    reading boot.scr
                                    ** Unable to read file boot.scr **
                                    reading uImage
                                    5275824 bytes read in 275 ms (18.3 MiB/s)
                                    Booting from mmc ...
                                    reading imx6solo_RIoTboard.dtb
                                    43553 bytes read in 21 ms (2 MiB/s)
                                    ## Booting kernel from Legacy Image at 12000000 ...
                                    Image Name: Linux-3.10.17_1.0.0_RIoTboard+g9
                                    Image Type: ARM Linux Kernel Image (uncompressed)
                                    Data Size: 5275760 Bytes = 5 MiB
                                    Load Address: 10008000
                                    Entry Point: 10008000
                                    Verifying Checksum ... OK
                                    ## Flattened Device Tree blob at 18000000
                                    Booting using the fdt blob at 0x18000000
                                    Loading Kernel Image ... OK
                                    OK
                                    Using Device Tree in place at 18000000, end 1800da20

                                     

                                    Starting kernel ...

                                     

                                    Booting Linux on physical CPU 0x0
                                    Linux version 3.10.17_1.0.0_RIoTboard+g9ba99b4 (luofc@embest-tech) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Thu Jun 19 09:46:07 CST 2014

                                    ...

                                    ...

                                    Starting Linux NFC daemon
                                    Starting OProfileUI server
                                    Running local boot scripts (/etc/rc.local).
                                    Stopping Bootlog daemon: bootlogd.

                                     

                                    Poky (Yocto Project Reference Distro) 1.5.1 riotboard /dev/ttymxc1

                                     

                                    riotboard login: root
                                    root@riotboard:~#

                                     

                                    -------------------

                                     

                                    Board boots without any errors into riotboard User root.

                                    As soon as HDMI is connected Linux hangs up...

                                     

                                    When I stop by in uBoot and  stop by the HDMI Monitor has the chance to display a standard freescale bootscreen (freescale Logo and script plus Some uBoot Info: U.Boot 2013.04-04988-gd2e8066-dirty (Jul 04 2014 - 09:18:53)

                                     

                                     

                                    Continuing to boot fails at

                                     

                                    Starting kernel...

                                     

                                    It's funny that although connected the Riotboard tells me the no HDMI display is connected.

                                     

                                    the Riotboard sends some messages when connecting USB pheripherals as well as HDMI Monitor (EDID related and that sort of thing....) But this messages I cannot reproduce at the moment....

                                     

                                    Any solution known to why Yocto won't start?

                                    I had   trouble with HDMI since the start which makes me believe the board may be broken.

                                    Under Ubunto and Android I wasn't able to setup anything larger than 640x480, which is the default resolution on HDMI but at least I had graphichs displayed in these two systems.

                                     

                                    Christian

                                     

                                     

                                    PS/EDIT: I used MFG tool to flash from Windows as my PC at work doesn't support Linux yet (legal thingy). I cannot flash SVN3000 (yet) from windows

                              • Re: Linux freezes when connected to HDMI
                                create

                                Hi All,

                                Not sure if anyone still needs help with this. 

                                 

                                By using a current u-boot and linux kernel the problem goes away.  Not sure which of the 2 solves the problem but you can see my blog post on how to build your own image (Linux 4.1 + Ubuntu 14.04 on RIoTboard ).

                                 

                                The latest I have tried are u-boot-2016.01 and Linux kernel 4.4.  I believe the ones in the blog post (2015.07 and 4.1) work too.

                                 

                                cheers,

                                Carlos

                                1 of 1 people found this helpful
                                  • Re: Linux freezes when connected to HDMI
                                    flozn

                                    Hey Panda,

                                     

                                    after a long time I continued with riotboard. I tried your riotboard_yocto_gui_SVN3000.zip image without success .

                                     

                                    U-Boot 2013.04 (Nov 25 2014 - 15:03:06)

                                     

                                    CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz

                                    CPU:   Temperature 35 C, calibration data: 0x5a65205f

                                    Reset cause: POR

                                    Board: MX6SOLO RIoTboard

                                    I2C:   ready

                                    DRAM:  1 GiB

                                    MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

                                    *** Warning - bad CRC, using default environment

                                     

                                    No panel detected: default to HDMI

                                    Display: HDMI (640x480)

                                    In:    serial

                                    Out:   serial

                                    Err:   serial

                                    mmc0 is current device

                                    Net:   FEC [PRIME]

                                    Warning: failed to set MAC address

                                     

                                    Normal Boot

                                    Hit any key to stop autoboot:  0

                                    mmc0 is current device

                                    reading boot.scr

                                    ** Unable to read file boot.scr **

                                    reading uImage

                                    5417664 bytes read in 272 ms (19 MiB/s)

                                    Booting from mmc ...

                                    reading imx6solo_RIoTboard.dtb

                                    46315 bytes read in 20 ms (2.2 MiB/s)

                                    ## Booting kernel from Legacy Image at 12000000 ...

                                       Image Name:   Linux-3.10.17_1.0.0_RIoTboard+gb

                                       Image Type:   ARM Linux Kernel Image (uncompressed)

                                       Data Size:    5417600 Bytes = 5.2 MiB

                                       Load Address: 10008000

                                       Entry Point:  10008000

                                       Verifying Checksum ... OK

                                    ## Flattened Device Tree blob at 18000000

                                       Booting using the fdt blob at 0x18000000

                                       Loading Kernel Image ... OK

                                    OK

                                       Using Device Tree in place at 18000000, end 1800e4ea

                                     

                                    Starting kernel ...

                                     

                                     

                                    I copied the file with following line:

                                    # dd if=riotboard_yocto.img of=/dev/mmcblk0 bs=1M

                                    1348+0 Datensätze ein

                                    1348+0 Datensätze aus

                                    1413480448 Bytes (1,4 GB) kopiert, 120,889 s, 11,7 MB/s

                                     

                                     

                                    Without HDMI connected I can login via serial interface. When HDMI connected during runtime the serial console freezes. HDMI connected during startup lead to the log above.

                                    Do you have any idea? Thanks alot!

                                     

                                    Cheers

                                    Flo