eMMC Recovery Tool for XU3/XU4

Moderators: odroid, meveric, mdrjr

eMMC Recovery Tool for XU3/XU4

Unread postby mdrjr » Thu Aug 21, 2014 4:46 am

If the eMMC boot loader is corrupted,
If you want to reuse other platform(U3/XU/C1) OS installed eMMC,
You can use this tool.

In fact, this tool will install the Android OS including a boot blob in the hidden boot sector of eMMC.

Before start, remove everything attached to the board.
The only accept peripheral connected is the UART Kit. Everything else should be disconnected.

1. Download this file.
Download this latest alpha 3.1 file ->
http://dn.odroid.com/5422/ODROID-XU3/Android/4.4.4_Alpha_3.1_Oct-06-2015/android-4.4.4-alpha-3.1-sd2emmc_installer-odroidxu3-20151006.img.zip



2. Unzip with 7-Zip (Windows) or Linux using "xz -dk"

3. Flash to a microSD card using -> http://odroid.com/dokuwiki/doku.php?id= ... diskimager

4. Connect both the eMMC and MicroSD to XU3/XU4

5. Set the dip-switches near the ethernet Jack to "SD boot mode" (Make sure CCI is ON)
XU4 doesn't have the dip-switch. Just set the slide switch.

6. Connect Power and watch the LED status.

7. One the Green led goes out and only RED is on.
This may take 40seconds ~ 3minutes.
And remove the power supply.

8. Set the dip switches back to eMMC boot mode.

9. Remove the microSD card

10. Proceed with normal power up with your peripherals attached.

This picture shows the eMMC boot mode. "ON-ON"
Image

SD boot mode. "OFF-ON"
Image

After checking the Android on eMMC, you can install other Linux OS images on the eMMC later.
mdrjr
Site Admin
 
Posts: 11536
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: eMMC Recovery Tool for XU3

Unread postby dessa » Fri Sep 19, 2014 12:22 pm

Will this procedure destroy main Linux file system, or will it only restore BOOT loader on hidden partiton?
dessa
 
Posts: 34
Joined: Tue Feb 04, 2014 10:02 pm
languages_spoken: english
ODROIDs: XU, XU3, U3

Re: eMMC Recovery Tool for XU3

Unread postby odroid » Fri Sep 19, 2014 12:24 pm

It will clear all the file system and install the Android OS.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3

Unread postby uDude » Sun Oct 05, 2014 3:52 pm

A simple follow on question.

Is it possible to install the hidden boot blobs with dd on a linux box?

For the individual posting the original question. Save your data by mounting the mmc in linux and copying the data. if your box cannot detect and mount them, continue reading. You can dd the entire mmc onto a *nix harddrive then extract the partitions. Gpart can find partitions if the partition table is corrupt. You can mount them on loop, if needed.
uDude
 
Posts: 55
Joined: Mon Sep 15, 2014 7:32 am
languages_spoken: english
ODROIDs: 2 U3's
2 XU3's
5 C1's
24 XU4's

Re: eMMC Recovery Tool for XU3

Unread postby odroid » Sun Oct 05, 2014 4:27 pm

No.. it is not possible.
But if you can boot the Linux with the eMMC on ODROID, you can access the hidden blocks with this below method natively.

Code: Select all
sudo su -
# echo 0 > /sys/block/mmcblk0boot0/force_ro
# dd if=/root/boot0.img of=/dev/mmcblk0boot0


But, it seems to be useless when your eMMC can't boot the Linux. ;)
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3

Unread postby winterkiter » Tue Jan 06, 2015 10:18 pm

Hi. Since I run into the same problem I saved the image of the mmcblk0boot0 from an Odroid XU3 and U3 and uploaded them to github
https://github.com/flaviofontana/odroid_boot_partitions
winterkiter
 
Posts: 2
Joined: Wed Oct 23, 2013 11:54 pm
languages_spoken: english

Re: eMMC Recovery Tool for XU3

Unread postby Shak7 » Sun Feb 22, 2015 2:32 pm

If you recover using this tutorial, but still get errors when using dd or Win32DiskImager. For me, my noname brand microSD to USB adapter was the thing that got me looking for solutions for some hours Using appropriate adapters did the trick. As I was reading solutions, I tried one that was always said to fail... I used a Kingston SD to microSD adapter and plugged the 2 adapters with another SD card adapter in a USB 3.0 plug, USB 2 plug did not work (for me). First, as this post is about, I used the emmc recovery for XU3, then used the Odroid Win32Diskimager v1.1 in Windows, it took a while but all good!

In short: If you get errors when writing image, but can still format using gparted or diskpart, I guess you don't have to worry. Change the adapter you are using, the emmc module is working fine. It's a hardware combination problem.
Shak7
 
Posts: 4
Joined: Sat Feb 14, 2015 2:56 pm
languages_spoken: english
ODROIDs: U3, XU3Lite

Re: eMMC Recovery Tool for XU3

