LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 09-10-2012, 03:15 PM   #1
applejackell
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Need help with writing MacOS X USB driver


how to write a Linux - USB Device driver, that should mount as cd-rom on mac

Last edited by TobiSGD; 09-10-2012 at 04:22 PM. Reason: Changed title
 
Old 09-10-2012, 03:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
We can't seriously be expected to teach you that. That's a BIG project is expect (although you've not described anything about it) we could never ever teach you that.
 
Old 09-10-2012, 03:31 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Hello and welcome to LQ!

You can't write Linux device drivers for MacOS X, since MacOS X does not use a Linux kernel.
If that is not what you want please be more specific in your question. What is it exactly that you want to achieve?

Sidenote: Thread titles like "Help me!! Please !!" are not a good thing and may drive people away from your thread. Please give your thread more appropriate titles in the future, this way you may get better results for your questions.
Since it is not really clear to what you really want to achieve I temporarily rename this thread to "Need help writing Linux/MacOS X USB driver" and move it to the main hardware section, since this is not a Embedded question.
If this is not what you want please send me an email or ask for a change here.
 
Old 09-10-2012, 03:59 PM   #4
applejackell
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I am working in driver development in linux USB modules.
I have written driver for usb and it is working as cd rom in windows machine

1)I made first partation as fat32
"modprobe g_hidmass file=/dev/mmcblk0p1 cdrom=1 stall=0 removable=1"
this works fine in windows

2)I made first partition as hfs partation
"modprobe g_hidmass file=/dev/mmcblk0p1 cdrom=1 stall=0 removable=1"

but same thing i applied with hfs partation in MAC it is getting error
like this "The disk you inserted was not readable by this computer"
in diskutil it is shown as CD-rom but not reading the file system.
frame like this

Please help me how can I overcome this error...

Last edited by applejackell; 09-10-2012 at 04:17 PM. Reason: to add clear description
 
Old 09-10-2012, 04:21 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If I understand you correctly you want to write a driver for MacOS X for a USB drive (harddisk, pendrive, CD/DVD-drive?), so that the device acts as a CDROM drive. Since this is not a Linux question I would recommend to ask this question in an Apple forum, but I will move this to the programming section and change the title accordingly.
May be some of our members are familiar with MacOS X kernel coding.
 
Old 09-10-2012, 07:30 PM   #6
applejackell
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I want to write driver in Embedded Linux in Freescale IMX Series...
Though it is for MacOS X but need to write driver in Embedded Linux only..Hope you understand my question
 
  


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



LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 08:57 PM.

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