ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Post Reply
don_apple
Posts: 32
Joined: Thu Apr 18, 2013 3:09 am
languages_spoken: german english
ODROIDs: ODROID-X2
Location: Germany
Has thanked: 0
Been thanked: 0
Contact:

ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by don_apple » Mon Apr 22, 2013 3:05 am

(Note: the following instructions are partly based on http://elinux.org/RPi_Easy_SD_Card_Setu ... nd_line.29)
  1. Download the image of the OS you want to boot on your ODROID to the local disk of your Mac
  2. Open the Terminal app and go to the folder where you downloaded the image (e. g. '/Users/<youruserame>/Downloads/Odroid')

    Code: Select all

    $ cd /Users/<yourusername>/Downloads/Odroid
  3. If the Image is compressed, unpack it (if it is in '.xz' format you need a tool like The Unarchiver to be able to unpack it). After uncompressing the image you should see something like the following:

    Code: Select all

    $ ll Fedora-18-ODROID-X2-LCD-KIT.img*
    -rw-r--r--@ 1 <yourusername>  staff  6438256640 16 Apr 20:00 Fedora-18-ODROID-X2-LCD-KIT.img
    -rw-rw-rw-@ 1 <yourusername>  staff   542679616 12 Feb 00:03 Fedora-18-ODROID-X2-LCD-KIT.img.xz
  4. Check the currently mounted filesystems

    Code: Select all

    $ df -h
    Filesystem      Size   Used  Avail Capacity   iused    ifree %iused  Mounted on
    /dev/disk0s2   465Gi  441Gi   23Gi    95% 115766469  6120273   95%   /
    devfs          186Ki  186Ki    0Bi   100%       643        0  100%   /dev
    map -hosts       0Bi    0Bi    0Bi   100%         0        0  100%   /net
    map auto_home    0Bi    0Bi    0Bi   100%         0        0  100%   /home
    /dev/disk1s2   931Gi  791Gi  140Gi    85% 207411572 36695099   85%   /Volumes/Backup
    
  5. Insert the SD card and then check the list of mounted filesystems again (Mac OS X should have automatically have mounted the SD card, in my case it shows up as '/Volumes/Untitled')

    Code: Select all

    $ df -h
    Filesystem      Size   Used  Avail Capacity   iused    ifree %iused  Mounted on
    /dev/disk0s2   465Gi  441Gi   23Gi    95% 115766748  6119994   95%   /
    devfs          188Ki  188Ki    0Bi   100%       651        0  100%   /dev
    map -hosts       0Bi    0Bi    0Bi   100%         0        0  100%   /net
    map auto_home    0Bi    0Bi    0Bi   100%         0        0  100%   /home
    /dev/disk1s2   931Gi  791Gi  140Gi    85% 207411572 36695099   85%   /Volumes/Backup
    /dev/disk2s1   599Mi  541Mi   58Mi    91%         0        0  100%   /Volumes/Untitled
  6. Note the name of the filesystem that Mac OS X assigned to the mounted SD card (in my case /dev/disk2s1)
  7. Unmount that filesystem so that you will be allowed to overwrite the disk:

    Code: Select all

    $ sudo diskutil unmount /dev/disk2s1
  8. Using the device name of the filesystem work out the raw device name for the entire SD card, by omitting the final "s1" and replacing "disk" with "rdisk" (Important: you will lose all data on the hard drive on your computer if you get the wrong device name). Make sure the device name is the name of the whole SD card as described above, not just a partition of it (for example, rdisk3, not rdisk3s1. Similarly you might have another SD drive name/number like rdisk2 or rdisk4, etc. -- recheck by using the df -h command both before & after you insert your SD card reader into your Mac if you have any doubts!):
    In my case, since the device name of the mounted filesystem is /dev/disk2s1 the entire SD card has the device name /dev/rdisk2
  9. Write the image to the card with the dd command, using the raw disk device name from above (read carefully the above step, to be sure you use the correct rdisk# here!)

    Code: Select all

    sudo dd bs=1m if=Fedora-18-ODROID-X2-LCD-KIT.img of=/dev/rdisk2
    (note that dd will not output any information until there is an error or it is finished)
  10. When dd finished successfully it will display some information and the SD card will be re-mounted. You can now eject the card:

    Code: Select all

    sudo diskutil eject /dev/rdisk2
  11. Remove the SD card from the card reader and put it in the ODROID to boot your new OS image

AeFFe
Posts: 239
Joined: Wed May 08, 2013 5:05 pm
languages_spoken: english
ODROIDs: oDroid-U2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by AeFFe » Mon May 27, 2013 10:13 pm

The same procedure can be applied in case of eMMC card? I mean, the eMMC card inserted in the card reader and connected to a computer is a micro SD memory card so it can be managed as a normal memory card, isn't it?
Angelo

don_apple
Posts: 32
Joined: Thu Apr 18, 2013 3:09 am
languages_spoken: german english
ODROIDs: ODROID-X2
Location: Germany
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by don_apple » Tue May 28, 2013 2:50 am

Hello!
AeFFe wrote:The same procedure can be applied in case of eMMC card? I mean, the eMMC card inserted in the card reader and connected to a computer is a micro SD memory card so it can be managed as a normal memory card, isn't it?
Yes.

Regards,
don_apple

AeFFe
Posts: 239
Joined: Wed May 08, 2013 5:05 pm
languages_spoken: english
ODROIDs: oDroid-U2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by AeFFe » Tue May 28, 2013 3:32 am

Thank you Sir.
Angelo

User avatar
maema
Posts: 5
Joined: Sat Jun 22, 2013 2:02 am
languages_spoken: french
ODROIDs: U2 - X2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by maema » Sat Jun 22, 2013 2:16 am

You can also use the one for RasperyPi : RPi-sd card builder v1.2

bMd
Posts: 9
Joined: Sat Nov 08, 2014 12:35 am
languages_spoken: english
ODROIDs: XU3, XU4, C1, C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by bMd » Wed Apr 22, 2015 4:19 am

Thanks don_apple!

davidsi
Posts: 18
Joined: Tue Sep 23, 2014 7:14 am
languages_spoken: english
ODROIDs: xu3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by davidsi » Thu Aug 04, 2016 10:05 am

I did all this, the eMMC flashed beautifully, it comes up in terminal mode and asks for the odroid login. I assume the login name and password are both odroid by default, however, this does not work. Can someone please tell me the default username/password.

thx

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by odroid » Thu Aug 04, 2016 1:37 pm

Which OS image did you flash? Let us know the file name.

hlclark78
Posts: 1
Joined: Tue Dec 13, 2016 5:06 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by hlclark78 » Tue Dec 13, 2016 5:50 am

don_apple wrote: [*] Write the image to the card with the dd command, using the raw disk device name from above (read carefully the above step, to be sure you use the correct rdisk# here!)

Code: Select all

sudo dd bs=1m if=Fedora-18-ODROID-X2-LCD-KIT.img of=/dev/rdisk2
(note that dd will not output any information until there is an error or it is finished)
Don, thank you so much for writing this post! Could you clarify three things which are all related to this odroid article.

1) Why is the conv=fsync option not needed? I did read the man pages and I did not even see the option listed in OSX.
2) Lastly, is the sync command at the end needed at all on OSX? Or do you know if this is only related to the conv=fsync option above?

User avatar
rooted
Posts: 6588
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 88 times
Been thanked: 17 times
Contact:

Re: ODROID [X/X2/U/U2] Flashing Images on Mac OS X

Unread post by rooted » Tue Dec 13, 2016 10:17 am

If you add 'status=progress' dd will output statistics.

Post Reply

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest