GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
root@santaro:~# sconfig list
serialdiag
on
dhcp
off
ip
192.168.1.1
mask
255.255.255.0
gateway
192.168.1.100
mac
0x00:0x07:0x8E:0x1C:0x30:0xDD
name
GFMM01847517
serial
01847517
dhcp2
off
ip2
192.168.1.2
mask2
255.255.255.0
gateway2
192.168.1.100
mac2
0x00:0x00:0x00:0x00:0x00:0x00
serial2
00000000
dhcp_wlan
on
ip_wlan
192.168.1.3
mask_wlan
255.255.255.0
gateway_wlan
192.168.1.100
ssid_wlan
assid
proto_wlan
WPA
psk_wlan
asecretpassword
rotation
N/A
The content of this list depends on the activated features stated above.
Example 3:
Configure WLAN configuration to access point ’GuestNet’ with WPA2 passphrase ’guest’. IP is
obtained by DHCP:
root@santaro:~# sconfig dhcp_wlan on
root@santaro:~# sconfig ssid_wlan GuestNet
root@santaro:~# sconfig proto_wlan RSN
root@santaro:~# sconfig psk_wlan guest
Note:
The settings require a reboot to take effect.
To use a cusom DNS server with a static IP it is neccessary to add an entry to the
/etc/resolv.conf
file. Howevert
this file is merely a symbolic link to
/var/run/resolv.conf
and is cleaned after each boot. Thus it is necessary to
insert the correct DNS server after each boot. This can be done by the following
init.d
script
/etc/init.d/resolv-
dns-simple.sh
:
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Required-Stop:
# Default-Start:
2 3 4 5
# Default-Stop:
0 1 6
# Short-Description: Initialize the resolv.conf
# Description:
### END INIT INFO
DNS="8.8.8.8 8.8.4.4 84.200.69.80 84.200.70.40"
name=`basename $0`
case "$1" in
start)
for d in $DNS
25