CPU tweaks, networking tweaks.

pull/220/head
Christopher Young 2016-01-20 09:11:55 -05:00
rodzic 57a9fbf393
commit 5aca8adea2
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,11 @@ setup_stratux_bootconfig() {
echo "dtparam=i2c1=on" >>boot/config.txt
echo "dtparam=i2c1_baudrate=400000" >>boot/config.txt
echo "dtparam=i2c_arm_baudrate=400000" >>boot/config.txt
#fixed arm/sdram/core freq.
echo "arm_freq=900" >>boot/config.txt
echo "sdram_freq=450" >>boot/config.txt
echo "core_freq=450" >>boot/config.txt
#disable serial console
sed -i boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
}
@ -166,6 +171,14 @@ echo "i2c-bcm2708" >>/etc/modules
echo "i2c-dev" >>/etc/modules
#sysctl tweaks
echo "net.core.rmem_max = 167772160" >>/etc/sysctl.conf
echo "net.core.rmem_default = 167772160" >>/etc/sysctl.conf
echo "net.core.wmem_max = 167772160" >>/etc/sysctl.conf
echo "net.core.wmem_default = 167772160" >>/etc/sysctl.conf
#kalibrate-rl
cd /root