Skip to content

This is bootloader, which can boot custom boot image even despite locked bootloader

Notifications You must be signed in to change notification settings

ProjectLense/2ndboot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2nd-boot project

Compilation notes:
hbootmod:
- Compiled as a module for stock kernel
- "make modules M=path_to_module ARCH=arm CROSS_COMPILE=cross_compiler_prefix EXTRA_CFLAGS=-Dboard_type"

- Board is required to be specified as we have board specific setup, currently implemented
  BOARD_UMTS_SHOLES     - Motorola Milestone
  BOARD_JORDAN          - Motorola Defy(+)
  BOARD_UMTS_MILESTONE2 - Motorola Milestone 2

hboot:
- Compiled as a embedded binary
- output_directory is optional parameter
- "make O=output_directory CROSS_COMPILE=cross_compiler_prefix EXTRA_CFLAGS=-Dboard_type"
- NOTE: You can name the script with the values as "bmake", which is in .gitignore
  
- Board is required to be specified as we have board specific setup, currently implemented
  BOARD_UMTS_SHOLES     - Motorola Milestone

hbootuser:
- Compiled as a normal Android binary

Running 2nd-boot:
- all files are considered to be in /system/etc/2nd-boot for the example
- when inserting the module, emu_uart parameter is optional and specifies the baudrate

SCRIPT:
====================================================================================
insmod /system/etc/2nd-boot/hbootmod.ko [emu_uart=115200]
mknod /dev/hbootctrl c `cat /proc/devices | grep hboot | awk '{print $1}' ` 0
/system/etc/2nd-boot/hbootuser /system/etc/2nd-boot/hboot.cfg 
====================================================================================

hboot.cfg
====================================================================================
0 file /system/etc/2nd-boot/hboot.bin
1 file /system/etc/2nd-boot/zImage
2 file /system/etc/2nd-boot/ramdisk
3 file /system/etc/2nd-boot/devtree
4 file /system/etc/2nd-boot/cmdline
====================================================================================

About

This is bootloader, which can boot custom boot image even despite locked bootloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published