I would appreciate some help on how or what I need to do in order to compile cdmrw.c. I get tons of errors when using gcc -I and errors about functions because cdrom.h isn't found. Obviously not doing this correctly. Thank you in advance /Carl
On Monday 19 January 2004 04:03, Carl Luescher wrote:
I would appreciate some help on how or what I need to do in order to compile cdmrw.c. I get tons of errors when using gcc -I and errors about functions because cdrom.h isn't found. Obviously not doing this correctly.
Thank you in advance /Carl
I'm not an expert, but I have tried this:
I use 2.6.2-mm4 kernel.
1. Edit the cdmrw.c file if needed. Make sure that linux/cdrom.h points to mrw
patched file from your 2.6.x kernel:
/*
* you probably want to copy 2.6.0 (patched mrw) to /usr/include/linux
* or change the include path
*/
#include
On Wed, Jan 21 2004, Ljubomir Bozic Jr. wrote:
On Monday 19 January 2004 04:03, Carl Luescher wrote:
I would appreciate some help on how or what I need to do in order to compile cdmrw.c. I get tons of errors when using gcc -I and errors about functions because cdrom.h isn't found. Obviously not doing this correctly.
Thank you in advance /Carl
I'm not an expert, but I have tried this:
I use 2.6.2-mm4 kernel.
1. Edit the cdmrw.c file if needed. Make sure that linux/cdrom.h points to mrw patched file from your 2.6.x kernel:
/* * you probably want to copy 2.6.0 (patched mrw) to /usr/include/linux * or change the include path */ #include
In my case:
#include
then I did:
gcc cdmrw.c -o cdmrw.bin
That should be it.
That's basically the way to go, since the glibc cdrom.h doesn't include the necessary mrw structures yet.
You can try to execute and see if cdmrw.bin gives you options output.
ljubich@hanuman ljubich $ ./cdmrw.bin ./cdmrw.bin: options: -d: <device> -f: <{restart, full} format type -F: force format -s: suspend format -p: poll for format completion
Somehow I hae managed to format it, but I don't know how to mount it or copy files on it
It behaves like a hard drive, essentially, although partitioning doesn't work on cdrom devices. So you just mkfs the device and mount it somewhere. -- Jens Axboe
Yep, this did the job! I appreciate, very much, your assistance. Thank you both! /Carl On Sun, 2004-01-25 at 19:14, Jens Axboe wrote:
On Wed, Jan 21 2004, Ljubomir Bozic Jr. wrote:
On Monday 19 January 2004 04:03, Carl Luescher wrote:
I would appreciate some help on how or what I need to do in order to compile cdmrw.c. I get tons of errors when using gcc -I and errors about functions because cdrom.h isn't found. Obviously not doing this correctly.
Thank you in advance /Carl
I'm not an expert, but I have tried this:
I use 2.6.2-mm4 kernel.
1. Edit the cdmrw.c file if needed. Make sure that linux/cdrom.h points to mrw patched file from your 2.6.x kernel:
/* * you probably want to copy 2.6.0 (patched mrw) to /usr/include/linux * or change the include path */ #include
In my case:
#include
then I did:
gcc cdmrw.c -o cdmrw.bin
That should be it.
That's basically the way to go, since the glibc cdrom.h doesn't include the necessary mrw structures yet.
You can try to execute and see if cdmrw.bin gives you options output.
ljubich@hanuman ljubich $ ./cdmrw.bin ./cdmrw.bin: options: -d: <device> -f: <{restart, full} format type -F: force format -s: suspend format -p: poll for format completion
Somehow I hae managed to format it, but I don't know how to mount it or copy files on it
It behaves like a hard drive, essentially, although partitioning doesn't work on cdrom devices. So you just mkfs the device and mount it somewhere.
-- Jens Axboe
Sorry, I'm very disappointed. I have an HL-DT-ST RW/DVD GCC-4480B and the specs say 'Mt. Rainier' compatible. But, it's not, therefore to my dismay, I cannot answer your question. /Carl LFS user 1513 On Thu, 2004-01-29 at 05:54, Ljubomir Bozic Jr. wrote:
On Thursday 29 January 2004 02:55, Carl Luescher wrote:
Yep, this did the job! I appreciate, very much, your assistance. Thank you both!
Would you be so kind to describe what exactly did you do from the start, how did you format, mkfs and so on.
Thanks!
Regards, Ljubo
participants (3)
-
Carl Luescher
-
Jens Axboe
-
Ljubomir Bozic Jr.