[SCRIPT] for creating custom ATI/FGLRX driver

Post tutorials, HOWTO's and other useful resources here.
Post Reply
User avatar
fanthom
Site Admin
Site Admin
Posts: 4626
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

[SCRIPT] for creating custom ATI/FGLRX driver

Post#1 by fanthom » 28 Dec 2010, 14:38

If you are running Porteus V1.0, please copy the script from this location save as fglrx.sh and give executable permission

Code: Select all

chmod +x fglrx.sh
then launch in console and follow instructions.

Good luck!
Please add [Solved] to your thread title if the solution was found.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#2 by Hamza » 28 Dec 2010, 15:20

Nice post ! :D , but i haven't a ATI graphic card !
NjVFQzY2Rg==

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

[SCRIPT] for creating custom ATI/FGLRX driver

Post#3 by Tonio » 28 Dec 2010, 20:01

Great job. Don't know how to post code :(, will try to learn.
Last edited by Tonio on 28 Dec 2010, 20:17, edited 2 times in total.

sci_fi
Black ninja
Black ninja
Posts: 52
Joined: 28 Dec 2010, 18:25

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#4 by sci_fi » 04 Aug 2011, 10:25

Please help.

I am attempting to use the Porteus V1.0 version of this script. I am using an Acer AO-722 with 64 bit architecture.

I am executing the V1.0 script as instructed. I have installed the crippled kernel sources.

When executing the script, I choose the option to make a module for slackware.

The compilation appears to proceed successfully and a .tgz file is created in /tmp/ati4914. However, when I continue, I get an error message at the end saying the fglrx.ko module was not successfully created. The log file indicated, /lib/modules/fglrx/build_mod/make.sh.log, does not exist. I am not sure how to troubleshoot this.

Could someone please give me some advice.

Thanks and best regards,

sci_fi

User avatar
fanthom
Site Admin
Site Admin
Posts: 4626
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#5 by fanthom » 04 Aug 2011, 11:56

@sci_fi
fixed script and bumped to fglrx 11.7. you can get it from:
http://porteus.org/info/docs/46-video/7 ... river.html

let me know in case of further issues.

cheers
Please add [Solved] to your thread title if the solution was found.

sci_fi
Black ninja
Black ninja
Posts: 52
Joined: 28 Dec 2010, 18:25

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#6 by sci_fi » 04 Aug 2011, 17:46

Hi Fanthom,

Thanks for looking at this. Unfortunately, I am still getting the same error. Questions:

1. Is there any significance to the request to input a time? I have been entering 5 for five minutes, just in case. The script seems to move on well within 5 minutes.

2. I am still responding by asking for a slackware specific package. It seems the right response?

3. Near the end the script says

Removing temporary directory fglrx...
Press enter when finished.

Am I waiting for something at this point? I have been just hitting enter after about 10 seconds.

After this I get the same error as before. " fglrx.ko was not compiled correctly"

I really appreciate your help. Thank you very much.

Best regards,

sci_fi

User avatar
fanthom
Site Admin
Site Admin
Posts: 4626
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#7 by fanthom » 04 Aug 2011, 19:09

"Am I waiting for something at this point?"
that could happen if you run the script straight after boot - i would suggest running it 10 mins after boot and pick up default (3mins) value.

i'm not sure what's causing your troubles, pls try package from the repo:
http://ponce.cc/porteus/x86_64/current/ ... x86_64.xzm
Please add [Solved] to your thread title if the solution was found.

sci_fi
Black ninja
Black ninja
Posts: 52
Joined: 28 Dec 2010, 18:25

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#8 by sci_fi » 05 Aug 2011, 11:14

Hi Fanthom,

Thanks for your advice. I tried the module from the repository as you suggested. Unfortunately, my system hangs during boot when I have this module in my "modules" directory. It appeared that there was something amiss with the X11 files. I removed them and created a new module without them. With this one, my system boots into KDE, but sound still does not work.

I realize there is not much information coming back from the script for creating the ATI/FGLRX driver. Difficult to troubleshoot with no information. I am experimenting now. If I get anything working, I will post here.

Thanks again for your help.

Best regards,

sci_fi

User avatar
fanthom
Site Admin
Site Admin
Posts: 4626
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#9 by fanthom » 05 Aug 2011, 12:28

@sci_fi
script works for me without any single issue:
http://oi54.tinypic.com/2rzdsug.jpg

my system boots into KDE, but sound still does not work.
this information gets me convinced that you have mixed up kernel (/boot/vmlinuz), kernel modules (/porteus/base/000-kernel.xzm) or crippled_sources. please make sure they are come from the same arch and porteus version - try to get them from original ISO if differs and boot in 'always fresh' mode with base modules only + fglrx from official repo. if you still wont have a much luck show me result on following commands:

Code: Select all

uname -a
lsmod
modprobe fglrx
dmesg | tail
Cheers
Please add [Solved] to your thread title if the solution was found.

sci_fi
Black ninja
Black ninja
Posts: 52
Joined: 28 Dec 2010, 18:25

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#10 by sci_fi » 06 Aug 2011, 00:26

Hi Fanthom,

Some progress to report. Compiled driver but still no sound.

