The kernel sometimes hangs  in L3.0.35_4.0.0_130424 release

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The kernel sometimes hangs  in L3.0.35_4.0.0_130424 release

6,678 Views
LeviathanSteven
Contributor III

Hi,

I am working on the mx6q_sabrelite board with L3.0.35_4.0.0_130424 release.

When I start the ubuntu_oneiric_4.0.0 system, and run some commands, such as apt-get or others, some kernel panic messages may will be shown, and sometimes the system will hang. More detailed kernel panic messages are shown in the attachments. From these messages, it seems that the memory is not enough(Am I right?). Are there any instructions on how to set the system memory, GPU memory and Framebuffer memory? Any idea and patch about these kernel hang???

Thanks in advance.

Original Attachment has been moved to: kernel-hang-01.zip

Original Attachment has been moved to: kernel-hang-03.zip

Original Attachment has been moved to: kernel-hang-02.zip

Labels (3)
Tags (3)
12 Replies

2,326 Views
sergueiivantsov
Contributor II

I have exactly the same issue with my SabreLite board from element14.

I try different u-boots and kernels - both from Freescale, Timesys and Boundary Devices.

Board hangs or kernel panic during heavy loads - extracting large archives, copying big volumes of data.

I.e. it can easily compile a Linux kernel with -j4, but definitely crash when just unpacking it.

Lowering cpu frequency with powersave governor does not help.

I found only one 100% solution - use "maxcpus=1" in kernel command line.

0 Kudos

2,326 Views
sergueiivantsov
Contributor II

At the same time it is rock-solid on 3.11-rc1 kernel! - Gentoo "world" rebuild works like a charm.

2,326 Views
EricNelson
Senior Contributor II

Hi Steven,

I just ran across this post after Karina's mention.

It seems that you're having some pretty massive failures, which we haven't seen in any image, but that we did see before some critical U-Boot and kernel patches surrounding CPU frequency driver.


Can you forward the output of the 'version' command under U-Boot and the output from /proc/version under Linux?


I'd also be interested in seeing the line of U-Boot banner that lists the CPU information:

     CPU:   Freescale i.MX6Q rev1.0 at 792 MHz

That will give us a starting point for further investigations.

0 Kudos

2,326 Views
LeviathanSteven
Contributor III

Hi EricNelson,

Thank you!

The output of /proc/version under Linux is as below

Linux version 3.0.35-2508-g54750ff (trigger@IMX6q-LinuxBSP) (gcc version 4.6.2 2

0110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:

20) ) #1 SMP PREEMPT Wed Jun 19 19:42:45 CST 2013


And the output of version' command under U-Boot is as below,

U-Boot 2009.08 (May 29 2013 - 11:54:13)


And the line of U-Boot banner that lists the CPU information

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

Thermal sensor with ratio = 182

Temperature:   39 C, calibration data 0x5834f569

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

0 Kudos

2,326 Views
EricNelson
Senior Contributor II

Hi Steven,

Alright, this shows that you're running both an old U-Boot and a stock-from-freescale kernel.<br/><br/>

The U-Boot should be fixed first. We just bumped the version that we're shipping and this post gives a download link and instructions on how to upgrade:

     http://boundarydevices.com/new-u-boot-version/

There's also a "Getting started guide" for U-Boot on our i.MX6 boards here:

     http://boundarydevices.com/u-boot-on-i-mx6/

I suspect that this will solve your issues, since the Freescale U-Boot code base has some issues with DDR timings as discussed in this post:

      http://boundarydevices.com/i-mx-6dq-u-boot-updates/

We also recommend that you use our kernel on SABRE Lite. You can get a very recent set of binaries and instructions about how to overlay them onto your Oneiric image from here:

     http://boundarydevices.com/modifying-a-linux-image/

If you need to (re)compile the kernel, instructions are here:

    http://boundarydevices.com/i-mx6-kernel-l3-0-35_4-0-0/

Finally, if you want to skip the "overlay" processes, we have an image here:

   http://boundarydevices.com/freescale-ubuntu-image-with-4-0-0-kernel/

(It contains a recent "u-boot.imx" for SABRE Lite and Nitrogen6X)

2,326 Views
LeonardoSandova
Specialist I

Do you see the same errors using the ubuntu image that Boundary Devices provides? I am sure this image is better tested on sabre lite that the one Freescale provides.

Leo

0 Kudos

2,326 Views
LeviathanSteven
Contributor III

Hi,

Thank you so much!

Would you please tell that where and how can I get ubuntu image that Boundary Devices provides?

Which is the best and the most suitable software(kernel+uboot+ubuntu image) for mx6q_sabrelite board?


0 Kudos

2,326 Views
EricNelson
Senior Contributor II

Hi Steven,

You can get the latest Ubuntu for SABRE Lite from this post:

         http://boundarydevices.com/freescale-ubuntu-image-with-4-0-0-kernel/

0 Kudos

2,326 Views
karina_valencia
NXP Apps Support
NXP Apps Support

You can    contact EricNelson  to get  help with Sabre Lite.

0 Kudos

2,326 Views
daiane_angolini
NXP Employee
NXP Employee

As i know, 4.0.0 supports only TO1.2 imx6q.

Would be better you take the kernel from Boundary Devices.

0 Kudos

2,326 Views
LeviathanSteven
Contributor III

Hi,

Thanks so much for your kindly reply.

Do you mean that 4.0.0 does not support mx6q_sabrelite???  If not, then which release is best for mx6q_sabrelite.

I have tested L3.0.35_1.1.0_121218 release, but the X window will always hang after start X.

0 Kudos

2,326 Views
LeonardoSandova
Specialist I

Correct, Freescale does not support BSP for SabreLite. Tested releasse are found on BoundaryDevice website or in case you want the latest patches on that machine, try the Yocto framework.


Leo

0 Kudos