Difference between revisions of "Sony Kernel"

From Exploitee.rs
Jump to navigationJump to search
(Created page with "A new partition is created at: /dev/sda8 This stores our new /boot (known as sda8 from now on) On startup, old /boot (sda1 from now on) mounts sda8 and calls "reboot/reboot.sh"...")
 
Line 1: Line 1:
A new partition is created at: /dev/sda8
During the install process the onboard SSD is modified and a new partition is added, sda8.


This stores our new /boot (known as sda8 from now on)
sda8 stores our new /boot. Our old boot is on sda1.


On startup, old /boot (sda1 from now on) mounts sda8 and calls "reboot/reboot.sh"
On startup, sda1 mounts sda8 and calls "reboot/reboot.sh" to kickstart the kernel reloading.


Reboot.sh contains:
Reboot.sh contains:

Revision as of 19:13, 18 February 2012

During the install process the onboard SSD is modified and a new partition is added, sda8.

sda8 stores our new /boot. Our old boot is on sda1.

On startup, sda1 mounts sda8 and calls "reboot/reboot.sh" to kickstart the kernel reloading.

Reboot.sh contains:

   /bin/busybox insmod /system/reboot/modules/x86_kexec.ko
   /bin/busybox insmod /system/reboot/modules/kexec.ko
   exec /system/reboot/kexec -f /system/reboot/bzImage --command-line="root=/dev/sda8 console=ttyS0,115200"

The first two lines insert our new modules to call kexec. The sony kernel was not built to support kexec, so we had to add it in. The last line calls kexec, and forces it to load our image, "bzImage" from reboot/ on sda8.

Our new kernel is mostly stock, based off the released Sony code [here] (todo: setup code repository), with one modification. It is modified to allow / to be mounted RW.