Firefly Open Source Community

   Login   |   Register   |

Cannot flash anything from maskrom mode (possibly broken emmc)

76

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
76
Posted at 8/9/2019 18:23:06     
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?
Reply

Use props Report

941

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
941
Posted at 7 day before     
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


Reply

Use props Report

76

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
76
Posted at 7 day before     
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
Reply

Use props Report

941

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
941
Posted at 5 day before     
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?
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list