This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I think I brick the Tinker
#6
If the eMMC visibility cannot be protected, it's a small issue. But I'd like to see the guidelines to write the code which recover that functionality.
It shouldn't be to have to write a TinkerOS again, if that is happened. One may have sensitive written data which a new re-installation might wipe out.
So for that event, I suggest to follow these steps.
  • Save the first 4 eMMC megabytes after the first installation, whichever Distro chosen
    Code:
    $ sudo dd if=/dev/mmcblkX of=a_file_name bs=4M count=1
    Verify what name the kernel gives to the eMMC. X it should be the drive number point at eMMC. Pay attention to chose the entire drive, not a single partition Wink
  • When the functionality is lost, recover the saved 4 Mb, for the same installed Distro. Verify that the partitioning hasn't changed and apply the reverse operation:
    Code:
    $ sudo dd if=a_file_name of=/dev/mmcblkX
    Verify what name the kernel gives to the eMMC. X it should be the drive number point at eMMC. The file must be the previously saved one.
To whom, like me, wants to try to write a new u-boot, be warned that there's the risk to lose the USB-OTG function and then the eMMC is not found by a host PC when plugged. So I invite developers to guide us on the way to take care to prepare a u-boot compile.
There might be a file over some gigabyte of written documents explaining how to, but it's very appreciated to point me at.
Just to mention that  the u-boot's tinker3288_defconfig already contains PID and VID, but no kernel is able to identify the device as block one. Probably because of a part of the data handling must be carried out by the RK3288.

james Wrote:I agree with you that we can't give a chance that user can erase the u-boot partition, or the ums mode will not work.

    But we have no idea how to protect the u-boot part of eMMC
My point of view suggest to find room in the BootRom to save the eMMC's ums mode, because the access to BootRom is pretty complex operation, compare the eMMC writing.

In the other hand, it's clear that as open project, the user has the privileges to access to that part of the memory, unless the RK3288 is instructed that the address is write protected. And that area is exclusively used for the ums mode. Otherwise is likely what I'm looking for, the information that tells the risk (and the cure) to overwrite the ums functionality. Probably written in the Wiki page
Reply


Messages In This Thread
I think I brick the Tinker - by Im4Tinker - 07-25-2018, 06:32 AM
RE: I think I brick the Tinker - by Im4Tinker - 08-19-2018, 12:03 PM
RE: I think I brick the Tinker - by Tinker Board - 08-20-2018, 09:29 AM
RE: I think I brick the Tinker - by Im4Tinker - 08-20-2018, 11:09 AM
RE: I think I brick the Tinker - by jamess - 08-21-2018, 04:09 AM
RE: I think I brick the Tinker - by Im4Tinker - 08-21-2018, 05:25 AM
RE: I think I brick the Tinker - by jamess - 08-21-2018, 07:43 AM
RE: I think I brick the Tinker - by Im4Tinker - 08-21-2018, 01:12 PM
RE: I think I brick the Tinker - by Im4Tinker - 08-23-2018, 01:18 AM
RE: I think I brick the Tinker - by Smiley85 - 09-08-2018, 08:46 PM
RE: I think I brick the Tinker - by Im4Tinker - 09-09-2018, 06:57 AM
RE: I think I brick the Tinker - by Smiley85 - 09-09-2018, 07:36 PM
RE: I think I brick the Tinker - by k247 - 09-09-2018, 08:31 PM
RE: I think I brick the Tinker - by Smiley85 - 09-10-2018, 07:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)