kopia lustrzana https://github.com/cyoung/stratux
Add /boot/config.txt settings.
rodzic
2b1acf49a2
commit
616a2b9fbd
|
|
@ -108,3 +108,9 @@ sed -i /etc/inittab -e "s|^.*:.*:respawn:.*ttyAMA0|#&|"
|
|||
|
||||
#Set the keyboard layout to US.
|
||||
sed -i /etc/default/keyboard -e "/^XKBLAYOUT/s/\".*\"/\"us\"/"
|
||||
|
||||
#boot settings
|
||||
echo "max_usb_current=1" >>mnt/boot/config.txt
|
||||
echo "dtparam=i2c1=on" >>mnt/boot/config.txt
|
||||
echo "dtparam=i2c1_baudrate=400000" >>mnt/boot/config.txt
|
||||
echo "dtparam=i2c_arm_baudrate=400000" >>mnt/boot/config.txt
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue