private knowhow
Revision | c6bd4b2dfd669385abb987d4e7c360fd99c5b129 (tree) |
---|---|
Time | 2022-05-21 16:13:03 |
Author | hyperoga <hyperoga@gmai...> |
Commiter | hyperoga |
some change
@@ -76,6 +76,8 @@ samba | ||
76 | 76 | apache2 |
77 | 77 | locate |
78 | 78 | whois |
79 | +rcs | |
80 | +ftp | |
79 | 81 | |
80 | 82 | 10. sambaインストール http://www.mztn.org/rpi/rpi21.html |
81 | 83 | root@raspberrypi:~# apt-get update |
@@ -133,7 +135,7 @@ TeraTerm | ||
133 | 135 | |
134 | 136 | 制御はBroadcomNameのGPIO番号で行う |
135 | 137 | |
136 | - PiName/BroadcomName | |
138 | + PiName/BroadcomName (Raspberry Pi1) | |
137 | 139 | +--------+ |
138 | 140 | 3.3v [P1]| 1□□ 2|5v |
139 | 141 | SDA0/I2C0 SDA | 3□□ 4|DNC(5v) |
@@ -188,6 +190,31 @@ TeraTerm | ||
188 | 190 | 12345678 910111213141516171819202122232425262728293031323334 |
189 | 191 | 12345678 1 2 3 4 5 6 7 8 91011121314151617181920212223242526 |
190 | 192 | |
193 | + | |
194 | + PiName/BroadcomName (Raspberry Pi3A+) | |
195 | + +--------+ | |
196 | + 3.3v [P1]| 1□□ 2|5v | |
197 | + SDA0/I2C0 SDA | 3□□ 4|DNC(5v) | |
198 | + SCL0/I2C0 SCL | 5□■ 6|0v(GND) | |
199 | + *GPIO 7/GPIO 4 | 7□□ 8|TX/UART TXD | |
200 | + DNC(GND) | 9■□10|RX/UART RXD | |
201 | + *GPIO 0/GPIO 17|11□□12|GPIO 1/GPIO 18* | |
202 | + *GPIO 2/GPIO 21|13□■14|DNC(GND) | |
203 | + *GPIO 3/GPIO 22|15□□16|GPIO 4/GPIO 23* | |
204 | + DNC(3.3v) |17□□18|GPIO 5/GPIO 24* | |
205 | + SPI MOSI |19□■20|DNC(GND) | |
206 | + SPI MOSO |21□□22|GPIO 6/GPIO 25* | |
207 | + SPI SCLK |23□□24|SP10 CEO N /GPIO 8 | |
208 | + DNC(GND) |25■□26|SP10 CE1 N /GPIO 7 | |
209 | + IDSD HAT |27□□28|ID_SC HAT | |
210 | + /GPIO 5 |29□■30|DNC(GND) | |
211 | + /GPIO 6 |31□□32| /GPIO 12 | |
212 | + /GPIO 13|33□■34|DNC(GND) | |
213 | + /GPIO 19|35□□36| /GPIO 16 | |
214 | + /GPIO 26|37□□38| /GPIO 20 | |
215 | + DNC(GND)|39■□40| /GPIO 21 | |
216 | + +--------+ | |
217 | + | |
191 | 218 | 21. TeraTerm |
192 | 219 | 現環境では以下の設定 |
193 | 220 |
@@ -197,6 +224,12 @@ TeraTerm | ||
197 | 224 | |
198 | 225 | Sambaの文字コード設定は30.3参照 |
199 | 226 | |
227 | +22. CPU情報表示 | |
228 | + # disp temperature | |
229 | + alias cputemp='cat /sys/class/thermal/thermal_zone0/temp |sed -e "s/^\(..\)/\1./"' | |
230 | + # disp CPU current clock | |
231 | + alias cpuclock='cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq | sed -e "s/...$/MHz/"' | |
232 | + | |
200 | 233 | 30. 各種設定 |
201 | 234 | 30.1 /etc/modules |
202 | 235 | (温度センサーモジュールの設定) |
@@ -206,6 +239,13 @@ TeraTerm | ||
206 | 239 | w1-therm |
207 | 240 | ----- |
208 | 241 | |
242 | + Raspbian 2015-01-31(NOOBS1.3.12)以降では1-wireを有効にするため以下も必要 | |
243 | + /boot/config.txt | |
244 | + ----- | |
245 | + # Enable GPIO4 by oga. (2022/05/21) | |
246 | + dtoverlay=w1-gpio-pullup,gpiopin=4 | |
247 | + ----- | |
248 | + | |
209 | 249 | 30.2 /etc/fstab |
210 | 250 | coLinuxの10GBドライブの利用 |
211 | 251 | ----- |
@@ -322,3 +362,12 @@ $ sudo vim /etc/dphys-swapfile | ||
322 | 362 | $ sudo service dphys-swapfile start |
323 | 363 | |
324 | 364 | |
365 | +30.8 自動起動設定 | |
366 | + /etc/rc.localでWinDFに情報提供するsysinfdを起動する | |
367 | + | |
368 | + ---- | |
369 | + if [ -x /home/oga/bin/sysinfd ]; then | |
370 | + echo "start sysinfd..." | |
371 | + /home/oga/bin/sysinfd & | |
372 | + fi | |
373 | + ---- |