A Question About The Kernel Configuration For The Linux Build Distributed With Clonezilla

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

A Question About The Kernel Configuration For The Linux Build Distributed With Clonezilla

1,911 Views
patrickmorrow
Contributor III

We have built a custom board around an LS1021A chip.  We've managed to create everything one would need (u-boot, device trees, linux kernels, etc.) in order to run Linux on our system.  After running Linux for several minutes, we encounter either kernel panics or faults that bring everything to a standstill.  We've managed to cobble together an SD card complete with a u-boot that was compiled explicitly for our custom board, and Linux files (uImage, dtb and rootfs) for the LS1021A-TWR that we got from the Clonezilla distribution built on Linux 3.12.0.  This setup runs indefinitely.  Nothing seems to cause panics or faults or anything else.

We were wondering if we could somehow get the Kernel Configuration file for the Clonezilla build and compare it to our configuration file.

We're fairly certain it has to do with some kind of faulty driver that is not included on Clonezilla, but we are having a hard time tracking it down. Using SDK1.7 with Service Pack 1.5 to build Linux with the default kernel configuration and default dts files also produces kernel panics.

Patrick

Labels (1)
0 Kudos
6 Replies

1,638 Views
Pavel
NXP Employee
NXP Employee

Freescale offers Linux SDK 1.7:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=SDKLINUX&fsrch=1
 
This SDK supports the TWR-LS1021A board. Board from the factory contains configuration from the SDK. 
 
Attached file contains .config file from this SDK.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,638 Views
patrickmorrow
Contributor III

Hello Pavel,

Thank you for attaching the .config that the SDK defaults to.

Unfortunately, this is not the file we have been interested in finding.

In an attempt to clarify our question:

The LS1021A-TWR board was shipped to us in August 2014 with a thumb drive. On that thumb drive, there was an .iso with the Clonezilla disk cloning utility and the necessary files for the Access Point demo Linux image. This demo is different from the image on our TWR board's default NOR flash (which just shows two Tux logos). The Access Point demo has three slide shows which are advanced with mouse clicks and it has a menu for configuring wireless connectivity. Since the thumb drive only contains the rootfs, DTB, and uImage for this demo, we are asking where we might find the files (.config, .dtsi, .dts, etc... but specifically the .config) that were used to build the demo kernel.

If you need us to further clarify or provide you with any more information, we would be happy to.

Thanks!

Patrick

0 Kudos

1,638 Views
Pavel
NXP Employee
NXP Employee

Install SDK 1.7 and Service Pack for this SDK:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=LS1021A&fpsp=1&tab=Design_Tools_Tab
 
See the .config file. This file contains tumb configuration parameters.
These parameters can be enabled using kernel menu.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,638 Views
patrickmorrow
Contributor III

Hello Pavel,

Install SDK 1.7 and Service Pack for this SDK:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=LS1021A&fpsp=1&tab=Design_Tools_Tab
 
See the .config file. This file contains tumb configuration parameters.

As mentioned in the original post, SDK 1.7 with Service Pack 1.5 IS what we are using when we encounter the problem. Issuing

bitbake -c cleansstate virtual/kernel

followed by

bitbake -c menuconfig virtual/kernel

generates the default .config but this does not appear to be the .config that was used when building the Access Point demo from the thumb drive.

If we boot from SD with a known good rootfs, the uImage.bin from the build process on SDK 1.7 SP 1.5 with the default .config you recommend, and the DTB from the same process, our kernel will panic after a several minutes.

If we use the same RCW, U-Boot, and rootfs from the above scenario but use the Access Point demo's uImage.bin and the Access Point demo's DTB, we do not encounter the same problem.

0 Kudos

1,638 Views
Pavel
NXP Employee
NXP Employee

Try to enable thumb using the following command sequence:

$ bitbake -c cleanall virtual/kernel
$ bitbake -c patch virtual/kernel
$ bitbake -c menuconfig virtual/kernel  // enable thumb
$ bitbake virtual/kernel // Rebuild kernel:


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,638 Views
patrickmorrow
Contributor III

Hi Pavel,

The CONFIG_ARM_THUMB, CONFIG_THUMB2_KERNEL, and CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11 kernel configuration options are all enabled by default and the default configuration produces the same problem.

In the interest of being through, we ran another test in which we also enabled the only other Thumb option (CONFIG_ARM_THUMBEE) but there was no difference.

Thanks,

Patrick

0 Kudos