Skip to content

m27frogy/a500_bootmenu

 
 

Repository files navigation

Bootmenu application for A500 patched ICS bootloader featuring booting from EXT4FS and extended fastboot commands.

================================================================================
Fastboot variables:
================================================================================

fastboot getvar id-bootloader
- returns ID of the bootloader

fastboot getvar version-bootloader
- returns version of the bootloader

fastboot getvar version-baseband
- returns version of the baseband

fastboot getvar version-android
- returns version of android (from APP:/build.prop)

fastboot getvar version
- returns fastboot protocol version

fastboot getvar secure
- returns "NOPE.AVI", "NO", "NEVER", etc. :-P

fastboot getvar mid
- returns mid

fastboot getvar serialno
- returns serial number

fastboot getvar wifi-only
- returns whether the tablet is A500 or A501

fastboot getvar boot-image-id
- returns current boot image as a number (0 - LNX partition, 1 - second entry, 2 - third entry etc., last - last entry)

fastboot getvar next-boot-image-id
- returns next boot image as a number (0 - LNX partition, 1 - second entry, 2 - third entry etc., unset - default entry)

fastboot getvar boot-image-name
- returns current boot image as a name

fastboot getvar boot-file
- returns path to menu.skrilax in BL format

fastboot getvar debug-mode
- returns ON/OFF depending on whether debug mode is toggled or not

fastboot getvar forbid-ext
- returns ON/OFF depending on whether EXTFS booting is forbidden

fastboot getvar show-fb-rec
- return ON/OFF depending on whether showing recovery and fastboot on the selection screen

================================================================================
Fastboot oem commands:
================================================================================

fastboot oem sbk
- displays your sbk on the screen

fastboot oem set-boot-image %d|last
- sets default boot image (0 - LNX partition, 1 - second entry, 2 - third entry etc., last - last entry)

fastboot oem set-next-boot-image %d|unset
- sets next boot image (0 - LNX partition, 1 - second entry, 2 - third entry etc., unset - unset)

fastboot oem set-boot-file %s
- sets the path to menu.skrilax file in BL format (see below)

fastboot oem set-debug-mode on|off
- toggles debug on or off for cmdline

fastboot oem set-forbid-ext on|off
- whether to allow EXTFS booting or not (for cases of corrupted filesystem and unability to boot)

fastboot oem set-show-fb-rec on|off
- whether to show recovery and fastboot in the boot selection screen

fastboot oem all-vars
- print all variables

fastboot oem lock
- ...

fastboot oem unlock
- yep, it's already unlocked

================================================================================
Bootloader path format:
================================================================================
The structure is "PARTITION:path_in_filesystem". PARTITION is three letters, this is the usual layout:

SOS     mmcblk0p1     recovery
LNX     mmcblk0p2     boot
APP     mmcblk0p3     system
CAC     mmcblk0p4     cache
MSC     mmcblk0p5     misc
FLX     mmcblk0p6     flexrom
AKB     mmcblk0p7     secboot
UDA     mmcblk0p8     userdata

(for my own repartition purposes, I've also added UBN for ubuntu, fastboot flashes that with "linux").
If you want to specify a file as /system/boot/menu.lst from Android, BL format would be APP:/boot/menu.skrilax.

================================================================================
Example menu.skrilax file:
================================================================================
; commentary is prefixed with ';'
; .ini file structure

; First, three possibilities to boot from partitions

; LNX - primary image (always present, can specify title only)
[LNX]
title=Android

; AKB - secondary image (will not show if property AKB partition doesn't hold android images)
[AKB]
title=LUbuntu

; SOS - recovery image (will show if it's set by user)
title=CWM

; Properties for EXTFS booting
;
; title - text to show in menu
; cmdline - override cmdline (prefixing with @ will make the bootloader append the cmdline to the default one)
;
; Then there are two possibilities:
;
; A) boot android image
; android - path to android image (will be used if present)
;
; B) boot zImage with ramdisk (optional)
; zImage - path to zImage
; ramdisk - path to ramdisk (optional)

; First entry
[BOOT1]
title=EXT4FS Boot 1
android=UBN:/boot/boot.img

; Second entry
[BOOT2]
title=EXT4FS Boot 2
zImage=UBN:/boot/zImage
ramdisk=UBN:/boot/ramdisk

================================================================================

About

Bootmenu application for Acer A500 Bootloader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.1%
  • Assembly 7.3%
  • Makefile 1.6%