作者cassine (Savannah)
看板Modchip
标题[PS3 ] graf_chokolo:我把硬碟加密关了!
时间Mon Jan 31 18:18:03 2011
http://xorloser.com/?p=297&cpage=21#comment-3221
PS3 主机是使用Unix的UFS2档案系统,同时会将所有的资料加密。然而目前
graf_chokolo已经有办法藉由控制HyperVisor将档案加密。
结果不幸的事情发生了,当加密关闭後,GameOS无从解码读取资料,判定主机的
硬碟是全新的,所以把他的硬碟格式化掉了。不过主机并没有挂掉,还是可以正
常开机,於是graf_chokolo把整个加密跟未加密的硬碟资料用磁碟救援工具读出
,准备寻找解密金钥。
同时也把HV里面硬碟加密相关的指令全部拿出来了。
http://xorloser.com/?p=297&cpage=22#comment-3246
Storage device encryption/decryption is done by HV and peripheral
devices like ENCDEC or RBD.
I'm trying to understand how the storage
subsystem of HV works currently, it's by far the most complex part
of HV i have seen so far.
And recently i figured out that the VFLASH region, where Linux boot
loader (otheros.bld) is stored, is still there on 3.41 firmware. I'm
trying now to boot Linux bootloader from this region. OtherOs.self
writes otheros.bld image to this VFLASH region and creates
cekk_ext_os_area where several parameters are stored. On 3.15
firmware, when Linux was booted, the Linux System Manager (in HV
process 9) loads Linux bootloader from the VFLASH region,
decompresses it and boots it.
The problem with 3.41 firmware is,
that SONY removed Linux System Manager from HV process 9. It's no
problem for me to store Linux bootloader on this VFLASH partition.
But there are 2 problems, first the VFLASH region where Linux is
stored is 0x40000 bytes large, so there is not much place for Linux
bootloader on VFLASH, so it should be compressed to make it smaller.
Second problem is, i have to patch HV process, insert my code which
loads it from VFLASH and decompresses Linux bootloader. And after
that we could boot Linux from HDD and it would have GameOS rights,
e.g. has access to Dispatcher Manager or run isolated SPUs.
要要修改HV,才有办法让GameOS与Linux 共容,还有一个问题就是VFLASH的空间
太小,塞不进 Linux的Bootloader。
http://xorloser.com/?p=297&cpage=22#comment-3248
I dumped now both decrypted and encrypted sectors of UFS2. And the
same plaintext is encrypted to the same ciphertext :-) Encryption is
independent of sector position.
And SONY uses 128-bit block cipher to encrypt the blocks within a
sector.
非常合逻辑的设计,以磁区(sector)为单位加密,用太大的单位加解密的话,会
耗用过多的系统资源,拖慢磁碟效率。
http://xorloser.com/?p=297&cpage=22#comment-3259
And i figured out that the size of VFLASH region where 3.15 stored
otheros.bld can be doubled and i will be able to store decompressed
Linux bootloader otheros.bld on this VFLASH region :-) It will
simplify HV patching immensely, i do not need now to decompress Linux
bootloader in HV. I will test it today and report back. There are
0x2000 extra unused sectors between the VFLASH region for otheros.bld
and the next VFLASH region, so i can use those sectors and increase
the size of VFLASH region for otheros.bld.
We could make a CFW by patching HV with dual boot option, either
GameOS or Linux could be booted from HDD.
水啦~过不了多久就能双开机了。
--
○ ____ _ _ _ _ ____ _ _ ____ _____ ____
。 ★(_ _)( \( )( \/ )( ___)( \( )(_ _)( _ )( _ \
o _)(_ ) ( \ / )__) ) ( )( )(_)( ) / ● ‧
(____)(_)\_) \/ (____)(_)\_) (__) (_____)(_)\_) ★
o
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.120.31.133
1F:→ fly9588:格式化XDDDDDDDDD 01/31 19:15
2F:→ long201:杯具.... 01/31 19:41
3F:→ herozeek:看来离完美htpc不远了 01/31 19:41
4F:→ braynwu:我也要HTPC!!! 01/31 20:51
5F:推 hpo14:太屌了 !! 01/31 23:17