Skip to content

Commit

Permalink
enable i2c
Browse files Browse the repository at this point in the history
  • Loading branch information
kou029w committed Sep 10, 2021
1 parent 7aa8633 commit cdd7e30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions stage2/99-enable-i2c/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
i2c-tools
5 changes: 5 additions & 0 deletions stage2/99-enable-i2c/00-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -e

on_chroot << EOF
raspi-config nonint do_i2c 0
EOF
4 changes: 2 additions & 2 deletions stage2/99-enable-serial/00-run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash -e

echo dtoverlay=dwc2 >> "${ROOTFS_DIR}/boot/config.txt"
install -m 644 {files,${ROOTFS_DIR}}/etc/modprobe.d/g_acm_ms.conf
install -m 644 {files,${ROOTFS_DIR}}/etc/modules-load.d/g_acm_ms.conf
install -m 644 {files,"${ROOTFS_DIR}"}/etc/modprobe.d/g_acm_ms.conf
install -m 644 {files,"${ROOTFS_DIR}"}/etc/modules-load.d/g_acm_ms.conf

on_chroot << EOF
systemctl enable getty@ttyGS0.service
Expand Down

0 comments on commit cdd7e30

Please sign in to comment.