Nice work!
2017-06-20 15:16 GMT+08:00 KenOokamiHoro <
kenook...@gmail.com>:
> Hello, everyone. I'm trying to make Android-x86 work on my Surface Book.
>
> I opened NVM Express Block Device Support in kernel config ( BLK_DEV_NVME =y
> )
>
> Though installation program will back to select partition when selected a
> NVMe partition (/dev/nvme0n1p*)
> In initrd.img :
> for device in ${ROOT:-/dev/[hmsv][dmr][0-9a-z]*}; do
> check_root $device && break 2
> mountpoint -q /mnt && umount /mnt
> done
> So it will not find root in NVMe disks like /dev/nvme0 ......
>
> ( I used a dirty way (duplicate this code and change
> ${ROOT:-/dev/[hmsv][dmr][0-9a-z]*} to ${ROOT:-/dev/nvme0n[0-9]p[0-9a-z]*} )
> to make it works now......
I'll address that in the next release.
> Surface Book' s touchscreen need external firmware to work (
>
https://github.com/ipts-linux-org/ipts-linux-new ) , so I tried to patch to
> Android x86's kernel:
>
> I compared ipts's source and linux 4.9rc3 ( ipts's work is based in this
> version ) and make a patch file ( "touchpath.patch" in attachment ) and
> patched it to kernel.
> I opened Intel Precise Touch & Stylus in kernel config ( CONFIG_INTEL_IPTS=m
> ) , because I tried to use CONFIG_INTEL_IPTS=y to compile and got a error.
> LD init/built-in.o
> drivers/built-in.o: In function `ipts_open_gpu':
> (.text+0x1343c2): undefined reference to `intel_ipts_connect'
> drivers/built-in.o: In function `ipts_close_gpu':
> (.text+0x134435): undefined reference to `intel_ipts_disconnect'
>
> I successed when use CONFIG_INTEL_IPTS=m :
> Kernel: arch/x86/boot/bzImage is ready (#4)
> MODPOST 2349 modules
> LD [M] drivers/gpu/drm/i915/i915.ko
> CC drivers/misc/ipts/intel-ipts.mod.o
> LD [M] drivers/misc/ipts/intel-ipts.ko
>
> So I encountered a question about how to load it .
The simplest way is to build an new iso in android-x86 tree
with your patched kernel.
The module should be auto-loaded on booting
if your device does match with it.
If not, that usually means the driver misses
some alias settings. In the case you can
load it by modprobe as usual:
modprobe intel-ipts
> And is there a way to edit initrd and /system partition and build it ? (
> I've view our website but I found how to custom kernel only.)
Basically you don't need to modify that
if you build the iso as described above.
If you really want to modify initrd maually,
it's easy to find the instructions by google.
To modify /system, just install it as read-write.
> PS : English is not my native language; please excuse typing or grammer
> errors , and notify me If I'am walking on a wrong way.
>
> Thanks everyone :-)
--
Chih-Wei
Android-x86 project
http://www.android-x86.org