The Linux Kernel: Configuring the Kernel (Part 1)

Discussion in 'Linux Kernel' started by DevynCJohnson, Jul 15, 2013.

  1. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,150
    Likes Received:
    979
    Trophy Points:
    113
    Some kind of GTK developer's library is needed, but I am not sure which one. For example, when I use "make menuconfig", I must have libncurses5-dev installed. I would suggest some kind of package like (the name may be wrong, but as a general idea) libgtk-dev.


    UPDATE:

    Try installing libglade-2.0 or the whole Glade system.

    make gconfig

    gconfig.png
    Last edited: Mar 18, 2014
    Waqar likes this.
  2. Waqar

    Waqar New Member

    Messages:
    9
    Likes Received:
    5
    Trophy Points:
    3
    Updated:
    Ok, I found out the problem, the default update sever mentioned in Software center wasn't responding properly. I went out to Ubuntu Sotware Center, then Edit -> Software Sources -> Ubuntu Software -> Download From, and chose another server for update. Then tried downloading required libraries and it worked.
    Now the command for required libs for gconfig in Ubuntu is:
    >> sudo apt-get install libgtk2.0-dev libglib2.0-dev libglade2-dev
    and `make gconfig` will work fine :)
    Last edited: Mar 19, 2014
  3. chandrasekaran a

    chandrasekaran a New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hi friends,

    how to download the linux coding and how to editing or which platform we will editing the coding
  4. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,150
    Likes Received:
    979
    Trophy Points:
    113
    I am not sure what you are asking. Can you clarify?

    You can edit code on any distro. I prefer to do my coding on Ubuntu with the Geany IDE.
  5. Anju

    Anju New Member

    Messages:
    1
    Likes Received:
    1
    Trophy Points:
    3
    From last week m tryng to configure Android kernel on our newc oreborad ; I have also got zImage but by using the default .config file.But when i give command "make menuconfig" it shows the below error:-

    [root@swapnilLinuxHost linux-2.6.36-android]# make menuconfig
    HOSTLD scripts/kconfig/mconf
    scripts/kconfig/mconf.o: file not recognized: File truncated
    collect2: ld returned 1 exit status
    make[1]: * [scripts/kconfig/mconf] Error 1
    make: * [menuconfig] Error 2
    [root@swapnilLinuxHost linux-2.6.36-android]#


    Please help me through this issue.Waiting for your response.

    Thanks,
    Anjusha P.
    DevynCJohnson likes this.
  6. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,150
    Likes Received:
    979
    Trophy Points:
    113
    My first suggestion is that you get the latest Android-kernel source code. Kernel 2.6.x is rather old (compared to the newest kernels). You probably should not use the default ".config" file. Configure the Android kernel as needed for your device. Also, ensure you have Ncurses installed (libncurses5-dev). If this fails, try using "make gconfig" (GTK interface that requires GTK) or "make xconfig" (Qt interface that requires Qt). Does this help?

    By the way, you do not need to be Root to configure or compile the kernel.

Share This Page