CH2 - OpenWRT Basic
- 참고자료1: [https://wiki.openwrt.org/doc/howto/firstlogin]
- 참고자료2: [https://computers.tutsplus.com/articles/installing-openwrt-on-a-raspberry-pi-as-a-new-home-firewall--mac-55984]
- 참고자료3: [https://wiki.openwrt.org/doc/walkthrough_login]
- 참고자료4: [https://cucumberwifi.io/community/tutorials/openwrt-installing-firmware-on-raspberry-pi.html]
Rood Password 설정하기
- root 어카운트의 비밀번호를 설정한다: [
passwd
]
LAN 설정하기
아래의 명령을 사용하여, DHCP를 활성화 시키므로 네트워크를 연결한다.
- RJ45 케이블을 Network와 rPi 사이에 연결한다.
- [
uci set network.lan.proto=dhcp
] - [
uci commit
] - [
/etc/init.d/network restart
]
SSH로 접속하기
- openWRT의 기본 접속 IP는
192.168.1.1
이다. - rPi에서 IP주소를 확인한다: [
ifconfig
] - Host PC에서 터미널을 사용하여 접속한다: [
ssh [email protected]
]
Web Interface 접속하기
RJ45 케이블로 rPi와 Host PC를 연결한 상태에서 Chrome 웹 브라우저에 아래의 주소로 접속
- [
192.168.1.1
] - [Login: root / Pass: root-pass]
WiFi 모듈 설치하기 (rtl8812au - GW450S)
- 참고자료1: [https://github.com/gnab/rtl8812au]
- 참고자료2: [https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=101920&p=744360]
- Download Driver Source File: [scp -r rtl8812au-master [email protected]:/wifi]
- Change Settings (Makefile) & Build [
CONFIG_PLATFORM_I386_PC = n
] - [
CONFIG_PLATFORM_ARM_RPI = y
] - Install [
$ insmod 8812au.ko
] - [
$ #cp 8812au.ko /lib/modules/3.18.23
] --> This one NOT working - [
$ #depmod
] --> NOT working