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