LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2008, 04:22 AM   #1
chenayang
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
Question How to convert a *.src.rpm to a .dd driver image under SLES10.2?


Hi friends, I lately got a source rpm package (driver for NIC). I would like to load the driver during installation process(load from driver floppy). Could you please show me how can I convert the *.src.rpm to *.dd?
Then I can use the image to create a driver disk to load the driver. Thanks a lot!
 
Old 11-12-2008, 06:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
The elaborate way could be to build the RPM from the .src.rpm, unpack it with rpm2cpio and cpio, 'dd' a file the size of a floppy, loopmount it, format it, mount it, copy the installed files to the mounted location, umount, loopmount -d, then 'dd' that image to a floppy, but (all as unprivileged user installing the .src.rpm should get you the tarball any patches, additional files and the .spec file, running 'rpmbuild' with the "-bi" switch and supplying the /path/to.spec file should configure, patch, build and install the package, then you could copy the installed files to your floppy disk. Seems easier to me.
 
Old 02-02-2009, 03:31 AM   #3
chenayang
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
unSpawn, thanks.
I have just got another rpm package for HP storage card. When I use
#rpm2cpio RPM_file | cpio -idv
I found that I got the following file:
./opt/hp/storage_drivers/*.tar.gz

Then how can I prepare the floppy driver disk using the gunzip file?
 
Old 02-02-2009, 07:27 PM   #4
chenayang
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Anyone can help me? Thanks a lot.
 
Old 02-02-2009, 07:32 PM   #5
chenayang
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
I also would like to know that if I get source files for a device driver(Such as HBA cards).
How can I prepare the floppy driver disk from the source files?
How can I prepare the rpm packages for RHAS or SLES?
Is there some documents which show the details about linux drivers?
Appreciated for any kind of help. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: how can I return an image - not the html img src tag, but the image data BrianK Programming 3 05-18-2007 03:28 PM
convert image.png image.jpg changing colours MikeyCarter Linux - Software 1 11-17-2006 11:16 AM
how do I compile or build a src.rpm driver? Falafel Linux - Software 1 11-19-2003 07:40 AM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration