/aosp_15_r20/external/vboot_reference/futility/ |
H A D | updater_utils.c | 273 image->programmer ? image->programmer : "temp", in get_firmware_image_temp_file() 286 const char *programmer = image->programmer; in free_firmware_image() local 296 image->programmer = programmer; in free_firmware_image() 372 const char *programmer, in is_write_protection_enabled() argument 379 STATUS("Write protection (%s): %d (%s; HW=%d, SW=%d).\n", programmer, in is_write_protection_enabled() 386 return is_write_protection_enabled(cfg, cfg->image.programmer, DUT_PROP_WP_SW_AP); in is_ap_write_protection_enabled() 391 return is_write_protection_enabled(cfg, cfg->ec_image.programmer, DUT_PROP_WP_SW_EC); in is_ec_write_protection_enabled() 441 const char *programmer = NULL; in host_detect_servo() local 470 programmer = "ft2232_spi:type=google-servo-v2"; in host_detect_servo() 474 programmer = raiden_debug_spi; in host_detect_servo() [all …]
|
H A D | updater.c | 318 VB2_DEBUG("No data in <%s> image.\n", image->programmer); in has_valid_update() 323 image->file_name, image->programmer, section_name); in has_valid_update() 331 image->file_name, image->programmer, image->size); in has_valid_update() 407 "preserve ME.\n", image_from->programmer); in preserve_management_engine() 1261 cfg->image.programmer = FLASHROM_PROGRAMMER_INTERNAL_AP; in updater_new_config() 1262 cfg->image_current.programmer = FLASHROM_PROGRAMMER_INTERNAL_AP; in updater_new_config() 1264 cfg->ec_image.programmer = FLASHROM_PROGRAMMER_INTERNAL_EC; in updater_new_config() 1547 if (!arg->programmer || !strcmp(arg->programmer, cfg->image.programmer)) in prog_arg_setup() 1555 cfg->image.programmer = arg->programmer; in prog_arg_setup() 1556 cfg->image_current.programmer = arg->programmer; in prog_arg_setup() [all …]
|
H A D | updater_dut.c | 115 static int dut_get_wp_sw(const char *programmer) in dut_get_wp_sw() argument 117 assert(programmer); in dut_get_wp_sw() 120 if (flashrom_get_wp(programmer, &mode, NULL, NULL, -1)) { in dut_get_wp_sw() 130 return dut_get_wp_sw(cfg->image.programmer); in dut_get_wp_sw_ap() 136 return dut_get_wp_sw(cfg->ec_image.programmer); in dut_get_wp_sw_ec()
|
H A D | cmd_flash_util.c | 55 if (flashrom_get_size(cfg->image.programmer, &flash_size, in print_flash_size() 72 if (flashrom_get_info(cfg->image.programmer, in print_flash_info() 109 if (flashrom_get_wp(cfg->image.programmer, &wp_mode, in print_wp_status() 154 if (flashrom_set_wp(cfg->image.programmer, enable, in set_flash_wp()
|
/aosp_15_r20/external/vboot_reference/host/lib/ |
H A D | flashrom_drv.c | 66 char *programmer, *params; in flashrom_read_image_impl() local 67 char *tmp = flashrom_extract_params(image->programmer, &programmer, ¶ms); in flashrom_read_image_impl() 76 || flashrom_programmer_init(&prog, programmer, params)) { in flashrom_read_image_impl() 174 char *programmer, *params; in flashrom_write_image() local 175 char *tmp = flashrom_extract_params(image->programmer, &programmer, ¶ms); in flashrom_write_image() 184 || flashrom_programmer_init(&prog, programmer, params)) { in flashrom_write_image() 276 char *programmer, *params; in flashrom_get_wp() local 277 char *tmp = flashrom_extract_params(prog_with_params, &programmer, in flashrom_get_wp() 283 || flashrom_programmer_init(&prog, programmer, params)) in flashrom_get_wp() 336 char *programmer, *params; in flashrom_set_wp() local [all …]
|
/aosp_15_r20/external/flashrom/util/ubertest/ |
H A D | README.md | 6 … the ubertest script supports using a secondary programmer to check the result of the primary prog… 20 - Remote machine: DUT controlled via SSH with primary programmer. 22 - Primary programmer: The programmer which will be tested using the new version of flashrom. 23 …programmer: An optional programmer which will be used along with the old version of flashrom to ve… 37 `-p/--primary-programmer`: Primary programmer options, e.g. “internal”, “ch341a_spi”, etc. 51 …programmer are used, then a local copy of flashrom is used to control the secondary programmer. Th… 81 …two programmers. The secondary programmer is used with the old/stable version of flashrom to verif… 83 …ary programmer” to “external programmer”? That could simplify the script significantly, especially… 85 To use a secondary programmer, use the following options: 86 `-s/--secondary-programmer <parameters>`: Specify the secondary programmer the same way you do with… [all …]
|
/aosp_15_r20/external/flashrom/ |
H A D | meson.build | 91 'programmer.c', 167 group_ftdi = get_option('programmer').contains('group_ftdi') 168 group_pci = get_option('programmer').contains('group_pci') 169 group_usb = get_option('programmer').contains('group_usb') 170 group_i2c = get_option('programmer').contains('group_i2c') 171 group_serial = get_option('programmer').contains('group_serial') 172 group_jlink = get_option('programmer').contains('group_jlink') 173 group_internal = get_option('programmer').contains('group_internal') 174 group_external = get_option('programmer').contains('group_external') 204 required : get_option('programmer').contains('ni845x_spi') [all …]
|
H A D | test_build.sh | 34 for programmer in ${meson_programmer_opts}; do 35 programmer_dir="${build_dir}/${programmer}" 39 if [ ${is_scan_build_env} -eq 1 ] && [ "${programmer}" != "all" ]; then 43 meson setup ${programmer_dir} ${meson_opts} -Dprogrammer=${programmer}
|
H A D | meson_options.txt | 3 option('default_programmer_name', type : 'string', description : 'default programmer') 4 option('default_programmer_args', type : 'string', description : 'default programmer arguments') 9 option('programmer', type : 'array', value : ['auto'], choices : [ array
|
/aosp_15_r20/external/flashrom/doc/contrib_howtos/ |
H A D | how_to_add_unit_test.rst | 61 The concept of a unit test for flashrom programmer is based on a programmer lifecycle. The options … 64 …le lifecycle is called basic and it does initialisation -> shutdown of a programmer (nothing else). 69 One more option is to test expected failure for programmer initialisation. This is useful to test k… 70 (and potentially dangerous) combination of programmer parameters, when such combination should be d… 71 …n of parameters is detected, initialisation expected to fail early and programmer must not continu… 76 If you want to add new test(s) for a programmer, first you look whether that programmer has any tes… 77 Test source file has the same name as a programmer itself, for example programmer ``dummyflasher.c`… 78 …e. Either add your tests to an existing file, or create new file for a programmer that had no tests 82 given combination of programmer params as an input. Most time and effort is typically spent on mock… 88 These tests are based on dummyflasher programmer and they are running operations of a chip: read, w…
|
/aosp_15_r20/external/flashrom/doc/ |
H A D | classic_cli_manpage.rst | 46 All operations involving any chip access (probe/read/write/...) require the ``-p/--programmer`` opt… 78 (e.g. when using the **internal** programmer). 82 …is required to flash an Intel system with locked ME flash region using the **internal** programmer. 265 **-p, --programmer <name>[:parameter[,parameter[,parameter]]]** 266 …Specify the programmer device. This is mandatory for all operations involving any chip access (pro… 270 * ``dummy`` (virtual programmer for testing **flashrom**) 283 … (for SPI flash ROMs attached to an FT2232/FT4232H/FT232H family based USB SPI programmer) 284 …* ``serprog`` (for flash ROMs attached to a programmer speaking serprog, including som… 336 Some programmer drivers accept further parameters to set programmer-specific parameters. These para… 337 from the programmer name by a colon. While some programmers take arguments atfixed positions, other… [all …]
|
/aosp_15_r20/external/autotest/server/cros/servo/ |
H A D | firmware_programmer.py | 170 programmer = servo_v2_programmer 173 programmer += ',serial=%s' % servo_serial 175 programmer = servo_v3_programmer 180 programmer = servo_v4_with_micro_programmer 181 programmer += ':serial=%s' % servo_micro_serial 184 programmer = servo_v4_with_ccd_programmer 185 programmer += ',serial=%s' % ccd_serial 192 'flashrom', '-V', '-p', programmer, '-r', 223 'flashrom', '-V', '-p', programmer,
|
/aosp_15_r20/external/flashrom/doc/supported_hw/supported_prog/serprog/ |
H A D | serprog-protocol.rst | 26 0x01 Query programmer iface version none ACK + 16bit version (nonzero) 28 0x03 Query programmer name none ACK + 16 bytes string (null padding) / NAK 68 If the programmer has a guaranteed working flow control, 77 An LPC/FWH/SPI-programmer can report this as not supported in the command bitmap. 80 If a programmer reports a bigger maximum write-n length than the serial buffer size, 81 it is assumed that the programmer can process the data fast enough to take in the 91 Set's the used bustype if the programmer can support more than one flash protocol. 92 Sending a byte with more than 1 bit set will make the programmer decide among them 104 be NAKed by the programmer. The requested frequency should be 105 mapped by the programmer software to a supported frequency [all …]
|
H A D | arduino_flasher_3.3v.rst | 130 Build the programmer 133 Connect the programmer to the USB<->Serial adapter argument 154 You can now check that the programmer is responding with:: 184 Using the programmer 187 Connect the programmer to a flash chip argument 194 Here's how to connect the flash chips to the programmer:
|
/aosp_15_r20/external/vboot_reference/tests/ |
H A D | vb2_host_flashrom_tests.c | 149 .programmer = "someprog", in test_read_whole_chip() 172 .programmer = "someprog", in test_read_region() 196 .programmer = "someprog", in test_read_failure() 209 .programmer = "someprog", in test_write_whole_chip() 236 .programmer = "someprog", in test_write_region() 264 .programmer = "someprog", in test_write_failure()
|
H A D | vb2_host_nvdata_flashrom_tests.c | 26 static void assert_mock_params(const char *programmer, const char *region) in assert_mock_params() argument 28 TEST_STR_EQ(programmer, FLASHROM_PROGRAMMER_INTERNAL_AP, in assert_mock_params() 97 assert_mock_params(image->programmer, region); in flashrom_read() 111 assert_mock_params(image->programmer, region); in flashrom_write()
|
/aosp_15_r20/external/flashrom/doc/supported_hw/supported_prog/ |
H A D | dummyflasher.rst | 5 Dummyflasher programmer is software-only implementation of a flashrom programmer. In other words, 8 This programmer is actively used in unit tests. 10 …ammers APIs, it can be used as an example or as a starting point for implementing a new programmer.
|
/aosp_15_r20/external/vboot_reference/host/lib/include/ |
H A D | flashrom.h | 24 const char *programmer; member 97 int flashrom_get_wp(const char *programmer, bool *wp_mode, 111 int flashrom_set_wp(const char *programmer, bool wp_mode, 139 int flashrom_get_size(const char *programmer, uint32_t *flash_len,
|
/aosp_15_r20/external/coreboot/Documentation/mainboard/hp/ |
H A D | elitebook_820_g2.md | 40 then clip on the flash chip with an SOIC-8 clip. An [STM32-based flash programmer] 43 To access the private flash chip, we can use a ch341a based flash programmer and 53 To erase the private flash chip, attach it with the flash programmer via the SOIC-8 clip, 56 flashrom -p <programmer> --erase 75 flashrom -p <programmer> --ifd -i fd -w factory-sys.rom.new 81 flashrom -p <programmer> --ifd -i bios -w build/coreboot.rom 140 [STM32-based flash programmer]: https://github.com/dword1511/stm32-vserprog
|
H A D | folio_9480m.md | 39 then clip on the flash chip with an SOIC-8 clip. An [STM32-based flash programmer] 42 To access the private flash chip, we can use a ch341a based flash programmer and 51 To erase the private flash chip, attach it with the flash programmer via the SOIC-8 clip, 54 flashrom -p <programmer> --erase 83 flashrom -p <programmer> --ifd -i fd -w factory-sys.rom.new 89 flashrom -p <programmer> --ifd -i bios -w build/coreboot.rom 155 [STM32-based flash programmer]: https://github.com/dword1511/stm32-vserprog
|
/aosp_15_r20/external/coreboot/Documentation/tutorial/flashing_firmware/ |
H A D | index.md | 5 is in a shut down state and an external programmer is attached to write into the 43 * Using flashrom's *internal* programmer to directly write into the firmware 53 internal programmer <int_flashrom.md> 59 the target hardware. You need to buy a flash programmer, that 106 flashrom -l rom.layout -i bios -w coreboot.rom -p <programmer> 118 flashrom --ifd -i bios -w coreboot.rom -p <programmer>
|
/aosp_15_r20/external/flashrom/doc/user_docs/ |
H A D | misc_notes.rst | 68 Using In-System programming requires some means to connect the external programmer to the flash chi… 76 A breadboard can be used to connect Dual in-line 8 pins chips to the programmer, as they they fit w… 81 If your programmer has a pin connector, and that you want to avoid soldering, you can use 109 * Not all input pins are connected to the correct voltage level/output pin of the programmer. 112 * The easiest thing to try is lowering the (SPI) clock frequency if your programmer supports it. 120 (of either the circuit/chip on the mainboard or the external programmer). 122 …ar as possible to the input pins (this includes also the MISO line which ends near the programmer)\
|
H A D | in_system.rst | 16 to attach an external programmer. They are produced by different vendors (e.g. Pomona, 3M) 25 disconnect Vcc from the programmer and power it with its normal PSU and: 31 …ing it to the chip select (CS) line of the SPI bus or a dedicated clock signal from the programmer. 34 …or even remove the CPU or RAM - if the programmer supports SPI sniffing, you may be able to verify…
|
H A D | example_partial_wp.rst | 25 Not all programmers support manipulating WP configuration. A suitable programmer must either 29 In particular, *internal* programmer on Intel platforms might allow only limited access to WP 43 Run a command like (adjust this and similar commands below if you're not using *internal* programmer 46 flashrom --programmer internal --wp-status: 107 $ flashrom --programmer internal --wp-list 173 flashrom --programmer internal --wp-range=0x00fc0000,0x00040000 --wp-enable
|
/aosp_15_r20/external/coreboot/Documentation/mainboard/lenovo/ |
H A D | Sandy_Bridge_series.md | 27 programmer, because vendor firmware prevents rewriting the BIOS region. 57 and then write a full ROM using an [external programmer]. 73 [external programmer]: ../../tutorial/flashing_firmware/index.md
|