User Tools

Site Tools


extracting_the_config_file_from_an_existing_kernel

If you want to extract the config file from existing linux image, zImage or bzImage, do the following (only applies if was built with the IKCONFIG option): Download the files with the linux sources: <code> cd mkdir krn cd krn/ wget ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/sources/tskernel-2.6.21-ts-src.tar.gz </code> Unpack the linux kernel sources: <code> tar xvfz tskernel-2.6.21-ts-src.tar.gz </code> Go into the directory of the kernel sources: <code> cd linux-2.6.21-ts/ </code> Type: <code> chmod 755 ./scripts/extract-ikconfig </code> Run: <code> ./scripts/extract-ikconfig /tmp/zImage > /tmp/config </code> Where /tmp/zImage is a kernel file you want to extract the config file from, and /tmp/config where the extracted configuration file will be placed.

extracting_the_config_file_from_an_existing_kernel.txt · Last modified: 2017/01/03 21:26 by admin