How to write ICD Pro image to SD card under OSX

News, questions and bugs reports about CosmosEx by Jookie. Now we have a Raspberry Pi in our machines!

Moderators: Jookie, Moderator Team

User avatar
rv0
Atarian
Atarian
Posts: 5
Joined: Tue Mar 31, 2015 4:55 pm

How to write ICD Pro image to SD card under OSX

Postby rv0 » Mon Dec 07, 2015 11:47 pm

I read How to write ICD Pro image to SD card under Windows
As I don't have access to a PC with SD card reader and my Macbook Air has an SD card slot built in, I figured I'd just try with commandline, and it works!
So sharing the info here for other people:

1. Download jookie's SD card image (see above link) and place it on your desktop for convenience

2. Open terminal

3. Type

Code: Select all

diskutil list
to find out the name of your SD card, in my case it was /dev/disk4. Pay close attention in the following steps that you use to correct name! I will use /dev/diskX from now on to make sure nobody copy-pastes this blindly and ends up crying..

4. Unmount the SD card

Code: Select all

diskutil unmountDisk /dev/diskX


5. Format the SD card

Code: Select all

sudo newfs_msdos -F 16 /dev/diskX
(I'm not 100% sure this step is needed, but I did it)

6. Type

Code: Select all

sudo dd if=~/Desktop/sd_card_icdpro.img of=/dev/rdiskX bs=5m


Wait for a while.. You don't see the progress but it is doing something.Once it finishes you'll have a working ICD Pro card. I used a 16MB SD card, not sure how well it works with other sizes. Just glad it works for me :D

Dal
Administrator
Administrator
Posts: 4071
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: How to write ICD Pro image to SD card under OSX

Postby Dal » Tue Dec 08, 2015 8:42 am

You don't need to format the card, dd is a pure block transfer program.
TT030: 4MB/16MB + Crazy Dots, Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

User avatar
rv0
Atarian
Atarian
Posts: 5
Joined: Tue Mar 31, 2015 4:55 pm

Re: How to write ICD Pro image to SD card under OSX

Postby rv0 » Tue Dec 08, 2015 9:23 am

Right, I expected that, thanks

scroll1
Atarian
Atarian
Posts: 3
Joined: Sun Feb 21, 2016 11:35 pm

Re: How to write ICD Pro image to SD card under OSX

Postby scroll1 » Fri Apr 22, 2016 12:10 am

thanks for your guide Rv0 on how to use dd in OSX to write the img file to a microSD card. This is definitely the most simplest method for me to us because I'm running OSX 10 on a laptop.
However, no matter how many cards I try - Lexar 8GB or Transend 16GB - writing the image to the card using dd, it will not boot in my raspPi.
I use the same cards and try installing Raspian onto the cards and the RasPi boots ok with no problems.
I am obviously not using dd correctly ?!?

- I download the sd_card_icdpro.zip file - extract it to get a sd_card_icdpro.img file on my desktop
- I format the microSD card to Fat32 (but I don't think that is necessary)
- unmount the card, and then "sudo dd if=~/Desktop/sd_card_icdpro.img of=/dev/rdisk5 bs=5m" (I checked that the USB was mounted as disk5)
- put the card into the raspPi - it is a B+ Pi
- but, it doesn't boot! there is nothing on the screen when I plug in the HDMI cable

If I put the card back into the OSX machine it says it is not formatted and can't read it ...

Any help would be appreciated ...

User avatar
Jookie
Hardware Guru
Hardware Guru
Posts: 1245
Joined: Wed Feb 04, 2004 6:54 pm
Location: Kosice, Slovakia
Contact:

Re: How to write ICD Pro image to SD card under OSX

Postby Jookie » Fri Apr 22, 2016 2:04 am

scroll1 wrote:- I download the sd_card_icdpro.zip file - extract it to get a sd_card_icdpro.img file on my desktop
...
- put the card into the raspPi - it is a B+ Pi


This is wrong.

If you want an image for RaspPi, then you have to download 'Raspberry Pi SD card image for running the device' from the CosmosEx download page (http://joo.kie.sk/?page_id=474)

If you want an image for the front SD card slot, which will ST use as hard drive, then you can use the 'sd_card_icdpro.img'.

If you swap these two, it won't work.

scroll1
Atarian
Atarian
Posts: 3
Joined: Sun Feb 21, 2016 11:35 pm

Re: How to write ICD Pro image to SD card under OSX

Postby scroll1 » Fri Apr 22, 2016 3:42 am

thanks Jookie.
my basic error, as I expected ... all clear and booting correctly now!


Social Media

     

Return to “CosmosEx”

Who is online

Users browsing this forum: No registered users and 1 guest