h1. Optimus Black bootloader {{>toc}} The Optimus Black h2. Boot device priority According to the OMAP36xx Technical Reference Manual, section 26.4.4.3 (Booting Device List Setup), the OMAP3630 platform will first choose devices to boot from based on the software booting configuration. If no valid software booting configuration is found, it will read the status of the SYS_BOOT pins to determine the boot device priority order. h3. Software booting configuration According to the OMAP36xx Technical Reference Manual, section 26.4.4.4 (Software Booting Configuration) the software booting configuration is a data structure stored in scratchpad memory, at address 0x48002910. It is not cleared at reset and can be written with a valid structure before reboot, to take effect. h3. CONTROL_STATUS register According to the OMAP36xx Technical Reference Manual, table 13-109 (CONTROL_STATUS), the CONTROL_STATUS register provides the values of the SYS_BOOT pins as sampled at reset time. It is located at address: 0x480022f0. The register value can be read using:
$ devmem 0x480022f0 8 0x25h3. SYS_BOOT resistors According to the OMAP36xx Technical Reference Manual, section 26.2.3 (Boot Configuration), the SYS_BOOT[5:0] pins are used to select the boot device priority. SYS_BOOT[5] indicates whether peripheral booting is preferred. According to the Optimus Black (P970) Service Manual: !p970_sys_boot.png! Some of the resistors framed on the schematics were found not to be populated on the board. The actual layout is the following: | |_. SYS_BOOT[5] |_. SYS_BOOT[4] |_. SYS_BOOT[3] |_. SYS_BOOT[2] |_. SYS_BOOT[1] |_. SYS_BOOT[0] | | Pull-up resistor | R316 | N/A | N/A | R314 | N/A | R318 | | Pull-down resistor | R323 | R322 | R321 | N/A | R319 | N/A | | Boolean value | 0 | 0 | 0 | 1 | 0 | 1 | h3. First boot device According to the OMAP36xx Technical Reference Manual, section 26.2.3 (Boot Configuration), such as value (0x05) indicates MMC2 as first boot device and USB as second boot device. h2. USB boot h2. Factory bootloaders h3. References * "Optimus Black (P970) Service Manual and Schematics":http://www.cpkb.org/wiki/LG_P970_Optimus_Black_service_manual * "OMAP36xx Technical Reference Manual":http://www.ti.com/lit/pdf/swpu177 *These documents are the propriety of LG Electronics and Texas Instruments and are not hosted by the Replicant project.* *However, some excerpts from these documents are provided, for the purpose of providing technical evidence of the facts that are mentioned in this page. We believe that this particular use of the copyrighted work is fair use.*