summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* uml: add adb support, add eth0 script sepolicies am: b04b794438 am: ↵android-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-b4s4-releasepie-b4s4-devQuang Luong2017-08-036-0/+20
|\ | | | | | | | | | | | | | | f71ea7d194 am: 69360ba469 am: 275d215105 am: 23e15d7349 Change-Id: Ia2cf64598f6e26b3531820709fa658fce91a4e49
| * uml: add adb support, add eth0 script sepolicies am: b04b794438 am: ↵android-wear-8.0.0_r1android-p-preview-1android-o-mr1-iot-preview-7o-mr1-iot-preview-7Quang Luong2017-08-036-0/+20
|/| | | | | | | | | | | | | | | f71ea7d194 am: 69360ba469 am: 275d215105 Change-Id: If1f43e3ccfb13de0fce5d1536cc8b05d06b5bfa7
| * uml: add adb support, add eth0 script sepolicies am: b04b794438 am: f71ea7d194Quang Luong2017-08-036-0/+20
| |\ | | | | | | | | | | | | | | | am: 69360ba469 Change-Id: Ie8fb4dba9f289436442674e1f68798fa95acfdca
| | * uml: add adb support, add eth0 script sepolicies am: b04b794438Quang Luong2017-08-036-0/+20
| | |\ | | | | | | | | | | | | | | | | | | | | am: f71ea7d194 Change-Id: I06a872d107dc509c3669e0cf36de21e2a0ce3257
| | | * uml: add adb support, add eth0 script sepoliciesandroid-o-mr1-preview-2android-o-mr1-preview-1Quang Luong2017-08-036-0/+20
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: b04b794438 Change-Id: Ie42fb9b4c62bdc32e9677e08627e6282d9c55f98
| | | | * uml: add adb support, add eth0 script sepoliciesQuang Luong2017-08-036-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After running UML, it is now possible to connect with adb using $ adb connect 192.168.0.253 Added init.eth0.sh script to configure tuntap connection to host. Modified init.uml.rc to run init.eth0.sh on boot. Added SELinux rules for init.eth0.sh to run during init. === To run === Install UML utilities $ sudo apt-get install uml-utilities $ sudo mv /usr/lib/uml/uml_net /usr/bin/uml_net $ sudo chmod +x /usr/bin/uml_net Compile UML userspace $ . build/envsetup.sh $ lunch uml-userdebug $ make -j40 Compile UML Kernel on Android-4.9 branch $ ARCH=um SUBARCH=x86_64 scripts/kconfig/merge_config.sh arch/um/configs/x86_64_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config $ make ARCH=um SUBARCH=x86_64 CROSS_COMPILE= -j40 Run UML: $ ./vmlinux initrd=ramdisk.img ubda=system.img ubdb=userdata.img \ androidboot.hardware=uml mem=256M umid=uml eth0=tuntap,,,192.168.0.254 Connect with adb: $ adb connect 192.168.0.253 Test: manual Bug: 32523022 Change-Id: Iaafc0aa701ff7d777226168a078c0a3712a3e6b8 Signed-off-by: Quang Luong <qal@google.com>
* | | | | uml: initial revision am: 4f11280e3d am: 550354ab2c am: 5244a3f1b0oreo-mr1-devQuang Luong2017-07-187-0/+92
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f89f595f32 Change-Id: I5bbbd963c95636215cb20239aaf172e947fed593
| * | | | uml: initial revision am: 4f11280e3d am: 550354ab2cQuang Luong2017-07-187-0/+92
|/| | | | | |/ / / | | | | | | | | | | | | | | | | am: 5244a3f1b0 Change-Id: Ie11d49d6f11a609de5d91e31a1db5ff6fa2158c2
| * / / uml: initial revision am: 4f11280e3dQuang Luong2017-07-187-0/+92
|/| | | | |/ / | | | | | | | | | | | | am: 550354ab2c Change-Id: I6b6eeab323162717ed14576caead3ef1df8cc28f
| * / uml: initial revisionQuang Luong2017-07-187-0/+92
|/| | | |/ | | | | | | | | am: 4f11280e3d Change-Id: If3d4a5a3d3322da651059fff9f1b760aa3cc2922
| * uml: initial revisionQuang Luong2017-07-187-0/+92
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added AndroidProducts.mk, which tells the build system to find the uml makefile at uml.mk. BoardConfig.mk specifies system.img to consist only of the /system partition instead of the root. With CONFIG_BLK_DEV_INITRD=y in the kernel, it is possible to boot from ramdisk.img and mount /data and /system during init. TARGET_USER_MODE_LINUX enables uml-specific cflags. TARGET_USES_64_BIT_BINDER is set to true due to UML not supporting running 32-bit binaries in 64-bit mode. Added fstab.uml to mount /data, /system, and the host filesystem as a partition named /host. Since adb does not work with uml yet, an already mounted hostfs makes it convenient to transfer files to the uml system. Added init.uml.rc, which tells init to mount the contents of fstab.uml during the fs stage. Added basic uml.mk to inherit minimal packages from embedded.mk and copy init.uml.rc, fstab.uml, and surfaceflinger.rc into the system.img. Failing service surfaceflinger has been disabled by the inclusion of a custom surfaceflinger.rc file, which simply has `disabled' appended to it. Added vendorsetup.sh to add lunch combo uml-userdebug In order to run UML for Android, you must have built the um kernel with Android configs. To do this, run these commands from the kernel repository: $ ARCH=um SUBARCH=x86_64 scripts/kconfig/merge_config.sh arch/um/configs/x86_64_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config $ make ARCH=um SUBARCH=x86_64 CROSS_COMPILE= -j40 The output is an executable vmlinux binary. The command to run UML is: $ ./vmlinux initrd=ramdisk.img ubda=system.img ubdb=userdata.img androidboot.hardware=uml mem=256M umid=<umid> To halt the uml process, in another terminal, run `uml_mconsole <umid>' and supply the command `halt'. Test: manual Bug: 32523022 Change-Id: I4a1cd6ceb42831a995bbefd3dd8a6ca3596d65ea Signed-off-by: Quang Luong <qal@google.com>
* Initial empty repositoryRaul Enrique Vielma2017-06-200-0/+0