First Boot Config

Search This thread

thestreetdev

New member
Jan 31, 2023
2
0
Hey community. May be a dumb question for the experienced devs, but is there a way to configure the Android first boot options with a configuration file? Device would have a stock ROM. You can scan a QR/barcode which just has all the information needed for configuration, but can you accomplish this WITHOUT having to scan anything and without having to do an NFC bump?
 

jwoegerbauer

Senior Member
Dec 11, 2022
426
1
95
Freestate of Bavaria, Germany
What do you want to configure?

FYI:

When an Android device get powered on then 2 bootloaders are run: the 1st-stage bootloader and the 2nd-stage bootloader.

The 1st-stage bootloader does the following:
  • Setup the memory segments and stack used by the bootloader code
  • Reset the disk system
  • Find the 2nd-stage boot loader in the FAT directory
  • Read the 2nd-stage boot loader image into memory
  • Transfer control to the 2nd-stage bootloader
The 2nd-stage bootloader does the following:
  • Copy the boot sector data bytes to a local memory area, as they will be overwritten
  • Find the kernel image
  • Read the kernel image into memory
  • Reset the disk system
  • Enable the A20 line
  • Setup the interrupt descriptor table
  • Setup the global descriptor table
  • Load the descriptor tables into the CPU
  • Switch to protected mode
  • Clear the prefetch queue
  • Setup protected mode memory segments and stack for use by the kernel code
  • Transfer control to the kernel code using a long jump
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,720
5
1,641
gitlab.com
What do you want to configure?

FYI:

When an Android device get powered on then 2 bootloaders are run: the 1st-stage bootloader and the 2nd-stage bootloader.

The 1st-stage bootloader does the following:
  • Setup the memory segments and stack used by the bootloader code
  • Reset the disk system
  • Find the 2nd-stage boot loader in the FAT directory
  • Read the 2nd-stage boot loader image into memory
  • Transfer control to the 2nd-stage bootloader
The 2nd-stage bootloader does the following:
  • Copy the boot sector data bytes to a local memory area, as they will be overwritten
  • Find the kernel image
  • Read the kernel image into memory
  • Reset the disk system
  • Enable the A20 line
  • Setup the interrupt descriptor table
  • Setup the global descriptor table
  • Load the descriptor tables into the CPU
  • Switch to protected mode
  • Clear the prefetch queue
  • Setup protected mode memory segments and stack for use by the kernel code
  • Transfer control to the kernel code using a long jump

lol are you talking about Intel 386 PC? do you have any clue what you're talking about?
:sneaky::poop::LOL:
 

thestreetdev

New member
Jan 31, 2023
2
0
Thanks for the replies.

with stock ROM no way. you need provisioned ROM for Zero-touch enrollment.
https://support.google.com/work/android/answer/9566881
Understood. I was hoping there was a way I was unaware of to stream the same information that's in the QR code without scanning the QR code.

What do you want to configure?

FYI:

When an Android device get powered on then 2 bootloaders are run: the 1st-stage bootloader and the 2nd-stage bootloader.

The 1st-stage bootloader does the following:
  • Setup the memory segments and stack used by the bootloader code
  • Reset the disk system
  • Find the 2nd-stage boot loader in the FAT directory
  • Read the 2nd-stage boot loader image into memory
  • Transfer control to the 2nd-stage bootloader
The 2nd-stage bootloader does the following:
  • Copy the boot sector data bytes to a local memory area, as they will be overwritten
  • Find the kernel image
  • Read the kernel image into memory
  • Reset the disk system
  • Enable the A20 line
  • Setup the interrupt descriptor table
  • Setup the global descriptor table
  • Load the descriptor tables into the CPU
  • Switch to protected mode
  • Clear the prefetch queue
  • Setup protected mode memory segments and stack for use by the kernel code
  • Transfer control to the kernel code using a long jump
I wanted to configure the first boot options without using my hands to scan a code or to tap through options and without using a zero touch reseller. Was hoping for some way to sideload that configuration.