Skip to content

Instantly share code, notes, and snippets.

@kashyapp
Last active April 15, 2017 21:26
Show Gist options
  • Save kashyapp/6095114 to your computer and use it in GitHub Desktop.
Save kashyapp/6095114 to your computer and use it in GitHub Desktop.
Sheevaplug + OS X

The Device

SheevaPlug JTAGKey FT2232D B:
  Product ID:  0x9e8f
  Vendor ID:	0x9e88

Install FTDI Driver for OS X

Download and install FTDI VCP driver from http://www.ftdichip.com/Drivers/VCP.htm

Patch it

to identify our device

$ vim /System/Library/Extensions/FTDIUSBSerialDriver.kext/Contents/Info.plist

            <key>FT2232D_A</key>
            <dict>
                    <key>CFBundleIdentifier</key>
                    <string>com.FTDI.driver.FTDIUSBSerialDriver</string>
                    <key>IOClass</key>
                    <string>FTDIUSBSerialDriver</string>
                    <key>IOProviderClass</key>
                    <string>IOUSBInterface</string>
                    <key>bConfigurationValue</key>
                    <integer>1</integer>
                    <key>bInterfaceNumber</key>
                    <integer>0</integer>
                    <key>idProduct</key>
                    <integer>40591</integer>
                    <key>idVendor</key>
                    <integer>40584</integer>
            </dict>
            <key>FT2232D_B</key>
            <dict>
                    <key>CFBundleIdentifier</key>
                    <string>com.FTDI.driver.FTDIUSBSerialDriver</string>
                    <key>IOClass</key>
                    <string>FTDIUSBSerialDriver</string>
                    <key>IOProviderClass</key>
                    <string>IOUSBInterface</string>
                    <key>bConfigurationValue</key>
                    <integer>1</integer>
                    <key>bInterfaceNumber</key>
                    <integer>1</integer>
                    <key>idProduct</key>
                    <integer>40591</integer>
                    <key>idVendor</key>
                    <integer>40584</integer>
            </dict>

OpenOCD if necessary

$ brew install openocd --enable-ft2232_libftdi

I bricked the first u-boot install

When I tried doing it from MMC instead of USB (no idea why). So I had to use openocd to load uboot.elf and then used a usb drive to get u-boot back http://www.newit.co.uk/forum/index.php/topic,2835.0.html

Ethernet to Wireless NAT

using the Sharing preferences of OSX so that I don't have to sit near the router

Installation

Since u-boot was not able to boot from the sdhc, I started the installation from usb and installed it to sdhc. Looks good until now.

http://www.cyrius.com/debian/kirkwood/sheevaplug/install/

I killed the power

and rebooted, and ended up with a I/O error from mmblk (the sdhc card). So I took it out, let it cool down (it had gotten very hot) and rebooted again. It worked.

### fstab ###
/dev/sda1 /media/usb0 auto rw,user,noauto,uid=1000,gid=1000,umask=000 0 0
/dev/sda2 /media/usb1 auto rw,user,noauto,uid=1000,gid=1000,umask=000 0 0
### exports
/media/usb0 *(insecure,rw,all_squash,anonuid=1000,anongid=1000,no_subtree_check,fsid=0,mp)
/media/usb1 *(insecure,rw,all_squash,anonuid=1000,anongid=1000,no_subtree_check,fsid=1,mp)

post installation

  • ssmtp to forward email
  • ntpdate to fix the time (sheevaplug is forgetting on reboot)
  • purge mlocate aptitude u-boot-tools exim4 exim4-config exim4-base exim4-daemon-light
  • smartmontools
  • nfs-kernel-server
  • laptop-mode-tools [config: PENDING]
  • tmux

minidlna

Snap to setup. Just works.

NFS

  • mount on osx needed the -o resvport option to work

snapshot of mmcblk0

using dd

Stopped rsyslog and cron and atd, ran sync, verified with sysctl vm.block_dump=1```.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment