Modifications

Sauter à la navigation Sauter à la recherche
3 512 octets ajoutés ,  22 janvier 2018 à 04:49
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Pi-Zero-Headless-NAV}}
 
{{Pi-Zero-Headless-NAV}}
   −
x
+
{{traduction}}
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-01.jpg|640px}}
 +
 
 +
If you were unable to ping or ssh into the Pi Zero then you need to trouble shoot what's going on. This is where the {{pl|144|USB Console Cable}} comes in handy.
 +
 
 +
There is already an excellent guide that goes over the basics of using a USB console cable with instructions on requirements for the various major operating systems. '''Read this first and then come back.'''
 +
 
 +
This guide will use <a href="https://www.gnu.org/software/screen/manual/screen.html">screen</a> on Linux for the examples, but since pretty much everything is command line based and just a bunch of text, it should look the same on all OS's.
 +
 
 +
== Interfacing To Pi Zero ==
 +
The Pi Zero leaves the GPIO header pins unpopulated. This is actually a great feature as it allows you to solder on whatever style makes most sense for your project.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-02.jpg|640px}}
 +
 
 +
In the image above there's (A) a Pi Zero with no header attached, (B) a Pi Zero W with male headers, (C) a Pi Zero with right angle female headers, and (D) a custom topper with serial pins indicated.
 +
 
 +
If you have male headers, you can connect the console cable directly. If you have female headers, just use some short lengths of prototyping wire.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-03.jpg|640px}}
 +
 
 +
== Power Options ==
 +
There are a couple of different ways to power the Pi Zero when using a console cable. Both options are shown below.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-04.jpg|640px}}
 +
 
 +
You should be able to power the Pi Zero directly from the USB cable (A). However, if you have other items attached to the Pi Zero that require more power, you may need to provide power through the micro-USB connector (B). In that case, do not connect the red power lead.
 +
 
 +
== Booting With A Console Cable ==
 +
Proper wiring is critical, esp. for the red power cable. Carefully examine the images below to insure you have the correct cable connections.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-05.jpg|640px}}
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-06.jpg|640px}}
 +
 
 +
OK. Let's bring it up. Do things in this order:
 +
 
 +
# Insert SD card into Pi Zero.
 +
# Connect the green, white, and black cable leads to the GPIO header. '''Leave red disconnected for now.'''
 +
# Insert USB console cable into host computer.
 +
# Launch whatever terminal program you use.
 +
# Make 110% sure you know where the 5V pins are on the GPIO header.
 +
# Swiftly and carefully attach the red cable lead to one of the 5V pins on the header. '''THIS IS THE SPARK OF LIFE!''' (or death if you chose the wrong pin)
 +
 
 +
You should now see some signs of life on the green ACT LED.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-07.jpg|640px}}
 +
 
 +
And in your terminal window, you should see boot messages scrolling by.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-08.png|640px}}
 +
 
 +
Eventually you should get to a login prompt.
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-09.png|640px}}
 +
 
 +
Use the following user name and password to login:
 +
* '''pi'''
 +
* '''raspberry'''
 +
 
 +
{{ADFImage|Pi-Zero-Headless-Depanner-10.png|640px}}
 +
 
 +
And you're in.
 +
 
 +
What's next depends on what the problem is. We can't cover them all here. But now you have access to the Pi Zero and can navigate the system and edit things as needed based on whatever guidance you receive.
 +
 
 +
Some common basic commands are:
 +
* '''dmesg''' to check the kernel log for anything odd
 +
* '''ifconfig''' to see network status and settings
 +
* '''lsusb''' to see what's connected to USB port
 +
* '''lsmod''' to check for kernel modules
    
{{Pi-Zero-Headless-TRAILER}}
 
{{Pi-Zero-Headless-TRAILER}}
29 918

modifications

Menu de navigation