From dc7d11177a9e1182d21191a2aab4a4caa9319359 Mon Sep 17 00:00:00 2001 From: Huang weiliang Date: Mon, 25 Mar 2024 21:41:29 -0400 Subject: [PATCH] Update 2022-09-30-qemu-android-kernel.md --- _posts/2022-09-30-qemu-android-kernel.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/_posts/2022-09-30-qemu-android-kernel.md b/_posts/2022-09-30-qemu-android-kernel.md index ee7da0b983..7918283ebd 100644 --- a/_posts/2022-09-30-qemu-android-kernel.md +++ b/_posts/2022-09-30-qemu-android-kernel.md @@ -48,6 +48,7 @@ It can be downloaded from https://releases.linaro.org/components/toolchain/binar For example, we put the toolchain under folder /media/data-nvm/temp/rootfs/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu, then run below commands: + ~~~ export PATH=/media/data-nvm/temp/rootfs/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin:$PATH export ARCH=arm64 @@ -63,6 +64,7 @@ make menuconfig ~~~ Compile busybox: + ~~~ make make install @@ -72,7 +74,7 @@ cp -ar gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/ ~~~ Create rootfs -1. + ~~~ cd _install mkdir dev etc lib sys proc tmp var home root mnt @@ -86,7 +88,8 @@ vi etc/profile LD_LIBRARY_PATH=/lib:/usr/lib:$LD_LIBRARY_PATH export PATH LD_LIBRARY_PATH ~~~ - 2. + + ~~~ vi etc/inittab ::sysinit:/etc/init.d/rcS @@ -94,7 +97,8 @@ vi etc/inittab ::askfirst:-/bin/sh ::ctrlaltdel:/bin/umount -a -r ~~~ -3. + + ~~~ vi etc/fstab #device mount-point type options dump fsck order @@ -105,7 +109,8 @@ vi etc/fstab debugfs /sys/kernel/debug debugfs defaults 0 0 kmod_mount /mnt 9p trans=virtio 0 0 ~~~ - + + ~~~ vi etc/fstab #device mount-point type options dump fsck order