Author Topic: MH flash to RPI from iMac  (Read 1258 times)

0 Members and 1 Guest are viewing this topic.

Offline yahtah

  • Forecaster
  • *****
  • Posts: 463
  • Too soon old, too late smart.
MH flash to RPI from iMac
« on: January 12, 2015, 12:22:19 AM »
I want to run Meteohub on a Raspberry Pi. I have the MicroSD card and USB reader, but your instructions only cover using Windows or Linux. The low level formatting required wants a multi partition on the card, can this be done on a Mac using disk utility?
-Lee

Davis VP2, Meteostick, RPi Meteohub, KCACALIF33
working on an RPi webcam and a 30 ft. flagpole...

Offline docbee

  • Moderator
  • Forecaster
  • *****
  • Posts: 855
    • smartbedded
Re: MH flash to RPI from iMac
« Reply #1 on: January 13, 2015, 06:22:19 PM »
Are you familiar with dd from the shell?
founder of smartbedded.com - home of meteohub, meteoplug, meteobridge, meteostick

Offline yahtah

  • Forecaster
  • *****
  • Posts: 463
  • Too soon old, too late smart.
Re: MH flash to RPI from iMac
« Reply #2 on: January 13, 2015, 11:03:32 PM »
Are you familiar with dd from the shell?

I am reading about it now and will try to understand any instructions you can give.
-Lee

Davis VP2, Meteostick, RPi Meteohub, KCACALIF33
working on an RPi webcam and a 30 ft. flagpole...

Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: MH flash to RPI from iMac
« Reply #3 on: January 14, 2015, 08:46:19 AM »
I did this successfully last summer.  There was a gotcha in the process, and I wish that I wrote it down! :(

It may have been that OS-X mounted the card after it was formatted, and it needed to be un-mounted before hitting it with the dd command.  Here's my root user's (sudo -i) command line buffer history from around that time:

Code: [Select]
diskutil unmount
diskutil unmount /Volumes/RECOVERY
diskutil list
dd if=mhrpi-v5.0.img of=/dev/rdisk3 bs=1m
diskutil list

Note that Unix variants use device names starting with "r" to denote the raw device, which dd needs to work its magic.  Linux does not use this convention.  Oh, and obviously make sure that you pick the correct disk, since it is assigned randomly and probably won't be rdisk3 on your Mac.

As an additional reference, you might want to check the Raspberry Pi docs for how to make a bootable Noobs SD card on a Mac for other hints.  I didn't need to use their third-party flash formatter program, IIRC.  The built-in Mac stuff worked fine.....
WU Gold Stars for everyone! :lol:

Offline yahtah

  • Forecaster
  • *****
  • Posts: 463
  • Too soon old, too late smart.
Re: MH flash to RPI from iMac
« Reply #4 on: January 27, 2015, 09:24:58 PM »
It's working! I was able to follow the instructions here:

https://en.opensuse.org/SDB:Create_a_Live_USB_stick_using_Mac_OS_x

I don't know what this did that didn't happen using DiskUtility in OS X, but it worked.
-Lee

Davis VP2, Meteostick, RPi Meteohub, KCACALIF33
working on an RPi webcam and a 30 ft. flagpole...