LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   where is the source codes for the open source drivers for each linux distros (https://www.linuxquestions.org/questions/linux-software-2/where-is-the-source-codes-for-the-open-source-drivers-for-each-linux-distros-694480/)

centguy 01-02-2009 09:14 AM

where is the source codes for the open source drivers for each linux distros
 
This is a question related to linux in general. I hope someone can
provide some hints to that.

We all know we can install a linux system such as Fedora 10 and use it.
Being linux, one should in principle get the source codes for everything that has been precompiled (except the proprietary drivers such as nvidia) in the installation DVDs/CDs. Where are the source codes ? Is there a place I can download them ?
To avoid confusion, I am not referring to the kernel source that can be compiled to
give a linux kernel, but that does not include the drivers, such as intel_drv.so.

To be more specific, the intel graphic i810 driver has been built into any linux system, but where is the exact source? One answer may be that primary source
intellinuxgraphics.com. However, if anyone tries to download the every changing (i.e., keep updated almost every single day) driver source codes from freedesktop.org, it is almost certain that the source codes will not
be the same as the one that is finalized in Fedora 10.

Thanks for sharing your answers.

Agrouf 01-02-2009 10:01 AM

on Fedora:
yumdownloader --source package
on Debian:
apt-get source package
on gentoo:
emerge --fetchonly package
Mandriva:
urpmi --src package
Slackware, LFS, etc : Oops, no package manager
wget url_of_package

farslayer 01-02-2009 10:02 AM

If you want the source used for hte Fedora package then you would download it from Fedoras website.. or though the package took as Agrouf demonstrated.

You can download the Source isos for fedora 10 - I have no clue what source files ar on which disk, although X and it's drivers are most likely on disk 1..
ftp://ftp.mirrorservice.org/sites/do...ra/source/iso/

and of course if you go to the source directory you can download individual source packages.. like xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm

ftp://ftp.mirrorservice.org/sites/do...3.fc10.src.rpm

centguy 01-02-2009 10:47 AM

Thanks for the prompt and useful replies.

I tried to do this but fail, why ?

[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-1.6.5-9.13.el5.src.rpm
1:xorg-x11-drv-i810 warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
...

Another question: Can I extract the content of a rpm file without actually install it, something like try to peep what is inside ?

MasterC 01-02-2009 10:51 AM

It also would seem you are mixing two types of sources. Released versions of code and revisions (like SVN, CVS, etc). If you go to freedesktop and grab the latest version with all the changes since the last release, you would indeed get an entirely different set of source files. But there are also released versions (that you can grab using the same tools) that are a "snapshot in time" of the source. Those files will not change, those are static. The same can apply using in-between-revisions as well. For example, if you were to grab svn revision 3101 that is the latest release today and contains an entirely up-to-date source tree. In 4 years when you grab svn revision 3101 it would be identical. If you just updated to the latest source in 4 years though, then it would be entirely different as you've noted.

Hope that helps!

-Chad

XavierP 01-02-2009 10:55 AM

Any file ending in .src.rpm is not an install file as such. That is an rpm of the sources and you would use it to create an install file which may be compiled for your architecture (possibly improving speed ever so slightly) or with unusual compile options. There are instructions for using those files here: http://www.rpm.org/max-rpm/s1-rpm-mi...nia-srpms.html

centguy 01-02-2009 10:56 AM

useradd mockbuild seems to solve the problem.

[root@centos52-64-fuj ~]# useradd mockbuild
[root@centos52-64-fuj ~]# passwd mockbuild
Changing password for user mockbuild.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-1.6.5-9.13.el5.src.rpm
1:xorg-x11-drv-i810 ########################################### [100%]


But where are the files ?

centguy 01-02-2009 11:04 AM

Probably I need to slow a little bit.
Before my second last post, I did something wrong earlier that may cause a huge problem later on..
I tried to put the f10 rpm in CentOS5.2..

[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm
warning: xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
1:xorg-x11-drv-i810 warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

Does this have a side effect ??
I hope my mistake does not cause any harm in the future ...

XavierP 01-02-2009 11:05 AM

Read the link I posted - it tells you all about the files and where they go and what they do.

centguy 01-02-2009 11:14 AM

Thanks! I found it. Will have to spend time reading the stuff you point to.

[root@centos52-64-fuj SOURCES]# pwd
/usr/src/redhat/SOURCES
[root@centos52-64-fuj SOURCES]# ls
blank-on-init.patch i810.xinf intel-lvds-detection.patch
FileZilla_3.0.11.1_src.tar.bz2 i965-xv-hang-fix.patch intel-no-exa.patch
FileZilla_3.0.11-rc1-system.patch intel-1.5-compat.patch intel-redetect-on-acpi.patch
FileZilla_3.0.1_src.tar.bz2 intel-1.5-misc.patch intel-stub.c
i810-1.6.5-965-update.patch intel-2.1.1-fix-xv-reset.patch intel-version.patch
i810-1.6.5-bearlake.patch intel-2.4.2-dell-quirk.patch xf86-video-i810-1.6.5.tar.bz2
i810-1.6.5-bridge-id-fix.patch intel-2.5.0-no-legacy-3d.patch xf86-video-intel-2.2.1.tar.bz2
i810-1.6.5-to-git-20060911.patch intel-disable-rotation.patch xf86-video-intel-2.5.0.tar.bz2
i810-match-server-sync-ranges.patch intel-dri.patch


All times are GMT -5. The time now is 09:38 PM.