Skip to content

python + wifi ap + wan dhcp eth + openvpn client + iptables + mobile

Pre-release
Pre-release
Compare
Choose a tag to compare
@hyphop hyphop released this 20 Jun 09:54
· 34 commits to master since this release
	    http://hyphop.github.io/mizy
                        _ ____         
                   _ _ (_)_  / __      
                  / ' '| |/ /\/ /      
                 |_|_|_|_/ /\  /       
                        /___/_/        
                                                      
              tiny fast embedded linux

BASE:	OpenWrt 
	DESIGNATED DRIVER (Bleeding Edge, 50015)
MOD:	base / PY  ## hyphop ##
	wifi (AP mode) +
	    ssid: mizy
	password: 12345678
	      ip: 10.20.30.1
	eth WAN(dhcp) 
	openvpn cli + python 2.7.14 + uarts

root@miZy:~# loadtime 
BOOT_INFO: bootfrom=sd loadfrom=MMC0 loadseq=>MMC0
LOAD_TIME: uboot 1.411 + system 4.24 ( kernel 1.56 )
KERNEL: Linux miZy 3.4.113+ #36 SMP PREEMPT Tue Jul 3 12:51:55 MSK 2018 armv7l GNU/Linux

WIFI AP

ssid: mizy
password: 12345678
ip: 10.20.30.1
ifconfig | egrep "Link|addr"
eth0      Link encap:Ethernet  HWaddr 1E:3D:65:A6:A7:6A  
          inet addr:10.11.0.1  Bcast:10.11.0.255  Mask:255.255.255.0
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
usb0      Link encap:Ethernet  HWaddr 62:EF:11:22:11:11  
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
wlan0     Link encap:Ethernet  HWaddr DC:D7:DD:F2:A1:C9  
          inet addr:10.20.30.1  Bcast:10.20.30.255  Mask:255.255.255.0


root@miZy:~# python -V
Python 2.7.14

root@miZy:~# python-test1
hello world! 
root@miZy:~# python-test-serial 
/dev/ttyS1
OK!

root@miZy:~# /tmp/openvpn_example.vpn 
OpenVPN 2.3.10 arm-openwrt-linux-gnu [SSL (PolarSSL)] [LZO] [EPOLL] [MH] [IPv6]
library versions: PolarSSL 1.3.16, LZO 2.09

root@miZy:~# dmesg  | grep uart
[    0.343736] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.343768] sw_uart_get_devinfo()1503 - uart1 has no uart_regulator.
[    0.343798] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.343827] sw_uart_get_devinfo()1503 - uart3 has no uart_regulator.
[    0.344936] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.344963] sw_uart_pm()890 - uart0 clk is already enable
[    0.346043] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI
[    0.346594] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    0.347140] uart3: ttyS3 at MMIO 0x1c28c00 (irq = 35) is a SUNXI

root@miZy:~# ls -1 /dev/ttyS?
/dev/ttyS0
/dev/ttyS1
/dev/ttyS2
/dev/ttyS3