Project

General

Profile

GTI9100Bootloader » History » Version 10

Denis 'GNUtoo' Carikli, 06/27/2021 03:36 PM
commands help: add missing linebreaks to separate commands

1 1 Denis 'GNUtoo' Carikli
h1. GTI9100Bootloader
2
3 9 Denis 'GNUtoo' Carikli
{{toc}}
4
5 3 Denis 'GNUtoo' Carikli
h2. Boot log
6 1 Denis 'GNUtoo' Carikli
7
<pre>
8
Thanks for using picocom
9
[gnutoo@primarylaptop ~]$ picocom -b 115200 /dev/ttyUSB0 
10
picocom v3.1
11
12
port is        : /dev/ttyUSB0
13
flowcontrol    : none
14
baudrate is    : 115200
15
parity is      : none
16
databits are   : 8
17
stopbits are   : 1
18
escape is      : C-a
19
local echo is  : no
20
noinit is      : no
21
noreset is     : no
22
hangup is      : no
23
nolock is      : no
24
send_cmd is    : sz -vv
25
receive_cmd is : rz -vv -E
26
imap is        : 
27
omap is        : 
28
emap is        : crcrlf,delbs,
29
logfile is     : none
30
initstring     : none
31
exit_after is  : not set
32
exit is        : no
33
34
Type [C-a] [C-h] to see available commands
35
Terminal ready
36
37
Welcome to Samsung Primitive Bootloader.
38
build time: May  8 2012 19:31:07
39
current time: fe/1f/7 3f:77:31
40
41
[set_mmc_ocr] Sector Mode
42
[hsmmc_init] MMC card is detected
43
Product Name : VYL00M
44
<display_card_info:1009> ext_csd
45
<display_card_info:1011>card_size: 15028
46
 Total Card Size: 15029 MByte
47
48
mmc_init: card initialization completed!
49
pbl found bootable sbl in #53248.
50
jump to sbl 0x4d400000.
51
52
Secondary Bootloader v3.1 version.
53
Copyright (C) 2011 System S/W Group. Samsung Electronics Co., Ltd.
54
Board: C1 REV 02 / May  8 2012 19:31:13
55
current time: fe/1f/7 3f:77:31
56
57
booting code=0xc0c0c0c0
58
[set_mmc_ocr] Sector Mode
59
[hsmmc_init] MMC card is detected
60
Product Name : VYL00M
61
CID:150100 56594c30 304d19da b33abb8e
62
<display_card_info:1046> ext_csd
63
<display_card_info:1048>card_size: 15028
64
 Total Card Size: 15029 MByte
65
66
 Total Sector Count: 30777344
67
68
MoviNand Initialization Complete!
69
===== PARTITION INFORMATION =====
70
 ID         : GANG (0x0)
71
 DEVICE     : MMC
72
 FIRST UNIT : 0
73
 NO. UNITS  : 0
74
=================================
75
 ID         : BOOT (0x1)
76
 DEVICE     : MMC
77
 FIRST UNIT : 0
78
 NO. UNITS  : 0
79
=================================
80
 ID         : EFS (0x4)
81
 DEVICE     : MMC
82
 FIRST UNIT : 8192
83
 NO. UNITS  : 40960
84
=================================
85
 ID         : SBL1 (0x2)
86
 DEVICE     : MMC
87
 FIRST UNIT : 49152
88
 NO. UNITS  : 2560
89
=================================
90
 ID         : SBL2 (0x3)
91
 DEVICE     : MMC
92
 FIRST UNIT : 53248
93
 NO. UNITS  : 2560
94
=================================
95
 ID         : PARAM (0x5)
96
 DEVICE     : MMC
97
 FIRST UNIT : 57344
98
 NO. UNITS  : 16384
99
=================================
100
 ID         : KERNEL (0x6)
101
 DEVICE     : MMC
102
 FIRST UNIT : 73728
103
 NO. UNITS  : 16384
104
=================================
105
 ID         : RECOVERY (0x7)
106
 DEVICE     : MMC
107
 FIRST UNIT : 90112
108
 NO. UNITS  : 16384
109
=================================
110
 ID         : CACHE (0x8)
111
 DEVICE     : MMC
112
 FIRST UNIT : 106496
113
 NO. UNITS  : 204800
114
=================================
115
 ID         : MODEM (0x9)
116
 DEVICE     : MMC
