Rebuild Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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" 

   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?

3. MIPS patch problem:
I tried to build 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 



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux