linux from scratch build with linux-2.6.11 and my pktsetup problem!
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
linux from scratch build with linux-2.6.11 and my pktsetup problem!
Hi,
My whole linux experience has been grand, but i'm stalled on this part. udftools-1.0.0b3 using the build instructions from the current blfs-cvs. It built fine. I used the udftools patch and all, but didn't need the kernel patch because the kernel nows supports packet writing. My problem is this...
$ pktsetup /dev/pktcdvd0 /dev/hdf
ioctl: Inappropriate ioctl for device
Well i don't know what to do. Can someone help me. Has anyone ran into this problem? Do i need a different patch for udftools? Must i change my udev config? Must i take a hammer to my computer?
Peace out
fight the flower power take regular showers
hmmmmmmm i haven't used this but these are the troubleshooting steps i would go through
first thing if you built the kernel driver as a module you have to load it and possibly at boot so udev can create device nodes
(i think it's called pktcdvd ?) like you hadn't got that far
you might want to try building udftools without that patch -- it might be specific for the kernel ??
read this http://gentoo-wiki.com/HOWTO_Packet_Writing_on_CD-RW
check out how the instructions are different for kernel 2.6.8 (the one blfs is written for)
in particular device names seem to be different with the newer kernel driver ?
try reading kernel docs /Documentation/cdrom/packet-writing.txt
and check out the script there /etc/init.d/cdrw
it seems to be a smart try at the pktsetup command
also
like always go back and try
unset CFLAGS
unset CXXFLAGS
and see if that fixes it
since you are using the newer kernel module than is in the instructions try to get the newest udftools
possibly even from cvs
Yes, i used the current code for udftools not cvs, but udftools-1.0.0b3 from the blfs cvs current. I tried not patching, and patching, and i still get the same problem. The lfs-6.0 udev setup automatically installs the /dev/pktcdvd0 node into the dev tree. I was wondering what the blfs patch does to pktsetup.c. I am new to code and i really need to work on understanding it. I seem to be at a standstill trying to mount a cdrw read write.
I looked at the udftools page but it didn't seem like the right tool for the job to me, so I didn't install it and I can't tell you how to make it work. But I can say that dvd+rw-tools-5.21.4.10.8 http://fy.chalmers.se/~appro/linux/DVD+RW/ works really well making rewritable dvds for me. It uses cdrtools as a backend
I think i found the root of the problem. In the /dev tree i have /dev/pktcdvd which appears as a character device, and /dev/pktcdvd0 which appears as a regular file. It should be a block device i think. How does one setup udev to make the proper device. Also i have the packet writing driver built into my kernel. I haven't attempted a modular kernel yet cause i want everything to work properly before i delve into the modular complications.
i think that would be a folder pktcdvd with 0,1,2,3 in it ?
but it really doesn't matter what the device name is
major device number should be 97 with minor numbers 0,1,2 and like that
if /dev/pktcdvd is 97 0 have you tried
pktsetup /dev/pktcdvd /dev/hdf
i cant figure out the udev rules (sorry)
you could try as a test (if there is no pktcdvd1)
mknod /dev/pktcdvd1 b 97 1
pktsetup /dev/pktcdvd1 /dev/hdf
so is this wrong the /etc/udev/rules.d and /etc/udev/permissions.d directories contain two files each 25* 50* respectively, and none of the files reference pktcdvd. Shouldn't one of the pktcdvd's be a block device? I don't think the nodes have the proper major and minor numbers so i want to know how to get udev to create them. I really do not want to physically create them. That would go against the udev philosophy and be uncomfortable to me.
pktsetup /dev/pktcdvd/pktcdvd0 /dev/hdf
ioctl: Inappropriate ioctl for device
I am still frustrated, but this probably speaks volumes of what my problem is, but i still don't have a clue to how for that matter what the hell is going on. Please SOS!!! If any sly cat's out their have worked some magic when in this same spot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.