Mailinglist Archive: opensuse-kernel (77 mails)

< Previous Next >
Re: [opensuse-kernel] Need help with compiling Kernel Firmware and ACPI for nouveau
  • From: Johannes Obermayr <johannesobermayr@xxxxxx>
  • Date: Fri, 11 Dec 2009 22:34:58 +0100
  • Message-id: <200912112234.59059.johannesobermayr@xxxxxx>
Am Freitag 11 Dezember 2009 20:43:26 schrieb Greg KH:
On Fri, Dec 11, 2009 at 08:38:23PM +0100, Johannes Obermayr wrote:
Hi,

I have to compile Kernel Firmware from
http://cgit.freedesktop.org/nouveau/linux-2.6/ for my OBS project
(home:jobermayr) which includes latest nouveau drivers for openSUSE
users.

I do not know how I can do this. With "my" script (from Ruediger
Oertel) I do not receive the proper files...
Nouveau's firmware files will/have to change from binary to ihex format,
too. (see
http://lists.freedesktop.org/archives/nouveau/2009-December/004261.html)

This is my main problem:

Ruediger's script "patches" kernel-firmware-20090821.tar.bz2 with additional
radeon firmware (both contain firmware files in binary format) and then:
mkdir -p %{buildroot}/lib/firmware
cp -avf * %{buildroot}/lib/firmware
rm -f %{buildroot}/lib/firmware/WHENCE
%fdupes %{buildroot}


What I want is following:
1. Extract kernel-firmware-20090821.tar.bz2 (I know how I must do this...)
2. Patch it:
2.1 git archive master firmware/ | bzip2 >firmware.tar.bz2 (nouveau/linux-2.6)
2.2 Extract firmware.tar.bz2 (I know how I must do this...)

2.3 Convert ihex to binary firmware files (This is the point I do not know how
to do it - I cannot find instructions for it...)

2.4 Add files to/Replace files in extracted kernel-firmware-20090821.tar.bz2
3. Execute above part from Ruediger's script
4. I should now have a proper kernel-firmware rpm file...
5. Distribute it...



The second problem is that drm-all packages for openSUSE 11.2 tell me the
following at installation:
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_notifier_register
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_notifier_unregister
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_open
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_notifier_register
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_notifier_unregister
# WARNING: /lib/modules/2.6.31.5-0.1-pae/updates/drm/i915/i915.ko needs
unknown symbol acpi_lid_open

There I do not know how I can back-compile ACPI things (2.6.32->2.6.31) for
proper i915.ko work.

Good luck with that, it's not trivial at this time :(

In the end, you are going to have to patch your 2.6.31 kernel in order
to get this all to work. So you are going to need your own kernel
package as well.

I will try the hint from Takashi. Thanks.

Or I just have to build against Kernel:HEAD (as for openSUSE 11.1) and Factory
is also OK (both Kernel 2.6.32).

But I personally need here only radeon.ko and nouveau.ko... So broken i915.ko
does not matter for me and nouveau users...


You can find "official" statements regarding my OBS project here:
https://features.opensuse.org/307588 (including statement regarding my
programming skills...)
https://bugzilla.novell.com/show_bug.cgi?id=528355
http://nouveau.freedesktop.org/wiki/openSUSEPackages
http://nouveau.freedesktop.org (News)
http://de.opensuse.org/Nouveau (German)


Please note that nouveau's DRM/KMS code goes into Kernel 2.6.33 (see
http://www.phoronix.com/scan.php?page=news_item&px=Nzc5NQ)

Yes, but please note that this required some changes to the DRM core
code, so you will also have to backport those portions as well.

Also note that it hasn't landed in the 2.6.33 development tree either,
as of last evening, we are still working out the details as to how to
accomplish this.

thanks,

greg k-h

--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >