Firefly Open Source Community

Title: Cannot flash anything from maskrom mode (possibly broken emmc) [Print This Page]

Author: phkr    Time: 8/9/2019 18:23
Title: Cannot flash anything from maskrom mode (possibly broken emmc)
Hello,
I have tried to flash custom image to emmc (i used rkdeveloptool because there is not enough info about custom images on firefly wiki) but one of them was wrong and i had to enter maskrom mode using hardware method. After that i have following problem when trying to flash something (in both cases "rkdevelop db" step is already performed):
1) if i use
  1. rkdeveloptool gpt parameter.txt
Copy the code

it returns success but then does not show partition table. Partition table is shown if i reset device after this step or write partition table with
  1. rkdeveloptool prm parameter.txt
Copy the code

Anyway, if i flash any image after this step partition table is destroyed again
2) if i use upgrade_tool instead i can successfully flash parameter but when i flash any image after that i get the following error:
  1. Compare data  failed in checking,exit download image!
Copy the code


Also, i used rs and rl commands to check data blocks defore and after writing image: parameter blocks are overriden. These commands also show some strange behaviour:
  1. rl <any start block> 0x1
Copy the code

shows the same output for any start block.

So, could it be that i have broken emmc controller when entered maskrom mode? How could i then make device bootable?
Author: penguin    Time: 8/13/2019 09:39
Please try to download the latest firmware, and use the upgrade_tool bundled inside.

With the device in MaskRom mode, try to erase the flash first by:

  upgrade_tool ef  /path/to/firmware.img

Then upgrade the firmware:

  upgrade_tool uf  /path/to/firmware.img



Author: phkr    Time: 8/13/2019 14:29
penguin Posted at 8/13/2019 04:39
Please try to download the latest firmware, and use the upgrade_tool bundled inside.

With the dev ...

I have tried it, it hangs at the very beginning
Author: penguin    Time: 8/15/2019 16:12
phkr Posted at 8/13/2019 14:29
I have tried it, it hangs at the very beginning

Did it hang at the erasing flash stage, or upgrading firmware stage?

Would you post the full command log?




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1