LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-19-2008, 06:37 PM   #1
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Rep: Reputation: 16
Kernel patching error


I'm trying to compile a new 2.6.26 kernel, and while using my primitive script
Code:
#! /bin/sh
# make sure you're root

rm -rvf linux-2.6-2.6.26/
tar zxvf linux-2.6_2.6.26.orig.tar.gz

cd kernel-patches/all/2.6.26/apply/
cp * /usr/src/linux-2.6-2.6.26/
cd /usr/src/kernel-patches/all/apply/
cp * /usr/src/linux-2.6-2.6.26/
cd /usr/src/linux-2.6-2.6.26/

fakeroot ./debian
fakeroot ./debianlogo
fakeroot ./tuxonice
to patch the kernel with all of the debian patches and two extra I get this error,
Code:
Warning: No version.Debian file, assuming Debian Linux 2.6.26
--> Try to apply 1.
  (+) OK   debian/version.patch
  (+) OK   debian/kernelvariables.patch
  (+) OK   debian/doc-build-parallel.patch
  (+) OK   debian/scripts-kconfig-reportoldconfig.patch
  (+) OK   debian/powerpc-mkvmlinuz-support-ppc.patch
  (+) OK   debian/drivers-ata-ata_piix-postpone-pata.patch
  (+) OK   debian/dfsg/drivers-net-tg3-fix-simple.patch
  (+) OK   debian/dfsg/drivers-net-bnx2-request_firmware-1.patch
  (+) OK   features/all/drivers-usb-serial-keyspan-request_firmware.patch
  (+) OK   features/all/drivers-char-ip2-request_firmware.patch
  (+) OK   features/all/drivers-net-acenic-firmwar_request.patch
  (+) OK   features/all/export-gfs2-locking-symbols.patch
  (+) OK   features/all/export-unionfs-symbols.patch
  (+) OK   bugfix/powerpc/oldworld-boot-fix.patch
  (+) OK   bugfix/powerpc/prep-utah-ide-interrupt.patch
  (+) OK   bugfix/sparc/drivers_net-broken.patch
  (+) OK   bugfix/ia64/hardcode-arch-script-output.patch
  (+) OK   bugfix/mips/disable-advansys.patch
  (+) OK   bugfix/mips/gbefb_fix_cmap_fifo_timeout.patch
  (+) OK   bugfix/mips/ip32_enable_fast_20.patch
  (+) OK   bugfix/arm/disable-dvb_b2c2_flexcop.patch
  (+) FAIL bugfix/arm/disable-dvb_budget.patch
Traceback (most recent call last):
  File "./debian", line 221, in <module>
    main()
  File "./debian", line 171, in main
    s()
  File "/usr/src/linux-support-2.6.26-1/lib/python/debian_linux/patches.py", line 190, in __call__
    i(cond = cond, reverse = reverse)
  File "/usr/src/linux-support-2.6.26-1/lib/python/debian_linux/patches.py", line 174, in __call__
    i(dir = dir, reverse = reverse)
  File "/usr/src/linux-support-2.6.26-1/lib/python/debian_linux/patches.py", line 10, in __call__
    self.do(dir)
  File "/usr/src/linux-support-2.6.26-1/lib/python/debian_linux/patches.py", line 44, in patch_push
    self._call(dir, '--fuzz=1')
  File "/usr/src/linux-support-2.6.26-1/lib/python/debian_linux/patches.py", line 38, in _call
    f = os.popen(cmdline, 'wb')
OSError: [Errno 12] Cannot allocate memory
START applying debianlogo patch (Debian Logo)
Testing whether "Debian Logo" patch for 2.6.26 applies (dry run):
"Debian Logo" patch for 2.6.26 succeeded
Removing empty files:
Done.
mkdir: cannot create directory `debian': File exists
START applying tuxonice patch (TuxOnIce)
Testing whether "TuxOnIce" patch for 2.6.26 applies (dry run):
"TuxOnIce" patch for 2.6.26 succeeded
Removing empty files:
Done.
mkdir: cannot create directory `debian': File exists
and I can't figure out how to fix it, or why the script to add all of the debian patches is failing at (+) FAIL bugfix/arm/disable-dvb_budget.patch . I got everything from the debian repos, so there's no third party stuff in with the patches or the kernel.

Can anyone help me figure this out?
 
Old 11-19-2008, 09:07 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
First, is the patch actually there? Then: do they need to be applied in a particular order? The final error, which causes it to fail, is that the directory debian already exists. This may be a bug in the patch system, but more likely somewhere in the chain it's created and either not removed or its existence not incorporated in a downstream patch.
 
Old 11-20-2008, 10:47 AM   #3
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Dutch Master View Post
First, is the patch actually there? Then: do they need to be applied in a particular order? The final error, which causes it to fail, is that the directory debian already exists. This may be a bug in the patch system, but more likely somewhere in the chain it's created and either not removed or its existence not incorporated in a downstream patch.
Yes, the patches are there, that was the first thing I though to check, and afaik they don't need to be applied in a specific order, and if they did I would think the package provided by debian to apply all the debian patches would take care of that. The final error is caused by the debianlogo patch and the tuxonice patch, they both create a folder named debian with some things in it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 1 02-06-2018 06:48 AM
Error while patching RTLinux 2.6.9 kernel using kernel linux-2.6.9 krishna_karne Linux - Software 1 11-16-2007 10:36 PM
patching Debian Stock Kernel with prepatch from kernel.org kushalkoolwal Debian 10 08-25-2007 01:05 PM
Kernel patching error jacobselvin Linux - Newbie 5 06-03-2005 10:16 PM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration