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 the eMMC.

Before starting, 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 4.9 file ->
https://dn.odroid.com/5422/ODROID-XU3/Android/4.4.4_Alpha_4.9_May-17-2017/android-4.4.4-alpha-4.9-sd2emmc_installer-odroidxu3-20170517.img.zip

or from this mirror:
hhttps://odroid.in/mirror/dn.odroid.com/5422/ODROID-XU3/Android/4.4.4_Alpha_4.9_May-17-2017/android-4.4.4-alpha-4.9-sd2emmc_installer-odroidxu3-20170517.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(or slide-switch) 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" for XU3/XU3-Lite.
Image
SD boot mode. "OFF-ON"
Image

XU4 has only simple slide-switch to select a boot source.

If the Android OS boots successfully, you can install other Linux OS images on the eMMC later.
mdrjr
Site Admin
 
Posts: 11598
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: 22768
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: 22768
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: 11598
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: 22768
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: 11598
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: 11598
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: 22768
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: 22768
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: 22768
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: 22768
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby loredin » Tue Jan 24, 2017 9:32 pm

hi the link for the android img is very slow to me, is this normal ? any other link maybe ?

(EDIT : finally got it completed in about 5 hours so that s fine - AND A BIG THANK YOU TOO !!)
loredin
 
Posts: 11
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Fri Jan 27, 2017 5:49 am

loredin wrote:hi the link for the android img is very slow to me, is this normal ? any other link maybe ?

(EDIT : finally got it completed in about 5 hours so that s fine - AND A BIG THANK YOU TOO !!)


Added a link of mirror in the first post.
User avatar
odroid
Site Admin
 
Posts: 22768
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby bennr01 » Wed Feb 08, 2017 12:44 am

Hello,
I have a problem: unfortunately the emmc recovery does not appear to work for me.
I downloaded the image from the mirror-server, validated the md5sum, unzipped it and wrote it to a micro-sd-card using "dd".
My odroid XU4 starts, but the blue light wont turn off, even after a hour. I have inserted both the micro-sd and the emmc and set the boot-mode-switch to micro-sd.
All peripherals are disconnected, only the power-cable is connected.
Do you have any idea what the problem may be?
Thanks
bennr01
 
Posts: 3
Joined: Wed Feb 08, 2017 12:31 am
languages_spoken: english, german
ODROIDs: u3, xu4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby meveric » Wed Feb 08, 2017 1:03 am

Do not connect both at once. Only boot the SD card and after the image booted plugin the eMMC module. Do not boot with eMMC module connected.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7034
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: eMMC Recovery Tool for XU3/XU4

Unread postby bennr01 » Wed Feb 08, 2017 4:28 am

meveric wrote:Do not connect both at once. Only boot the SD card and after the image booted plugin the eMMC module. Do not boot with eMMC module connected.

Thanks, but unfortunately this also does not seem to work for me. The blue light keeps on (even without the eMMC connected). I did check the MD5sum and it appears to be correct. Also, the instructions say both the micro-SD and the eMMC should be connected before connecting the power supply.
bennr01
 
Posts: 3
Joined: Wed Feb 08, 2017 12:31 am
languages_spoken: english, german
ODROIDs: u3, xu4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby meveric » Wed Feb 08, 2017 6:01 am

Ah yeah that was on another board I think..
Anyway what eMMC module are you try to reset? One from the U3?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7034
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: eMMC Recovery Tool for XU3/XU4

Unread postby bennr01 » Wed Feb 08, 2017 9:58 pm

meveric wrote:Ah yeah that was on another board I think..
Anyway what eMMC module are you try to reset? One from the U3?


Yes, it is a 64GB eMMC module for the U3 which had ubuntu preinstalled.
Edit: I am trying to use the eMMC in the XU4.
bennr01
 
Posts: 3
Joined: Wed Feb 08, 2017 12:31 am
languages_spoken: english, german
ODROIDs: u3, xu4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby thunderbird » Wed Mar 08, 2017 6:40 am

How does the eMMC recovery tool work? Is the micro SD card wiping all the data of the eMMC card, or is it just fixing the boot.ini file?

I have a similar problem where an eMMC card does not boot an Odroid XU4. Fortunately, I have another XU4 and I can attach the faulty eMMC card to the other Odroid using USB interface. I can see the boot.ini file of the faulty eMMC card, but I can't access the Ubuntu image. Is there a way to recover the data in the Ubuntu image?

Thank you!
thunderbird
 
Posts: 4
Joined: Wed Mar 08, 2017 6:38 am
languages_spoken: english
ODROIDs: XU4, XU3

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Wed Mar 08, 2017 8:44 am

SD-card writes a boot blob into a hidden boot block in the eMMC.
And writes bootable Android image on the eMMC data area.

Open a new thread in XU4 Ubuntu sub-forum and other users might help you.
User avatar
odroid
Site Admin
 
Posts: 22768
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: eMMC Recovery Tool for XU3/XU4

Unread postby Cartridge » Sun Apr 02, 2017 10:28 pm

Where is the older tool which did not contain android at all? It was much lighter which interms means less writing time and no android of course :P. Also it did work, why did it become obsolete? I remember the process it was flashing blue, you'd put the emmc and wait till all led dies but red.
Image
http://cartridgeports.cf/
ODROID's DO what WinDON'T "That's Blast Processing!"
User avatar
Cartridge
 
Posts: 602
Joined: Fri Sep 27, 2013 9:06 pm
languages_spoken: english, french natively
ODROIDs: The Perfect ODROID-U2, ODROID-U3+, C1, XU3

Re: eMMC Recovery Tool for XU3/XU4

Unread postby kosh07 » Sun May 14, 2017 3:16 pm

I should burn the android image to eMMC too?
or microSD-android , eMMC-linux?
eMMC is not important in this process?
kosh07
 
Posts: 98
Joined: Tue Dec 06, 2016 12:10 pm
languages_spoken: english, korean
ODROIDs: XU4

Re: eMMC Recovery Tool for XU3/XU4

Unread postby odroid » Mon May 15, 2017 9:43 am

No. You need to flash the Android image on SD card only.
User avatar
odroid
Site Admin
 
Posts: 22768
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 4 guests