LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-01-2005, 09:56 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
mknod minor


I have been messing around with tv out using my matrox card. The tutorial I mainly used said to use the command
mknod /dev/fusion/0 c 253 0
this worked for my older system using a 2.4 kernel(2.4 headers), but not my newer system using a 2.6(and 2.6 headers). For the newer system I had to use this command
mknod /dev/fusion/0 c 252 0 #notice the minor is a different number

notice the number, 252(I think this is the minor), where does that number come from?
 
Old 04-01-2005, 10:30 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Looks like on 2.4 you were creating a character device with a major number of 253 and, then, on 2.6 that changed to a major number of 252.

According to the "devices.txt" file in /usr/src/linux/Documentation, those number fall into the range, well, here's what's in the file:
Code:
240-254 char    LOCAL/EXPERIMENTAL USE
240-254 block   LOCAL/EXPERIMENTAL USE
                Allocated for local/experimental use.  For devices not
                assigned official numbers, these ranges should be
                used in order to avoid conflicting with future assignments.
You have to contact Matrox to find out why they changed major numbers. Perhaps they found that some other popular device manufacturer was using 252 under 2.6 before they got their driver ported/updated. Kinda hard to say why they changed it. Pity they didn't update their documentation/tutorial. Or, if that's a third-party tutorial, then that author never got it updated in time.
 
Old 04-01-2005, 10:34 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
thanks for the explanation.
 
  


Reply



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
HD / mknod issue fasta Debian 7 08-08-2006 12:39 AM
mknod Basel Linux From Scratch 1 09-03-2005 02:13 PM
mknod Infinite_Pizza Linux - Software 2 04-14-2005 08:59 PM
Mouse mknod major/minor numbers? BlurredWeasel Linux - Hardware 2 11-06-2003 02:22 PM
mknod watashiwaotaku7 Linux - Software 1 01-23-2003 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:05 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