This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
README
150 lines (110 loc) · 4.53 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
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
================================================================================