Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
156 user(s) are online (146 user(s) are browsing Forums)

Members: 1
Guests: 155

smarkusg, more...

Support us!

Headlines

 
  Register To Post  

Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
Under OS4 I am unable to use the Apple USB SuperDrive, the external optical reader
http://www.apple.com/shop/product/MD564LL/A/apple-usb-superdrive

Apparently Apple prevent the use of this device on non-Apple hardware, only sending a specific message on the USB port the drive become usable.

On OS4 the drive is correctly recognized, it can eject [wrong], but it cannot load any cd into the slot-in.

On Linux it can be unlocked sending direct messages thanks to the "sg_raw" command from the sg3-utils (http://sg.danny.cz/sg/sg3_utils.html).

The exact unlocking command is
sg_raw /dev/sr0 EA 00 00 00 00 00 01

Is there any way to reproduce this unlocking mechanism on OS4.1?


Edited by virgola on 2015/9/19 7:50:14
Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@virgola

can you test the following program?

http://ami603.amiga-projects.net/unlockcd

usage: unlockcd sb600sata.device 0

change device and unit to the ones you need to try

a donation would be wellcome if it works, i will clean the sources and publish it over os4depot.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@Ami603

I cannot find the correct combination of device and unit.
I've tried many units for usbdisk.device without success.

How can I find the proper device and unit?

Here the screenshot of the USB Inspector

Resized Image

Resized Image


Here the usb.log file from ram:
http://www.locati.it/mario/AppleSuperDrive/SuperDrive_AmigaOS4.txt

From which I extract this relevant part
Device found on port 6 of hub "".
Device at port 6 of hub "" is high-speed.
Fkt 0x5a8a2970 at level 2
Device on hub port 6 successfully added
.
Fkt 0x5a8a2970 is {Vendor0x05ACProduct0x1500, Class: 00.00}
Fkt 0x5a8a2970 initialized
Lun 0 has device type 0x05 
(CDROM) and is removable
Detaching 
Function removed from hub port 6
Device found on port 4 of hub 
"".
Device at port 4 of hub "" is high-speed.
Fkt 0x5a8a2970 at level 2
Device on hub port 4 successfully added
.
Fkt 0x5a8a2970 is {Vendor0x05ACProduct0x1500, Class: 00.00}
Fkt 0x5a8a2970 initialized


The drive does not show up on the Media Toolbox.

I just tried inserting a CD under Linux (using the unlocking command), then I attached it with the CD inserted but the disk does not show up on the Workbench.

In addition to the locking mechanism, I think that under AmigaOS there is also a lack of a proper driver for it.


Edited by virgola on 2015/9/19 9:22:10
Edited by virgola on 2015/9/19 9:23:22
Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@virgola

type info on a shell and post here the output please.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@virgola

also try using usbdisk.device unit 0

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@Ami603

Already tried with "unlockcd usbdisk.device 0" and many other units, no success, it says
Eject: Error #-1 opening device "usbdisk" unit 0

Here the output of the command info

New Shell process 3
3.Workbench:> info
Mounted disks:
Unit Size Used Free Full Errors Status Name
APPDIR: 1K 1 0 100% 0 Read Only APPDIR
CD0: No disk present
DH0: 97G 39.370.744 62.698.496 39% 0 Read/Write Workbench
DH1: 100G 69.855.441 140.423.583 33% 0 Read/Write Work
DH2: 100G 5.220.563 205.058.461 2% 0 Read/Write Archive
ENV: 1.352K 338 0 100% 0 Read/Write ENV
ICD0: No disk present
ICD1: No disk present
IDF0: No disk present
IDF1: No disk present
RAM: 31K 2 0 100% 0 Read/Write RAM Disk
TEXTCLIP: 1.670M 0 1.751.388.160 0% 0 Read/Write TextClip

Volumes available:
RAM Disk: [Mounted]
Archive: [Mounted]
Work: [Mounted]
Workbench: [Mounted]


Here the screenshot of DevInfos about the Apple USB SuperDrive

Resized Image


Apparently the device used is "massstorage.usbfd", but if I try any unit (e.g.unlockcd massstorage.usbfd 0) any USB device (mouse and keyboard) stop working.


Edited by virgola on 2015/9/19 9:22:41
Edited by virgola on 2015/9/22 12:28:56
Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just can't stay away
Just can't stay away


See User information
@virgola

Does Devices tab of SysMon shows you something about your usb device ?
SysMon can display the device number.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@virgola

ran out of ideas, sorry

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@zzd10h

Here you are the screenshot of SysMon, where I can find the unit number?

Resized Image

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just can't stay away
Just can't stay away


See User information
@virgola
Try opening the USB MassStorage window with Exchange or with the keyboard Hot Key <control alt m> and if your drive shows up there, select it in the lister and click the "Details" gadget. Typically it show the first inserted USB drive as Unit 0, the second inserted drive as Unit 1 etc.

Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Home away from home
Home away from home


See User information
@virgola

Just return it to Apple store, if hardware is faulty you can return it under warranty.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just can't stay away
Just can't stay away


See User information
@virgola

Device number are in the rightmost part of the first List (Volumes) but unfortunately as your drive is not mounted, it's not displayed.
Sorry.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Quite a regular
Quite a regular


See User information
According to docs, usb_massstorage supports CDFileSystem.

Can idetool be used to "open" the drive?

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@virgola

From IRC

Quote:

<GeitPM> if someone here is on amigans,net
<GeitPM> about the post "unlocking apple usb superdrive"
<GeitPM> thats not a special command invented by apple. it is the usuall media lock/unlock command
<GeitPM> EjectTool from Aminet should be abble to unlock. As well as mmkeyboard and meridians toolkit
<GeitPM> if the command does not work then the releated device is not scsi compatible, so it is the drivers fault


Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Not too shy to talk
Not too shy to talk


See User information
@terminills

GeitPM if someone here is on amigans,net
GeitPM about the post "unlocking apple usb superdrive"
GeitPM thats not a special command invented by apple. it is the usuall media lock/unlock command
GeitPM EjectTool from Aminet should be abble to unlock. As well as mmkeyboard and meridians toolkit
GeitPM if the command does not work then the releated device is not scsi compatible, so it is the drivers fault
GeitPM in fact it should work on any proper ide, sata and scsi bus, even when connected via usb

Valiant@Camelot
AmigaOne XE, 800Mhz, 1GB, 9250 Radeon, OS4.1u7
Sam440ep, 666Mhz, 512Mb, 9250 Radeon, OS4.1u6
A1-X1000, 1.8Ghz, 1GB, 9250 Radeon, OS4.1x
A1-X5000/40 2.2Ghz, 2GB, Radeon HD 7700, OS4.1 FE ud 2
Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@Valiant

oops missed the last line ;D

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
@all
A little clarification in order to better identify the problem: the drive must be "awaked" by some magic code in order to be made visible to the system, the problem is not that it does not eject CDs. It is an Apple policy for avoiding using the drive on non Apple hardware.
See for instance
https://christianmoser.me/use-apples-usb-superdrive-with-linux/

@xenic
The USB MassStorage window opened using Exchange is emtpy, and the window openend by clicking on "Details..." is empty as well.

@LiveForIt
The unit does work under OSX, Windows, and Linux, once it is been properly unlocked/awaked by the driver.

@Thematic
I've tried idetool to investigate the following list, bit none of them support idetool
idetool -l massstorage.usbfd
idetool -l usbsys.device
idetool -l usbresource.library
idetool -l hub.usbfd
idetool -l usbdisk.device

@terminillis
Tried the EjectTool without success.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just popping in
Just popping in


See User information
the problem is i cannot send scsi commands to the unit because usbdisk.device doesn't get mounted by masstorage.usbfd, so this must be done inside masstorage.usbfd to allow it to mount, because this unit doesn't show itself as supporting ATAPI commands, only SCSI.
For instance one unbranded cd unit i have here shows several supported commands, ATAPI, SCSI, and other i cannot remember.

Go to top
Re: Unlocking Apple USB SuperDrive on OS4
Just can't stay away
Just can't stay away


See User information
So Apple does again like it used to, back in the Imagewriter printers? Oh well :-/

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project