117
 FIRST UNIT : 311296
118
 NO. UNITS  : 32768
119
=================================
120
 ID         : FACTORYFS (0xa)
121
 DEVICE     : MMC
122
 FIRST UNIT : 344064
123
 NO. UNITS  : 1048576
124
=================================
125
 ID         : DATAFS (0xb)
126
 DEVICE     : MMC
127
 FIRST UNIT : 1392640
128
 NO. UNITS  : 4194304
129
=================================
130
 ID         : UMS (0xc)
131
 DEVICE     : MMC
132
 FIRST UNIT : 5586944
133
 NO. UNITS  : 24133632
134
=================================
135
 ID         : HIDDEN (0xd)
136
 DEVICE     : MMC
137
 FIRST UNIT : 29720576
138
 NO. UNITS  : 1048576
139
=================================
140
loke_init: j4fs_open..success
141
<start_checksum:1033>CHECKSUM_HEADER_SECTOR :42
142
<start_checksum:1035>offset:42, size:1024
143
Not Need Movinand Checksum
144
load_lfs_parameters valid magic code and version.
145
switch_sel_str='1'
146
load_debug_level: read debug level successfully(0x574f4c44)...LOW
147
init_ddi_data: usable ddi data.
148
init_fuel_gauge : not por status
149
fuel_gauge_get_version: [1]=0, [0]=92
150
init_fuel_gauge: vcell = 3846 mV, vfocv = 3877 mV, soc = 62 
151
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
152
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
153
6280 = (382600 - 337808)*14022/100000
154
[3] 388175 = (6280 * 100000) / 11164 + 331923
155
init_microusb_ic: MUIC: CONTROL1:0x1b
156
init_microusb_ic: MUIC: CONTROL1:0x1b
157
init_microusb_ic: MUIC: CONTROL2:0x1a
158
init_microusb_ic: MUIC: CONTROL2:0x3a
159
reading nps status file is successfully!.
160
nps status=0x504d4f43
161
PMIC_IRQSRC  = 0x0 
162
PMIC_IRQ1    = 0xb 
163
PMIC_IRQ2    = 0x1a 
164
PMIC_IRQ3    = 0x0 
165
PMIC_IRQ4    = 0x11 
166
PMIC_STATUS1 = 0x1 
167
PMIC_STATUS2 = 0x10 
168
PMIC_STATUS3 = 0x0 
169
PMIC_STATUS4 = 0x0 
170
bootloader base address=0x4d400000
171
LPDDR0 1st. cached=0x40000000, size=0xe400000
172
LPDDR0 non-cached=0x4e400000, size=0xa00000
173
LPDDR0 2nd. cached=0x4ee00000, size=0x1200000
174
RST_STAT = 0x10000
175
get_hwrev() = 14
176
board_process_platform: MAGIC c0c0c0c0 at 40000000!
177
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
178
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
179
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
180
microusb_get_attached_device: STATUS1:0x3c, 2:0x0
181
hw_pm_status: jig_status = 1, chg_status = 0
182
s5p_set_high_clk: ARM Clock = 800MHz.
183
......kernel is non signed binary.
184
DISPLAY_PATH_SEL[MDNIE 0x1]is on
185
div:2, FB_SOURCE_CLOCK:667000000, FB_PIXEL_CLOCK:25067520
186
MDNIE setting Init start!!
187
vsync interrupt is off
188
video interrupt is off
189
[fb0] turn on
190
MDNIE setting Init end!!
191
192
Autoboot (0 seconds) in progress, press any key to stop 
193
boot_kernel: debug level low!
194
checkbit: find RECOVERY
195
checkbit (0)
196
......kernel is non signed binary.
197
ATAG_CORE: 5 54410001 0 0 0
198
MEMCONFIG: 20e01323 20e01323
199
ATAG_MEM: 4 54410002 10000000 40000000
200
ATAG_MEM: 4 54410002 10000000 50000000
201
ATAG_MEM: 4 54410002 10000000 60000000
202
ATAG_MEM: 4 54410002 10000000 70000000
203
ATAG_SERIAL: 4 54410006 b33abb8e 304d19da
204
ATAG_REVISION: 3 54410007 e
205
hardware_ID : 0019dab33abb8e
206
ATAG_CMDLINE: 40 54410009 'loglevel=4 console=ram androidboot.serialno=[...] sec_debug.enable=0 sec_debug.enable_user=0 c1_watchdog.sec_pet=5 sec_log=0x100000@0x4d900000 s3cfb.bootloaderfb=0x5ec00000 ld9040.get_lcdtype=0x2 consoleblank=0 lpj=3981312 vmalloc=144m'
207
ATAG_NONE: 0 0
208
209
Starting kernel at 0x40008000...
210
211
AST_POWERON
212
213
</pre>
214
215 3 Denis 'GNUtoo' Carikli
h2. Available commands
216
217
<pre>
218
SBL> help
219
Following commands are supported:
220
* movichk
221
* setenv
222
* saveenv
223
* printenv
224
* help
225
* reset
226
* boot
227
* kernel
228
* loadpart
229
* loadkernel
230
* erasepart
231
* format
232
* open
233
* close
234
* eraseall
235
* showpart
236
* addpart
237
* delpart
238
* savepart
239
* nkernel
240
* nandread
241
* nandwrite
242
* usb
243
* crc
244
* log
245
* sud
246
* upload
247
* emmc
248
* keyread
249
* mmctest
250
* usb_read
251
* usb_write
252
* fuelgauge
253
To get commands help, Type "help <command>"
254
</pre>
255
256
And their respective help:
257
<pre>
258
SBL> help movichk
259
* Help : movichk
260
* Usage : 
261 10 Denis 'GNUtoo' Carikli
262 3 Denis 'GNUtoo' Carikli
SBL> help setenv
263
* Help : setenv
264
* Usage : setenv [name] [value] . .
265
	Modify current environment info on ram
