I9250Bootloader » History » Version 10
Denis 'GNUtoo' Carikli, 02/29/2020 01:54 AM
add structure
| 1 | 1 | Denis 'GNUtoo' Carikli | h1. I9250Bootloader |
|---|---|---|---|
| 2 | |||
| 3 | 10 | Denis 'GNUtoo' Carikli | {{toc}} |
| 4 | |||
| 5 | h2. Accessing the bootloader console |
||
| 6 | |||
| 7 | 8 | Denis 'GNUtoo' Carikli | When connected on the serial port, during boot, if you press the volume down button and press enter on the serial console, you can get a shell: |
| 8 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 9 | 2 | Denis 'GNUtoo' Carikli | ====== VCELL : 409625, SOC : 100, nType : 4 ====== |
| 10 | 1 | Denis 'GNUtoo' Carikli | [Charger] nScaledVCELL : 409625000, nDesriedSOC, : 98, nMaxSOC : 118, nMinSOC : 78 |
| 11 | * FB base addr = 0xbea70000! |
||
| 12 | * PANEL_S6E8AA0_ID_READ : 0x12, 0x8e, 0x9b. |
||
| 13 | [ omap_power_get_reset_source :47] PRM_RSTST : 0x2 |
||
| 14 | |||
| 15 | Autoboot (1 seconds) in progress, press any key to stop . |
||
| 16 | |||
| 17 | Autoboot aborted.. |
||
| 18 | SBL> |
||
| 19 | SBL> |
||
| 20 | SBL> |
||
| 21 | SBL> help |
||
| 22 | Following commands are supported: |
||
| 23 | * setenv |
||
| 24 | * saveenv |
||
| 25 | * printenv |
||
| 26 | * help |
||
| 27 | * reset |
||
| 28 | * boot |
||
| 29 | * kernel |
||
| 30 | * loadpart |
||
| 31 | * loadkernel |
||
| 32 | * erasepart |
||
| 33 | * omap_upload_rdx |
||
| 34 | * omap_test_button |
||
| 35 | * omap_test_hwinfo |
||
| 36 | * omap_set_gpio_level |
||
| 37 | * omap_get_gpio_level |
||
| 38 | * omap_test_twl6030 |
||
| 39 | * omap_test_power |
||
| 40 | * omap_reboot |
||
| 41 | * omap_halt |
||
| 42 | * omap_cmdline_power |
||
| 43 | * omap_test_kbd |
||
| 44 | * omap_test_usbacc |
||
| 45 | * usb |
||
| 46 | * omap_test_max17043 |
||
| 47 | * omap_test_fsa9480 |
||
| 48 | * omap_dump_sec_log_buf |
||
| 49 | * omap_test_sud |
||
| 50 | To get commands help, Type "help <command>" |
||
| 51 | SBL> |
||
| 52 | |||
| 53 | 2 | Denis 'GNUtoo' Carikli | </pre> |
| 54 | |||
| 55 | 10 | Denis 'GNUtoo' Carikli | h2. Available commands |
| 56 | |||
| 57 | Here's the known list of commands: |
||
| 58 | 2 | Denis 'GNUtoo' Carikli | <pre> |
| 59 | 10 | Denis 'GNUtoo' Carikli | SBL> help |
| 60 | Following commands are supported: |
||
| 61 | * setenv |
||
| 62 | * saveenv |
||
| 63 | * printenv |
||
| 64 | * help |
||
| 65 | * reset |
||
| 66 | * boot |
||
| 67 | * kernel |
||
| 68 | * loadpart |
||
| 69 | * loadkernel |
||
| 70 | * erasepart |
||
| 71 | * omap_upload_rdx |
||
| 72 | * omap_test_button |
||
| 73 | * omap_test_hwinfo |
||
| 74 | * omap_set_gpio_level |
||
| 75 | * omap_get_gpio_level |
||
| 76 | * omap_test_twl6030 |
||
| 77 | * omap_test_power |
||
| 78 | * omap_reboot |
||
| 79 | * omap_halt |
||
| 80 | * omap_cmdline_power |
||
| 81 | * omap_test_kbd |
||
| 82 | * omap_test_usbacc |
||
| 83 | * usb |
||
| 84 | * omap_test_max17043 |
||
| 85 | * omap_test_fsa9480 |
||
| 86 | * omap_dump_sec_log_buf |
||
| 87 | * omap_test_sud |
||
| 88 | To get commands help, Type "help <command>" |
||
| 89 | SBL> |
||
| 90 | </pre> |
||
| 91 | |||
| 92 | And their respective help: |
||
| 93 | <pre> |
||
| 94 | 2 | Denis 'GNUtoo' Carikli | SBL> help setenv |
| 95 | * Help : setenv |
||
| 96 | * Usage : setenv [name] [value] . . |
||
| 97 | Modify current environment info on ram |
||
| 98 | |||
| 99 | SBL> help saveenv |
||
| 100 | * Help : saveenv |
||
| 101 | * Usage : saveenv |
||
| 102 | Save cuurent environment info to flash |
||
| 103 | |||
| 104 | SBL> help printenv |
||
| 105 | * Help : printenv |
||
| 106 | * Usage : printenv |
||
| 107 | Print current environment info on ram |
||
| 108 | |||
| 109 | SBL> help help |
||
| 110 | * Help : help |
||
| 111 | * Usage : help [command] |
||
| 112 | SBL> help reset |
||
| 113 | * Help : reset |
||
| 114 | * Usage : reboot |
||
| 115 | Reboot system |
||
| 116 | |||
| 117 | SBL> help boot |
||
| 118 | * Help : boot |
||
| 119 | * Usage : boot [kernel options] |
||
| 120 | Boot Linux with optional kernel options |
||
| 121 | |||
| 122 | SBL> help kernel |
||
| 123 | * Help : kernel |
||
| 124 | * Usage : kernel hex_adr |
||
| 125 | Change the Linux kernel base |
||
| 126 | |||
| 127 | SBL> help loadpart |
||
| 128 | * Help : loadpart |
||
| 129 | * Usage : load partition from storage device. |
||
| 130 | SBL> help loadkernel |
||
| 131 | * Help : loadkernel |
||
| 132 | * Usage : load kernel from storage device. |
||
| 133 | SBL> help erasepart |
||
| 134 | * Help : erasepart |
||
| 135 | * Usage : erase partition. |
||
| 136 | SBL> help omap_upload_rdx |
||
| 137 | * Help : omap_upload_rdx |
||
| 138 | * Usage : [OMAP] upload RDX |
||
| 139 | omap_upload_rdx |
||
| 140 | SBL> help omap_test_button |
||
| 141 | * Help : omap_test_button |
||
| 142 | * Usage : [OMAP] test OMAP buttons |
||
| 143 | omap_test_button |
||
| 144 | SBL> help omap_test_hwinfo |
||
| 145 | * Help : omap_test_hwinfo |
||
| 146 | * Usage : [OMAP] test OMAP HW Information |
||
| 147 | omap_test_hwinfo |
||
| 148 | SBL> help omap_set_gpio_level |
||
| 149 | * Help : omap_set_gpio_level |
||
| 150 | * Usage : [OMAP] set GPIO level |
||
| 151 | omap_set_gpio_level {GPIO} {VALUE} |
||
| 152 | SBL> help omap_get_gpio_level |
||
| 153 | * Help : omap_get_gpio_level |
||
| 154 | * Usage : [OMAP] get GPIO level |
||
| 155 | omap_get_gpio_level {GPIO} |
||
| 156 | SBL> help omap_test_twl6030 |
||
| 157 | * Help : omap_test_twl6030 |
||
| 158 | * Usage : [OMAP] test twl6030 device |
||
| 159 | omap_test_twl6030 |
||
| 160 | SBL> help omap_test_power |
||
| 161 | * Help : omap_test_power |
||
| 162 | * Usage : [OMAP] test power function |
||
| 163 | omap_test_power |
||
| 164 | SBL> help omap_reboot |
||
| 165 | * Help : omap_reboot |
||
| 166 | * Usage : [OMAP] system reboot command |
||
| 167 | omap_reboot |
||
| 168 | SBL> help omap_halt |
||
| 169 | * Help : omap_halt |
||
| 170 | * Usage : [OMAP] system halt command |
||
| 171 | omap_halt |
||
| 172 | SBL> help omap_cmdline_power |
||
| 173 | * Help : omap_cmdline_power |
||
| 174 | * Usage : [OMAP] check kernel-cmdline by power |
||
| 175 | omap_cmdline_power |
||
| 176 | SBL> help omap_test_kbd |
||
| 177 | * Help : omap_test_kbd |
||
| 178 | * Usage : [OMAP] test power function |
||
| 179 | omap_test_kbd |
||
| 180 | 1 | Denis 'GNUtoo' Carikli | SBL> help omap_test_usbacc |
| 181 | 3 | Denis 'GNUtoo' Carikli | * Help : omap_test_usbacc |
| 182 | 1 | Denis 'GNUtoo' Carikli | * Usage : [OMAP] test OMAP usb-accessary |
| 183 | 3 | Denis 'GNUtoo' Carikli | omap_test_usbacc |
| 184 | SBL> help usb |
||
| 185 | * Help : usb |
||
| 186 | * Usage : usb download command |
||
| 187 | SBL> help omap_test_max17043 |
||
| 188 | * Help : omap_test_max17043 |
||
| 189 | * Usage : [OMAP] test max17043 device |
||
| 190 | omap_test_max17043 |
||
| 191 | SBL> help omap_test_fsa9480 |
||
| 192 | * Help : omap_test_fsa9480 |
||
| 193 | * Usage : [OMAP] test fsa9480 device |
||
| 194 | omap_test_fsa9480 |
||
| 195 | SBL> help omap_dump_sec_log_buf |
||
| 196 | 1 | Denis 'GNUtoo' Carikli | * Help : omap_dump_sec_log_buf |
| 197 | * Usage : [OMAP] dump sec-log-buf |
||
| 198 | 3 | Denis 'GNUtoo' Carikli | omap_dump_sec_log_buf |
| 199 | SBL> help omap_test_sud |
||
| 200 | * Help : omap_test_sud |
||
| 201 | * Usage : [OMAP] test SUD image |
||
| 202 | omap_test_sud {NUMBER} |
||
| 203 | SBL> |
||
| 204 | </pre> |
||
| 205 | |||
| 206 | 10 | Denis 'GNUtoo' Carikli | h2. Changing the kernel commandline arguments |
| 207 | 3 | Denis 'GNUtoo' Carikli | |
| 208 | I've tried to modify the CMDLINE: |
||
| 209 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 210 | SBL> setenv CMDLINE loglevel=8 console=ttyFIQ0 androidboot.console=ttyFIQ0 |
||
| 211 | argv[0] : setenv |
||
| 212 | argv[1] : CMDLINE |
||
| 213 | argv[2] : loglevel=8 console=ttyFIQ0 androidboot.console=ttyFIQ0 |
||
| 214 | value : 656175548 |
||
| 215 | SBL> saveenv |
||
| 216 | save_param start block=49152, no.blocks=16384 |
||
| 217 | </pre> |
||
| 218 | But once booted, "loglevel=8" wasn't found in /proc/cmdline on Replicant 6.0 0003 so it doesn't seem to have an impact. Though, on this bootloader, the commandline can also be modified by modifying the boot.img commandline parameters. |
||
| 219 | |||
| 220 | 10 | Denis 'GNUtoo' Carikli | h2. Other commands |
| 221 | |||
| 222 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 223 | SBL> omap_test_hwinfo |
||
| 224 | ----------------------------------------------------------- |
||
| 225 | OMAP-Samsung HW Information |
||
| 226 | |||
| 227 | Board Name : tuna REV 9 |
||
| 228 | Board Rev : HSPA - 9 |
||
| 229 | Boot Type : USB MMC1 |
||
| 230 | Device Type : HS |
||
| 231 | Build Date : Jan 24 2012 18:27:20 |
||
| 232 | ----------------------------------------------------------- |
||
| 233 | 10 | Denis 'GNUtoo' Carikli | </pre> |
| 234 | |||
| 235 | <pre> |
||
| 236 | SBL> printenv |
||
| 237 | PARAM Rev 1.6 |
||
| 238 | SERIAL_SPEED : 7 |
||
| 239 | LOAD_RAMDISK : 0 |
||
| 240 | BOOT_DELAY : 1 |
||
| 241 | LCD_LEVEL : 6 |
||
| 242 | SWITCH_SEL : 3 |
||
| 243 | PHONE_DEBUG_ON : 0 |
||
| 244 | LCD_DIM_LEVEL : 0 |
||
| 245 | LCD_DIM_TIME : 6 |
||
| 246 | MELODY_MODE : 1 |
||
| 247 | REBOOT_MODE : 0 |
||
| 248 | NATION_SEL : 0 |
||
| 249 | LANGUAGE_SEL : 0 |
||
| 250 | SET_DEFAULT_PARAM : 0 |
||
| 251 | OFF_MODE_CHARGE : 1 |
||
| 252 | FLASH_LOCK_STATUS : 0 |
||
| 253 | VERSION : |
||
| 254 | CMDLINE : |
||
| 255 | DELTA_LOCATION : /mnt/rsv |
||
| 256 | WIFI_MAC_LINE : |
||
| 257 | PARAM_STR_4 : DCM |
||
| 258 | 5 | Denis 'GNUtoo' Carikli | </pre> |