Skip to content

Commit 896ef6d

Browse files
Michal Sidoramalinowsk2
Michal Sidor
authored andcommitted
Add setting armbian to documentation
Change-Id: I4ac90647431630568b6f027d8cd395101f090daf Signed-off-by: Michal Sidor <m.sidor@samsung.com> Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
1 parent c9b43be commit 896ef6d

File tree

2 files changed

+174
-0
lines changed

2 files changed

+174
-0
lines changed

Diff for: doc/sphinx/source/armbian.txt

+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
#########################
2+
OS installation - Armbian
3+
#########################
4+
5+
Armbian is an operating system for ARM based boards based on Debian. It is the
6+
recommended operating system for MuxPi board.
7+
8+
There is also a flavour of Armbian based on Ubuntu, which should work in a
9+
similar manner to the Debian one, although it is not supported.
10+
11+
12+
************
13+
Installation
14+
************
15+
16+
.. highlight:: console
17+
18+
#. Download the latest Stretch `Armbian for Nanopi Neo`_. You can either use
19+
`torrent`_ or `http`_ download. We will download via http using wget. You
20+
can install wget on Debian-based distributions with ``apt-get install
21+
wget``::
22+
23+
$ wget https://dl.armbian.com/nanopineo/Debian_stretch_next.7z
24+
25+
.. _`Armbian for Nanopi Neo`: https://www.armbian.com/nanopi-neo/
26+
.. _`http`: https://dl.armbian.com/nanopineo/Debian_stretch_next.7z
27+
.. _`torrent`: https://dl.armbian.com/nanopineo/Debian_stretch_next.7z.torrent
28+
29+
#. Go to directory where you placed downloaded file and uncompress it. It will
30+
likely be a ``.7z`` file. To extract it we will use `7-Zip`_. You can
31+
install it on Debian-based distributions with ``apt-get install
32+
p7zip-full``::
33+
34+
$ 7z e Debian_*
35+
36+
.. _`7-Zip`: http://www.7-zip.org/
37+
38+
#. Verify if the download and unpacking were successful by checking checksum::
39+
40+
$ sha256sum Armbian_*.img
41+
42+
Output should be the same as contents of sha256sum.sha file.
43+
44+
#. Connect your SD card and check which ``/dev/sdX`` it is. You can do this
45+
using e.g. fdisk::
46+
47+
# fdisk -l
48+
49+
#. Copy the extracted image to your SD card.
50+
51+
.. danger:: Make sure your ``/dev/sdX`` device is the SD card. If performed
52+
incorrectly, next step may destroy your files unrecoverably and even stop
53+
your machine from working.
54+
55+
.. note:: You need to adjust Armbian_*.img name as dd tools does not take
56+
wildcards.
57+
58+
59+
::
60+
61+
# dd bs=1M if=Armbian_*.img of=/dev/sdX
62+
63+
You can verify if the image was copied correctly by running::
64+
65+
# sha256sum /dev/sdX
66+
67+
#. Put prepared SD card in your MuxPi's NanoPi SD card slot.
68+
69+
70+
*************
71+
Configuration
72+
*************
73+
74+
#. Connect NanoPi's UART0. You can use the UART->USB converter on the MuxPi
75+
board, just connect a cable to microUSB port on the bottom of the board.
76+
77+
.. note:: You can omit this if you connect the device to DHCP server and
78+
connect over ssh. You will need to adjust below steps in such case.
79+
80+
#. Connect to serial using either screen or minicom (or your tool of choice)
81+
82+
.. warning:: Change ``ttyUSB0`` to your serial that is connected to NanoPi.
83+
If you do not have any USB UART connected, MuxPi's converter should be
84+
ttyUSB0.
85+
86+
::
87+
88+
# screen /dev/ttyUSB0 115200
89+
90+
# minicom -b 115200 -D /dev/ttyUSB0
91+
92+
93+
#. Power the device on. First boot might take some time.
94+
95+
#. After system boots, you need to log in to it::
96+
97+
login: root
98+
password 1234
99+
100+
.. note ::
101+
102+
``1234`` password was correct at the time of writing this page. If it
103+
does not work, you should check FAQ section on `Armbian for Nanopi Neo`_
104+
page.
105+
106+
#. You will be asked to change your password:
107+
108+
::
109+
110+
You are required to change your password immediately (root enforced)
111+
Changing password for root.
112+
(current) UNIX password:
113+
Enter new UNIX password:
114+
Retype new UNIX password:
115+
116+
#. Next, you will be greeted with nice colourful text and initial non-root user
117+
account configuration. Follow the interactive user creation process.
118+
119+
We always create a ``pi`` user.
120+
121+
#. Set static IP on the device by creating following file::
122+
123+
# vim /etc/network/interfaces.d/eth0
124+
125+
With the following contents:
126+
127+
.. code-block:: none
128+
129+
auto eth0
130+
allow-hotplug eth0
131+
iface eth0 inet static
132+
address 192.168.0.2
133+
netmask 255.255.255.0
134+
gateway 192.168.0.1
135+
136+
Above will work if you connect MuxPi to your machine (which will have
137+
192.168.0.1 address) and the 192.168.0.2 address will be available.
138+
For this document purpose we will assume the IP address is ``192.168.0.2``.
139+
140+
#. Settings need to be changed, you need to restart networking::
141+
142+
# systemctl restart networking
143+
144+
Or just restart the whole device::
145+
146+
# shutdown -r now
147+
148+
#. Now you should be able to connect to device through ssh::
149+
150+
$ ssh root@192.168.0.2
151+
152+
.. note::
153+
154+
If you are not able to connect to it, it might mean that the network
155+
settings did not reload properly. It is best to restart device using
156+
serial connection from earlier::
157+
158+
# shutdown -r now
159+
160+
#. Configure UARTs for communication with MuxPi's stm and for communication
161+
with DUT::
162+
163+
# armbian-config
164+
165+
It will ask you for internet connection but it is not required (press any
166+
key to continue)
167+
168+
Go to :menuselection:`System --> Hardware` and enable ``uart1`` and ``uart2``.
169+
170+
Reboot when asked.
171+
172+
.. target-notes::
173+

Diff for: doc/sphinx/source/index.txt

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ whole platform for specific target devices.
1717

1818
project-overview.txt
1919
hw-overview.txt
20+
armbian
2021

2122
Indices and tables
2223
==================

0 commit comments

Comments
 (0)