266
267
SBL> help saveenv
268
* Help : saveenv
269
* Usage : saveenv
270
	Save cuurent environment info to flash
271
272
SBL> help printenv
273
* Help : printenv
274
* Usage : printenv
275
	Print current environment info on ram
276
277
SBL> help help
278
* Help : help
279
* Usage : help [command]
280 10 Denis 'GNUtoo' Carikli
281 3 Denis 'GNUtoo' Carikli
SBL> help reset
282
* Help : reset
283
* Usage : reboot
284
Reboot system
285
286
SBL> help boot
287
* Help : boot
288
* Usage : boot [kernel options]
289
Boot Linux with optional kernel options
290
291
SBL> help kernel
292
* Help : kernel
293
* Usage : kernel hex_adr
294
Change the Linux kernel base
295
296
SBL> help loadpart
297
* Help : loadpart
298
* Usage : load partition from storage device.
299 10 Denis 'GNUtoo' Carikli
300 3 Denis 'GNUtoo' Carikli
SBL> help loadkernel
301
* Help : loadkernel
302
* Usage : load kernel from storage device.
303 10 Denis 'GNUtoo' Carikli
304 3 Denis 'GNUtoo' Carikli
SBL> help erasepart
305
* Help : erasepart
306
* Usage : erase partition.
307 10 Denis 'GNUtoo' Carikli
308 3 Denis 'GNUtoo' Carikli
SBL> help format
309
* Help : format
310
* Usage : format
311
	format device
312 10 Denis 'GNUtoo' Carikli
313 3 Denis 'GNUtoo' Carikli
SBL> help open
314
* Help : open
315
* Usage : open
316
	open device
317 10 Denis 'GNUtoo' Carikli
318 3 Denis 'GNUtoo' Carikli
SBL> help close
319
* Help : close
320
* Usage : close
321
	close device
322 10 Denis 'GNUtoo' Carikli
323 3 Denis 'GNUtoo' Carikli
SBL> help eraseall
324
* Help : eraseall
325
* Usage : eraseall
326
	erase all units
327 10 Denis 'GNUtoo' Carikli
328 3 Denis 'GNUtoo' Carikli
SBL> help showpart
329
* Help : showpart
330
* Usage : showpart
331
	show partition information
332 10 Denis 'GNUtoo' Carikli
333 3 Denis 'GNUtoo' Carikli
SBL> help addpart
334
* Help : addpart
335
* Usage : addpart <id> <attr> <unit>
336
	add partition information
337
       - ex) addpart 0x(id) 0x1(attr) 0x10(units)
338 10 Denis 'GNUtoo' Carikli
339 3 Denis 'GNUtoo' Carikli
SBL> help delpart
340
* Help : delpart
341
* Usage : delpart
342
	delete last partition information
