user2139641
user2139641

Reputation: 35

How to interrupt Android boot sequence to force it boot to Linux kernel only

I am trying to do some low level performance testing related to device processor cores through adb which I feel it is affected by Android background services and system stuff.

As I know that the Android boot sequence stages are as follow:

  1. Execute Boot ROM code.
  2. Execute the boot loader.
  3. Load the Linux kernel.
  4. Launch Zygote, which initializes the Dalvik VM.
  5. System server which loads the Android system.

So my question is how can I interrupt this sequence to force it stop on stage 3 to load Linux kernel. This can help me implement my intermediary performance testings before loading again Android system. Does Fastboot or Clockworkmod recovery can help here and load my device to a kind of Linux kernel?

Any hint will be appreciated. Thanks.

Upvotes: 0

Views: 2057

Answers (1)

Mikhail Boiko
Mikhail Boiko

Reputation: 187

Change init parameter in kernel bootargs to something like init=/bin/sh. Usually it can be done somewhere on step 2.

Upvotes: 1

Related Questions