Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Solved Implementation of the fastboot protocol

    General Sony related developer discussions
    3
    5
    9418
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • AbelChT
      AbelChT last edited by

      Hi,
      I have two questions related to the fastboot protocol.

      How is it integrated into the boot process of the phone?
      For example in a PC with bios and with Linux, the boot process starts with the BIOS, then takes place the bootloader, then the Linux kernel, etc.

      I expect that in an Android smartphone, the fastboot take place before the bootloader, but I would like to clarify it.

      The second question is related to how is it stored in the device. Is it flashed in a ROM (read-only memory) in the phone, or is stored in the internal memory?

      If it is device dependant, the device I am using for development is an Xperia T3.

      Any help is appreciated.

      1 Reply Last reply Reply Quote
      • D
        devjerpelea DeveloperWorld last edited by devjerpelea

        Hello,

        Thanks for the question

        Here is a good explanation what fastboot is
        https://www.androidcentral.com/android-z-what-fastboot

        and a good diagram for the boot process
        https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/The-Android-Booting-process/ta-p/1129182

        Best regards
        Alin

        AbelChT 1 Reply Last reply Reply Quote
        • AbelChT
          AbelChT @devjerpelea last edited by

          @Jerpelea-Alin

          Hi,
          Thanks for your quick response.

          The links that you shared with me helped me, but I still have some doubts.

          I have read these two posts where the boot process is explained more in detail:

          • https://forum.xda-developers.com/t/info-boot-process-android-vs-linux.3785254/
          • http://newandroidbook.com/Articles/aboot.html

          In the first one, it says that if we want to enter fastboot mode, it is the android bootloader (aboot) the one in charge of doing this operation.

          If I am not wrong, this means that if I corrupt the boot partition when installing a new kernel, I will be able to recover my phone via fastboot or using the Flash tool (https://developer.sony.com/develop/open-devices/get-started/flash-tool/). Is it correct?

          I take this opportunity to ask another question.
          From what I have read, if I unlock the bootloader some proprietary blobs are erased. If I use the flash tool to recover a stock image after unlocking the bootloader, will I recover these blobs?

          Best regards

          1 Reply Last reply Reply Quote
          • D
            devjerpelea DeveloperWorld last edited by

            Hi AbelChT,

            The fastboot/flash mode are stored on a partition that is not available to users and should be fairly safe to assume that if you follow the guides provided on our website there will not be any issue.

            The kernel (boot.img & recovery.img) is stored on separate partitions and even if you flash a broken kernel/OS you can always go to the fastboot (blue light) / flash (green light) mode to recover your device. You can always use the flashtool to flash the Sony image and recover from a bad OS update if your custom ROM does not boot.

            Please note that during the unlock process the userdata is wiped.

            Best regards
            Alin

            dmelnik3289 1 Reply Last reply Reply Quote
            • dmelnik3289
              dmelnik3289 Banned @devjerpelea last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote
              • First post
                Last post
              Developer World
              Copyright © 2021 Sony Group Corporation. All rights reserved.
              • Contact us
              • Legal