Changes between Version 20 and Version 21 of SetupPiZeroSSHOverUSB


Ignore:
Timestamp:
Jun 23, 2018, 8:34:43 AM (7 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SetupPiZeroSSHOverUSB

    v20 v21  
    11You can use IP over USB to interact with your pi zero from a notebook computer without needing a separate keyboard and monitor for your Pi.  For background see [http://blog.gbaman.info/?p=791 here].
    22
    3 After installing Jessie Lite on your SD card, you can edit the files in the /boot partition of the SD card:
     3After installing Raspbian Lite on your SD card, you can edit the files in the /boot partition of the SD card:
    44* Edit [https://www.raspberrypi.org/documentation/configuration/config-txt.md config.txt]:[https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README more info]
    55    * Uncomment: dtparam=i2c_arm=on
     
    88    * Add to end: {{{dtoverlay=dwc2}}}  (is this the default?)
    99    * Edit [http://elinux.org/RPi_cmdline.txt cmdline.txt]:
    10         *  Insert {{{modules-load=dwc2,g_ether g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca}}} after rootwait. This will load the IP over USB driver and configure a fixed MAC address (otherwise, the Pi will generate a new random MAC address each boot and Windows will think it is a different Pi).  See [http://blog.gbaman.info/?p=791 here] and [https://gist.github.com/Gadgetoid/319ecf8e3c5d3660e298 here] for more info.  Use a unique pair of MAC address for each Pi.  Note there is exactly one space between each term, and the whole cmdline.txt file is one line.
     10        * Insert {{{modules-load=dwc2,g_ether g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca}}} after rootwait. This will load the IP over USB driver and configure a fixed MAC address (otherwise, the Pi will generate a new random MAC address each boot and Windows will think it is a different Pi).  See [http://blog.gbaman.info/?p=791 here] and [https://gist.github.com/Gadgetoid/319ecf8e3c5d3660e298 here] for more info.  Use a unique pair of MAC address for each Pi.  Note there is exactly one space between each term, and the whole cmdline.txt file is one line.
     11        * Remove the command that will automatically resize the partition to fill the disk: {{{init=/usr/lib/raspi-config/init_resize.sh
     12}}}
    1113    * create an empty file named /boot/ssh  (so ssh will be enabled)     
     14    * create an empty file named /boot/avahi (to enable mdns/zeroconfig)
    1215* Install Bonjour on your computer from [https://support.apple.com/downloads/bonjour%2520for%2520windows here] to support automatic discovery of the Pi
    1316* Connect your Pi to the computer via a USB 2.0 port.   On the Pi use the usb port for data and power, that's the one in the middle, not the one on the end (which is power, no data).