Page 1 of 1

[SCRIPT] for creating custom ATI/FGLRX driver

Posted: 28 Dec 2010, 14:38
by fanthom
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!

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

Posted: 28 Dec 2010, 15:20
by Hamza
Nice post ! :D , but i haven't a ATI graphic card !

[SCRIPT] for creating custom ATI/FGLRX driver

Posted: 28 Dec 2010, 20:01
by Tonio
Great job. Don't know how to post code :(, will try to learn.

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

Posted: 04 Aug 2011, 10:25
by sci_fi
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

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

Posted: 04 Aug 2011, 11:56
by fanthom
@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

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

Posted: 04 Aug 2011, 17:46
by sci_fi
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

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

Posted: 04 Aug 2011, 19:09
by fanthom
"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

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

Posted: 05 Aug 2011, 11:14
by sci_fi
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

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

Posted: 05 Aug 2011, 12:28
by fanthom
@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

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

Posted: 06 Aug 2011, 00:26
by sci_fi
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

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

Posted: 06 Aug 2011, 07:30
by fanthom
@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

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

Posted: 06 Aug 2011, 10:43
by sci_fi
@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