Od 27 marca 2025 r. zalecamy używanie android-latest-release zamiast aosp-main do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Symulowanie Cuttlefish z rozmiarem strony 16 KB na x86_64
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ta konfiguracja wymaga hosta x86_64 Linux. Na tej stronie znajdziesz instrukcje kompilowania i uruchamiania Cuttlefish z obsługą stron o rozmiarze 16 KB na x86_64. Instrukcje na tej stronie zakładają, że na maszynie są zainstalowane pakiety Cuttlefish. Instrukcje instalacji znajdziesz w 1 kroku w artykule Instalowanie Cuttlefish.
W Androidzie 14 6.6 dodano obsługę emulacji x86_64 stron 16 KB w GKI w ramach serii poprawek page_size_emulation.
Przekazywanie parametru page_shift=14 w wierszu poleceń umożliwia tę emulację.
Docelowe x86_64 z sufiksem _16k (lub stare docelowe z sufiksem _pgagnostic), takie jak aosp_cf_x86_64_phone_pgagnostic, domyślnie przekazują tę opcję i działają domyślnie w trybie 16 KB.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# Simulate Cuttlefish with 16 KB page size on x86_64\n\nThis setup requires an `x86_64` Linux host. This page shows how to build and\nstart Cuttlefish with 16 KB page size support on `x86_64`. The instructions on\nthis page assume that Cuttlefish packages are installed in your machine. For\ninstructions to install them, see Step 1 of [Install Cuttlefish](/docs/devices/cuttlefish/get-started#launch).\n\nYou can launch Cuttlefish by either [downloading the prebuilt artifacts](#download-build-artifacts) directly from the Android Continuous Integration\nsite or [build them from AOSP](#sync-build) if you need to modify the source\ncode.\n| **Important:** Cuttlefish with 16 KB page size support on x86_64 simulates a 16 KB page size kernel and userspace due x86_64 arch does not support 16 KB page size.\n\nKernel implementation\n---------------------\n\nSupport for emulating `x86_64` 16 KB pages is added in the Android 14 6.6\nGKI in the\n[`page_size_emulation` patch series](https://android-review.googlesource.com/q/hashtag:page_size_emulation).\nPassing `page_shift=14` on the command-line enables this emulation.\n`x86_64` targets with the `_16k` suffix (or old targets with the `_pgagnostic`\nsuffix), such as `aosp_cf_x86_64_phone_pgagnostic`, pass this option by\ndefault and work in 16 KB mode by default.\n\nLaunch Cuttlefish by downloading the artifacts\n----------------------------------------------\n\nNavigate to [Android Continuous Integration site](https://ci.android.com) and\nenter `aosp-main-throttled` as the branch name. Click the latest build for the\n`aosp_cf_x86_64_only_phone_pgagnostic` target. Now, follow the instructions from\nStep 5 of [Install Cuttlefish](/docs/devices/cuttlefish/get-started#launch).\n\nLaunch Cuttlefish by building from AOSP\n---------------------------------------\n\nBuild and launch Cuttlefish with a page-agnostic target: \n\n $ mkdir android-latest-release && cd android-latest-release\n $ repo init -u https://android.googlesource.com/platform/manifest -b android-latest-release\n $ repo sync -c -j32\n\n # Build cf agnostic target.\n $ source build/envsetup.sh\n $ lunch aosp_cf_x86_64_only_phone_pgagnostic-aosp_current-userdebug\n $ m\n\n # Launch cf with a kernel with 16 KB page size support.\n $ launch_cvd\n ...\n ...\n VIRTUAL_DEVICE_DISPLAY_POWER_MODE_CHANGED\n virtio_input_hid_handle_status: unknown type 20\n virtio_input_hid_handle_status: unknown type 20\n virtio_input_hid_handle_status: unknown type 20\n virtio_input_hid_handle_status: unknown type 20\n Generating new secret with slot ID: 4\n VIRTUAL_DEVICE_BOOT_STARTED\n VIRTUAL_DEVICE_NETWORK_MOBILE_CONNECTED\n\nVerify page size and boot\n-------------------------\n\nTo verify page size and boot status:\n\n1. Access the shell as root:\n\n $ adb root\n adbd is already running as root\n $ adb shell\n vsoc_x86_64_pgagnostic:/ #\n\n2. Verify page size and boot status:\n\n vsoc_x86_64_pgagnostic::/ # getconf PAGE_SIZE\n 16384\n vsoc_x86_64_pgagnostic::/ # getprop | grep sys.boot.completed\n sys.boot_completed: 1"]]