B2G icon indicating copy to clipboard operation
B2G copied to clipboard

Kernels built using ubuntu 11.10 and onwards don't boot on the sgs2

Open dhylands opened this issue 12 years ago • 3 comments

It was discovered that sgs2 kernels which are built using a host machine running ubuntu 11.10 or newer don't boot.

dhylands avatar Apr 26 '12 01:04 dhylands

This happens on building SGS2-ICS kernel.

shianyow avatar Apr 26 '12 01:04 shianyow

The fix seems to work, but I'm not happy with not understanding why it works. I also notices that the file permissions in initramfs seem to be incorrect. If I boot my sgs2 into recovery mode, and then adb into the phone, I see that most of the files are owned by user-id 35029 which is the user-id of my dhylands account on my build machine. I think that they should be owned by root.

dhylands avatar Apr 26 '12 18:04 dhylands

The pertinent errors when files are group writable are:

[ 1.794046] init: skipping insecure file '/init.rc' [ 1.797667] init: skipping insecure file '/init.smdk4210.rc' [ 1.803434] init: skipping insecure file '/default.prop' [ 6.000636] init: Timed out waiting for /dev/.coldboot_done [ 6.004869] init: Unable to open persistent property directory /data/property errno: 2

Using

chmod g-w boot/initramfs/*.rc boot/initramfs/default.prop && \

in the Makefile is sufficient to fix the problem, rather than

chmod g-w -R boot/initramfs && \

dhylands avatar Apr 30 '12 17:04 dhylands