343 10 Denis 'GNUtoo' Carikli
344 3 Denis 'GNUtoo' Carikli
SBL> help savepart
345
* Help : savepart
346
* Usage : savepart
347
	save partition information
348 10 Denis 'GNUtoo' Carikli
349 3 Denis 'GNUtoo' Carikli
SBL> help nkernel
350
* Help : nkernel
351
* Usage : nkernel command
352
* Usage : nkernel
353
	read kernel from flash to DDR
354
355
SBL> help nandread
356
* Help : nandread
357
* Usage : * Usage : nandread <PARTID> <SIZE>
358
	read partition from flash to SDRAM(0x80000000)
359
360
SBL> help nandwrite
361
* Help : nandwrite
362
* Usage : * Usage: nandwrite <PARTID> <SIZE>
363
	write partition from SDRAM(0x80000000) to flash
364
365
SBL> help usb
366
* Help : usb
367
* Usage : usb download command
368 10 Denis 'GNUtoo' Carikli
369 3 Denis 'GNUtoo' Carikli
SBL> help crc
370
* Help : crc
371
* Usage : crc <crc> <addr> <len>
372 10 Denis 'GNUtoo' Carikli
373 3 Denis 'GNUtoo' Carikli
SBL> help log
374
* Help : log
375
* Usage : print log
376 10 Denis 'GNUtoo' Carikli
377 3 Denis 'GNUtoo' Carikli
SBL> help sud
378
* Help : sud
379
* Usage : sud command
380 10 Denis 'GNUtoo' Carikli
381 3 Denis 'GNUtoo' Carikli
SBL> help upload
382
* Help : upload
383
* Usage : upload
384 10 Denis 'GNUtoo' Carikli
385 3 Denis 'GNUtoo' Carikli
SBL> help emmc
386
* Help : emmc
387
* Usage : emmc <addr>
388 10 Denis 'GNUtoo' Carikli
389 3 Denis 'GNUtoo' Carikli
SBL> help keyread
390
* Help : keyread
391
* Usage : *Usage : keyread 
392
393
SBL> help mmctest
394
* Help : mmctest
395
* Usage : mmctest <addr> <start block> <number of blocks>
396 10 Denis 'GNUtoo' Carikli
397 3 Denis 'GNUtoo' Carikli
SBL> help usb_read
398
* Help : usb_read
399
* Usage : usb_read reg
400
Read the usb ic register
401
402
SBL> help usb_write
403
* Help : usb_write
404
* Usage : usb_write reg, val
405
Read the usb ic register
406
407
SBL> help fuelgauge
408
* Help : fuelgauge
409
* Usage : *usage : fuelgauge
410
</pre>
411
412 6 Denis 'GNUtoo' Carikli
h2. Printenv
413
414
<pre>
415
SBL> printenv   
416
PARAM Rev 1.3
417
SERIAL_SPEED : 7
418
LOAD_RAMDISK : 0
419
BOOT_DELAY : 0
420
LCD_LEVEL : 97
421
SWITCH_SEL : 1
422
PHONE_DEBUG_ON : 0
423
LCD_DIM_LEVEL : 0
424
LCD_DIM_TIME : 6
425
MELODY_MODE : 1
426
REBOOT_MODE : 0
427
NATION_SEL : 0
428
LANGUAGE_SEL : 0
429
SET_DEFAULT_PARAM : 0
430
FLASH_LOCK_STATUS : 1
431
PARAM_INT_14 : 0
432
VERSION : I9000XXIL
433
CMDLINE : loglevel=4 console=ram
434
DELTA_LOCATION : /mnt/rsv
435
PARAM_STR_3 : 
436
PARAM_STR_4 : 
437
</pre>
438
439 7 Denis 'GNUtoo' Carikli
h2. How to enable serial console for Replicant 6.0 kernels
440 4 Denis 'GNUtoo' Carikli
441 8 Denis 'GNUtoo' Carikli
To get the UART enabled at boot with the Replicant 6.0 kernel and the stock bootloader, see the "DHylands_SGS2_Console":https://wiki.mozilla.org/DHylands_SGS2_Console page on the mozilla wiki. 
442 4 Denis 'GNUtoo' Carikli
443 3 Denis 'GNUtoo' Carikli
h2. TODO
444
445
* TODO: https://forum.xda-developers.com/showpost.php?p=10823240&postcount=58