DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th August 2010
giddyupman giddyupman is offline
New User
 
Join Date: Sep 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default ATI Radeon HD 4250 - kernel patch

I was surprised to find this:

http://kerneltrap.org/mailarchive/freebsd-bugs/2010/7/28/6886133

as I recently bought a motherboard with this onboard chipset and just installed 8.1-RELEASE this weekend to find no fullscreen in mplayer (graphics cards are always my problem it seems).

I've built kernels before, no problem. How exactly do I go about patching the kernel with the above referenced patch?

Will I have to CVSup to -CURRENT? Or may I simply apply only this patch?

Will "world" need to be rebuilt?

Following this, will ports need to be rebuilt? (only 486 installed, no big deal )

Thank you in advance.

giddyupman

(Apologies for the un-clickable links - I don't have enough posts to include links)



-------------------------------

Some supporting information suggesting the card is X friendly:

http://www.newegg.com/Product/Product.aspx?Item=N82E16813128445

http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/plain/README

http://en.wikipedia.org/wiki/Comparison_of_AMD_graphics_processing_units#IGP_.2 8HD_3xxx.2C_HD_4xxx.29
Reply With Quote
  #2   (View Single Post)  
Old 24th August 2010
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by giddyupman View Post
I was surprised to find this:

http://kerneltrap.org/mailarchive/fr...0/7/28/6886133

as I recently bought a motherboard with this onboard chipset and just installed 8.1-RELEASE this weekend to find no fullscreen in mplayer (graphics cards are always my problem it seems).

I've built kernels before, no problem. How exactly do I go about patching the kernel with the above referenced patch?
Download the patch to somewhere (for example /tmp/drm-patch.txt)

Run (as root):

# cd /usr/src/
# patch -p0 < /tmp/drm-patch.txt

This assumes, of course, that you have the kernel source for 8.1-RELEASE installed in /usr/src/sys/.

Now rebuild the kernel.

Quote:
Will I have to CVSup to -CURRENT?
No. In fact, the PCI ID is already available in -CURRENT, though I don't know about 8.1-RELEASE.

Quote:
Or may I simply apply only this patch?
Yes.

Quote:
Will "world" need to be rebuilt?

Following this, will ports need to be rebuilt? (only 486 installed, no big deal )
No, and no. If you are using the same kernel config for this new build as for the previous build, and didn't change kernel versions, you can probably just unload and reload the radeon kernel module and then restart X. Worst case scenario, you reboot.

Adam
Reply With Quote
  #3   (View Single Post)  
Old 25th August 2010
giddyupman giddyupman is offline
New User
 
Join Date: Sep 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default

Success!
Reply With Quote
  #4   (View Single Post)  
Old 17th February 2011
H3MLOCK H3MLOCK is offline
Real Name: Zak
New User
 
Join Date: Feb 2011
Location: Michigan, USA
Posts: 2
Thanked 0 Times in 0 Posts
Default Patching question

Ok, I'm trying to perform the same thing using the fix here: http://www.freebsd.org/cgi/query-pr.cgi?pr=150594

But when I do, the patch manager goes:
Hmm... Looks like a unified diff to me...
The text leading up to this was:
-------------------------------------------
|--- src/mesa/drivers/dri/radeon/radeon_chipset.h.orig 2009-11-18 02:54:28.000000000 +0100
|+++ src/mesa/drivers/dri/radeon/radeon_chipset.h 2010-09-14 15:38:09.000000000 +0200
-------------------------------------------
File to patch:

Isn't a unified diff supposed to direct the patch manager on where to apply the patch?
I'm running a little confused here. Any help would be appreciated.
Reply With Quote
  #5   (View Single Post)  
Old 17th February 2011
H3MLOCK H3MLOCK is offline
Real Name: Zak
New User
 
Join Date: Feb 2011
Location: Michigan, USA
Posts: 2
Thanked 0 Times in 0 Posts
Default

i've been trying to fix the same problem with a slightly different patch (http://www.freebsd.org/cgi/query-pr.cgi?pr=150594)

But the patch manager says it looks like a unified diff and then asks me to input a file to patch (the filename). I'm confused, I thought a unified diff would tell it where to go.
Reply With Quote
  #6   (View Single Post)  
Old 18th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The patch utility typically prompts for a path if you're not in the directly relative to the file that needs to be patched.

I'm not sure what you mean by a "patch manager", something FreeBSD wrapped around an already simple task no doubt.

Are you sure you have the source code for mesa on your system? that is a prerequisite for patching.. you also need to build the source after doing that as well.

Have you considered upgrading FreeBSD? the inclusion of that change is likely in a later release.
Reply With Quote
  #7   (View Single Post)  
Old 3rd October 2011
zeissoctopus zeissoctopus is offline
New User
 
Join Date: Oct 2009
Posts: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by H3MLOCK View Post
Hmm... Looks like a unified diff to me...
The text leading up to this was:
-------------------------------------------
|--- src/mesa/drivers/dri/radeon/radeon_chipset.h.orig 2009-11-18 02:54:28.000000000 +0100
|+++ src/mesa/drivers/dri/radeon/radeon_chipset.h 2010-09-14 15:38:09.000000000 +0200
-------------------------------------------
File to patch:

Isn't a unified diff supposed to direct the patch manager on where to apply the patch?
I'm running a little confused here. Any help would be appreciated.
I generate three patch files here
1) patch-radeon_chipset.h
2) patch-radeon_screen.c
3) Makefile.txt (I cannot upload Makefile without .txt suffix here)

I recommand you backup the /usr/ports/graphics/dri/Makefile file.
You need to place 1st and 2nd patch files to /usr/ports/graphics/dri/files
You need to place the 3rd patch file to /usr/ports/graphics/dri and then rename it to Makefile (omit the .txt suffix)

Everything ready, you can
Code:
cd /usr/ports/graphics/dri
su root
make clean
make install
enjoy
Attached Files
File Type: h patch-radeon_chipset.h (718 Bytes, 36 views)
File Type: c patch-radeon_screen.c (557 Bytes, 33 views)
File Type: txt Makefile.txt (987 Bytes, 28 views)
Reply With Quote
Reply

Tags
8.1-release, kernel, radeon hd, world

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
macppc + radeon drm sigflup OpenBSD Installation and Upgrading 6 7th July 2010 10:12 PM
ATI Radeon 4870X2 NetBSD NetBSD General 6 11th June 2009 08:17 PM
Radeon HD 4780 X2 NetBSD FreeBSD General 0 19th February 2009 12:15 AM
X Radeon driver sum FreeBSD Installation and Upgrading 5 28th September 2008 03:49 PM
FreeBSD 7.0 + ATI Radeon HD2600PRO + mplayer ... daemonFromHeaven FreeBSD Ports and Packages 4 5th September 2008 01:24 PM


All times are GMT. The time now is 02:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick