Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dhylands opened this issue Apr 26, 2012 · 3 comments
Open

Comments

@dhylands
Copy link

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

@shianyow
Copy link
Collaborator

This happens on building SGS2-ICS kernel.

qdot added a commit that referenced this issue Apr 26, 2012
jonallengriffin pushed a commit to jonallengriffin/B2G that referenced this issue Apr 26, 2012
@dhylands
Copy link
Author

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
Copy link
Author

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 && \

cervantesyu pushed a commit to cervantesyu/B2G that referenced this issue Dec 22, 2015
Bug 920056 - mach driver should source load-config instead of key-value parsing. r=mdas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants