I9250Bootloader » History » Revision 10
Revision 9 (Denis 'GNUtoo' Carikli, 01/29/2020 10:57 PM) → Revision 10/11 (Denis 'GNUtoo' Carikli, 02/29/2020 01:54 AM)
h1. I9250Bootloader {{toc}} h2. Accessing the bootloader console 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: <pre> ====== VCELL : 409625, SOC : 100, nType : 4 ====== [Charger] nScaledVCELL : 409625000, nDesriedSOC, : 98, nMaxSOC : 118, nMinSOC : 78 * FB base addr = 0xbea70000! * PANEL_S6E8AA0_ID_READ : 0x12, 0x8e, 0x9b. [ omap_power_get_reset_source :47] PRM_RSTST : 0x2 Autoboot (1 seconds) in progress, press any key to stop . Autoboot aborted.. SBL> SBL> SBL> SBL> help Following commands are supported: * setenv * saveenv * printenv * help * reset * boot * kernel * loadpart * loadkernel * erasepart * omap_upload_rdx * omap_test_button * omap_test_hwinfo * omap_set_gpio_level * omap_get_gpio_level * omap_test_twl6030 * omap_test_power * omap_reboot * omap_halt * omap_cmdline_power * omap_test_kbd * omap_test_usbacc * usb * omap_test_max17043 * omap_test_fsa9480 * omap_dump_sec_log_buf * omap_test_sud To get commands help, Type "help <command>" SBL> </pre> h2. Available commands Here's the known list of commands: <pre> SBL> help Following commands are supported: * setenv * saveenv * printenv * help * reset * boot * kernel * loadpart * loadkernel * erasepart * omap_upload_rdx * omap_test_button * omap_test_hwinfo * omap_set_gpio_level * omap_get_gpio_level * omap_test_twl6030 * omap_test_power * omap_reboot * omap_halt * omap_cmdline_power * omap_test_kbd * omap_test_usbacc * usb * omap_test_max17043 * omap_test_fsa9480 * omap_dump_sec_log_buf * omap_test_sud To get commands help, Type "help <command>" SBL> </pre> And their respective help: <pre> SBL> help setenv * Help : setenv * Usage : setenv [name] [value] . . Modify current environment info on ram SBL> help saveenv * Help : saveenv * Usage : saveenv Save cuurent environment info to flash SBL> help printenv * Help : printenv * Usage : printenv Print current environment info on ram SBL> help help * Help : help * Usage : help [command] SBL> help reset * Help : reset * Usage : reboot Reboot system SBL> help boot * Help : boot * Usage : boot [kernel options] Boot Linux with optional kernel options SBL> help kernel * Help : kernel * Usage : kernel hex_adr Change the Linux kernel base SBL> help loadpart * Help : loadpart * Usage : load partition from storage device. SBL> help loadkernel * Help : loadkernel * Usage : load kernel from storage device. SBL> help erasepart * Help : erasepart * Usage : erase partition. SBL> help omap_upload_rdx * Help : omap_upload_rdx * Usage : [OMAP] upload RDX omap_upload_rdx SBL> help omap_test_button * Help : omap_test_button * Usage : [OMAP] test OMAP buttons omap_test_button SBL> help omap_test_hwinfo * Help : omap_test_hwinfo * Usage : [OMAP] test OMAP HW Information omap_test_hwinfo SBL> help omap_set_gpio_level * Help : omap_set_gpio_level * Usage : [OMAP] set GPIO level omap_set_gpio_level {GPIO} {VALUE} SBL> help omap_get_gpio_level * Help : omap_get_gpio_level * Usage : [OMAP] get GPIO level omap_get_gpio_level {GPIO} SBL> help omap_test_twl6030 * Help : omap_test_twl6030 * Usage : [OMAP] test twl6030 device omap_test_twl6030 SBL> help omap_test_power * Help : omap_test_power * Usage : [OMAP] test power function omap_test_power SBL> help omap_reboot * Help : omap_reboot * Usage : [OMAP] system reboot command omap_reboot SBL> help omap_halt * Help : omap_halt * Usage : [OMAP] system halt command omap_halt SBL> help omap_cmdline_power * Help : omap_cmdline_power * Usage : [OMAP] check kernel-cmdline by power omap_cmdline_power SBL> help omap_test_kbd * Help : omap_test_kbd * Usage : [OMAP] test power function omap_test_kbd SBL> help omap_test_usbacc * Help : omap_test_usbacc * Usage : [OMAP] test OMAP usb-accessary omap_test_usbacc SBL> help usb * Help : usb * Usage : usb download command SBL> help omap_test_max17043 * Help : omap_test_max17043 * Usage : [OMAP] test max17043 device omap_test_max17043 SBL> help omap_test_fsa9480 * Help : omap_test_fsa9480 * Usage : [OMAP] test fsa9480 device omap_test_fsa9480 SBL> help omap_dump_sec_log_buf * Help : omap_dump_sec_log_buf * Usage : [OMAP] dump sec-log-buf omap_dump_sec_log_buf SBL> help omap_test_sud * Help : omap_test_sud * Usage : [OMAP] test SUD image omap_test_sud {NUMBER} SBL> </pre> h2. Changing the kernel commandline arguments <pre> SBL> printenv PARAM Rev 1.6 SERIAL_SPEED : 7 LOAD_RAMDISK : 0 BOOT_DELAY : 1 LCD_LEVEL : 6 SWITCH_SEL : 3 PHONE_DEBUG_ON : 0 LCD_DIM_LEVEL : 0 LCD_DIM_TIME : 6 MELODY_MODE : 1 REBOOT_MODE : 0 NATION_SEL : 0 LANGUAGE_SEL : 0 SET_DEFAULT_PARAM : 0 OFF_MODE_CHARGE : 1 FLASH_LOCK_STATUS : 0 VERSION : CMDLINE : DELTA_LOCATION : /mnt/rsv WIFI_MAC_LINE : PARAM_STR_4 : DCM </pre> I've tried to modify the CMDLINE: <pre> SBL> setenv CMDLINE loglevel=8 console=ttyFIQ0 androidboot.console=ttyFIQ0 argv[0] : setenv argv[1] : CMDLINE argv[2] : loglevel=8 console=ttyFIQ0 androidboot.console=ttyFIQ0 value : 656175548 SBL> saveenv save_param start block=49152, no.blocks=16384 </pre> 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. h2. Other commands <pre> SBL> omap_test_hwinfo ----------------------------------------------------------- OMAP-Samsung HW Information Board Name : tuna REV 9 Board Rev : HSPA - 9 Boot Type : USB MMC1 Device Type : HS Build Date : Jan 24 2012 18:27:20 ----------------------------------------------------------- </pre> <pre> SBL> printenv PARAM Rev 1.6 SERIAL_SPEED : 7 LOAD_RAMDISK : 0 BOOT_DELAY : 1 LCD_LEVEL : 6 SWITCH_SEL : 3 PHONE_DEBUG_ON : 0 LCD_DIM_LEVEL : 0 LCD_DIM_TIME : 6 MELODY_MODE : 1 REBOOT_MODE : 0 NATION_SEL : 0 LANGUAGE_SEL : 0 SET_DEFAULT_PARAM : 0 OFF_MODE_CHARGE : 1 FLASH_LOCK_STATUS : 0 VERSION : CMDLINE : DELTA_LOCATION : /mnt/rsv WIFI_MAC_LINE : PARAM_STR_4 : DCM </pre>