RE: Rebuild Kernel
There are sample configs in /usr/src/linux-XX/configs
copy one of them.
Read README in /usr/src/linux-XX
use configuration tool provided by: make menuconfig
check your options.
follow README instructions.
Go have a cup of coffee.
You might want to drive to the end of your state to get one.
Compiling takes a while.
On Thursday, January 30, 2003 8:42 AM, Panu Matilainen
[SMTP:pmatilai@welho.com] wrote:
> On Wed, 29 Jan 2003, Jiahan Chen wrote:
>
> > Hi, there,
> >
> > I began to work on embedded linux applications with
> > Red Hat Linux 7.3 and kernel-2.4.18 Release.
> >
> > The following problems were encountered when trying to
> > rebuild new kernels:
> >
> > 1. Is it normal for long time to finish?
> > It took over 3 hours to complete successfully using command:
> > rpm -bc kernel-2.4.spec
> >
> > where Source packages from installation of Red Hat CDROM disks,
> > PC hardware: Pentium II 450M Hz, RAM 128M, Filesystem ext2
> > no changes for config and specs
>
> Sounds about normal.. you really want screaming fast hardware for
> mass-building of kernel RPMS.
>
> >
> > 2. How to change config?
> > I commented out some un-necessary items from
> > /usr/src/redhat/SPURCES/kernel-2.4.18-i686.config
> > then issues "rpm -bc kernel-2.4.spec"
>
> You can't simply comment out the things, the config lines need to be of
> format
> # CONFIG_XXXX is not set
>
> Yes it's a pita :(
>
> >
> > after about 1 hour, many prompts came out, like
> > ATIXL busmouse support (CONFIG_ATIXL_BUSMOUSE) [N/m/?]
> > Logitech busmouse support (CONFIG_LOGIBUSMOUSE) [N/m/?]
> > Microsoft busmouse support (CONFIG_MS_BUSMOUSE) [N/m/?]
> > MK712 touch screen support (CONFIG_MK712_MOUSE) [N/y/m/?]
> > Acquire SBC Watchdog Timer (CONFIG_ACQUIRE_WDT) [N/y/m/?]
> > Advantech SBC Watchdog Timer (CONFIG_ADVANTECH_WDT) [N/y/m/?]
> > ALi M7101 PMU Watchdog Timer (CONFIG_ALIM7101_WDT) [N/y/m/?]
> > AMD "Elan" SC520 Watchdog Timer (CONFIG_SC520_WDT) [N/y/m/?]
> > ......`
> > zlib compression support (CONFIG_ZLIB_DEFLATE) [N/y/m/?]
> >
> > Finally, rebuilding failed with the message:
> > make: *** [oldconfig_nonint] Error 1
> > error: Bad exit status from /var/tmp/rpm-tmp.86315 (%build)
> >
> > RPM build errors:
> > Bad exit status from /var/tmp/rpm-tmp.86315 (%build)
> >
> > I noticed that there are 3 sets of config for Intel arch in
> > /usr/src/redhat/SOURCES:
> >
> > kernel-2.4.18-i386-BOOT.config
> > kernel-2.4.18-i386.config
> > kernel-2.4.18-i386-smp.config
> >
> > kernel-2.4.18-i586.config
> > kernel-2.4.18-i586-smp.config
> >
> > kernel-2.4.18-i686-bigmem.config
> > kernel-2.4.18-i686.config
> > kernel-2.4.18-i686-debug.config
> > kernel-2.4.18-i686-smp.config
> > kernel-2.4.18-i686-uml.config
> >
> > In order to remove some un-necessary device drivers from kernel and
> > loadable modules, what config files above shall be updated?
> > How to keep them consistent?
>
> If you're doing embedded stuff I suppose you're going to need a single
> kernel .. so you choose whatever fits you best of the originals as a
> starting point and drop the others. Will require some work on the spec
> too...
>
> - Panu -
>
>
>
> _______________________________________________
> Redhat-devel-list mailing list
> Redhat-devel-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list
[Home]
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Kernel List]
[Yosemite News]