Simulasikan Sotong dengan ukuran halaman 16KB pada x86-64

Halaman ini menunjukkan cara membuat dan memulai Sotong dengan dukungan ukuran halaman 16KB di x86-64 . Petunjuk di halaman ini mengasumsikan bahwa Sotong telah terinstal di mesin Anda. Untuk petunjuk pemasangannya, lihat Memasang Sotong .

Sinkronkan dan buat target halaman-agnostik

Bangun dan luncurkan Sotong dengan target halaman-agnostik:

$ mkdir main && cd main
$ repo init -u https://android.googlesource.com/platform/manifest -b main
$ repo sync -c -j32

# Build cf agnostic target.
$ source build/envsetup.sh
$ lunch aosp_cf_x86_64_phone_pgagnostic-trunk-userdebug
$ m

# Launch cf with a kernel with 16KB page size support.
$ launch_cvd
...
...
VIRTUAL_DEVICE_DISPLAY_POWER_MODE_CHANGED
virtio_input_hid_handle_status: unknown type 20
virtio_input_hid_handle_status: unknown type 20
virtio_input_hid_handle_status: unknown type 20
virtio_input_hid_handle_status: unknown type 20
Generating new secret with slot ID: 4
VIRTUAL_DEVICE_BOOT_STARTED
VIRTUAL_DEVICE_NETWORK_MOBILE_CONNECTED

Verifikasi ukuran halaman dan boot

Untuk memverifikasi ukuran halaman dan status boot:

  1. Akses shell sebagai root:

    $ adb root
    adbd is already running as root
    $ adb shell
    vsoc_x86_64_pgagnostic:/ #
    
  2. Verifikasi ukuran halaman dan status boot:

    vsoc_x86_64_pgagnostic::/ # getconf PAGE_SIZE
    16384
    vsoc_x86_64_pgagnostic::/ # getprop | grep sys.boot.completed
    sys.boot_completed: 1