Snapdragon Flight 登陆方式

Snapdragon Flight 登陆方式主要有一下几种

1.串口登录

采用此方式登录,不需要输入用户名和密码,是root身份

2.SSH

通过使用putty、超级终端等软件登陆

用户名:linaro

密码:linaro

如果想采用root 用户通过SSH远程登录,则需要进行设置,这个百度一下很简单的,和普通ubuntu系统的设置没有太大区别

3.ADB

3.4 Communicating with the target
Communication with the target can be facilitated with serial or ADB cable or over Wi-Fi.
3.4.1 Serial cable
The serial cable provides root access to the Linaro OS running on the target. The serial connection to the board is indicated in Figure 3-1.
■ From the Linux host:
□ Choose the right /dev/ttyUSBx and start the serial console:
host> serial /dev/ttyUSB0 115200
■ From the Windows host:

Once you identify the serial port (using Windows Device manager), use the serial application (putty, secureCRT, or mobaXterm etc.,) you choose to connect to the port.
□ The baud rate is 115200.
3.4.2 ADB
The instructions and commands in the following sections can be run using the serial interface or via the ADB. The ADB connection to the board is indicated in Figure 3-1.
To install ADB on an Ubuntu Linux distribution, use the following instructions.
To install adb:
apt-get install android-tools-adb android-tools-fastboot
If you do not have the proper repositories:
add-apt-repository ppa:phablet-team/tools && sudo apt-get update
To list ADB devices:
adb devices
To run the ADB shell and open bash, type the following:
adb shell
bash
For ADB installation instructions on other operating systems:
http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
For more information on ADB:
http://developer.android.com/tools/help/adb.html

3.4.3 Wi-Fi
The system can be configured as an Access Point (AP) or Station (STA).
3.4.3.1 AP mode
The software AP (SoftAP) mode is facilitated with the host access point daemon (hostapd). Hostapd is a user space software access point capable of turning normal network interface cards into access points and authentication servers.
Enable AP mode
To configure the system for AP mode:
1. Run the following on the command line (via serial interface):
/usr/local/qr-linux/wificonfig.sh -s softap
2. Reboot the system.
Configure AP Mode
By default, the AP mode is configured for 802.11n, WPA2 authentication, and 2.4 GHz. The SSID is autogenerated with the installation of the platform image and the passphrase is set to password.

The hostapd configuration file is located at /etc/hostapd.conf on the target.
interface=wlan0
driver=nl80211
ieee80211d=1
ieee80211n=1
#
#
# Uncomment *one* of the following:
#
# 2.4Ghz setup
hw_mode=g
channel=2 # some channel in 2.4Ghz band
#
# or
#
# 5Ghz setup
#hw_mode=a
#channel=40 # some channel in 5Ghz band
#
#
ssid=Atlanticus_1952
macaddr_acl=0
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
The file can be modified to suit the desired configuration. After changing the configuration, reboot the system for the changes to take effect.
See the following websites for information on common configurations of hostapd:
https://wiki.gentoo.org/wiki/Hostapd#Sample_configurations
http://linuxwireless.org/en/users/Documentation/hostapd/#Common_Options
Once the system is booted, the wlan0 IP address is listed as 192.168.1.1, which identifies the devices as the gateway.
> ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:03:7f:20:64:06
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000

RX bytes:1128 (1.1 KB) TX bytes:155 (155.0 B)
Set up the corresponding station client
From a client device, scan for the AP SSID and provide the correct authentication to correlate with the configuration of the AP. This then connects and obtains an IP address.
3.4.3.2 Station mode
Enable station mode
To configure the system for STA mode:
1. Run the following on the command line (via serial interface):
/usr/local/qr-linux/wificonfig.sh -s station
2. Reboot the system.
Configure station mode
To change the SSID or AP configuration:
1. Edit the supplicant configuration from the command line (via the serial interface).
For documentation details on the supplicant, see http://w1.fi/wpa_supplicant/.
2. Edit /etc/wpa_supplicant/wpa_supplicant.conf to configure the SSID and security options based on the corresponding AP to which the client is to connect.
3. For secure WPA2 personal configuration, specify the SSID and passkey in the following configuration. The SSIDName is the SSID to be used and XXXXXX is the pass-phrase of the AP.
network={
ssid="SSIDName"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="XXXXXX"
}
4. For a non-secure AP, specify the SSID in the following configuration block. The SSIDName is the SSID of the AP.
network={
ssid="SSIDName"
proto=RSN
key_mgmt=NONE
pairwise=CCMP TKIP
group=CCMP TKIP
}
NOTE: Due to a known limitation, an adjustment to the configuration requires the system to be rebooted to take effect.

Reboot the system when making a configuration change:
1. Launch the utility app from the command line:
> wpa_cli (/sbin/wpa_cli)
2. Make the modified wpa_supplicant file active by typing:
> reconfigure
3. Click OK.
4. To list available networks:
list_networks
5. To select a network:
select_network (index no)
6. Quit
>quit
If necessary, run additional commands to enable or disable Wi-Fi and to obtain the status and IP address of the Wi-Fi connection.
■ To enable Wi-Fi:
> ifup wlan0
■ To disable Wi-Fi
> ifdown wlan0
■ To check Wi-Fi status
> ifconfig wlan0
3.4.4 SSH over Wi-Fi
From a host machine with route access to the Snapdragon Flight Wi-Fi network, a secure shell (SSH) connection can be established to interface with the Snapdragon Flight platform. From the serial interface, obtain the IP address of the system by executing ifconfig wlan0 on the command line; use this process to set up the SSH connection. Enter the password "linaro" when prompted.
$ ssh linaro@<Target IP Address>
linaro@<Target IP Address>'s password: ******
Welcome to Linaro 14.04 (GNU/Linux 3.4.0-som8064-const armv7l)
linaro@linaro-developer:~$
Where <Target IP Address> is the Wi-Fi IP address of the target Snapdragon Flight.
To continue session as root, use the pseudo user command.
su
Password: <enter root password>
NOTE: The password must be set the first time if it has not been set before. From the serial console or adb shell, set the root password with the following command:

> passwd

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值