From patchwork Mon Apr 14 12:59:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: works@veghelyiattila.hu X-Patchwork-Id: 2077133 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=veghelyiattila.hu header.i=@veghelyiattila.hu header.a=rsa-sha256 header.s=default header.b=io2hSPHk; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=flashrom.org (client-ip=78.46.105.101; helo=coreboot.org; envelope-from=flashrom-bounces@flashrom.org; receiver=patchwork.ozlabs.org) Received: from coreboot.org (mail.coreboot.org [78.46.105.101]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ZkTfj27bzz1yN2 for ; Fri, 25 Apr 2025 20:31:57 +1000 (AEST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id B852B41A5A; Fri, 25 Apr 2025 10:32:09 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 1AFC0405B1 for ; Mon, 14 Apr 2025 12:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=veghelyiattila.hu; s=default; h=Content-Type:Message-ID:Subject:To:From: Date:MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YH+eQRXJfeN+SgHhAQw6h9NXz+SAZ141/2XgTmAVCS8=; b=io2hSPHk6d1kKHwr0hpnOoluxy oJ8TnPWoGOQ+8eO4JOoaBfHqXu4B4gq/Kbic9NbW0zbEXD4EYhZUnzLozh3U4DXyCST4/UJBnBLs5 HvW3kb6JELrNdyQLgkUpUqm6PxuFX423r83xJ6pqeBIMEkbmkHAyfoBOHSVccyLk2SvfBL1okfsUC 2iWnwb8Z3dWcO9f7BR9AxOyQZIwBZYJ+r8reagLcSUgnU1pO4CfPCYTmGFRH58VJ/jDqEw6Mc+z2d w1rAaO9MAK+uVkD3wj+EEeX7hnnOnIstDE0qIiZZgqcWVSFuWmPWOXBAu6evZqUQYjfXIP3x5I+do ytCCVvhA==; Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by cpanel24.rackforest.com with esmtpa (Exim 4.98.1) (envelope-from ) id 1u4JPF-0000000047W-2TTi for flashrom@flashrom.org; Mon, 14 Apr 2025 14:59:21 +0200 MIME-Version: 1.0 Date: Mon, 14 Apr 2025 14:59:21 +0200 From: works@veghelyiattila.hu To: flashrom@flashrom.org Message-ID: <5f540de10445ae419ce3e49b860603cd@veghelyiattila.hu> X-Sender: works@veghelyiattila.hu X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel24.rackforest.com X-AntiAbuse: Original Domain - flashrom.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - veghelyiattila.hu X-Get-Message-Sender-Via: cpanel24.rackforest.com: authenticated_id: works@veghelyiattila.hu X-Authenticated-Sender: cpanel24.rackforest.com: works@veghelyiattila.hu X-Source: X-Source-Args: X-Source-Dir: X-MailFrom: works@veghelyiattila.hu X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-flashrom.flashrom.org-0; header-match-flashrom.flashrom.org-1; header-match-flashrom.flashrom.org-2; header-match-flashrom.flashrom.org-3; header-match-flashrom.flashrom.org-4; header-match-flashrom.flashrom.org-5; header-match-flashrom.flashrom.org-6; header-match-flashrom.flashrom.org-7; header-match-flashrom.flashrom.org-8; header-match-flashrom.flashrom.org-9; header-match-flashrom.flashrom.org-10; header-match-flashrom.flashrom.org-11; header-match-flashrom.flashrom.org-12; header-match-flashrom.flashrom.org-13; header-match-flashrom.flashrom.org-14; header-match-flashrom.flashrom.org-15; header-match-flashrom.flashrom.org-16; header-match-flashrom.flashrom.org-17; header-match-flashrom.flashrom.org-18; header-match-flashrom.flashrom.org-19; header-match-flashrom.flashrom.org-20; header-match-flashrom.flashrom.org-21; header-match-flashrom.flashrom.org- 22; header-match-flashrom.flashrom.org-23; header-match-flashrom.flashrom.org-24; header-match-flashrom.flashrom.org-25; header-match-flashrom.flashrom.org-26; header-match-flashrom.flashrom.org-27; header-match-flashrom.flashrom.org-28; header-match-flashrom.flashrom.org-29; header-match-flashrom.flashrom.org-30; header-match-flashrom.flashrom.org-31; header-match-flashrom.flashrom.org-32; header-match-flashrom.flashrom.org-33; header-match-flashrom.flashrom.org-34; header-match-flashrom.flashrom.org-35; header-match-flashrom.flashrom.org-36; header-match-flashrom.flashrom.org-37; header-match-flashrom.flashrom.org-38; header-match-flashrom.flashrom.org-39; header-match-flashrom.flashrom.org-40; header-match-flashrom.flashrom.org-41; header-match-flashrom.flashrom.org-42; header-match-flashrom.flashrom.org-43; header-match-flashrom.flashrom.org-44; header-match-flashrom.flashrom.org-45; header-match-flashrom.flashrom.org-46; header-match-flashrom.flashrom.org-47; header-match-flash rom.flashrom.org-48; header-match-flashrom.flashrom.org-49; header-match-flashrom.flashrom.org-50; header-match-flashrom.flashrom.org-51; header-match-flashrom.flashrom.org-52; header-match-flashrom.flashrom.org-53; header-match-flashrom.flashrom.org-54; header-match-flashrom.flashrom.org-55; header-match-flashrom.flashrom.org-56; header-match-flashrom.flashrom.org-57; header-match-flashrom.flashrom.org-58; header-match-flashrom.flashrom.org-59; header-match-flashrom.flashrom.org-60; header-match-flashrom.flashrom.org-61; header-match-flashrom.flashrom.org-62; header-match-flashrom.flashrom.org-63; header-match-flashrom.flashrom.org-64; header-match-flashrom.flashrom.org-65; header-match-flashrom.flashrom.org-66; header-match-flashrom.flashrom.org-67; header-match-flashrom.flashrom.org-68; header-match-flashrom.flashrom.org-69; header-match-flashrom.flashrom.org-70; header-match-flashrom.flashrom.org-71; header-match-flashrom.flashrom.org-72; header-match-flashrom.flashrom.org-73; h eader-match-flashrom.flashrom.org-74; header-match-flashrom.flashrom.org-75; header-match-flashrom.flashrom.org-76; header-match-flashrom.flashrom.org-77; header-match-flashrom.flashrom.org-78; header-match-flashrom.flashrom.org-79; header-match-flashrom.flashrom.org-80; header-match-flashrom.flashrom.org-81; header-match-flashrom.flashrom.org-82; header-match-flashrom.flashrom.org-83; header-match-flashrom.flashrom.org-84; header-match-flashrom.flashrom.org-85; header-match-flashrom.flashrom.org-86; header-match-flashrom.flashrom.org-87; header-match-flashrom.flashrom.org-88; header-match-flashrom.flashrom.org-89; header-match-flashrom.flashrom.org-90; header-match-flashrom.flashrom.org-91; header-match-flashrom.flashrom.org-92; header-match-flashrom.flashrom.org-93; header-match-flashrom.flashrom.org-94; header-match-flashrom.flashrom.org-95 Message-ID-Hash: Y27HIB5SPMQVGER37RLPV36DW33QGLR4 X-Message-ID-Hash: Y27HIB5SPMQVGER37RLPV36DW33QGLR4 X-Mailman-Approved-At: Fri, 25 Apr 2025 10:31:58 +0000 X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [flashrom] W25Q256JV_Q is checked List-Id: flashrom discussion and development mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=flashrom-bounces@flashrom.org X-Spamd-Bar: / hi, I checked the PROBE - READ - ERASE - WRITE operations of the W25Q256JV_Q flash with J-Link and CH341 spi writers. the flashrom version was the newest development release at 2025-04-14 (#4d4688ccf132c580107b013d2d929a0816aa89c1) I made a little modification in the 'jlink_spi.c' source, because I use the power supply from the J-Link device pin 19. this power is 5V, I put a 3.3V LDO (HT7333) after it, and this LDO (and decoupling capacitors) need more time to fix output voltage. I attached the patch file. [ I tried to ask merge request via Jenkins, but it was too complicated for modify one char in the source ;-) ] my flash type was Winbond 25Q256JVEQ, which recognized by flashrom to W25Q256JV_Q or W25Q256FV, both type probed, read, wrote, erased, both modality worked fine. regards, Attila flashrom v1.6.0-devel (git:v1.5.0-48-g8e881fe2) on Linux 6.1.0-32-amd64 (x86_64) flashrom was built with GCC 12.2.0, little endian Command line (9 args): flashrom -V -c W25Q256JV_Q --progress -p jlink_spi:cs=tms,power=on -E -o W25Q256JV_Q_flashrom_erase.log Initializing jlink_spi programmer Using TMS/CS as chip select signal. No device selected, using first device. Firmware: J-Link V9 compiled May 7 2021 16:26:12 S/N: 59411025 VTarget: 3.348 V Maximum SPI speed: 15000 kHz SPI speed not specified, using 15000 kHz. SPI speed: 15000 kHz The following protocols are supported: SPI. Probing for Winbond W25Q256JV_Q, 32768 kB: compare_id: id1 0xef, id2 0x4019 Added layout entry 00000000 - 01ffffff named complete flash Found Winbond flash chip "W25Q256JV_Q" (32768 kB, SPI) on jlink_spi. Chip status register is 0x00. Chip status register: Status Register Write Disable (SRWD, SRP, ...) is not set Chip status register: Bit 6 is not set Chip status register: Block Protect 3 (BP3) is not set Chip status register: Block Protect 2 (BP2) is not set Chip status register: Block Protect 1 (BP1) is not set Chip status register: Block Protect 0 (BP0) is not set Chip status register: Write Enable Latch (WEL) is not set Chip status register: Write In Progress (WIP/BUSY) is not set This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details). === This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE WP The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. You can also try to follow the instructions here: https://www.flashrom.org/contrib_howtos/how_to_mark_chip_tested.html Thanks for your help! write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 erase_write: region (00000000..0x1ffffff) is writable, erasing range (00000000..0x1ffffff). 000000..0x1ffffff verify_range: Verifying region (00000000..0x1ffffff) read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...                                                [READ: 100%][ERASE: 100%]...E(0:1ffffff)Erase/write done from 0 to 1ffffff write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 flashrom v1.6.0-devel (git:v1.5.0-48-g8e881fe2) on Linux 6.1.0-32-amd64 (x86_64) flashrom was built with GCC 12.2.0, little endian Command line (10 args): flashrom -V -c W25Q256JV_Q --progress -p jlink_spi:cs=tms,power=on -w flash-image.bin -o W25Q256JV_Q-flashrom_wite-read.log Initializing jlink_spi programmer Using TMS/CS as chip select signal. No device selected, using first device. Firmware: J-Link V9 compiled May 7 2021 16:26:12 S/N: 59411025 VTarget: 3.341 V Maximum SPI speed: 15000 kHz SPI speed not specified, using 15000 kHz. SPI speed: 15000 kHz The following protocols are supported: SPI. Probing for Winbond W25Q256JV_Q, 32768 kB: compare_id: id1 0xef, id2 0x4019 Added layout entry 00000000 - 01ffffff named complete flash Found Winbond flash chip "W25Q256JV_Q" (32768 kB, SPI) on jlink_spi. Chip status register is 0x00. Chip status register: Status Register Write Disable (SRWD, SRP, ...) is not set Chip status register: Bit 6 is not set Chip status register: Block Protect 3 (BP3) is not set Chip status register: Block Protect 2 (BP2) is not set Chip status register: Block Protect 1 (BP1) is not set Chip status register: Block Protect 0 (BP0) is not set Chip status register: Write Enable Latch (WEL) is not set Chip status register: Write In Progress (WIP/BUSY) is not set This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details). === This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE WP The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. You can also try to follow the instructions here: https://www.flashrom.org/contrib_howtos/how_to_mark_chip_tested.html Thanks for your help! write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 Reading old flash chip contents... read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...done. Updating flash chip contents... erase_write: region (00000000..0x1ffffff) is writable, erasing range (00000000..0x1ffffff). write_flash: region (00000000..0x1ffffff) is writable, writing range (00000000..0x005fff). W(0:5fff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x008000..0x03f2ff). [WRITE: 1%]...W(8000:3f2ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x040000..0x0406ff). W(40000:406ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x043000..0x06c4ff). [WRITE: 2%]...                                                [WRITE: 3%]...W(43000:6c4ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x0e0000..0x0e5dff). W(e0000:e5dff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x100000..0x4594ff). [WRITE: 4%]...                                                [WRITE: 5%]...                                                [WRITE: 6%]...                                                [WRITE: 7%]...                                                [WRITE: 8%]...                                                [WRITE: 9%]...                                                [WRITE: 10%]...                                                [WRITE: 11%]...                                                [WRITE: 12%]...                                                [WRITE: 13%]...                                                [WRITE: 14%]...                                                [WRITE: 15%]...                                                [WRITE: 16%]...                                                [WRITE: 17%]...                                                [WRITE: 18%]...                                                [WRITE: 19%]...                                                [WRITE: 20%]...                                                [WRITE: 21%]...                                                [WRITE: 22%]...                                                [WRITE: 23%]...                                                [WRITE: 24%]...                                                [WRITE: 25%]...                                                [WRITE: 26%]...                                                [WRITE: 27%]...                                                [WRITE: 28%]...                                                [WRITE: 29%]...                                                [WRITE: 30%]...W(100000:4594ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x700000..0x7155ff). [WRITE: 31%]...W(700000:7155ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x800000..0xd8bfff). [WRITE: 32%]...                                                [WRITE: 33%]...                                                [WRITE: 34%]...                                                [WRITE: 35%]...                                                [WRITE: 36%]...                                                [WRITE: 37%]...                                                [WRITE: 38%]...                                                [WRITE: 39%]...                                                [WRITE: 40%]...                                                [WRITE: 41%]...                                                [WRITE: 42%]...                                                [WRITE: 43%]...                                                [WRITE: 44%]...                                                [WRITE: 45%]...                                                [WRITE: 46%]...                                                [WRITE: 47%]...                                                [WRITE: 48%]...                                                [WRITE: 49%]...                                                [WRITE: 50%]...                                                [WRITE: 51%]...                                                [WRITE: 52%]...                                                [WRITE: 53%]...                                                [WRITE: 54%]...                                                [WRITE: 55%]...                                                [WRITE: 56%]...                                                [WRITE: 57%]...                                                [WRITE: 58%]...                                                [WRITE: 59%]...                                                [WRITE: 60%]...                                                [WRITE: 61%]...                                                [WRITE: 62%]...                                                [WRITE: 63%]...                                                [WRITE: 64%]...                                                [WRITE: 65%]...                                                [WRITE: 66%]...                                                [WRITE: 67%]...                                                [WRITE: 68%]...                                                [WRITE: 69%]...                                                [WRITE: 70%]...                                                [WRITE: 71%]...                                                [WRITE: 72%]...                                                [WRITE: 73%]...                                                [WRITE: 74%]...                                                [WRITE: 75%]...                                                [WRITE: 76%]...W(800000:d8bfff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x1000000..0x1170fff). [WRITE: 77%]...                                                [WRITE: 78%]...                                                [WRITE: 79%]...                                                [WRITE: 80%]...                                                [WRITE: 81%]...                                                [WRITE: 82%]...                                                [WRITE: 83%]...                                                [WRITE: 84%]...                                                [WRITE: 85%]...                                                [WRITE: 86%]...                                                [WRITE: 87%]...                                                [WRITE: 88%]...W(1000000:1170fff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x1800000..0x1970fff). [WRITE: 89%]...                                                [WRITE: 90%]...                                                [WRITE: 91%]...                                                [WRITE: 92%]...                                                [WRITE: 93%]...                                                [WRITE: 94%]...                                                [WRITE: 95%]...                                                [WRITE: 96%]...                                                [WRITE: 97%]...                                                [WRITE: 98%]...                                                [WRITE: 99%]...                                                [WRITE: 100%]...W(1800000:1970fff)Erase/write done from 0 to 1ffffff Verifying flash... read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...VERIFIED. write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 flashrom v1.6.0-devel (git:v1.5.0-44-g4d4688cc) on Linux 6.1.0-32-amd64 (x86_64) flashrom was built with GCC 12.2.0, little endian Command line (9 args): flashrom -V -c W25Q256JV_Q --progress -p ch341a_spi -E -o W25Q256JV_Q_sh341-flashrom_erase.log Initializing ch341a_spi programmer Device revision is 3.0.4 The following protocols are supported: SPI. Probing for Winbond W25Q256JV_Q, 32768 kB: compare_id: id1 0xef, id2 0x4019 Added layout entry 00000000 - 01ffffff named complete flash Found Winbond flash chip "W25Q256JV_Q" (32768 kB, SPI) on ch341a_spi. Chip status register is 0x00. Chip status register: Status Register Write Disable (SRWD, SRP, ...) is not set Chip status register: Bit 6 is not set Chip status register: Block Protect 3 (BP3) is not set Chip status register: Block Protect 2 (BP2) is not set Chip status register: Block Protect 1 (BP1) is not set Chip status register: Block Protect 0 (BP0) is not set Chip status register: Write Enable Latch (WEL) is not set Chip status register: Write In Progress (WIP/BUSY) is not set This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details). === This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE WP The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. You can also try to follow the instructions here: https://www.flashrom.org/contrib_howtos/how_to_mark_chip_tested.html Thanks for your help! write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 erase_write: region (00000000..0x1ffffff) is writable, erasing range (00000000..0x1ffffff). 000000..0x1ffffff verify_range: Verifying region (00000000..0x1ffffff) read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...                                                [READ: 100%][ERASE: 100%]...E(0:1ffffff)Erase/write done from 0 to 1ffffff write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 flashrom v1.6.0-devel (git:v1.5.0-44-g4d4688cc) on Linux 6.1.0-32-amd64 (x86_64) flashrom was built with GCC 12.2.0, little endian Command line (10 args): flashrom -V -c W25Q256JV_Q --progress -p ch341a_spi -w flash-image.bin -o W25Q256JV_Q_sh341-flashrom_write-read.log Initializing ch341a_spi programmer Device revision is 3.0.4 The following protocols are supported: SPI. Probing for Winbond W25Q256JV_Q, 32768 kB: compare_id: id1 0xef, id2 0x4019 Added layout entry 00000000 - 01ffffff named complete flash Found Winbond flash chip "W25Q256JV_Q" (32768 kB, SPI) on ch341a_spi. Chip status register is 0x00. Chip status register: Status Register Write Disable (SRWD, SRP, ...) is not set Chip status register: Bit 6 is not set Chip status register: Block Protect 3 (BP3) is not set Chip status register: Block Protect 2 (BP2) is not set Chip status register: Block Protect 1 (BP1) is not set Chip status register: Block Protect 0 (BP0) is not set Chip status register: Write Enable Latch (WEL) is not set Chip status register: Write In Progress (WIP/BUSY) is not set This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details). === This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE WP The test status of this chip may have been updated in the latest development version of flashrom. If you are running the latest development version, please email a report to flashrom@flashrom.org if any of the above operations work correctly for you with this flash chip. Please include the flashrom log file for all operations you tested (see the man page for details), and mention which mainboard or programmer you tested in the subject line. You can also try to follow the instructions here: https://www.flashrom.org/contrib_howtos/how_to_mark_chip_tested.html Thanks for your help! write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 Reading old flash chip contents... read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...done. Updating flash chip contents... erase_write: region (00000000..0x1ffffff) is writable, erasing range (00000000..0x1ffffff). write_flash: region (00000000..0x1ffffff) is writable, writing range (00000000..0x005fff). W(0:5fff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x008000..0x03f2ff). [WRITE: 1%]...W(8000:3f2ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x040000..0x0406ff). W(40000:406ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x043000..0x06c4ff). [WRITE: 2%]...                                                [WRITE: 3%]...W(43000:6c4ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x0e0000..0x0e5dff). W(e0000:e5dff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x100000..0x4594ff). [WRITE: 4%]...                                                [WRITE: 5%]...                                                [WRITE: 6%]...                                                [WRITE: 7%]...                                                [WRITE: 8%]...                                                [WRITE: 9%]...                                                [WRITE: 10%]...                                                [WRITE: 11%]...                                                [WRITE: 12%]...                                                [WRITE: 13%]...                                                [WRITE: 14%]...                                                [WRITE: 15%]...                                                [WRITE: 16%]...                                                [WRITE: 17%]...                                                [WRITE: 18%]...                                                [WRITE: 19%]...                                                [WRITE: 20%]...                                                [WRITE: 21%]...                                                [WRITE: 22%]...                                                [WRITE: 23%]...                                                [WRITE: 24%]...                                                [WRITE: 25%]...                                                [WRITE: 26%]...                                                [WRITE: 27%]...                                                [WRITE: 28%]...                                                [WRITE: 29%]...                                                [WRITE: 30%]...W(100000:4594ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x700000..0x7155ff). [WRITE: 31%]...W(700000:7155ff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x800000..0xd8bfff). [WRITE: 32%]...                                                [WRITE: 33%]...                                                [WRITE: 34%]...                                                [WRITE: 35%]...                                                [WRITE: 36%]...                                                [WRITE: 37%]...                                                [WRITE: 38%]...                                                [WRITE: 39%]...                                                [WRITE: 40%]...                                                [WRITE: 41%]...                                                [WRITE: 42%]...                                                [WRITE: 43%]...                                                [WRITE: 44%]...                                                [WRITE: 45%]...                                                [WRITE: 46%]...                                                [WRITE: 47%]...                                                [WRITE: 48%]...                                                [WRITE: 49%]...                                                [WRITE: 50%]...                                                [WRITE: 51%]...                                                [WRITE: 52%]...                                                [WRITE: 53%]...                                                [WRITE: 54%]...                                                [WRITE: 55%]...                                                [WRITE: 56%]...                                                [WRITE: 57%]...                                                [WRITE: 58%]...                                                [WRITE: 59%]...                                                [WRITE: 60%]...                                                [WRITE: 61%]...                                                [WRITE: 62%]...                                                [WRITE: 63%]...                                                [WRITE: 64%]...                                                [WRITE: 65%]...                                                [WRITE: 66%]...                                                [WRITE: 67%]...                                                [WRITE: 68%]...                                                [WRITE: 69%]...                                                [WRITE: 70%]...                                                [WRITE: 71%]...                                                [WRITE: 72%]...                                                [WRITE: 73%]...                                                [WRITE: 74%]...                                                [WRITE: 75%]...                                                [WRITE: 76%]...W(800000:d8bfff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x1000000..0x1170fff). [WRITE: 77%]...                                                [WRITE: 78%]...                                                [WRITE: 79%]...                                                [WRITE: 80%]...                                                [WRITE: 81%]...                                                [WRITE: 82%]...                                                [WRITE: 83%]...                                                [WRITE: 84%]...                                                [WRITE: 85%]...                                                [WRITE: 86%]...                                                [WRITE: 87%]...                                                [WRITE: 88%]...W(1000000:1170fff)write_flash: region (00000000..0x1ffffff) is writable, writing range (0x1800000..0x1970fff). [WRITE: 89%]...                                                [WRITE: 90%]...                                                [WRITE: 91%]...                                                [WRITE: 92%]...                                                [WRITE: 93%]...                                                [WRITE: 94%]...                                                [WRITE: 95%]...                                                [WRITE: 96%]...                                                [WRITE: 97%]...                                                [WRITE: 98%]...                                                [WRITE: 99%]...                                                [WRITE: 100%]...W(1800000:1970fff)Erase/write done from 0 to 1ffffff Verifying flash... read_flash: region (00000000..0x1ffffff) is readable, reading range (00000000..0x1ffffff). [READ: 1%]...                                                [READ: 2%]...                                                [READ: 3%]...                                                [READ: 4%]...                                                [READ: 5%]...                                                [READ: 6%]...                                                [READ: 7%]...                                                [READ: 8%]...                                                [READ: 9%]...                                                [READ: 10%]...                                                [READ: 11%]...                                                [READ: 12%]...                                                [READ: 13%]...                                                [READ: 14%]...                                                [READ: 15%]...                                                [READ: 16%]...                                                [READ: 17%]...                                                [READ: 18%]...                                                [READ: 19%]...                                                [READ: 20%]...                                                [READ: 21%]...                                                [READ: 22%]...                                                [READ: 23%]...                                                [READ: 24%]...                                                [READ: 25%]...                                                [READ: 26%]...                                                [READ: 27%]...                                                [READ: 28%]...                                                [READ: 29%]...                                                [READ: 30%]...                                                [READ: 31%]...                                                [READ: 32%]...                                                [READ: 33%]...                                                [READ: 34%]...                                                [READ: 35%]...                                                [READ: 36%]...                                                [READ: 37%]...                                                [READ: 38%]...                                                [READ: 39%]...                                                [READ: 40%]...                                                [READ: 41%]...                                                [READ: 42%]...                                                [READ: 43%]...                                                [READ: 44%]...                                                [READ: 45%]...                                                [READ: 46%]...                                                [READ: 47%]...                                                [READ: 48%]...                                                [READ: 49%]...                                                [READ: 50%]...                                                [READ: 51%]...                                                [READ: 52%]...                                                [READ: 53%]...                                                [READ: 54%]...                                                [READ: 55%]...                                                [READ: 56%]...                                                [READ: 57%]...                                                [READ: 58%]...                                                [READ: 59%]...                                                [READ: 60%]...                                                [READ: 61%]...                                                [READ: 62%]...                                                [READ: 63%]...                                                [READ: 64%]...                                                [READ: 65%]...                                                [READ: 66%]...                                                [READ: 67%]...                                                [READ: 68%]...                                                [READ: 69%]...                                                [READ: 70%]...                                                [READ: 71%]...                                                [READ: 72%]...                                                [READ: 73%]...                                                [READ: 74%]...                                                [READ: 75%]...                                                [READ: 76%]...                                                [READ: 77%]...                                                [READ: 78%]...                                                [READ: 79%]...                                                [READ: 80%]...                                                [READ: 81%]...                                                [READ: 82%]...                                                [READ: 83%]...                                                [READ: 84%]...                                                [READ: 85%]...                                                [READ: 86%]...                                                [READ: 87%]...                                                [READ: 88%]...                                                [READ: 89%]...                                                [READ: 90%]...                                                [READ: 91%]...                                                [READ: 92%]...                                                [READ: 93%]...                                                [READ: 94%]...                                                [READ: 95%]...                                                [READ: 96%]...                                                [READ: 97%]...                                                [READ: 98%]...                                                [READ: 99%]...                                                [READ: 100%]...VERIFIED. write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x2 diff --git a/jlink_spi.c b/jlink_spi.c index 6c5a5249..d970cdfb 100644 --- a/jlink_spi.c +++ b/jlink_spi.c @@ -465,7 +465,7 @@ static int jlink_spi_init(const struct programmer_cfg *cfg) } /* Wait some time until the target is powered up. */ - internal_sleep(10000); + internal_sleep(100000); } struct jaylink_hardware_status hwstat;