Hi all,
For those who don't understand what
the androidboot.hardware is, here is
an brief explanation:
androidboot.hardware=xxx is a kernel cmdline config
which is passed to android init process.
The init process parses this config and sets
the properties ro.boot.hardware and
ro.hardware to xxx.
The latter property is used to load the correct
rc files and HALs at the boot time.
Therefore an incorrect setting of
androidboot.hardware=xxx results in boot failure.
Practically xxx must be set to the target name
of the built image. This is AOSP's original design and
we just follow it since the day one of the project started.
Currently we only support two targets:
android_x86 for the 32-bit image and
android_x86_64 for the 64-bit image.
However, other derived projects may
use different target names.
For example Remix OS uses remix_x86 for
32-bit and remix_x86_64 for 64-bit images.
Android-x86 installer would set it correctly if
you choose to install grub (or grub-efi).
However, for those who choose to skip this step
and create the android-x86 boot entry themselves,
there is a chance that they set the value incorrectly.
I found it has become one of the most common
mistakes that the new comers made.
So I tried to solve it more systematically.
Fortunately the solution is not difficult.
I just set the default value of ro.hardware to
the target name so that when androidboot.hardware
is not set in kernel cmdline, the init process
would still get the correct value of ro.hardware.
This eliminates the necessity of androidboot.hardware.
https://osdn.net/projects/android-x86/scm/git/system-core/commits/a3eb6a57bc0f217de30bb04de072eb20aecfae21
In short, if you are using an image built with that patch
(i.e., after Sep 23th), you don't need to set
androidboot.hardware in cmdline anymore.
Of course you can still add it but it must be
set correctly.
Note cm-13.0-x86-rc1 is the first released image
containing this patch. The 6.0-r1 is released earlier
so you still need to set androidboot.hardware correctly.
--
Chih-Wei
Android-x86 project
http://www.android-x86.org