LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-22-2013, 10:40 AM   #1
crypted
Member
 
Registered: Jan 2004
Posts: 59

Rep: Reputation: 15
Issues trying to apply patch, uncertain of best route to proceed


I've had a number of problems where this kernel, 2.6.34-xx (unknown which), fails to boot with certain items which ought to work with this setup I think.

The kernel version shows up as 2.6.34-g3cb739e-dirty.

Anyway, so I tried a dry run of the patch and receive a flood of issues with the patch. However, I know that the latest patch is not applied at all. In fact, no patch probably was applied since February 2012 at the latest.

Code:
derek@ubuntu:~/kernel_patched$ bzip2 -dc ../patch-2.6.34.14.bz2 | patch -s -p1 --dry-run
3 out of 4 hunks FAILED -- saving rejects to file drivers/base/firmware_class.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
1 out of 1 hunk ignored -- saving rejects to file drivers/media/video/uvc/uvc_ctrl.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
4 out of 4 hunks ignored -- saving rejects to file drivers/media/video/uvc/uvc_driver.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
2 out of 2 hunks ignored -- saving rejects to file drivers/media/video/uvc/uvc_video.c.rej

Reversed (or previously applied) patch detected!  Assume -R? [n] Apply anyway? [n] 
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/gadget/at91_udc.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/gadget/f_rndis.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/gadget/fsl_udc_core.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/gadget/rndis.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
3 out of 3 hunks ignored -- saving rejects to file drivers/usb/gadget/u_serial.c.rej
4 out of 14 hunks FAILED -- saving rejects to file drivers/usb/serial/option.c.rej
1 out of 1 hunk FAILED -- saving rejects to file include/linux/firmware.h.rej
1 out of 22 hunks FAILED -- saving rejects to file kernel/futex.c.rej
Reversed (or previously applied) patch detected!  Assume -R? [n]
Do I need to apply previous patches first? And if so, how can I determine what patches are necessary?

If I cannot patch at this point, what should I do to try and merge the latest source from kernel.org and my current setup?

Any advice on this would be very much appreciated.

Thank you!
 
Old 01-22-2013, 02:10 PM   #2
crypted
Member
 
Registered: Jan 2004
Posts: 59

Original Poster
Rep: Reputation: 15
I went ahead and just ran the patch hitting the default "no" to reverse issues.

Compile works for a while, but breaks at futex.c.

Code:
  CC      kernel/time/clockevents.o
  CC      kernel/time/tick-common.o
  CC      kernel/time/timer_stats.o
  LD      kernel/time/built-in.o
  CC      kernel/futex.o
kernel/futex.c: In function 'get_futex_key':
kernel/futex.c:288: error: 'rw' undeclared (first use in this function)
kernel/futex.c:288: error: (Each undeclared identifier is reported only once
kernel/futex.c:288: error: for each function it appears in.)
kernel/futex.c:290: error: 'ro' undeclared (first use in this function)
kernel/futex.c: In function 'futex_wake':
kernel/futex.c:956: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_wake_op':
kernel/futex.c:1002: error: too many arguments to function 'get_futex_key'
kernel/futex.c:1005: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_requeue':
kernel/futex.c:1264: error: too many arguments to function 'get_futex_key'
kernel/futex.c:1268: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_wait_setup':
kernel/futex.c:1823: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_lock_pi':
kernel/futex.c:1989: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_unlock_pi':
kernel/futex.c:2108: error: too many arguments to function 'get_futex_key'
kernel/futex.c: In function 'futex_wait_requeue_pi':
kernel/futex.c:2300: error: too many arguments to function 'get_futex_key'
make[1]: *** [kernel/futex.o] Error 1
make: *** [kernel] Error 2
I see that there was a rejection on that file.

Quote:
-rw-r--r-- 1 derek derek 71K 2013-01-22 15:02 futex.c
-rw-r--r-- 1 derek derek 4.6K 2013-01-13 22:09 futex_compat.c
-rw-r--r-- 1 derek derek 70K 2013-01-13 22:09 futex.c.orig
-rw-r--r-- 1 derek derek 490 2013-01-22 15:02 futex.c.rej
Any thoughts on how to proceed?

Last edited by crypted; 01-22-2013 at 02:11 PM.
 
  


Reply



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
[SOLVED] How to Apply a patch vikas027 Linux - Software 5 01-27-2011 08:32 AM
how to apply patch kool_kid Red Hat 4 08-25-2007 04:09 PM
Apply Patch culin Linux - General 1 02-21-2007 08:02 AM
how to apply patch? greythorne Fedora 1 03-09-2005 04:38 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:09 PM.

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