Hi, I began working on embedded Linux applications with Red Hat 7.3 and Kernel 2.4.18, and faced problems as follows:
1. How to change config: As the first try, 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" 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 which are not needed for our embedded system, what config files above shall be updated? How to keep them consistent? 2. MIPS patch problem: I tried to build a target kernel for MIPS without any changes of config and specs using command: rpm -bc --target MIPS kernel-2.4.spec After about 10 minutes, rebuilding failed due to patch problem, like: + echo 'Patch #280 (linux-2.4.16-mips-20011220.patch):' Patch #280 (linux-2.4.16-mips-20011220.patch): + patch -p1 -s Reversed (or previously applied) patch detected! Assume -R? [n] y 1 out of 8 hunks FAILED -- saving rejects to file arch/mips/Makefile.rej Reversed (or previously applied) patch detected! Assume -R? [n] out of 8 hunks FAILED -- saving rejects to file arch/mips/Makefile.rej ...... The similar situation happened for ARM arch as well. I'm wondering if this source package works with MIPS and ARM. If not, where can I get a working version for MIPS and ARM rebuilding? Thank you! Jiahan Chen -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list