@@ -70,13 +70,13 Set the supported variant(s) of the keyboard layout(s). | |||
|
70 | 70 | Set extra xkb configuration options. |
|
71 | 71 | |
|
72 | 72 | #### Networking settings (DHCP): |
|
73 | This parameter is used to set up networking auto configuration in `/etc/systemd/network/eth.network`. | |
|
73 | 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`.` | |
|
74 | 74 | |
|
75 | 75 | #####`ENABLE_DHCP`=true |
|
76 | 76 | Set the system to use DHCP. This requires an DHCP server. |
|
77 | 77 | |
|
78 | 78 | #### Networking settings (static): |
|
79 | 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`. | |
|
79 | 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`. | |
|
80 | 80 | |
|
81 | 81 | #####`NET_ADDRESS`="" |
|
82 | 82 | Set a static IPv4 or IPv6 address and its prefix, separated by "/", eg. "192.169.0.3/24". |
@@ -281,6 +281,7 All the required configuration files that will be copied to the generated OS ima | |||
|
281 | 281 | | `apt` | APT management configuration files | |
|
282 | 282 | | `boot` | Boot and RPi2 configuration files | |
|
283 | 283 | | `dpkg` | Package Manager configuration | |
|
284 | | `etc` | Configuration files and rc scripts | | |
|
284 | 285 | | `firstboot` | Scripts that get executed on first boot | |
|
285 | 286 | | `initramfs` | Initramfs scripts | |
|
286 | 287 | | `iptables` | Firewall configuration files | |
@@ -7,7 +7,8 | |||
|
7 | 7 | |
|
8 | 8 | # Install gcc/c++ build environment inside the chroot |
|
9 | 9 | if [ "$ENABLE_UBOOT" = true ] || [ "$ENABLE_FBTURBO" = true ] ; then |
|
10 | chroot_exec apt-get -q -y --force-yes --no-install-recommends install linux-compiler-gcc-4.8-arm g++ make bc | |
|
10 | COMPILER_PACKAGES=$(chroot_exec apt-get -s install ${COMPILER_PACKAGES} | grep "^Inst " | awk -v ORS=" " '{ print $2 }') | |
|
11 | chroot_exec apt-get -q -y --force-yes --no-install-recommends install ${COMPILER_PACKAGES} | |
|
11 | 12 | fi |
|
12 | 13 | |
|
13 | 14 | # Fetch and build U-Boot bootloader |
@@ -10,7 +10,7 if [ "$ENABLE_FBTURBO" = true ] ; then | |||
|
10 | 10 | git -C "${R}/tmp" clone "${FBTURBO_URL}" |
|
11 | 11 | |
|
12 | 12 | # Install Xorg build dependencies |
|
13 | chroot_exec apt-get -q -y --no-install-recommends install xorg-dev xutils-dev x11proto-dri2-dev libltdl-dev libtool automake libdrm-dev | |
|
13 | chroot_exec apt-get -q -y --force-yes --no-install-recommends install xorg-dev xutils-dev x11proto-dri2-dev libltdl-dev libtool automake libdrm-dev | |
|
14 | 14 | |
|
15 | 15 | # Build and install fbturbo driver inside chroot |
|
16 | 16 | chroot_exec /bin/bash -x <<'EOF' |
@@ -30,5 +30,5 fi | |||
|
30 | 30 | |
|
31 | 31 | # Remove gcc/c++ build environment from the chroot |
|
32 | 32 | if [ "$ENABLE_UBOOT" = true ] || [ "$ENABLE_FBTURBO" = true ] ; then |
|
33 | chroot_exec apt-get -qq -y --auto-remove purge bc binutils cpp cpp-4.8 cpp-4.9 g++ g++-4.8 g++-4.9 gcc gcc-4.8 gcc-4.9 libasan1 libatomic1 libc-dev-bin libc6-dev libcloog-isl4 libgcc-4.8-dev libgcc-4.9-dev libgomp1 libisl10 libmpc3 libmpfr4 libstdc++-4.9-dev libubsan0 linux-compiler-gcc-4.8-arm linux-libc-dev make | |
|
33 | chroot_exec apt-get -qq -y --auto-remove purge ${COMPILER_PACKAGES} | |
|
34 | 34 | fi |
@@ -56,7 +56,9 if [ "$ENABLE_REDUCE" = true ] ; then | |||
|
56 | 56 | fi |
|
57 | 57 | |
|
58 | 58 | # Re-install tools for managing kernel moduless |
|
59 | if [ "$RELEASE" = "jessie" ] ; then | |
|
59 | 60 | chroot_exec apt-get -qq -y --force-yes install module-init-tools |
|
61 | fi | |
|
60 | 62 | |
|
61 | 63 | # Remove GPU kernels |
|
62 | 64 | if [ "$ENABLE_MINGPU" = true ] ; then |
@@ -68,6 +68,9 KERNELDIR="${R}/usr/src/linux" | |||
|
68 | 68 | # Firmware directory: Blank if download from github |
|
69 | 69 | FIRMWAREDIR=${FIRMWAREDIR:=""} |
|
70 | 70 | |
|
71 | # Packages for gcc/c++ inside the chroot | |
|
72 | COMPILER_PACKAGES=${COMPILER_PACKAGES:="linux-compiler-gcc-4.8-arm g++ make bc"} | |
|
73 | ||
|
71 | 74 | # General settings |
|
72 | 75 | HOSTNAME=${HOSTNAME:=rpi2-${RELEASE}} |
|
73 | 76 | PASSWORD=${PASSWORD:=raspberry} |
@@ -175,6 +178,7 set +x | |||
|
175 | 178 | # Build latest RPi2 Linux kernel if required by Debian release |
|
176 | 179 | if [ "$RELEASE" = "stretch" ] ; then |
|
177 | 180 | BUILD_KERNEL=true |
|
181 | COMPILER_PACKAGES=$(echo $COMPILER_PACKAGES | sed s/-4.8-arm/-5-arm/) | |
|
178 | 182 | fi |
|
179 | 183 | |
|
180 | 184 | # Add packages required for kernel cross compilation |
@@ -388,7 +392,9 EOF | |||
|
388 | 392 | fi |
|
389 | 393 | |
|
390 | 394 | # Remove apt-utils |
|
395 | if [ "$RELEASE" = "jessie" ] ; then | |
|
391 | 396 | chroot_exec apt-get purge -qq -y --force-yes apt-utils |
|
397 | fi | |
|
392 | 398 | |
|
393 | 399 | # Generate required machine-id |
|
394 | 400 | MACHINE_ID=$(dbus-uuidgen) |
@@ -432,8 +438,8 ROOT_OFFSET=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS}) | |||
|
432 | 438 | |
|
433 | 439 | # The root partition is EXT4 |
|
434 | 440 | # This means more space than the actual used space of the chroot is used. |
|
435 |
# As overhead for journaling and reserved blocks 2 |
|
|
436 |
ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* 2 |
|
|
441 | # As overhead for journaling and reserved blocks 25% are added. | |
|
442 | ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* 25) \* 1024 \/ 512) | |
|
437 | 443 | |
|
438 | 444 | # Calculate required image size in 512 Byte sectors |
|
439 | 445 | IMAGE_SECTORS=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS} + ${ROOT_SECTORS}) |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant