PS3 'Other OS' area data.

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

Post Reply
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

PS3 'Other OS' area data.

Post by laichung »

From the source of kernel , os-area.c, I know that the "OtherOS" will copy into the memory area. So my question is, does anyone try to dump it from ram? Does it encrypted? Does it refer to the otheros.self?
/**
* struct saved_params - Static working copies of data from the 'Other OS' area.
*
* For the convinience of the guest, the HV makes a copy of the 'Other OS' area
* in flash to a high address in the boot memory region and then puts that RAM
* address and the byte count into the repository for retreval by the guest.
* We copy the data we want into a static variable and allow the memory setup
* by the HV to be claimed by the lmb manager.
*/
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

I believe "OtherOS area" just refers to the 4MB block of flash used to store the kernel and boot parameters (compression, boot flag, etc). You can access it directly as a block device. It's typically /dev/sdb if I recall correctly; the find-other-os-flash script in the ps3pf_utils package will locate it.
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Post by laichung »

Oh, yes. After read your post I do some research. That "other os area" should refer to the kboot (which is otheros.bld). Thanks~

jimparis wrote:I believe "OtherOS area" just refers to the 4MB block of flash used to store the kernel and boot parameters (compression, boot flag, etc). You can access it directly as a block device. It's typically /dev/sdb if I recall correctly; the find-other-os-flash script in the ps3pf_utils package will locate it.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

Yeah, kboot iterates devices /dev/sd[a-z] looking for the string "cell_ext_os_area" at the start of each. It's /dev/sdb on mine too.
ralferoo
Posts: 122
Joined: Sat Mar 03, 2007 9:14 am
Contact:

Post by ralferoo »

Also, not all of it is read/write - some is read only, or at least changes aren't persisted directly to flash.

The very start of the area contains various system configuration options - screen mode, OS selection flag, etc and whilst some of this does seem to get stored (e.g. preferred otherOS screen mode) other values such as whether O or X is used for the select button don't survive a reboot, much less affect the Sony OS.

IIRC, the data from sector 4 onwards is the boot zImage (could be kboot, but no real reason) and is persisted to flash. It's also a strange length, not close to a power of 2 (just over 4Mb).
Post Reply