6

Where is the bootloader program on an Android phone stored ?

progammer
  • 147
  • 1
  • 3
  • 11

1 Answers1

12

The boot-loader code is stored within the /boot partition. Majority of Android handsets uses the Qualcomm's Boot Loader, called LK (Little Kernel), barring Samsung, which uses their own form of boot-code.

LK has the following:

  • Variety of nand devices for bootup

  • USB driver to enable upgrading images over usb during development

  • Keypad driver to enable developers enter ‘fastboot’ mode for image upgrades

  • Display driver for debugging and splash screen

  • Enable Android recovery image and image upgrades

This applies to only, Qualcomm chipsets hence the exemption of Samsung based handsets

There is a website blog that cites this from source

The actual source code, if anyone is curious enough, can be found on CodeAurora site. This is known as CAF, in which a lot of Qualcomm specific code for kernels can be found in.

As a side-note: Google releases source to AOSP, CAF, pulls from them, modifies it to make it fit within Qualcomm chipsets, then the Manufacturers pull those down and add their own bits, it is that for the reason there's, AOSP, CAF and CyanogenMod that are the main three flavours of Android.

The actual source code to the boot-loader can be found on CAF's git repository, and has not changed much, it can also be found in CyanogenMod's source, specifically in, /bootable/bootloader also.

t0mm13b
  • 13,436
  • 1
  • 48
  • 58
  • Do you know if CAF/LK would have been used for the nVidia chipset Nexus 7 (2012)? – Greg Jan 07 '14 at 06:30
  • @Greg have no idea as I have never owned a Nexus 7, nVidia - But having said that - there is AOSP sources available to download - might be worthwhile to do a repo sync and build the sources for the nakasi device, you will learn so much out of that. – t0mm13b Jan 07 '14 at 11:11
  • What's the difference between aboot and booloader (LK) ? Why is there a separate partition called /aboot in my device, instead of being in /boot itself? – Gokul NC May 01 '17 at 14:42
  • Is the AOSP stock bootloader available open source? I pulled AOSP and bootable/ contains only recovery/, not bootloader/. – sherrellbc Jul 27 '17 at 14:18