@@ -23,7 +23,7 apt-get update | |||
|
23 | 23 | ## Command-line parameters |
|
24 | 24 | The script accepts certain command-line parameters to enable or disable specific OS features, services and configuration settings. These parameters are passed to the `rpi23-gen-image.sh` script via (simple) shell-variables. Unlike environment shell-variables (simple) shell-variables are defined at the beginning of the command-line call of the `rpi23-gen-image.sh` script. |
|
25 | 25 | |
|
26 | #####Command-line examples: | |
|
26 | ##### Command-line examples: | |
|
27 | 27 | ```shell |
|
28 | 28 | ENABLE_UBOOT=true ./rpi23-gen-image.sh |
|
29 | 29 | ENABLE_CONSOLE=false ENABLE_IPV6=false ./rpi23-gen-image.sh |
@@ -43,7 +43,7 RELEASE=stretch RPI_MODEL=3 ENABLE_WIRELESS=true ENABLE_MINBASE=true BUILD_KERNE | |||
|
43 | 43 | ## Configuration template files |
|
44 | 44 | To avoid long lists of command-line parameters and to help to store the favourite parameter configurations the `rpi23-gen-image.sh` script supports so called configuration template files (`CONFIG_TEMPLATE`=template). These are simple text files located in the `./templates` directory that contain the list of configuration parameters that will be used. New configuration template files can be added to the `./templates` directory. |
|
45 | 45 | |
|
46 | #####Command-line examples: | |
|
46 | ##### Command-line examples: | |
|
47 | 47 | ```shell |
|
48 | 48 | CONFIG_TEMPLATE=rpi3stretch ./rpi23-gen-image.sh |
|
49 | 49 | CONFIG_TEMPLATE=rpi2stretch ./rpi23-gen-image.sh |
@@ -92,7 +92,7 Expand the root partition and filesystem automatically on first boot. | |||
|
92 | 92 | |
|
93 | 93 | --- |
|
94 | 94 | |
|
95 |
#### |
|
|
95 | #### Keyboard settings: | |
|
96 | 96 | These options are used to configure keyboard layout in `/etc/default/keyboard` for console and Xorg. These settings can also be changed inside the running OS using the `dpkg-reconfigure keyboard-configuration` command. |
|
97 | 97 | |
|
98 | 98 | ##### `XKB_MODEL`="" |
@@ -112,7 +112,7 Set extra xkb configuration options. | |||
|
112 | 112 | #### Networking settings (DHCP): |
|
113 | 113 | This parameter is used to set up networking auto configuration in `/etc/systemd/network/eth.network`. The default location of network configuration files in the Debian `stretch` release was changed to `/lib/systemd/network`.` |
|
114 | 114 | |
|
115 | #####`ENABLE_DHCP`=true | |
|
115 | ##### `ENABLE_DHCP`=true | |
|
116 | 116 | Set the system to use DHCP. This requires an DHCP server. |
|
117 | 117 | |
|
118 | 118 | --- |
@@ -120,25 +120,25 Set the system to use DHCP. This requires an DHCP server. | |||
|
120 | 120 | #### Networking settings (static): |
|
121 | 121 | These parameters are used to set up a static networking configuration in `/etc/systemd/network/eth.network`. The following static networking parameters are only supported if `ENABLE_DHCP` was set to `false`. The default location of network configuration files in the Debian `stretch` release was changed to `/lib/systemd/network`. |
|
122 | 122 | |
|
123 | #####`NET_ADDRESS`="" | |
|
123 | ##### `NET_ADDRESS`="" | |
|
124 | 124 | Set a static IPv4 or IPv6 address and its prefix, separated by "/", eg. "192.169.0.3/24". |
|
125 | 125 | |
|
126 | #####`NET_GATEWAY`="" | |
|
126 | ##### `NET_GATEWAY`="" | |
|
127 | 127 | Set the IP address for the default gateway. |
|
128 | 128 | |
|
129 | #####`NET_DNS_1`="" | |
|
129 | ##### `NET_DNS_1`="" | |
|
130 | 130 | Set the IP address for the first DNS server. |
|
131 | 131 | |
|
132 | #####`NET_DNS_2`="" | |
|
132 | ##### `NET_DNS_2`="" | |
|
133 | 133 | Set the IP address for the second DNS server. |
|
134 | 134 | |
|
135 | #####`NET_DNS_DOMAINS`="" | |
|
135 | ##### `NET_DNS_DOMAINS`="" | |
|
136 | 136 | Set the default DNS search domains to use for non fully qualified host names. |
|
137 | 137 | |
|
138 | #####`NET_NTP_1`="" | |
|
138 | ##### `NET_NTP_1`="" | |
|
139 | 139 | Set the IP address for the first NTP server. |
|
140 | 140 | |
|
141 | #####`NET_NTP_2`="" | |
|
141 | ##### `NET_NTP_2`="" | |
|
142 | 142 | Set the IP address for the second NTP server. |
|
143 | 143 | |
|
144 | 144 | --- |
@@ -423,7 +423,7 script -c 'APT_SERVER=ftp.de.debian.org ./rpi23-gen-image.sh' ./build.log | |||
|
423 | 423 | ## Flashing the image file |
|
424 | 424 | After the image file was successfully created by the `rpi23-gen-image.sh` script it can be copied to the microSD card that will be used by the RPi2/3 computer. This can be performed by using the tools `bmaptool` or `dd`. Using `bmaptool` will probably speed-up the copy process because `bmaptool` copies more wisely than `dd`. |
|
425 | 425 | |
|
426 | #####Flashing examples: | |
|
426 | ##### Flashing examples: | |
|
427 | 427 | ```shell |
|
428 | 428 | bmaptool copy ./images/jessie/2017-01-23-rpi3-jessie.img /dev/mmcblk0 |
|
429 | 429 | dd bs=4M if=./images/jessie/2017-01-23-rpi3-jessie.img of=/dev/mmcblk0 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant