Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is bootloader, which can boot custom boot image even despite locked bootloader
C Assembly Perl
branch: master
Failed to load latest commit information.
hboot fix BOARD_GLOBAL_REG_PRM_BASE address
hbootmod
hbootuser support for comments in config file.
.gitgnore Fixed gitignore
README Added board setup for hbootmod and fixed memory map for 512 MB models

README

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
====================================================================================
Something went wrong with that request. Please try again.