Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Hardware] Cannot flash anything from maskrom mode (possibly broken emmc)

1562

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1562

【Hardware】 Cannot flash anything from maskrom mode (possibly broken emmc)

Posted at 8/9/2019 18:23:06      View:4374 | Replies:3        Print      Only Author   [Copy Link] 1#
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

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 8/13/2019 09:39:46        Only Author  2#
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

1562

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1562
Posted at 8/13/2019 14:29:40        Only Author  3#
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

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 8/15/2019 16:12:25        Only Author  4#
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