Tuesday, August 21, 2012

How to extract kernel config from uImage

How to extract kernel config from uImage
1. get extract-ikconfig in kernel-source/scripts/
$mkdir extreact-uImage
$cd extreact-uImage
$cp {kernel-source}/scripts/extract-ikconfig .

2. dump uImage skip 1024 bytes
$cp {uImage/what/you/want} uImage
$dd if=uImage of=dd_uImage bs=1024 skip=1
$./extract-ikconfig dd_uImage > config

1 comment:

  1. Good steps, it's helped me ,

    same as ,

    #zcat /proc/config.gz > config_defconfig //( i used this step before your tutorial)

    Thank you.

    ReplyDelete