|
@@
-1,15
+1,15
|
|
1
|
# rpi23-gen-image
|
|
1
|
# rpi23-gen-image
|
|
2
|
## Introduction
|
|
2
|
## Introduction
|
|
3
|
`rpi23-gen-image.sh` is an advanced Debian Linux bootstrapping shell script for generating Debian OS images for Raspberry Pi 2 (RPi2) and Raspberry Pi 3 (RPi3) computers. The script at this time supports the bootstrapping of the Debian (armhf) releases `stretch` and `buster`. Raspberry Pi 3 images are generated for 32-bit mode only. Raspberry Pi 3 64-bit images can be generated using custom configuration parameters (```templates/rpi3-stretch-arm64-4.14.y```).
|
|
3
|
`rpi23-gen-image.sh` is an advanced Debian Linux bootstrapping shell script for generating Debian OS images for all Raspberry Pi computers. The script at this time supports the bootstrapping of the Debian (armhf/armel) releases `stretch` and `buster`. Raspberry Pi 0/1/2/3 images are generated for 32-bit mode only. Raspberry Pi 3 supports 64-bit images that can be generated using custom configuration parameters (```templates/rpi3-stretch-arm64-4.14.y```).
|
|
4
|
|
|
4
|
|
|
5
|
## Build dependencies
|
|
5
|
## Build dependencies
|
|
6
|
The following list of Debian packages must be installed on the build system because they are essentially required for the bootstrapping process. The script will check if all required packages are installed and missing packages will be installed automatically if confirmed by the user.
|
|
6
|
The following list of Debian packages must be installed on the build system because they are essentially required for the bootstrapping process. The script will check if all required packages are installed and missing packages will be installed automatically if confirmed by the user.
|
|
7
|
|
|
7
|
|
|
8
|
```debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo```
|
|
8
|
```debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo```
|
|
9
|
|
|
9
|
|
|
10
|
It is recommended to configure the `rpi23-gen-image.sh` script to build and install the latest Raspberry Pi Linux kernel. For the RPi3 this is mandatory. Kernel compilation and linking will be performed on the build system using an ARM (armhf) cross-compiler toolchain.
|
|
10
|
It is recommended to configure the `rpi23-gen-image.sh` script to build and install the latest Raspberry Pi Linux kernel. For the Raspberry 3 this is mandatory. Kernel compilation and linking will be performed on the build system using an ARM (armhf/armel) cross-compiler toolchain.
|
|
11
|
|
|
11
|
|
|
12
|
The script has been tested using the default `crossbuild-essential-armhf` toolchain meta package on Debian Linux `stretch` build systems. Please check the [Debian CrossToolchains Wiki](https://wiki.debian.org/CrossToolchains) for further information.
|
|
12
|
The script has been tested using the default `crossbuild-essential-armhf` and `crossbuild-essential-armel` toolchain meta packages on Debian Linux `stretch` build systems. Please check the [Debian CrossToolchains Wiki](https://wiki.debian.org/CrossToolchains) for further information.
|
|
13
|
|
|
13
|
|
|
14
|
## Command-line parameters
|
|
14
|
## Command-line parameters
|
|
15
|
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.
|
|
15
|
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.
|
|
@@
-49,27
+49,25
Set Debian packages server address. Choose a server from the list of Debian worl
|
|
49
|
Set Proxy server address. Using a local Proxy-Cache like `apt-cacher-ng` will speed-up the bootstrapping process because all required Debian packages will only be downloaded from the Debian mirror site once. If `apt-cacher-ng` is running on default `http://127.0.0.1:3142` it is autodetected and you don't need to set this.
|
|
49
|
Set Proxy server address. Using a local Proxy-Cache like `apt-cacher-ng` will speed-up the bootstrapping process because all required Debian packages will only be downloaded from the Debian mirror site once. If `apt-cacher-ng` is running on default `http://127.0.0.1:3142` it is autodetected and you don't need to set this.
|
|
50
|
|
|
50
|
|
|
51
|
##### `APT_INCLUDES`=""
|
|
51
|
##### `APT_INCLUDES`=""
|
|
52
|
A comma separated list of additional packages to be installed by debootstrap during bootstrapping.
|
|
52
|
A comma-separated list of additional packages to be installed by debootstrap during bootstrapping.
|
|
53
|
|
|
53
|
|
|
54
|
##### `APT_INCLUDES_LATE`=""
|
|
54
|
##### `APT_INCLUDES_LATE`=""
|
|
55
|
A comma separated list of additional packages to be installed by apt after bootstrapping and after APT sources are set up. This is useful for packages with pre-depends, which debootstrap do not handle well.
|
|
55
|
A comma-separated list of additional packages to be installed by apt after bootstrapping and after APT sources are set up. This is useful for packages with pre-depends, which debootstrap do not handle well.
|
|
56
|
|
|
56
|
|
|
57
|
---
|
|
57
|
---
|
|
58
|
|
|
58
|
|
|
59
|
#### General system settings:
|
|
59
|
#### General system settings:
|
|
60
|
##### `SET_ARCH`=32
|
|
60
|
##### `SET_ARCH`=32
|
|
61
|
Set Architecture to default 32bit. If you want to to compile 64bit (RPI3 or RPI3+) set it to `64`. This option will set every needed crosscompiler or boeard specific option for a successful build.
|
|
61
|
Set Architecture to default 32bit. If you want to compile 64-bit (RPI3 or RPI3+) set it to `64`. This option will set every needed cross-compiler or board specific option for a successful build.
|
|
62
|
If you want to change e.g. cross-compiler -> Templates always override defaults
|
|
|
|
|
63
|
|
|
62
|
|
|
64
|
##### `RPI_MODEL`=2
|
|
63
|
##### `RPI_MODEL`=2
|
|
65
|
Specifiy the target Raspberry Pi hardware model. The script at this time supports the following Raspberry Pi models:
|
|
64
|
Specify the target Raspberry Pi hardware model. The script at this time supports the following Raspberry Pi models:
|
|
66
|
- `0` = Used for Raspberry Pi 0 and Raspberry Pi 0 W
|
|
65
|
- `0` = Raspberry Pi 0 and Raspberry Pi 0 W
|
|
67
|
- `1` = Used for Pi 1 model A and B
|
|
66
|
- `1` = Raspberry Pi 1 model A and B
|
|
68
|
- `1P` = Used for Pi 1 model B+ and A+
|
|
67
|
- `1P` = Raspberry Pi 1 model B+ and A+
|
|
69
|
- `2` = Used for Pi 2 model B
|
|
68
|
- `2` = Raspberry Pi 2 model B
|
|
70
|
- `3` = Used for Pi 3 model B
|
|
69
|
- `3` = Raspberry Pi 3 model B
|
|
71
|
- `3P` = Used for Pi 3 model B+
|
|
70
|
- `3P` = Raspberry Pi 3 model B+
|
|
72
|
- `BUILD_KERNEL`=true will automatically be set if the Raspberry Pi model `3` or `3P` is used.
|
|
|
|
|
73
|
|
|
71
|
|
|
74
|
##### `RELEASE`="buster"
|
|
72
|
##### `RELEASE`="buster"
|
|
75
|
Set the desired Debian release name. The script at this time supports the bootstrapping of the Debian releases `stretch` and `buster`.
|
|
73
|
Set the desired Debian release name. The script at this time supports the bootstrapping of the Debian releases `stretch` and `buster`.
|
|
@@
-118,7
+116,7
Set extra xkb configuration options.
|
|
118
|
---
|
|
116
|
---
|
|
119
|
|
|
117
|
|
|
120
|
#### Networking settings (DHCP):
|
|
118
|
#### Networking settings (DHCP):
|
|
121
|
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`.`
|
|
119
|
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`.`
|
|
122
|
|
|
120
|
|
|
123
|
##### `ENABLE_DHCP`=true
|
|
121
|
##### `ENABLE_DHCP`=true
|
|
124
|
Set the system to use DHCP. This requires an DHCP server.
|
|
122
|
Set the system to use DHCP. This requires an DHCP server.
|
|
@@
-159,19
+157,19
Enable serial console interface. Recommended if no monitor or keyboard is connec
|
|
159
|
Enables printing kernel messages to konsole. printk is `3 4 1 3` as in raspbian.
|
|
157
|
Enables printing kernel messages to konsole. printk is `3 4 1 3` as in raspbian.
|
|
160
|
|
|
158
|
|
|
161
|
##### `ENABLE_BLUETOOTH`=false
|
|
159
|
##### `ENABLE_BLUETOOTH`=false
|
|
162
|
Enable onboard Bluetooth interface on the RPi0/3/3P. See: https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
|
|
160
|
Enable onboard Bluetooth interface on the RPi0/3/3P. See: [Configuring the GPIO serial port on Raspbian jessie and stretch](https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/).
|
|
163
|
|
|
161
|
|
|
164
|
##### `ENABLE_MINIUART_OVERLAY`=false
|
|
162
|
##### `ENABLE_MINIUART_OVERLAY`=false
|
|
165
|
Enable Bluetooth to use this. Adds overlay to swap UART0 with UART1. Enabling (slower) Bluetooth and full speed serial console. - RPI `0` `3` `3P` have a fast `hardware UART0` (ttyAMA0) and a `mini UART1` (ttyS0)! RPI `1` `1P` `2` only have a `hardware UART0`. `UART0` is considered better, because is faster and more stable than `mini UART1`. By default the Bluetooth modem is mapped to the `hardware UART0` and `mini UART` is used for console. The `mini UART` is a problem for the serial console, because its baudrate depends on the cpu frequency, which is changing on runtime. Resulting in a volatile baudrate and thus in an unusable serial console.
|
|
163
|
Enable Bluetooth to use this. Adds overlay to swap UART0 with UART1. Enabling (slower) Bluetooth and full speed serial console. - RPI `0` `3` `3P` have a fast `hardware UART0` (ttyAMA0) and a `mini UART1` (ttyS0)! RPI `1` `1P` `2` only have a `hardware UART0`. `UART0` is considered better, because is faster and more stable than `mini UART1`. By default the Bluetooth modem is mapped to the `hardware UART0` and `mini UART` is used for console. The `mini UART` is a problem for the serial console, because its baudrate depends on the CPU frequency, which is changing on runtime. Resulting in a volatile baudrate and thus in an unusable serial console.
|
|
166
|
|
|
164
|
|
|
167
|
##### `ENABLE_TURBO`=false
|
|
165
|
##### `ENABLE_TURBO`=false
|
|
168
|
VOIDS WARRANTY! Enable Turbo mode - NO overclocking. This setting locks cpu at highest frequency. As setting ENABLE_CONSOLE=true locks RPI to lowest CPU speed, this is can be used additionally to lock cpu hat max speed. Need a good power supply and probably cooling for the Raspberry PI.
|
|
166
|
Enable Turbo mode. This setting locks cpu at the highest frequency. As setting ENABLE_CONSOLE=true locks RPI to lowest CPU speed, this is can be used additionally to lock cpu hat max speed. Need a good power supply and probably cooling for the Raspberry PI.
|
|
169
|
|
|
167
|
|
|
170
|
##### `ENABLE_I2C`=false
|
|
168
|
##### `ENABLE_I2C`=false
|
|
171
|
Enable I2C interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
|
|
169
|
Enable I2C interface on the RPi 0/1/2/3. Please check the [RPi 0/1/2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
|
|
172
|
|
|
170
|
|
|
173
|
##### `ENABLE_SPI`=false
|
|
171
|
##### `ENABLE_SPI`=false
|
|
174
|
Enable SPI interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
|
|
172
|
Enable SPI interface on the RPi 0/1/2/3. Please check the [RPi 0/1/2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
|
|
175
|
|
|
173
|
|
|
176
|
##### `ENABLE_IPV6`=true
|
|
174
|
##### `ENABLE_IPV6`=true
|
|
177
|
Enable IPv6 support. The network interface configuration is managed via systemd-networkd.
|
|
175
|
Enable IPv6 support. The network interface configuration is managed via systemd-networkd.
|
|
@@
-192,7
+190,7
If set to false, disable and uninstall rsyslog (so logs will be available only i
|
|
192
|
Enable sound hardware and install Advanced Linux Sound Architecture.
|
|
190
|
Enable sound hardware and install Advanced Linux Sound Architecture.
|
|
193
|
|
|
191
|
|
|
194
|
##### `ENABLE_HWRANDOM`=true
|
|
192
|
##### `ENABLE_HWRANDOM`=true
|
|
195
|
Enable Hardware Random Number Generator. Strong random numbers are important for most network based communications that use encryption. It's recommended to be enabled.
|
|
193
|
Enable Hardware Random Number Generator. Strong random numbers are important for most network-based communications that use encryption. It's recommended to be enabled.
|
|
196
|
|
|
194
|
|
|
197
|
##### `ENABLE_MINGPU`=false
|
|
195
|
##### `ENABLE_MINGPU`=false
|
|
198
|
Minimize the amount of shared memory reserved for the GPU. It doesn't seem to be possible to fully disable the GPU.
|
|
196
|
Minimize the amount of shared memory reserved for the GPU. It doesn't seem to be possible to fully disable the GPU.
|
|
@@
-204,7
+202,7
Install and enable D-Bus message bus. Please note that systemd should work witho
|
|
204
|
Install Xorg open-source X Window System.
|
|
202
|
Install Xorg open-source X Window System.
|
|
205
|
|
|
203
|
|
|
206
|
##### `ENABLE_WM`=""
|
|
204
|
##### `ENABLE_WM`=""
|
|
207
|
Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi23-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`.
|
|
205
|
Install a user-defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi23-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`.
|
|
208
|
|
|
206
|
|
|
209
|
##### `ENABLE_SYSVINIT`=false
|
|
207
|
##### `ENABLE_SYSVINIT`=false
|
|
210
|
Support for halt,init,poweroff,reboot,runlevel,shutdown,telinit commands
|
|
208
|
Support for halt,init,poweroff,reboot,runlevel,shutdown,telinit commands
|
|
@@
-222,7
+220,7
Use debootstrap script variant `minbase` which only includes essential packages
|
|
222
|
Reduce the disk space usage by deleting packages and files. See `REDUCE_*` parameters for detailed information.
|
|
220
|
Reduce the disk space usage by deleting packages and files. See `REDUCE_*` parameters for detailed information.
|
|
223
|
|
|
221
|
|
|
224
|
##### `ENABLE_UBOOT`=false
|
|
222
|
##### `ENABLE_UBOOT`=false
|
|
225
|
Replace the default RPi2/3 second stage bootloader (bootcode.bin) with [U-Boot bootloader](https://git.denx.de/?p=u-boot.git;a=summary). U-Boot can boot images via the network using the BOOTP/TFTP protocol.
|
|
223
|
Replace the default RPi 0/1/2/3 second stage bootloader (bootcode.bin) with [U-Boot bootloader](https://git.denx.de/?p=u-boot.git;a=summary). U-Boot can boot images via the network using the BOOTP/TFTP protocol.
|
|
226
|
|
|
224
|
|
|
227
|
##### `UBOOTSRC_DIR`=""
|
|
225
|
##### `UBOOTSRC_DIR`=""
|
|
228
|
Path to a directory (`u-boot`) of [U-Boot bootloader sources](https://git.denx.de/?p=u-boot.git;a=summary) that will be copied, configured, build and installed inside the chroot.
|
|
226
|
Path to a directory (`u-boot`) of [U-Boot bootloader sources](https://git.denx.de/?p=u-boot.git;a=summary) that will be copied, configured, build and installed inside the chroot.
|
|
@@
-234,10
+232,10
Install and enable the [hardware accelerated Xorg video driver](https://github.c
|
|
234
|
Path to a directory (`xf86-video-fbturbo`) of [hardware accelerated Xorg video driver sources](https://github.com/ssvb/xf86-video-fbturbo) that will be copied, configured, build and installed inside the chroot.
|
|
232
|
Path to a directory (`xf86-video-fbturbo`) of [hardware accelerated Xorg video driver sources](https://github.com/ssvb/xf86-video-fbturbo) that will be copied, configured, build and installed inside the chroot.
|
|
235
|
|
|
233
|
|
|
236
|
##### `ENABLE_VIDEOCORE`=false
|
|
234
|
##### `ENABLE_VIDEOCORE`=false
|
|
237
|
Install and enable the [Source code for ARM side libraries for interfacing to Raspberry Pi GPU](https://github.com/raspberrypi/userland) `vcgencmd`. Please note that this driver is currently limited to hardware accelerated window moving and scrolling.
|
|
235
|
Install and enable the [ARM side libraries for interfacing to Raspberry Pi GPU](https://github.com/raspberrypi/userland) `vcgencmd`. Please note that this driver is currently limited to hardware accelerated window moving and scrolling.
|
|
238
|
|
|
236
|
|
|
239
|
##### `VIDEOCORESRC_DIR`=""
|
|
237
|
##### `VIDEOCORESRC_DIR`=""
|
|
240
|
Path to a directory (`userland`) of [Source code for a C-based firmware patching framework for Broadcom/Cypress WiFi chips that enables you to write your own firmware patches, for example, to enable monitor mode with radiotap headers and frame injection](https://github.com/seemoo-lab/nexmon.git) that will be copied, configured, build and installed inside the chroot.
|
|
238
|
Path to a directory (`userland`) of [ARM side libraries for interfacing to Raspberry Pi GPU](https://github.com/raspberrypi/userland) that will be copied, configured, build and installed inside the chroot.
|
|
241
|
|
|
239
|
|
|
242
|
##### `ENABLE_NEXMON`=false
|
|
240
|
##### `ENABLE_NEXMON`=false
|
|
243
|
Install and enable the [Source code for a C-based firmware patching framework for Broadcom/Cypress WiFi chips that enables you to write your own firmware patches, for example, to enable monitor mode with radiotap headers and frame injection](https://github.com/seemoo-lab/nexmon.git).
|
|
241
|
Install and enable the [Source code for a C-based firmware patching framework for Broadcom/Cypress WiFi chips that enables you to write your own firmware patches, for example, to enable monitor mode with radiotap headers and frame injection](https://github.com/seemoo-lab/nexmon.git).
|
|
@@
-249,7
+247,7
Path to a directory (`nexmon`) of [Source code for ARM side libraries for interf
|
|
249
|
Enable iptables IPv4/IPv6 firewall. Simplified ruleset: Allow all outgoing connections. Block all incoming connections except to OpenSSH service.
|
|
247
|
Enable iptables IPv4/IPv6 firewall. Simplified ruleset: Allow all outgoing connections. Block all incoming connections except to OpenSSH service.
|
|
250
|
|
|
248
|
|
|
251
|
##### `ENABLE_USER`=true
|
|
249
|
##### `ENABLE_USER`=true
|
|
252
|
Create non-root user with password `USER_PASSWORD`=raspberry. Unless overridden with `USER_NAME`=user, username will be `pi`.
|
|
250
|
Create non-root user with password `USER_PASSWORD`=raspberry. Unless overridden with `USER_NAME`=user, the username will be `pi`.
|
|
253
|
|
|
251
|
|
|
254
|
##### `USER_NAME`=pi
|
|
252
|
##### `USER_NAME`=pi
|
|
255
|
Non-root user to create. Ignored if `ENABLE_USER`=false
|
|
253
|
Non-root user to create. Ignored if `ENABLE_USER`=false
|
|
@@
-279,10
+277,10
Disable RPi2/3 under-voltage warnings and overlays. Setting the parameter to `1`
|
|
279
|
|
|
277
|
|
|
280
|
#### SSH settings:
|
|
278
|
#### SSH settings:
|
|
281
|
##### `SSH_ENABLE_ROOT`=false
|
|
279
|
##### `SSH_ENABLE_ROOT`=false
|
|
282
|
Enable password root login via SSH. This may be a security risk with default password, use only in trusted environments. `ENABLE_ROOT` must be set to `true`.
|
|
280
|
Enable password-based root login via SSH. This may be a security risk with the default password set, use only in trusted environments. `ENABLE_ROOT` must be set to `true`.
|
|
283
|
|
|
281
|
|
|
284
|
##### `SSH_DISABLE_PASSWORD_AUTH`=false
|
|
282
|
##### `SSH_DISABLE_PASSWORD_AUTH`=false
|
|
285
|
Disable password based SSH authentication. Only public key based SSH (v2) authentication will be supported.
|
|
283
|
Disable password-based SSH authentication. Only public key based SSH (v2) authentication will be supported.
|
|
286
|
|
|
284
|
|
|
287
|
##### `SSH_LIMIT_USERS`=false
|
|
285
|
##### `SSH_LIMIT_USERS`=false
|
|
288
|
Limit the users that are allowed to login via SSH. Only allow user `USER_NAME`=pi and root if `SSH_ENABLE_ROOT`=true to login. This parameter will be ignored if `dropbear` SSH is used (`REDUCE_SSHD`=true).
|
|
286
|
Limit the users that are allowed to login via SSH. Only allow user `USER_NAME`=pi and root if `SSH_ENABLE_ROOT`=true to login. This parameter will be ignored if `dropbear` SSH is used (`REDUCE_SSHD`=true).
|
|
@@
-297,10
+295,10
Add SSH (v2) public key(s) from specified file to `authorized_keys` file to enab
|
|
297
|
|
|
295
|
|
|
298
|
#### Kernel compilation:
|
|
296
|
#### Kernel compilation:
|
|
299
|
##### `BUILD_KERNEL`=true
|
|
297
|
##### `BUILD_KERNEL`=true
|
|
300
|
Build and install the latest RPi2/3 Linux kernel. Currently only the default RPi2/3 kernel configuration is used.
|
|
298
|
Build and install the latest RPi 0/1/2/3 Linux kernel. Currently only the default RPi 0/1/2/3 kernel configuration is used.
|
|
301
|
|
|
299
|
|
|
302
|
##### `CROSS_COMPILE`="arm-linux-gnueabihf-"
|
|
300
|
##### `CROSS_COMPILE`="arm-linux-gnueabihf-"
|
|
303
|
This sets the cross compile enviornment for the compiler.
|
|
301
|
This sets the cross-compile environment for the compiler.
|
|
304
|
|
|
302
|
|
|
305
|
##### `KERNEL_ARCH`="arm"
|
|
303
|
##### `KERNEL_ARCH`="arm"
|
|
306
|
This sets the kernel architecture for the compiler.
|
|
304
|
This sets the kernel architecture for the compiler.
|
|
@@
-318,13
+316,13
Sets the QEMU enviornment for the Debian archive. If not set, `QEMU_BINARY` will
|
|
318
|
Sets the default config for kernel compiling. If not set, `KERNEL_DEFCONFIG` will be set to "bcmrpi3\_defconfig" automatically if building for arm64.
|
|
316
|
Sets the default config for kernel compiling. If not set, `KERNEL_DEFCONFIG` will be set to "bcmrpi3\_defconfig" automatically if building for arm64.
|
|
319
|
|
|
317
|
|
|
320
|
##### `KERNEL_REDUCE`=false
|
|
318
|
##### `KERNEL_REDUCE`=false
|
|
321
|
Reduce the size of the generated kernel by removing unwanted device, network and filesystem drivers (experimental).
|
|
319
|
Reduce the size of the generated kernel by removing unwanted devices, network and filesystem drivers (experimental).
|
|
322
|
|
|
320
|
|
|
323
|
##### `KERNEL_THREADS`=1
|
|
321
|
##### `KERNEL_THREADS`=1
|
|
324
|
Number of parallel kernel building threads. If the parameter is left untouched the script will automatically determine the number of CPU cores to set the number of parallel threads to speed the kernel compilation.
|
|
322
|
Number of parallel kernel building threads. If the parameter is left untouched the script will automatically determine the number of CPU cores to set the number of parallel threads to speed the kernel compilation.
|
|
325
|
|
|
323
|
|
|
326
|
##### `KERNEL_HEADERS`=true
|
|
324
|
##### `KERNEL_HEADERS`=true
|
|
327
|
Install kernel headers with built kernel.
|
|
325
|
Install kernel headers with the built kernel.
|
|
328
|
|
|
326
|
|
|
329
|
##### `KERNEL_MENUCONFIG`=false
|
|
327
|
##### `KERNEL_MENUCONFIG`=false
|
|
330
|
Start `make menuconfig` interactive menu-driven kernel configuration. The script will continue after `make menuconfig` was terminated.
|
|
328
|
Start `make menuconfig` interactive menu-driven kernel configuration. The script will continue after `make menuconfig` was terminated.
|
|
@@
-441,9
+439,9
The functions of this script that are required for the different stages of the b
|
|
441
|
| `10-bootstrap.sh` | Debootstrap basic system |
|
|
439
|
| `10-bootstrap.sh` | Debootstrap basic system |
|
|
442
|
| `11-apt.sh` | Setup APT repositories |
|
|
440
|
| `11-apt.sh` | Setup APT repositories |
|
|
443
|
| `12-locale.sh` | Setup Locales and keyboard settings |
|
|
441
|
| `12-locale.sh` | Setup Locales and keyboard settings |
|
|
444
|
| `13-kernel.sh` | Build and install RPi2/3 Kernel |
|
|
442
|
| `13-kernel.sh` | Build and install RPi 0/1/2/3 Kernel |
|
|
445
|
| `14-fstab.sh` | Setup fstab and initramfs |
|
|
443
|
| `14-fstab.sh` | Setup fstab and initramfs |
|
|
446
|
| `15-rpi-config.sh` | Setup RPi2/3 config and cmdline |
|
|
444
|
| `15-rpi-config.sh` | Setup RPi 0/1/2/3 config and cmdline |
|
|
447
|
| `20-networking.sh` | Setup Networking |
|
|
445
|
| `20-networking.sh` | Setup Networking |
|
|
448
|
| `21-firewall.sh` | Setup Firewall |
|
|
446
|
| `21-firewall.sh` | Setup Firewall |
|
|
449
|
| `30-security.sh` | Setup Users and Security settings |
|
|
447
|
| `30-security.sh` | Setup Users and Security settings |
|
|
@@
-451,6
+449,7
The functions of this script that are required for the different stages of the b
|
|
451
|
| `32-sshd.sh` | Setup SSH and public keys |
|
|
449
|
| `32-sshd.sh` | Setup SSH and public keys |
|
|
452
|
| `41-uboot.sh` | Build and Setup U-Boot |
|
|
450
|
| `41-uboot.sh` | Build and Setup U-Boot |
|
|
453
|
| `42-fbturbo.sh` | Build and Setup fbturbo Xorg driver |
|
|
451
|
| `42-fbturbo.sh` | Build and Setup fbturbo Xorg driver |
|
|
|
|
|
452
|
| `43-videocore.sh` | Build and Setup videocore libraries |
|
|
454
|
| `50-firstboot.sh` | First boot actions |
|
|
453
|
| `50-firstboot.sh` | First boot actions |
|
|
455
|
| `99-reduce.sh` | Reduce the disk space usage |
|
|
454
|
| `99-reduce.sh` | Reduce the disk space usage |
|
|
456
|
|
|
455
|
|
|
@@
-459,7
+458,7
All the required configuration files that will be copied to the generated OS ima
|
|
459
|
| Directory | Description |
|
|
458
|
| Directory | Description |
|
|
460
|
| --- | --- |
|
|
459
|
| --- | --- |
|
|
461
|
| `apt` | APT management configuration files |
|
|
460
|
| `apt` | APT management configuration files |
|
|
462
|
| `boot` | Boot and RPi2/3 configuration files |
|
|
461
|
| `boot` | Boot and RPi 0/1/2/3 configuration files |
|
|
463
|
| `dpkg` | Package Manager configuration |
|
|
462
|
| `dpkg` | Package Manager configuration |
|
|
464
|
| `etc` | Configuration files and rc scripts |
|
|
463
|
| `etc` | Configuration files and rc scripts |
|
|
465
|
| `firstboot` | Scripts that get executed on first boot |
|
|
464
|
| `firstboot` | Scripts that get executed on first boot |
|
|
@@
-485,7
+484,7
script -c 'APT_SERVER=ftp.de.debian.org ./rpi23-gen-image.sh' ./build.log
|
|
485
|
```
|
|
484
|
```
|
|
486
|
|
|
485
|
|
|
487
|
## Flashing the image file
|
|
486
|
## Flashing the image file
|
|
488
|
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`.
|
|
487
|
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 RPi 0/1/2/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`.
|
|
489
|
|
|
488
|
|
|
490
|
##### Flashing examples:
|
|
489
|
##### Flashing examples:
|
|
491
|
```shell
|
|
490
|
```shell
|