Unread postby Vespucci187 » Thu Mar 12, 2015 10:29 pm

My message is moved to a new thread...
title: XU3 eMMC issue, and won't boot microSD to fix bootpart

link: http://forum.odroid.com/viewtopic.php?f=99&t=10935#p79762
Last edited by Vespucci187 on Thu Mar 12, 2015 11:10 pm, edited 2 times in total.
User avatar
Vespucci187
 
Posts: 14
Joined: Wed Jun 18, 2014 1:32 am
languages_spoken: english
ODROIDs: .
Odroid U3 Community Edition
Odroid XU
eMMC 8Gb (linux)
eMMC 16Gb (Android 4.2.2)
USB WiFi Dongle
BenQ GL2250 with sound via HDMI

Re: eMMC Recovery Tool for XU3

Unread postby mdrjr » Thu Mar 12, 2015 11:01 pm

Create your own thread.
mdrjr
Site Admin
 
Posts: 11536
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: eMMC Recovery Tool for XU3/XU4

Unread postby slims » Sun Aug 02, 2015 9:00 am

A note for those who are looking to do this with the new XU4, you must use mdrjr's latest alpha 2.4 file. The older versions were ineffective.

Thanks mdrjr!
slims
 
Posts: 1
Joined: Sun Aug 02, 2015 8:26 am
languages_spoken: english
ODROIDs: U3, XU4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby apollostees » Mon Oct 19, 2015 9:25 am

Hello I'd like to try this, but I don't think my X-U4 has dip-switches.

Am I missing something? I Just want to revert back to the latest 4.4.4 (First post, please go easy...)

Image
ODROID X-U4
UBUNTU - 32GB SanDisk Extreme 32GB UHS-I/U3 Micro SDHC
ANDROID - 64GB eMMc 3.0
apollostees
 
Posts: 9
Joined: Fri Oct 16, 2015 10:09 am
languages_spoken: english

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Mon Oct 19, 2015 9:42 am

A slide switch on the left side can choose the boot media.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby apollostees » Tue Oct 20, 2015 12:40 am

Thanks for the reply. But, I just made a bad mistake.

I used the Win32 Disk Imager on my 64GB emmc. Now it reads as 399MB in windows??? After

After re-reading I saw I was supposed to use it on the SD card.

Is there anyway to fix this?
ODROID X-U4
UBUNTU - 32GB SanDisk Extreme 32GB UHS-I/U3 Micro SDHC
ANDROID - 64GB eMMc 3.0
apollostees
 
Posts: 9
Joined: Fri Oct 16, 2015 10:09 am
languages_spoken: english

Re: eMMC Recovery Tool for XU3/XU4

Unread postby gripped » Tue Oct 20, 2015 4:51 am

apollostees wrote:Thanks for the reply. But, I just made a bad mistake.

I used the Win32 Disk Imager on my 64GB emmc. Now it reads as 399MB in windows??? After

After re-reading I saw I was supposed to use it on the SD card.

Is there anyway to fix this?

Depends what you mean by 'Fix'

You can flash the recovery on the SD, follow the instructions and then after repartition the emmc.
If you have lost data you wanted on the emmc it is probably gone for good.
gripped
 
Posts: 691
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: eMMC Recovery Tool for XU3/XU4

Unread postby apollostees » Tue Oct 20, 2015 6:20 am

gripped wrote:
apollostees wrote:Thanks for the reply. But, I just made a bad mistake.

I used the Win32 Disk Imager on my 64GB emmc. Now it reads as 399MB in windows??? After

After re-reading I saw I was supposed to use it on the SD card.

Is there anyway to fix this?

Depends what you mean by 'Fix'

You can flash the recovery on the SD, follow the instructions and then after repartition the emmc.
If you have lost data you wanted on the emmc it is probably gone for good.


Ok, good. The emmc is pretty new, so don't have much data on it.

I was worried that I had permanently messed up it's size.

So I guess I can do this: http://forum.odroid.com/viewtopic.php?f=51&t=1582to repartition the emmc.

Or do you recommend anything else?
ODROID X-U4
UBUNTU - 32GB SanDisk Extreme 32GB UHS-I/U3 Micro SDHC
ANDROID - 64GB eMMc 3.0
apollostees
 
Posts: 9
Joined: Fri Oct 16, 2015 10:09 am
languages_spoken: english

Re: eMMC Recovery Tool for XU3/XU4

Unread postby mdrjr » Tue Oct 20, 2015 7:19 am

Just do the recovery, you'll boot onto Android..

Once you have Android running you can just go to settings -> storage -> format sdcard
mdrjr
Site Admin
 
Posts: 11536
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: eMMC Recovery Tool for XU3/XU4

Unread postby apollostees » Tue Oct 20, 2015 10:34 am

Yah!! :D

Thanks all. I'm back in business.

@mdrjr After I did the emmc recovery. I booted into Android and it took care of everything.

