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:

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

Unpack the linux kernel sources:

tar xvfz tskernel-2.6.21-ts-src.tar.gz

Go into the directory of the kernel sources:

cd linux-2.6.21-ts/

Type:

chmod 755 ./scripts/extract-ikconfig

Run:

./scripts/extract-ikconfig /tmp/zImage > /tmp/config

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