Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8362243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:53:51+00:00 2026-06-09T11:53:51+00:00

I ‘ve cross compiled a Linux Kernel (for ARM on i686 – using Cross-LFS).

  • 0

I ‘ve cross compiled a Linux Kernel (for ARM on i686 – using Cross-LFS).
Now I’m trying to boot this Kernel using QEMU.

$ qemu-system-arm -m 128 -kernel /mnt/clfs-dec4/boot/clfskernel-2.6.38.2 --nographic -M versatilepb

Then, it shows this line and waits for infinite time !!

Uncompressing Linux... done, booting the kernel.

So, I want to debug the kernel, so that I can study what exactly is happening.

I’m new to these kernel builds, Can someone please help me to debug my custom built kernel as it is not even showing anything after that statement. Is there any possibility of the kernel being broken? ( I dont think so, b’se it didnot give any error while compiling )

And my aim is to generate a custom build very minimal Linux OS. Any suggestions regarding any tool-chains etc which would be easy & flexible depending on my requirements like drivers etc.,

ThankYou

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:53:51+00:00Added an answer on June 9, 2026 at 11:53 am

    You can use GDB to debug your kernel with QEMU you can use -s -S options. If you want a simple and reliable toolchain, you can use ELDK from DENX (http://www.denx.de/wiki/DULG/ELDK).

    You can install it like this (It’s not the last version, but you got the idea):

    wget http://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/iso/arm-2008-11-24.iso
    

    sudo mkdir -p /mnt/cdrom (if necessary)

    sudo mount -o loop arm-2008-11-24.iso /mnt/cdrom
    
    /mnt/cdrom/install -d $HOME/EMBEDDED_TOOLS/ELDK/
    

    The command above should install the toolchain under $HOLE/EMBEDDED_TOOLS/ELDK (modify it if you need)

    echo "export PATH=$PATH:$HOME/EMBEDDED_TOOLS/ELDK/ELDK42/usr/bin" >> $HOME/.bashrc
    

    You can then see the version of your ARM toolchain like this:

    arm-linux-gcc -v
    

    You can test a hello_world.c program like this:

    arm-linux-gcc hello_world.c -o hello_world
    

    And you type: file hello_wrold to see the target architecture of the binary, it should be something like this:

    hello_wrold: ELF 32-bit LSB executable, ARM, version 1 (SYSV)
    

    Now if you want to compile a production kernel, you need to optimize it (i suggest using busybox) and if you want just one for testing now, try this steps:

    1. Create a script to set your chain tool set_toolchain.sh:

      #! /usr/bin/sh

      PATH=$PATH:$HOME/EMBEDDED_TOOLS/ELDK/ELDK42/usr/bin

      ARCH=arm

      CROSS_COMPILE=arm-linux-gnueabi-

      export PATH ARCH CROSS_COMPILE

    And run your script (source ./set_toolchain.sh)

    1. Download a linux kernel and unzip it (Let’s assume 2.6.x, it’s an old kernel, but there are a lot of chances that it work without compilation errors).

    Inside your unzipped kernel:

    cd ~/linux-2.6.29/arch/arm/configs
    make versatile_defconfig
    

    Here we use versatile chip, you may need to use make menuconfig to modify the option OABI and set it to ARM EABI, this option is under Kernel features menu

    After all this steps, you can compile you kernel:

    make
    

    if you want verbose compilation make v=1

    After this you got your kernel under arch/arm/boot/zImage.

    Hope this help.

    Regards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is how I get the tags of a body of text. var tags
I'm running a Octopress blog which is based on Jekyll . Now I wanted
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to create a RegEx expression that will successfully parse the following
I'm creating a web service to transfer json to an iPhone app. I'm using
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Hi if i run my project its indicate this logcat error...how to solve this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.