I completely re-created my Porteus 64 system. Downloaded and extracted the iso, extracted the Porteus and boot files.

Actions and results as follows:

1. Booted clean base system. No problem.

2. Rebooted with the ati module from the repo. System did not boot into KDE4. Black screen, blinking cursor.

3. Rebooted base system. Installed crippled kernel source module.

4. Ran your script to build ati driver.
Note: Selected "build module for slackware".
The driver build failed the same as before.

5. Re-ran your script to build ati driver.
Selected default build option (build over Xorg, I think ) ********
Build script ran to completion. Succesfully created a Porteus module. ******

6. Rebooted base system with newly built ati driver module.
The KDE4 welcome tune plays (it has always played in all boots, so I know the sound card is good).
SMplayer opens and appears to be playing a file, but no sound is audible.
VLC player gives an error message saying it cannot initialize the sound card, however it then plays the file with AUDIBLE sound.
Internet sound play (shoutcast.com) appears to be playing but no audible sound.

7. Here are the outputs of the commands you requested:

uname -A
Linux porteus 2.6.38.8-porteus #1 SMP PREEMPT Fri Jun 10 07:47:57 UTC 2011 x86_64 AMD C-50 Processor AuthenticAMD GNU/Linux

lsmod
Module Size Used by
ipv6 221716 16
snd_seq_dummy 1012 0
snd_seq_oss 19072 0
snd_seq_midi_event 3488 1 snd_seq_oss
snd_seq 33664 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 3568 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 25552 0
snd_mixer_oss 10816 1 snd_pcm_oss
dm_mod 45344 0
lib80211_crypt_tkip 6288 0
wl 2440244 0
lib80211 2660 2 lib80211_crypt_tkip,wl
mousedev 7888 0
sparse_keymap 1744 0
brcm80211 560992 0
snd_hda_codec_hdmi 17972 1
snd_hda_intel 17352 4
mac80211 145952 1 brcm80211
snd_hda_codec 48800 2 snd_hda_codec_hdmi,snd_hda_intel
rtc_cmos 6680 0
fglrx 2495496 163
snd_hwdep 4264 1 snd_hda_codec
processor 19864 2
battery 8872 0
video 9524 0
uvcvideo 47116 0
snd_pcm 44952 4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
ac 2600 0
rtc_core 10148 1 rtc_cmos
power_supply 6288 2 battery,ac
wmi 6296 0
thermal_sys 10772 2 video,processor
rtc_lib 1488 1 rtc_core
cfg80211 99956 2 brcm80211,mac80211
snd_timer 13852 2 snd_seq,snd_pcm
videodev 48096 1 uvcvideo
i2c_piix4 7344 0
snd 38384 19 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
v4l2_compat_ioctl32 5488 1 videodev
psmouse 40364 0
agpgart 19244 1 fglrx
sg 19160 0
i2c_core 12704 2 videodev,i2c_piix4
evdev 6856 15
soundcore 3648 1 snd
k10temp 2180 0
atl1c 23012 0
button 3912 1 fglrx
snd_page_alloc 5104 2 snd_hda_intel,snd_pcm
serio_raw 3060 0
rfkill 10352 1 cfg80211
hwmon 1088 2 thermal_sys,k10temp

modprobe fglrx
worked ok; no error

dmesg | tail
[ 43.223416] [fglrx] IRQ 42 Enabled
[ 43.672751] [fglrx] Gart USWC size:544 M.
[ 43.672762] [fglrx] Gart cacheable size:213 M.
[ 43.672775] [fglrx] Reserved FB block: Shared offset:0, size:1000000
[ 43.672783] [fglrx] Reserved FB block: Unshared offset:fe3f000, size:1b5000
[ 43.672791] [fglrx] Reserved FB block: Unshared offset:fff4000, size:c000
[ 47.626150] eth0: no IPv6 routers present
[ 47.810092] eth1: no IPv6 routers present
[ 65.631700] ata1.00: configured for UDMA/133
[ 65.631714] ata1: EH complete

____________________________________________________________________________________________

The key to compiling the driver seems to be the xorg version.

Thanks again.

sci_fi

User avatar
fanthom
Site Admin
Site Admin
Posts: 4626
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#11 by fanthom » 06 Aug 2011, 07:30

@sci_fi
Selected "build module for slackware".
i have always picked up default options so this is probably wrong.

SMplayer opens and appears to be playing a file, but no sound is audible.
please open new bug report as this is going too far from the main topic.
in the new thread please show me the output of 'cat /proc/asound/cards' command. Also pls open terminal 'type alsaconf' and show me the screenshot of it.

Cheers
Please add [Solved] to your thread title if the solution was found.

sci_fi
Black ninja
Black ninja
Posts: 52
Joined: 28 Dec 2010, 18:25

Re: [SCRIPT] for creating custom ATI/FGLRX driver

Post#12 by sci_fi » 06 Aug 2011, 10:43

@fanthom
Yes, choosing the slackware option was a mistake. Seemed like the right thing to do. Oh well, now I have a driver. Still no sound. Actually working identically to before I had the driver as far as I can tell except the boot takes longer and looks different as different fonts are used.

I will open another thread as you suggest.

Thanks again.

sci_fi

Post Reply