You are not logged in.

#1 2008-06-04 12:13:46

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

[SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

Hi guys.

Yesterday I've compiled a custom kernel using this wiki:
http://wiki.archlinux.org/index.php/Ker … rom_Source

The kernel runs great, I am able to go without initrd and with the needed modules compiled into the kernel I shaved 15 secs off the boot time (30 secs -> 15 secs!)

Of course the proprietary driver for my ATI Radeon X1400 needed to be reinstalled. So I followed the instructions from here:
http://wiki.archlinux.org/index.php/ATI#Custom_Kernels

When I run makepkg I get this result:

[stefanstr@myarch catalyst]$ LC_ALL=en_US makepkg
==> Making package: catalyst-stefan 8.5-1  (Wed Jun  4 14:08:38 CEST 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ati-driver-installer-8-5-x86.x86_64.run in build dir
==> Validating source files with md5sums...
    ati-driver-installer-8-5-x86.x86_64.run ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
Warning: target directory exists archive_files
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.493.1...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
make: Entering directory `/home/stefanstr/kernelbuild/linux-2.6.25.4'
  CC [M]  /home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.o
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:889: warning: function declaration isn't a prototype
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c: In function 'KCL_pci_enable_device_bars':
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:1684: warning: passing argument 1 of 'pci_read_config_word' from incompatible pointer type
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:1696: warning: passing argument 1 of 'pci_write_config_word' from incompatible pointer type
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c: In function '__ke_check_pci':
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:2126: error: implicit declaration of function 'pci_find_slot'
/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:2126: warning: assignment makes pointer from integer without a cast
make[1]: *** [/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.o] Error 1
make: *** [_module_/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/home/stefanstr/kernelbuild/linux-2.6.25.4'
==> ERROR: Build Failed.
    Aborting...

The LC_ALL bit before the command is there b/c otherwise the messages are in Polish (e.g., non-readable for most of you). The result is the same, English or Polish.

I googled, read the Arch Wiki and searched through the forums but I couldn't find anything that would bring me closer to a solution.

Please help!

Last edited by JeremyTheWicked (2008-06-04 23:23:32)


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#2 2008-06-04 12:20:33

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

It might be a gcc4.3 problem... I might try downgrading gcc, or perhaps you should contact the package maintainer to ask for help.

Offline

#3 2008-06-04 12:44:47

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

Thanks for the answer.

Could anyone try and makepkg catalyst on their machine to see if the problem is reproducible?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#4 2008-06-04 14:29:21

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.c:2126: error: implicit declaration of function 'pci_find_slot'
make[1]: *** [/home/stefanstr/kernelbuild/catalyst/src/lib/modules/fglrx/build_mod/firegl_public.o] Error 1

That seems to be your error - pci_find_slot is not declared anywhere in the kernel headers you have.

Offline

#5 2008-06-04 17:35:05

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

Thanks Cerebral.

But where possibly could I make something wrong? I have no idea where to look - I don't even know what pci_find_slot is. Could you give me some hints what I need to check?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#6 2008-06-04 20:31:16

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

check if you have "Bus options (PCI etc.)"/"Enable deprecated pci_find_* API" enabled in your config:

grep PCI_LEGACY .config

If not, enable it, rebuild and try again


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#7 2008-06-04 21:06:50

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

That's awesome, man! You were right on.

I enabled PCI_LEGACY and now everything is shiny. smile


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#8 2008-06-04 21:45:52

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

I was to fast hmm

Enabling PCI_LEGACY let me makepkg and install catalyst but fglrx won't load. (modprobe gives the message "operation not permitted"). Where should I look for errors now?

Last edited by JeremyTheWicked (2008-06-04 21:46:19)


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#9 2008-06-04 22:09:54

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

are you root? you should be


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#10 2008-06-04 22:26:32

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

Of course I'm root. I can't load it from rc.conf either (where I'm root by default).

I get the following messages in dmesg/logs:

Jun  4 23:09:59 myarch [fglrx] Adapter chains initialized successfully!
Jun  4 23:09:59 myarch [fglrx] CF object manager initialized successfully!
Jun  4 23:09:59 myarch [fglrx]   vendor: 1002 device: 7145 count: 1
Jun  4 23:09:59 myarch [fglrx] Maximum main memory to use for locked dma buffers: 925 MBytes.
Jun  4 23:09:59 myarch [fglrx] ASYNCIO init succeed!
Jun  4 23:09:59 myarch [fglrx:KCL_enable_pat] *ERROR* Pat entry 2 is already configured
Jun  4 23:09:59 myarch [fglrx] PAT is disabled!
Jun  4 23:09:59 myarch [fglrx:firegl_init_module] *ERROR* firegl_stub_register failed

When I run the stock kernel (which loads the fglrx module correctly) the messages are as follows:

Jun  4 23:26:25 myarch fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' t$
Jun  4 23:26:25 myarch Symbol init_mm is marked as UNUSED, however this module is using it.
Jun  4 23:26:25 myarch This symbol will go away in the future.
Jun  4 23:26:25 myarch Please evalute if this is the right api to use, and if it really is, submit a report t$
Jun  4 23:26:25 myarch [fglrx] Adapter chains initialized successfully!
Jun  4 23:26:25 myarch [fglrx] CF object manager initialized successfully!
Jun  4 23:26:25 myarch [fglrx]   vendor: 1002 device: 7145 count: 1
Jun  4 23:26:25 myarch [fglrx] Maximum main memory to use for locked dma buffers: 927 MBytes.
Jun  4 23:26:25 myarch [fglrx] ASYNCIO init succeed!
Jun  4 23:26:25 myarch [fglrx] PAT is enabled successfully!
Jun  4 23:26:25 myarch [fglrx] module loaded - fglrx 8.49.7 [May 12 2008] with 1 minors

Any ideas?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#11 2008-06-04 22:37:39

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

maybe this helps?
If it's not i'm out of ideas... i have nvidia wink


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#12 2008-06-04 23:23:09

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: [SOLVED] Custom kernel + fglrx (catalyst) from ABS = disaster

That was it!

If you happen to be in Poland, drop me a line and I'll buy you beer or something wink


arch(3) adj amused because you think you understand something better than other people ;P

Offline

Board footer

Powered by FluxBB