Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release вместо aosp-main для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Имитация каракатицы с размером страницы 16 КБ на x86_64
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Для этой установки требуется хост Linux x86_64 . На этой странице показано, как собрать и запустить Cuttlefish с поддержкой размера страницы 16 КБ на x86_64 . Инструкции на этой странице предполагают, что пакеты Cuttlefish установлены на вашем компьютере. Инструкции по их установке см. в шаге 1 раздела Установка Cuttlefish .
Вы можете запустить Cuttlefish, либо загрузив готовые артефакты непосредственно с сайта Android Continuous Integration, либо собрав их из AOSP, если вам необходимо изменить исходный код.
Реализация ядра
Поддержка эмуляции страниц x86_64 размером 16 КБ добавлена в Android 14 6.6 GKI в серии патчей page_size_emulation . Передача page_shift=14 в командной строке включает эту эмуляцию. Цели x86_64 с суффиксом _16k (или старые цели с суффиксом _pgagnostic ), такие как aosp_cf_x86_64_phone_pgagnostic , передают этот параметр по умолчанию и работают в режиме 16 КБ по умолчанию.
Запустите Cuttlefish, загрузив артефакты
Перейдите на сайт Android Continuous Integration и введите aosp-main-throttled в качестве имени ветки. Щелкните последнюю сборку для цели aosp_cf_x86_64_only_phone_pgagnostic . Теперь следуйте инструкциям из шага 5 раздела Установка Cuttlefish .
Запуск Cuttlefish путем сборки из AOSP
Создайте и запустите Cuttlefish с целевой платформой, не зависящей от страницы:
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-29 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"]]