This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel reconfiguration with menuconfig

Other Parts Discussed in Thread: AM3517

Hello all,

I have craneboard with AM3517 and i'm trying to enable mouse in matrix-gui.

I follow next manual: http://processors.wiki.ti.com/index.php/How_to_use_a_Mouse_instead_of_the_Touchscreen_with_Matrix

My steps are (all executing from craneboard-kernel dir):

1. make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean

2. make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_crane_defconfig

3. make CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig

3.1 Select  "Load the alternate configuration file" and choose created by am3517_crane_defconfig .config file.

3.2 Make nesessary change in configuration and press "Save the alternate configuration file". Save configuration in the .config

When I compare .config file generated by am3517_crane_defconfig and .config file, changed by menuconfig I see, that it is absolutely different files. :(

When I build Kernel with: make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm uImage

I get next message (and many many questions followed by):

scripts/kconfig/conf -s arch/arm/Kconfig
*
* Restart config...
*
*
* System Type
*
MMU-based Paged Memory Management Support (MMU) [Y/n/?] y
ARM system type
  1. Agilent AAEC-2000 based (ARCH_AAEC2000) (NEW)
  2. ARM Ltd. Integrator family (ARCH_INTEGRATOR) (NEW)
  3. ARM Ltd. RealView family (ARCH_REALVIEW) (NEW)
> 4. ARM Ltd. Versatile family (ARCH_VERSATILE) (NEW)
  5. Atmel AT91 (ARCH_AT91) (NEW)

...

What I do incorectly?  I assume that I use menuconfig incorectly, and cant change existing .config file created by am3517_crane_defconfig.

Thanks and regards

P.S. Sorry for my english. It is not my native language.

  • Hi,

    Can you review your config file and check that am3517_crane_defconfig exists in arch/arm/configs dir ?

  • am3517_crane_defconfig - exists in  /arch/arm/configs

    1. def.config - file, that was generated by make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_crane_defconfig

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/416/0167_2E00_def_2E00_config

    TOF:

    #
    # Automatically generated make config: don't edit
    # Linux kernel version: 2.6.32
    # Sun Nov 11 23:18:38 2012
    #
    CONFIG_ARM=y
    CONFIG_SYS_SUPPORTS_APM_EMULATION=y
    CONFIG_GENERIC_GPIO=y
    CONFIG_GENERIC_TIME=y
    CONFIG_GENERIC_CLOCKEVENTS=y
    CONFIG_GENERIC_HARDIRQS=y
    CONFIG_STACKTRACE_SUPPORT=y
    CONFIG_HAVE_LATENCYTOP_SUPPORT=y
    CONFIG_LOCKDEP_SUPPORT=y
    CONFIG_TRACE_IRQFLAGS_SUPPORT=y
    CONFIG_HARDIRQS_SW_RESEND=y
    CONFIG_GENERIC_IRQ_PROBE=y
    CONFIG_RWSEM_GENERIC_SPINLOCK=y
    CONFIG_ARCH_HAS_CPUFREQ=y
    CONFIG_GENERIC_HWEIGHT=y
    CONFIG_GENERIC_CALIBRATE_DELAY=y
    CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
    CONFIG_VECTORS_BASE=0xffff0000
    CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
    CONFIG_CONSTRUCTORS=y

    #
    # General setup
    #
    CONFIG_EXPERIMENTAL=y
    CONFIG_BROKEN_ON_SMP=y
    CONFIG_INIT_ENV_ARG_LIMIT=32
    CONFIG_LOCALVERSION=""
    # CONFIG_LOCALVERSION_AUTO is not set
    CONFIG_SWAP=y
    CONFIG_SYSVIPC=y
    CONFIG_SYSVIPC_SYSCTL=y
    # CONFIG_POSIX_MQUEUE is not set
    CONFIG_BSD_PROCESS_ACCT=y
    # CONFIG_BSD_PROCESS_ACCT_V3 is not set
    # CONFIG_TASKSTATS is not set
    # CONFIG_AUDIT is not set

    #
    # RCU Subsystem
    #
    CONFIG_TREE_RCU=y

    2. menuconfig.config. I have just resaved def.config in menuconfig.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/416/7024_2E00_menuconfig_2E00_config

    TOF

    #
    # Automatically generated make config: don't edit
    # Linux kernel version: 2.6.32
    # Sun Nov 11 23:21:16 2012
    #
    # CONFIG_64BIT is not set
    CONFIG_X86_32=y
    # CONFIG_X86_64 is not set
    CONFIG_X86=y
    CONFIG_OUTPUT_FORMAT="elf32-i386"
    CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig"
    CONFIG_GENERIC_TIME=y
    CONFIG_GENERIC_CMOS_UPDATE=y
    CONFIG_CLOCKSOURCE_WATCHDOG=y
    CONFIG_GENERIC_CLOCKEVENTS=y
    CONFIG_LOCKDEP_SUPPORT=y
    CONFIG_STACKTRACE_SUPPORT=y
    CONFIG_HAVE_LATENCYTOP_SUPPORT=y
    CONFIG_MMU=y
    CONFIG_ZONE_DMA=y
    CONFIG_GENERIC_ISA_DMA=y
    CONFIG_GENERIC_IOMAP=y
    CONFIG_GENERIC_BUG=y
    CONFIG_GENERIC_HWEIGHT=y
    CONFIG_GENERIC_GPIO=y
    CONFIG_ARCH_MAY_HAVE_PC_FDC=y
    # CONFIG_RWSEM_GENERIC_SPINLOCK is not set
    CONFIG_RWSEM_XCHGADD_ALGORITHM=y
    CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y
    CONFIG_GENERIC_CALIBRATE_DELAY=y
    # CONFIG_GENERIC_TIME_VSYSCALL is not set
    CONFIG_ARCH_HAS_CPU_RELAX=y
    CONFIG_ARCH_HAS_DEFAULT_IDLE=y
    CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
    CONFIG_HAVE_SETUP_PER_CPU_AREA=y
    CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
    CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
    # CONFIG_HAVE_CPUMASK_OF_CPU_MAP is not set
    CONFIG_ARCH_HIBERNATION_POSSIBLE=y
    CONFIG_ARCH_SUSPEND_POSSIBLE=y
    # CONFIG_ZONE_DMA32 is not set
    CONFIG_ARCH_POPULATES_NODE_MAP=y
    # CONFIG_AUDIT_ARCH is not set
    CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
    CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
    CONFIG_GENERIC_HARDIRQS=y
    CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
    CONFIG_GENERIC_IRQ_PROBE=y
    CONFIG_X86_32_LAZY_GS=y
    CONFIG_KTIME_SCALAR=y
    CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
    CONFIG_CONSTRUCTORS=y

    #
    # General setup
    #
    CONFIG_EXPERIMENTAL=y
    CONFIG_BROKEN_ON_SMP=y
    CONFIG_INIT_ENV_ARG_LIMIT=32
    CONFIG_LOCALVERSION=""
    # CONFIG_LOCALVERSION_AUTO is not set
    CONFIG_HAVE_KERNEL_GZIP=y
    CONFIG_HAVE_KERNEL_BZIP2=y
    CONFIG_HAVE_KERNEL_LZMA=y
    CONFIG_KERNEL_GZIP=y
    # CONFIG_KERNEL_BZIP2 is not set
    # CONFIG_KERNEL_LZMA is not set
    CONFIG_SWAP=y
    CONFIG_SYSVIPC=y
    CONFIG_SYSVIPC_SYSCTL=y
    # CONFIG_POSIX_MQUEUE is not set
    CONFIG_BSD_PROCESS_ACCT=y
    # CONFIG_BSD_PROCESS_ACCT_V3 is not set
    # CONFIG_TASKSTATS is not set
    # CONFIG_AUDIT is not set

    #
    # RCU Subsystem

    They look like a completely different config files.

  • if you do menuconfig like that 'make CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig' you can try also add 'ARCH=arm' - but it is a guess. 

  • Thank you! Promblen is fixed.

    I used command: make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm menuconfig

  • You are welcome.

  • Hi  ,

    I want to port latest linux kernel to Crane board with AM3517 . Can you Please provide me the steps for the same . i have downloaded the latest kernel(linux-3.6.6) form Kernel.org .

  • Hi ,

    I have also created my uImage for the same kernel (linux-3.6.6) but i am confused  about the U boot and x-loader modifications and source code  . Can anyone help me on this .

    my uImage for the same :

    Image Name:   Linux-3.6.6
    Created:      Fri Nov 16 11:49:39 2012
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    2350520 Bytes = 2295.43 kB = 2.24 MB
    Load Address: 80008000
    Entry Point:  80008000
      Image arch/arm/boot/uImage is ready .


    Thanks & Regards,

    Ruchin

  • Hi,

    I think that you do not have to worry about u-boot and x-load if you change kernel version. If you have kernel ie 2.6.x and want to  migrate 3.x you should take care about your kernel config and board file.  If you think that have problems in u-boot and kernel compatibility , try to turn low level logging in kernel config.

  • Hi Karol ,

    Thanks for the quick reply i have got u boot and x-loader successfully compiled with the help of 

    http://processors.wiki.ti.com/index.php/Building_images_for_CraneBoard .

    I have also turn on kernel  low level kernel logging in Kernel Config file .

    Regards,

    Ruchin