[20070106]
|
Using your Xbox 360 HD DVD drive with NetBSD
Jared McNeill bounced me this gem: The Xbox 360 comes with an external
HD DVD drive that's connected to the Xbox via USB. Using the drive on
a NetBSD box via USB is easy, but accessing the data on the HD DVDs
was not possible so far. After Reinoud Zandijk's
last
round of changes to the UDF filesystem driver to bring it upto UDF 2.60,
the Xbox 360 HD DVDs' data can now be accessed from NetBSD:
# dmesg
...
uhub5 at uhub3 port 1
uhub5: NEC product 0x005a, class 9/0, rev 2.00/1.00, addr 2
uhub5: 4 ports with 2 removable, self powered
ugen0 at uhub5 port 3
ugen0: Microsoft Corporation Xbox 360 HD DVD Memory Unit, rev 2.00/1.08,
addr 3
umass0 at uhub5 port 4 configuration 1 interface 0
umass0: Microsoft Xbox 360 HD DVD Player, rev 2.00/1.00, addr 4
umass0: using ATAPI over Bulk-Only
atapibus1 at umass0: 2 targets
cd1 at atapibus1 drive 0: cdrom removable
...
# mount -t udf /dev/cd1a /mnt
#
# ls -al /mnt
total 26
dr--r--r-- 6 nobody nobody 228 Jul 20 00:20 ./
drwxr-xr-x 21 root wheel 512 Nov 29 01:36 ../
dr--r--r-- 2 nobody nobody 616 Jul 20 00:20 AACS/
dr--r--r-- 2 nobody nobody 556 Jul 20 00:20 AACS_BAK/
dr--r--r-- 2 nobody nobody 240 Jul 20 00:20 ADV_OBJ/
dr--r--r-- 2 nobody nobody 2124 Jul 20 00:20 HVDVD_TS/
#
# ls -al /mnt/AACS
total 6288
dr--r--r-- 2 nobody nobody 616 Jul 20 00:20 ./
dr--r--r-- 6 nobody nobody 228 Jul 20 00:20 ../
-r--r--r-- 1 nobody nobody 120 Jul 20 00:20 CONTENT_CERT.AACS
-r--r--r-- 1 nobody nobody 134496 Jul 20 00:20 CONTENT_HASH_TABLE1.AACS
-r--r--r-- 1 nobody nobody 61908 Jul 20 00:20 CONTENT_HASH_TABLE2.AACS
-r--r--r-- 1 nobody nobody 1000000 Jul 20 00:20 CONTENT_REVOCATION_LIST.AACS
-r--r--r-- 1 nobody nobody 64 Jul 20 00:20 DKF.AACS
-r--r--r-- 1 nobody nobody 1000000 Jul 20 00:20 MKBRECORDABLE.AACS
-r--r--r-- 1 nobody nobody 1000000 Jul 20 00:20 MKBROM.AACS
-r--r--r-- 1 nobody nobody 301 Jul 20 00:20 MNGCPY_MANIFEST.XML
-r--r--r-- 1 nobody nobody 2480 Jul 20 00:20 VTKF000.AACS
-r--r--r-- 1 nobody nobody 144 Jul 20 00:20 VTUF000.AACS
#
# ls -al /mnt/HVDVD_TS
total 32933404
dr--r--r-- 2 nobody nobody 2124 Jul 20 00:20 ./
dr--r--r-- 6 nobody nobody 228 Jul 20 00:20 ../
...
-r--r--r-- 1 nobody nobody 286636032 Jul 20 00:20 HDintro.EVO
-r--r--r-- 1 nobody nobody 2048 Jul 20 00:20 HDintro.MAP
...
-r--r--r-- 1 nobody nobody 63297536 Jul 20 00:20 TERM3NPCTLR1_HD.EVO
-r--r--r-- 1 nobody nobody 2048 Jul 20 00:20 TERM3NPCTLR1_HD.MAP
-r--r--r-- 1 nobody nobody 73046016 Jul 20 00:20 TERM3NSGTV1_HD.EVO
-r--r--r-- 1 nobody nobody 2048 Jul 20 00:20 TERM3NSGTV1_HD.MAP
-r--r--r-- 1 nobody nobody 17657856 Jul 20 00:20 WHVlogo240.EVO
...
-r--r--r-- 1 nobody nobody 2048 Jul 20 00:20 WHVlogo240.MAP
-r--r--r-- 1 nobody nobody 1124352 Jul 20 00:20 intro_black.EVO
-r--r--r-- 1 nobody nobody 2048 Jul 20 00:20 intro_black.MAP
#
Please note that while the HD DVDs' can now be accessed, it is still
encrypted, but it's a start. Jared tells me:
``Basically, the video files on the disc are encrypted and wrapped in an
MPEG
program stream. You need to extract the title key (also encrypted) from the
disc to be able to decrypt the program streams. The video may be either
MPEG2, VC-1, or H.264. I can't remember off the top of my head what formats
are allowed for audio''.
The changes to UDF should theoretically work for BluRay DVDs also, but
this hasn't been confirmed due to lack of hardware - maybe someone can
send some feedback on this? Reinoud has the following to say about this:
``BluRay discs have most likely UDF 2.60 filesystem on them since this is
the first standard that mentions this disc type. For BD-ROM and BD-RE this
should be equal to version 2.50. On BD-R either VAT or logical overwrite is
used but for read-only access this shouldn't differ. Testing it of course
would be good.''
Reinoud also points out that the next points on his roadmap include
optical disc formatting, creating newfs_udf(8), fsck_udf(8) and write
support.
[Tags: dmesg, udf, xbox]
|