हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main के बजाय android-latest-release का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, GBL बाइनरी को डिप्लॉय करने का तरीका बताया गया है.
बूट फ़र्मवेयर से जुड़ी ज़रूरी शर्तें
GBL का इस्तेमाल करने के लिए, बूट फ़र्मवेयर को ये शर्तें पूरी करनी होंगी:
UEFI के साथ काम करना. फ़र्मवेयर में ज़रूरी UEFI प्रोटोकॉल लागू होने चाहिए और उनका इस्तेमाल किया जाना चाहिए. फ़र्मवेयर में, तय किए गए यूईएफ़आई प्रोटोकॉल का इस्तेमाल करके, वेंडर के हिसाब से एक्सटेंशन की अनुमति भी होनी चाहिए.
सुरक्षा. फ़र्मवेयर में Android के वेरिफ़ाइड बूट (एवीबी) के सभी पहलुओं को लागू करना ज़रूरी है. इससे यह पक्का होता है कि सिर्फ़ पुष्टि की गई इमेज लोड की जाएं.
बूट मोड. बाइनरी, अलग-अलग बूट मोड को हैंडल कर सकती होनी चाहिए. जैसे, सामान्य बूट, रिकवरी बूट, और फ़ास्टबूट.
डाइनैमिक पार्टिशनिंग. बूट फ़र्मवेयर में स्लॉट चुनने का लॉजिक लागू करना ज़रूरी है, ताकि वह सही A/B बूट स्लॉट को पढ़ सके. साथ ही, सुपर में डाइनैमिक पार्टीशन और उपयोगकर्ता डेटा के साथ काम कर सके.
ओएस कॉन्फ़िगरेशन. फ़र्मवेयर में, डिवाइस को बूट करने के लिए ज़रूरी OEM कस्टमाइज़ेशन के साथ, कर्नेल कमांड लाइन, डिवाइस ट्री (डीटीबी), और bootconfig में बदलाव करने की सुविधा होनी चाहिए.
सुरक्षित वर्चुअल मशीन लोड हो रही है. सुरक्षित वर्चुअल मशीनों की मौजूदगी में, बाइनरी को Android कर्नेल से पहले, पहले से पुष्टि किए गए सुरक्षित वर्चुअल मशीन फ़र्मवेयर को सही तरीके से लोड करना चाहिए. ज़्यादा जानकारी के लिए, Microdroid बूट क्रम देखें.
मेमोरी मैनेज करना. बूट फ़र्मवेयर में, UEFI मेमोरी ऐलोकेशन एपीआई का इस्तेमाल किया जाना चाहिए.
साथ काम करने की सुविधा और पुराने सिस्टम के साथ काम करने की सुविधा. फ़र्मवेयर, अलग-अलग वेंडर और SoC वाले डिवाइसों पर काम करना चाहिए. साथ ही, यह उस Android वर्शन के साथ काम करना चाहिए जिस पर इसे डिवाइस में इंस्टॉल किया गया है.
बूट फ़र्मवेयर के लिए सहायता
पिछले सेक्शन में दी गई ज़रूरी शर्तों को पूरा करने के लिए, ये बदलाव किए गए हैं. इनके बाद, GBF के साथ ये UEFI फ़र्मवेयर काम करते हैं:
EDK2 (Tianocore). EDK2, ओपन-सोर्स UEFI लागू करने का एक लोकप्रिय तरीका है. EDK2 पर आधारित बूटलोडर के लिए, GBL की सहायता ज़रूरी है. साथ ही, UEFI की सहायता पहले से मौजूद है.
U-Boot. यह एक ऐसा ज़रूरी और बड़े पैमाने पर इस्तेमाल किया जाने वाला ओपन-सोर्स बूटलोडर प्रोजेक्ट है जो GBL के इस्तेमाल के लिए, UEFI के साथ काम करता है.
LittleKernel (LK). ओपन सोर्स वाला बूटलोडर, जिसका इस्तेमाल कुछ वेंडर करते हैं.
GBL चलाना
GBL बाइनरी को पहले से बनाया जा सकता है और उसे चलाया जा सकता है. इसके अलावा, अपनी पसंद के मुताबिक बाइनरी बनाई जा सकती है और उसे चलाया जा सकता है.
GBL बाइनरी को डाउनलोड और चलाना
GBL को एक EFI ऐप्लिकेशन बाइनरी के तौर पर डिस्ट्रिब्यूट किया जाता है. Android के स्टैंडर्ड अपडेट करने के तरीके का इस्तेमाल करके, इस बाइनरी को डिवाइस के बेस फ़र्मवेयर से अलग से अपडेट किया जा सकता है.
अगर Android 16 के बाद, ARM-64 चिपसेट पर आधारित डिवाइस शिप किया जाता है, तो हमारा सुझाव है कि आप GBL का Google से साइन किया गया नया वर्शन डिप्लॉय करें और उसे अपनी बूट चेन में इंटिग्रेट करें.
GBL बनाना और चलाना
GBL बनाने और चलाने के लिए:
पुष्टि करें कि आपके पास repo टूल और Bazel बूटस्ट्रैप इंस्टॉल है:
sudo apt install repo bazel-bootstrap
uefi-gbl-mainline मेनिफ़ेस्ट फ़ाइल का इस्तेमाल करके, सोर्स कंट्रोल के लिए अपनी मौजूदा डायरेक्ट्री को शुरू करें:
अगर आपका कोई सवाल है, तो GBL टीम से संपर्क करें. इसके लिए, android-gbl@google.com पर ईमेल भेजें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (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-27 (UTC) को अपडेट किया गया."],[],[],null,["# Deploy GBL\n\nThis page explains how to deploy the GBL binary.\n\nBoot firmware requirements\n--------------------------\n\nTo use GBL, the boot firmware must meet the following requirements:\n\n- UEFI compliance. The firmware must implement and use the\n required UEFI protocols. The firmware must also allow for vendor-specific\n extensions using defined UEFI protocols.\n\n- Security. The firmware must implement all aspects of Android\n Verified Boot (AVB), ensuring only authenticated images are loaded.\n\n- Boot modes. The binary should be able to handle various boot modes, such as normal boot, recovery boot, and fastboot.\n\n- Dynamic partitioning. The boot firmware must implement slot selection logic so\n that it supports reading the correct A/B boot slot and is compatible with\n dynamic partitions and userdata in super.\n\n- OS configuration. The firmware must be capable of modifying the kernel\n command line, device tree (DTB), and bootconfig with OEM customizations\n needed to boot the device.\n\n- Protected VM loading. The binary should correctly load preverified protected\n VM firmware before the Android kernel in the presence of protected VMs. For\n further information, see Microdroid [boot sequence](/docs/core/virtualization/microdroid#boot-sequence).\n\n- Memory management. The boot firmware must support the UEFI memory allocation\n API.\n\n- Compatibility and backward compatibility. The firmware should work on devices\n with different vendor, SOCs, and maintain backward compatibility with the\n corresponding Android version.\n\n### Boot firmware support\n\nWith the modifications necessary to support requirements in the previous\nsection, the following UEFI firmware implementations work with the GBF:\n\n- [EDK2 (Tianocore)](https://github.com/tianocore/edk). A EDK2 is a popular open-source UEFI implementation. GBL support is needed for EDK2-based bootloaders, and UEFI support is already present.\n- [U-Boot](https://docs.u-boot.org/en/latest/). A flexible and widely used open-source bootloader project that is gaining UEFI compatibility for GBL usage.\n- [LittleKernel (LK)](https://github.com/littlekernel/lk). An open-source bootloader used by some vendors.\n\nRun GBL\n-------\n\nYou can obtain a prebuilt GBL binary to run or build your own and run it.\n\n### Obtain and run the GBL binary\n\nGBL is distributed as a single EFI app binary. You can update this\nbinary independently from the device's base firmware using Android's standard\nupdate mechanism.\n\nBeginning with Android 16, if you ship a device based\non ARM-64 chipset, we strongly recommend that you deploy the [latest\nGoogle-signed version](https://dl.google.com/android-gbl/android16/20250703/signed-gbl-img-13709664.zip) of GBL and integrate it into your boot chain.\n\n### Build and run the GBL\n\nTo build and run the GBL:\n\n1. Verify that you have the repo tool and Bazel bootstrap installed:\n\n sudo apt install repo bazel-bootstrap\n\n2. Initialize your current directory for source control using the `uefi-gbl-mainline` manifest file:\n\n repo init -u https://android.googlesource.com/kernel/manifest -b uefi-gbl-mainline\n repo sync -j16\n\n3. Build the EFI app:\n\n ./tools/bazel run //bootable/libbootloader:gbl_efi_dist --extra_toolchains=@gbl//toolchain:all\n\n4. Run the EFI app within Cuttlefish:\n\n cvd start --android_efi_loader=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003epath_to_the_EFI_app\u003c/span\u003e\u003c/var\u003e ...\n\n Instead of booting Android directly, this `cvd start` command uses the EFI\n app to boot Android.\n\n| **Note:** For x86 platform, use the EFI image built for x86_64.\n\nFile bugs and contact the bootloader team\n-----------------------------------------\n\nTo report a bug for the GBL, navigate to the\n[Android Generic Bootloader component in Buganizer](https://issuetracker.google.com/issues/new?component=1602063&template=2011730).\n\nFor questions, contact the GBL team, send an email to `android-gbl@google.com`."]]