Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[General] Recover (update) whole emmc

93

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
93

【General】 Recover (update) whole emmc

Posted at 2/28/2021 04:42:05      View:2662 | Replies:9        Print      Only Author   [Copy Link] 1#
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

93

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
93
Posted at 2/28/2021 07:46:02        Only Author  2#
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

93

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
93
Posted at 3/2/2021 02:26:35        Only Author  3#
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

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52
Posted at 11/13/2024 18:32:12        Only Author  4#
Find your signature scent with ECS's captivating perfume for men. Explore bold to refined fragrances to match your style. Shop now!
Reply

Use props Report

70

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
70
Posted at 11/13/2024 18:39:16        Only Author  5#
Discover the latest collection of branded shoes for men at Adoro. Step up your style game with our exclusive range of footwear.
Reply

Use props Report

61

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
61
Posted at 11/13/2024 19:43:43        Only Author  6#
Gulaal provides a premier collection of bridal dresses in Pakistan. Experience the ultimate in bridal fashion with our elegant designs and exceptional craftsmanship.
Reply

Use props Report

54

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
54
Posted at 11/13/2024 20:44:13        Only Author  7#
Elevate your NetSuite experience with Cloud Nexus Lab's expert customer support. Our dedicated team ensures seamless integration and personalized assistance, empowering businesses to maximize efficiency. Trust us to handle your NetSuite needs, providing solutions tailored to your unique requirements. Discover unparalleled support today with Cloud Nexus Lab!
Reply

Use props Report

46

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
46
Posted at 7 day before        Only Author  8#
Experience the fusion of tradition and luxury with Mushq Official's velvet dresses Pakistani. Explore intricate embroideries and cultural motifs in plush velvet fabrics.
Reply

Use props Report

54

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
54
Posted at 7 day before        Only Author  9#
Discover the latest trends in ready to wear wedding dresses UK from Qamaash. Shop Pakistani ready-to-wear fashion in the UK and elevate your style effortlessly.
Reply

Use props Report

42

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
42
Posted at 7 day before        Only Author  10#
Perfect for a variety of occasions, our chiffon suits at Afrozeh boast timeless elegance and versatility. Whether adorned with intricate embroidery or featuring minimalist designs, each suit is a testament to the craftsmanship that defines our collection.
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