At first it said 54GB unavailable, when I came back all the space was again usable. I didn't even have to press a button.

Thanks again.
ODROID X-U4
UBUNTU - 32GB SanDisk Extreme 32GB UHS-I/U3 Micro SDHC
ANDROID - 64GB eMMc 3.0
apollostees
 
Posts: 9
Joined: Fri Oct 16, 2015 10:09 am
languages_spoken: english

Re: eMMC Recovery Tool for XU3/XU4

Unread postby pratikto.sulthoni.h » Sun Nov 15, 2015 3:36 pm

Hello, guys. I have make a silly mistake by formatting my 32Gb emmc using power ISO. Now, my emmc can not detected by windows and ubuntu. I'm trying using this method but unfortunately after I'm write & verify my flashed MicroSD using win32disk imager for odroid, I got the message that "read back data is different from original data.". Then I download the img file from http://dn.odroid.com/5422/ODROID-XU3/Android/4.4.4_Alpha_3.1_Oct-06-2015/android-4.4.4-alpha-3.1-sd2emmc_installer-odroidxu3-20151006.img.zip] again and try flashing and verify my microsd again but i got the same message. btw, is this d0f7409a1a81acfc1e05d7ec90a7265d the mda5 hash for alpha-3.1 file?

this the image of the message i've got
http://www.imagebam.com/image/68c600447169981
pratikto.sulthoni.h
 
Posts: 1
Joined: Sun Nov 15, 2015 2:14 pm
languages_spoken: english
ODROIDs: XU3

Re: eMMC Recovery Tool for XU3/XU4

Unread postby mdrjr » Mon Nov 16, 2015 4:20 am

Its simple, the program writes to the eMMC or MicroSD and reads back the data to compare with the file. If it doesn't match you get that error.
Its probably your usb->microsd reader that is the problem.
mdrjr
Site Admin
 
Posts: 11536
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: eMMC Recovery Tool for XU3/XU4

Unread postby Smrtz » Fri Jan 15, 2016 7:10 am

With the XU4, you unplug everything, move the switch to the micro-SD position, plug in the micro-SD card and the eMMC, and then plug in the power cable. The red LED will turn on and the blue one will flicker, the process is done once the blue LED turns off. Then you unplug the power cable, move the switch back to the eMMC position, and plug everything back in.

Edit: This is required if your eMMC module has a red sticker: http://odroid.com/dokuwiki/doku.php?id= ... ence_chart
Smrtz
 
Posts: 6
Joined: Thu Jan 14, 2016 8:18 am
languages_spoken: english

Re: eMMC Recovery Tool for XU3/XU4

Unread postby tuloski » Mon Feb 01, 2016 6:51 pm

Hello,
thanks for the guide.
I have 2 questions:
-Will the latest 4.4.4 work with XU4?
-Can I put Ubuntu with dd after I recover the eMMC with Android?

PS: win32disk imager seems bugged. It returns every time a failure in checking files even if it is working perfectly.
tuloski
 
Posts: 9
Joined: Wed Jul 15, 2015 12:58 am
languages_spoken: english italian spanish chinese
ODROIDs: U3 XU4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Tue Feb 02, 2016 8:55 am

- Yes. The latest sd2emmc image of Android 4.4.4 is compatible with XU4.
- Yes. Once the Android boots well, you can flash the Ubuntu image on that.

If the Verify on Win32DiskImager failed, some portion of the boot media could be corrupted.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3

Unread postby glenndmel » Fri Apr 29, 2016 6:34 pm

odroid wrote:It will clear all the file system and install the Android OS.


all the data will be erased after this?
glenndmel
 
Posts: 2
Joined: Fri Apr 29, 2016 3:36 pm
languages_spoken: english
ODROIDs: droid

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Fri Apr 29, 2016 6:40 pm

Yes.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby Kirk » Fri Jul 22, 2016 7:22 am

Similar procedure for flashing eMMC modules with Odroid Ubuntu 16.04?
I've been following this guide for Ubuntu 14.04 and using an initial Android image from android-4.4.4-alpha-3.3-sd2emmc_installer-odroidxu3-20151222.img.
Should I start with a more recent Android image? - Probably android-4.4.4-alpha-3.9-sd2emmc_installer-odroidxu3-20160712.img.zip
Kirk
 
Posts: 12
Joined: Tue Jan 05, 2016 8:00 am
languages_spoken: english
ODROIDs: odroid-xu4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Fri Jul 22, 2016 11:42 am

You can use old one.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby iRouli » Mon Aug 08, 2016 2:03 pm

I take it #3 is for Windows people? Linux people can use, say, dd or gnome disk utility DISKS?
iRouli
 
Posts: 1
Joined: Mon Aug 08, 2016 1:55 pm
languages_spoken: english
ODROIDs: XU4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Mon Aug 08, 2016 6:14 pm

Right. I've updated step #3.
User avatar
odroid
Site Admin
 
Posts: 20662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests