Skip to content

Commit 19c34b8

Browse files
committed
Enable spi and i2c kernel modules
1 parent 0805d91 commit 19c34b8

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

installer/stock_raspbian/scripts/01_headless_basics.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ echo ""
2525

2626
echo "### Updating headless boot scripts."
2727
cp -rv ../../../raspbian-addons/boot/coder_settings/ /boot/
28+
cp -v /boot/config.txt /boot/config.bak
29+
cp -v ../../../raspbian-addons/boot/config.txt /boot/config.txt
2830

2931
cp -v ../../../raspbian-addons/etc/iptables.up.rules /etc/
3032
cp -v ../../../raspbian-addons/etc/network/if-pre-up.d/* /etc/network/if-pre-up.d/

raspbian-addons/boot/config.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# For more options and information see
2+
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
3+
# Some settings may impact device functionality. See link above for details
4+
5+
# uncomment if you get no picture on HDMI for a default "safe" mode
6+
#hdmi_safe=1
7+
8+
# uncomment this if your display has a black border of unused pixels visible
9+
# and your display can output without overscan
10+
#disable_overscan=1
11+
12+
# uncomment the following to adjust overscan. Use positive numbers if console
13+
# goes off screen, and negative if there is too much border
14+
#overscan_left=16
15+
#overscan_right=16
16+
#overscan_top=16
17+
#overscan_bottom=16
18+
19+
# uncomment to force a console size. By default it will be display's size minus
20+
# overscan.
21+
#framebuffer_width=1280
22+
#framebuffer_height=720
23+
24+
# uncomment if hdmi display is not detected and composite is being output
25+
#hdmi_force_hotplug=1
26+
27+
# uncomment to force a specific HDMI mode (this will force VGA)
28+
#hdmi_group=1
29+
#hdmi_mode=1
30+
31+
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
32+
# DMT (computer monitor) modes
33+
#hdmi_drive=2
34+
35+
# uncomment to increase signal to HDMI, if you have interference, blanking, or
36+
# no display
37+
#config_hdmi_boost=4
38+
39+
# uncomment for composite PAL
40+
#sdtv_mode=2
41+
42+
#uncomment to overclock the arm. 700 MHz is the default.
43+
#arm_freq=800
44+
45+
dtparam=spi=on
46+
dtparam=i2c_arm=on

0 commit comments

Comments
 (0)