View previous topic :: View next topic |
Author |
Message |
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Tue Apr 15, 2003 8:27 am Post subject: radeonfb not loading |
|
|
I have been using Gentoo for about 6 months and really enjoy it. I use grub to boot and in my grub.conf file I have been using the following kernel parameters to setup my ATI All In Wonder Radeon 8500DV as a framebuffer device:
Code: | kernel (hd0,0)/boot/bzImage root=/dev/hda3 vga=794 video=radeon:1280x1024-16@60 |
From following other threads in this forum, and through trial and error, I have come to understand that the "video=blah" portion isn't doing jack diddly squat!
It is now my understanding that the "vga=" is a catch-all of sorts in that it will use the vesafb driver regardless of what framebuffer is specified in the "video=" section...
... so I removed the "vga=" section in the hopes that the radeonfb driver (which is compiled into the kernel) only to be presented with the standard 80x25 color console on reboot. Going through my logs shows nothing about the radeonfb driver while they used to show 4-5 messages about vesafb.
I could always just add the "vga=" section back in and say "oh well", but in the true "Gentoo Spirit" I want to have the BEST framebuffer driver possible!
Any Suggestions? |
|
Back to top |
|
|
Niek Apprentice
Joined: 14 May 2002 Posts: 236 Location: Houten, The Netherlands
|
Posted: Tue Apr 15, 2003 12:16 pm Post subject: |
|
|
You can not have several framebuffer drivers compiled in your kernel. So, recompile your kernel without vesafb (only radeonfb) and everything will work. _________________ Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Tue Apr 15, 2003 6:01 pm Post subject: |
|
|
I have already done so and it still doesn't work. |
|
Back to top |
|
|
chrisyu Apprentice
Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Wed Apr 16, 2003 9:29 am Post subject: |
|
|
radeonfb didn't work for me either.
so I use vesafb instead. |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Wed Apr 16, 2003 5:13 pm Post subject: |
|
|
Quote: |
radeonfb didn't work for me either.
so I use vesafb instead.
|
What card are you using? |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Wed Apr 16, 2003 10:20 pm Post subject: |
|
|
radeonfb worked fine for me on my radeon 7000 with the grub line posted above. since i couldn't get it to work with the bootsplash patch or display a higer refresh rate i went back to vesa. |
|
Back to top |
|
|
Sohryu Asuka Langley Apprentice
Joined: 14 Nov 2002 Posts: 199 Location: Hannover, Germany
|
Posted: Thu Apr 17, 2003 6:06 am Post subject: |
|
|
I have a radeon 8500 ! (original)
I didn't get it to work also ! Using Vesa now ) |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Thu Apr 17, 2003 10:17 pm Post subject: |
|
|
lspci tells me that my All In Wonder Radeon 8500DV has a pci id of 1002:4242.
After examining the source code (drivers/video/radeonfb.c + radeon.h) it seems that the original 8500 chip is NOT supported. There is support for a newer 8500 chip with a pci id of 1002:514C, however.
I tried modifying the source to recognize the older chip, and while I did FINALLY got some radeonfb messages in dmesg, I couldn't get it to work with my card. |
|
Back to top |
|
|
chrisyu Apprentice
Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Fri Apr 18, 2003 6:41 am Post subject: |
|
|
I use a 8500LE. |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Wed Apr 23, 2003 6:33 pm Post subject: |
|
|
OK, I found a new fork of the radeon framebuffer which does work for my card. It properly detects my digital flat panel display and resolution...
Diffs avail here:
http://www.geocrawler.com/mail/msg.php3?msg_id=10422274&list=35
Note: Contrary to what the above link says, it did remve some lines from include/linux/pci_ids.h file to the point where I couldn't `make bzImage` without getting an error having something to do with pci-ide stuff... I just put the removed lines back in and it worked fine. |
|
Back to top |
|
|
chrisyu Apprentice
Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Thu Apr 24, 2003 12:57 pm Post subject: |
|
|
Can you post the patched patch file?
edit: Or tell me how to modify the diff file?
Thanks! |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Thu Apr 24, 2003 4:40 pm Post subject: |
|
|
Here's a modified version of the above patch for kernel 2.4.20... I have removed extraneous PCI_ID portions, leaving only the changes to the Radeon PCI_ID's. Also, you may already have a file at include/linux/radeonfb.h... there was no change to it on my system so I dont think it matters if it rejects the patch or not.
edit: the entire patch is too long to post here... here are the changes I made: basically I just edited the section about pci_ids.h to only include the section which had to do with radeons.
Code: |
diff -urN linux-2.4.20/include/linux/pci_ids.h linuxppc_benh_devel/include/linux/pci_ids.h
--- linux-2.4.20/include/linux/pci_ids.h 2002-11-29 00:53:15.000000000 +0100
+++ linuxppc_benh_devel/include/linux/pci_ids.h 2003-04-06 17:03:29.000000000 +0200
@@ -254,17 +258,64 @@
#define PCI_DEVICE_ID_ATI_RAGE128_U1 0x5446
#define PCI_DEVICE_ID_ATI_RAGE128_U2 0x544C
#define PCI_DEVICE_ID_ATI_RAGE128_U3 0x5452
-/* Radeon M4 */
+/* Rage M4 */
#define PCI_DEVICE_ID_ATI_RADEON_LE 0x4d45
#define PCI_DEVICE_ID_ATI_RADEON_LF 0x4d46
-/* Radeon NV-100 */
-#define PCI_DEVICE_ID_ATI_RADEON_N1 0x5159
-#define PCI_DEVICE_ID_ATI_RADEON_N2 0x515a
-/* Radeon */
-#define PCI_DEVICE_ID_ATI_RADEON_RA 0x5144
-#define PCI_DEVICE_ID_ATI_RADEON_RB 0x5145
-#define PCI_DEVICE_ID_ATI_RADEON_RC 0x5146
-#define PCI_DEVICE_ID_ATI_RADEON_RD 0x5147
+/* Radeon R100 */
+#define PCI_DEVICE_ID_ATI_RADEON_QD 0x5144
+#define PCI_DEVICE_ID_ATI_RADEON_QE 0x5145
+#define PCI_DEVICE_ID_ATI_RADEON_QF 0x5146
+#define PCI_DEVICE_ID_ATI_RADEON_QG 0x5147
+/* Radeon RV100 (VE) */
+#define PCI_DEVICE_ID_ATI_RADEON_QY 0x5159
+#define PCI_DEVICE_ID_ATI_RADEON_QZ 0x515a
+/* Radeon R200 (8500) */
+#define PCI_DEVICE_ID_ATI_RADEON_QL 0x514c
+#define PCI_DEVICE_ID_ATI_RADEON_QN 0x514e
+#define PCI_DEVICE_ID_ATI_RADEON_QO 0x514f
+#define PCI_DEVICE_ID_ATI_RADEON_Ql 0x516c
+#define PCI_DEVICE_ID_ATI_RADEON_BB 0x4242
+/* Radeon R200 (9100) */
+#define PCI_DEVICE_ID_ATI_RADEON_QM 0x514d
+/* Radeon RV200 (7500) */
+#define PCI_DEVICE_ID_ATI_RADEON_QW 0x5157
+#define PCI_DEVICE_ID_ATI_RADEON_QX 0x5158
+/* Radeon RV250 (9000) */
+#define PCI_DEVICE_ID_ATI_RADEON_Id 0x4964
+#define PCI_DEVICE_ID_ATI_RADEON_Ie 0x4965
+#define PCI_DEVICE_ID_ATI_RADEON_If 0x4966
+#define PCI_DEVICE_ID_ATI_RADEON_Ig 0x4967
+/* Radeon RV280 (9200) */
+#define PCI_DEVICE_ID_ATI_RADEON_Y_ 0x5960
+/* Radeon R300 (9700) */
+#define PCI_DEVICE_ID_ATI_RADEON_ND 0x4e44
+#define PCI_DEVICE_ID_ATI_RADEON_NE 0x4e45
+#define PCI_DEVICE_ID_ATI_RADEON_AE 0x4145
+#define PCI_DEVICE_ID_ATI_RADEON_AF 0x4146
+/* Radeon R300 (9500) */
+#define PCI_DEVICE_ID_ATI_RADEON_AD 0x4144
+/* Radeon R350 (9800) */
+#define PCI_DEVICE_ID_ATI_RADEON_NH 0x4e48
+#define PCI_DEVICE_ID_ATI_RADEON_NI 0x4e49
+/* Radeon RV350 (9600) */
+#define PCI_DEVICE_ID_ATI_RADEON_AP 0x4150
+#define PCI_DEVICE_ID_ATI_RADEON_AR 0x4152
+#define PCI_DEVICE_ID_ATI_RADEON_NF 0x4e46
+/* Radeon M6 */
+#define PCI_DEVICE_ID_ATI_RADEON_LY 0x4c59
+#define PCI_DEVICE_ID_ATI_RADEON_LZ 0x4c5a
+/* Radeon M7 */
+#define PCI_DEVICE_ID_ATI_RADEON_LW 0x4c57
+#define PCI_DEVICE_ID_ATI_RADEON_LX 0x4c58
+/* Radeon M9 */
+#define PCI_DEVICE_ID_ATI_RADEON_Ld 0x4c64
+#define PCI_DEVICE_ID_ATI_RADEON_Le 0x4c65
+#define PCI_DEVICE_ID_ATI_RADEON_Lf 0x4c66
+#define PCI_DEVICE_ID_ATI_RADEON_Lg 0x4c67
+/* Radeon P/M */
+#define PCI_DEVICE_ID_ATI_RADEON_LR 0x4c52
+/* RadeonIGP */
+#define PCI_DEVICE_ID_ATI_RADEON_IGP 0xCAB0
#define PCI_VENDOR_ID_VLSI 0x1004
#define PCI_DEVICE_ID_VLSI_82C592 0x0005 |
|
|
Back to top |
|
|
Proton Apprentice
Joined: 16 Mar 2003 Posts: 195 Location: Estoril, Portugal
|
Posted: Thu Apr 24, 2003 8:25 pm Post subject: |
|
|
Could you please post your exact kernel parameter for booting into fb?
And also, is there any connection between fb.modes and the loading of the framebuffer at boot, or is fb.modes just used for fbset? _________________ Sérgio @ Portugal
IST - LEIC |
|
Back to top |
|
|
TechJosh n00b
Joined: 15 Apr 2003 Posts: 17
|
Posted: Fri Apr 25, 2003 12:12 am Post subject: |
|
|
Code: |
kernel /bzImage root=/dev/hda3 hdd=ide-cd video=radeonfb:1280x1024x16@75 |
as far as I know the /etc/fb.modes file is not used by the framebuffer to determine resolutions... DirectFB, XDirectFB, and MPlayer use it, but I don't think the framebuffer uses it directly. |
|
Back to top |
|
|
chrisyu Apprentice
Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Fri Apr 25, 2003 12:17 am Post subject: |
|
|
I make it work for TechJosh's tips.
I put this line in grub.conf kernel line
Code: |
vga=791 video=radeon:1024x768-16@85
|
And now it's 85Hz now, and I think it's faster than vesafb.
BUT when I startx and logout from X
Bad thing happens...
All the consoles are messed up....
How to solve this? |
|
Back to top |
|
|
Proton Apprentice
Joined: 16 Mar 2003 Posts: 195 Location: Estoril, Portugal
|
Posted: Fri Apr 25, 2003 12:28 am Post subject: |
|
|
Hmm, that same line does not work here... I get a 640x480 misplaced screen... Must be something to do with my chip in particular... I have a Radeon 9000 non-Pro,
Oh well, I guess I'll wait until a working patch comes along and is merged into gentoo-sources-2.4.20-r5 or something. _________________ Sérgio @ Portugal
IST - LEIC |
|
Back to top |
|
|
Fat Elvis n00b
Joined: 12 Feb 2003 Posts: 6 Location: HFX/NS/CA
|
Posted: Thu May 01, 2003 6:20 pm Post subject: |
|
|
This has been driving me nuts as well. I only have the radeonfb and it's built into the kernel. I boot and I get a nice splash screen with the cow (as I selected in my kernel build) but for the life of me I can't make it any bigger than the default, which looks like a normal VGA console + the splash logo.
Here's my dmesg output, so I know it's working and it's the right card:
Code: | Linux version 2.4.20-gentoo-r1
Kernel command line: root=/dev/hda3 hdc=ide-scsi hdd=ide-scsi vga=791 video=radeon:1024x768-16@85
Console: colour dummy device 80x25
radeonfb: ref_clk=2700, ref_div=12, xclk=23000 defaults
Console: switching to colour frame buffer device 80x30
radeonfb: ATI Radeon 7500 QW DDR SGRAM 64 MB
radeonfb: DVI port no monitor connected
radeonfb: CRT port CRT monitor connected |
I've tried all different combinations of "video=" lines - some with radeon, some with radeonfb, etc (as well as several I've read here) and none of them seem to do anything to the framebuffer:
video=radeonfb:1024-768-32@76
video=radeon:1024x768-16@85
video=radeonfb:1024x768
video=radeon:1024x768
You get the idea. None of those lines do diddly to the dmesg output, and obviously nothing on the screen. |
|
Back to top |
|
|
|