Firefly Open Source Community

   Login   |   Register   |
New_Topic

Recover (update) whole emmc

34

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
34
Posted at 2/28/2021 04:42:05     
Hello and merry festives to all,

Unfortunately I have done a mistake by using the command given at the end of this other tutorial :
  1. sudo dd if=/storage/SDCARD/update.img of=/dev/block/mmblck0 bs=16384 conv=sync,fsync
Copy the code


Using the GMS-Firefly-RK3399_Android7.1.2_MP_181016.7z img provided somewhere else on the forum.
It seems that if I would have simply used mmblck0p10 this would have worked correctly...

http://opensource.rock-chips.com ... Default_storage_map
http://wiki.t-firefly.com/en/Fir ... ash-partition-image
http://wiki.t-firefly.com/en/Fir ... irmware.html#unpack
http://wiki.t-firefly.com/en/Fir ... directory-structure
http://wiki.t-firefly.com/en/Fir ... e_firmware.html#id3

I figure out one of these links must explain the correct procedure to correctly update the whole emmc from maskrom mode, but WHICH ONE ??!? That's where I need help...

Also, I got this error when trying to upgrade with the USB-c cable :
  1. Creating Comm Object failed!
Copy the code
This is a udev error ? I hope it will disappear by installing the correct libraries/packages.

Currently I have installed Xubuntu 20.04.2 LTS in order to follow the indications more easily.
Reply

Use props Report

34

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
34
Posted at 2/28/2021 07:46:02     
Last edited by sylvainsab In 2/28/2021 07:50 Editor

OK, I think this is the link I need to follow to recover the default emmc :
http://wiki.t-firefly.com/en/Fir ... ustry_firmware.html

Download this (zip folder) :
https://drive.google.com/drive/f ... wrwoEplQqWc5pap_YzC

And either of these :
https://gitlab.com/TeeFirefly/rk3399-nougat-bundle
https://gitlab.com/TeeFirefly/rk3399-industry-nougat-bundle

Perhaps use this repository for standard tools :
https://gitlab.com/TeeFirefly/FireNow-Nougat

I'll update this message/thread as I progress further.

*Oh*, and this is to get Ubuntu on the board :
http://wiki.t-firefly.com/en/Firefly-RK3399/ubuntu_manual.html
Although I would like to try other, less common systems too...

Reply

Use props Report

34

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
34
Posted at 3/2/2021 02:26:35     
Last edited by sylvainsab In 3/2/2021 02:28 Editor

OK, I managed to recover from the situation using (X)UBUNTU 20.04 LTS.

I followed the explanation on how to install Firefly's maintenance industry version of Android and used the update.img dated with 2018-10-16 I think.

First, add this as an udev rule in /etc/udev/rules/51-android.rules :
  1. SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666"
Copy the code


Then using the Linux_Upgrade_Tool v 1.2 (not 1.24) worked fine with :
  1. sudo upgrade_tool update.img
Copy the code
Your update.img file needs to be in the same folder.

I don't think it was actually a requirement, but here are the two apt install sequences I did for a list up-to-date with 20.04 as in "compile the environment to build" :
#1 as per http://wiki.t-firefly.com/en/Fir ... ompile_android.html
  1. sudo apt install git-core gnupg flex bison gperf libsdl1.2-dev libwxgtk3.0-gtk3-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-dev gcc-multilib libswitch-perl libssl1.1 libssl-dev
Copy the code
You will also need https://packages.debian.org/stable-backports/source/repo (doesn't exist in 20.04, back in 20.10)

#2 as per http://wiki.t-firefly.com/en/Fir ... ilation-environment
  1. sudo apt install expect-dev git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev linaro-boot-utils autoconf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 qtbase5-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client subversion asciidoc w3m dblatex graphviz python3-matplotlib libc6:i386 libssl-dev texinfo liblz4-tool genext2fs lib32stdc++6 expect
Copy the code


If any packages were still missing I retrieved them from : https://packages.ubuntu.com/


Now I have an Android system that works (and with Google Play) except that I can't access the "settings" menu of many apps (the three vertical-aligned little dots don't appear ...)

Anyway, on to try more exotic configurations, starting with Ubuntu.
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