CAT874_bootloader_rescue

対象機種CAT874 (RevC, RevE)

bootloaderを破壊してしまい起動できなくなった基板の復旧方法
How to recover a board that cannot boot because the bootloader has been destroyed.

準備

  • TeraTerm マクロを使用する。TeraTermを準備しておく. Setup TeraTerm.
  • fileek874boot_v306.zip (BSP3.0.6) を展開する. unzip this file.

展開後
after unzip

ek874boot_v306
 |-- AArch64_Flash_writer_SCIF_DUMMY_CERT_E6300400_ek874.mot
 |-- QSPI
 |   |-- bl2-ek874.srec
 |   |-- bl31-ek874.srec
 |   |-- bootparam_sa0.srec
 |   |-- cert_header_sa6.srec
 |   `-- u-boot-elf-ek874.srec
 |-- eMMC
 |   |-- bl2-ek874.srec
 |   |-- bl31-ek874.srec
 |   |-- bootparam_sa0.srec
 |   |-- cert_header_sa6.srec
 |   `-- u-boot-elf-ek874.srec
 |-- ek874_setup_RevC.ttl           CAT874 Rev.C 復旧マクロ
 `-- ek874_setup_RevE.ttl           CAT874 Rev.E 復旧マクロ

CAT874の電源を切断してDIPSWを Serial Download Mode にする
power off the board and set DIPSW to Serial Download Mode.

dipsw1_serial.png

654321
ONONOFFOFFOFFOFF

電源を入れる
power on the board.

TeraTerm画面に以下のメッセージが表示されることを確認する
Verify that the following message appears on the TeraTerm screen.

SCIF Download mode (w/o verification)
 (C) Renesas Electronics Corp.

-- Load Program to SystemRAM ---------------
please send !

TeraTermメニューの コントロール > マクロ > から

  • ek874_setup_RevC.ttl
  • ek874_setup_RevE.ttl

どちらかを選択して開き、CAT874 の RESETボタンを押す.
Select either one from TeraTerm control > macro menu. and press the RESET button on the CAT874.

自動的に FlashWriter と bootloader バイナリがダウンロードされて書き込みが行われる
Automatically downloads and writes FlashWriter and bootloader binaries.

書き換えが2回目以降である場合、消去してよいかの確認メッセージが出るので y を押す
If this is the second or later rewriting, a confirmation message will appear, so press y.

Clear OK?(y/n)                      y を押す(4回)

CAT874の電源を切断してDIPSWを QSPI Boot Mode にする
power off the board and set DIPSW to QSIP Boot Mode.

dipsw1_qspi.png

654321
ONONOFFONONON

電源を入れる
power on the board.

マクロによって u-bootのパラメータ(変数)が書き込まれる
Macro rewrites u-boot parameters (variables).

以上で書き換えは終了
This completes the rewrite.

Rev.Eの場合、 eMMCブートモードでも正常に起動するか試す
Rev. E, try to see if it boots properly in eMMC boot mode.

dipsw1_emmc.png

654321
ONONOFFOFFONOFF

Rev.E u-bootでのeMMC動作確認

=> mmc list
mmc@ee100000: 0
mmc@ee160000: 1 (eMMC)

=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device

=> mmc info
Device: mmc@ee160000
Manufacturer ID: 11
OEM: 100
Name: 016GB
Bus Speed: 52000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 14.7 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 14.7 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected

関連

自動リンク

Last-modified: 2024-06-03 (月) 21:29:55 (403d)