LoginSignup
3
2

More than 1 year has passed since last update.

Lichee RV Dockをネットワークに接続する

Posted at

はじめに

Lichee RVの開発環境について で開発環境を構築したので、Tina Linux環境を触ってみます。まずは何はともあれネットワーク接続からです。

有線LAN

最初は ELECOM USB3.0 ギガビットLANアダプター EDC-GUA3-B

カーネルでドライバーを有効にします。

make kernel_menuconfig
Device Drivers  --->
    [*] Network device support  --->
        -*-  PHY Device support and infrastructure  --->
            <*> Asix PHYs
make menuconfig
Target Images  --->
    (200) Root filesystem partition size (in MB)

Kernel Modules  --->
    USB Support  --->
        <*> kmod-usb-net
        <*>   kmod-usb-net-asix-ax88179

今後の作業のため、rootファイルシステムを100Mから200Mに増やしています。

あとは、ビルド、packして、PhoenixCardでSDカードに書き込みます。
起動したら、dmesgでログを確認します。
デフォルトではeth1で認識されました。

dmesg
[   85.862288] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device disconnect
[   85.871375] usb 1-1: USB disconnect, device number 2
[   85.877455] ax88179_178a 1-1:1.0 eth1: unregister 'ax88179_178a' usb-sunxi-ehci-1, ASIX AX88179 USB 3.0 Gigabit Ethernet
[   85.913095] ax88179_178a 1-1:1.0 eth1 (unregistered): Failed to write reg index 0x0002: -19
[   85.924694] ax88179_178a 1-1:1.0 eth1 (unregistered): Failed to write reg index 0x0001: -19
[   85.934321] ax88179_178a 1-1:1.0 eth1 (unregistered): Failed to write reg index 0x0002: -19
[   88.728373] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
[   89.002944] usb 1-1: new high-speed USB device number 3 using sunxi-ehci
[   89.574618] ax88179_178a 1-1:1.0 eth1: register 'ax88179_178a' at usb-sunxi-ehci-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, __:__:__:__:__:__

無線LAN

Buffalo WLI-UC-GNM2

make kernel_menuconfig
Networking support  --->
    -*- Wireless  --->
        <*>  Generic IEEE 802.11 Networking Stack (mac80211)

Device Drivers  --->
    [*] Network device support  --->
        [*]  Wireless LAN  --->
            [*] Ralink devices
            <*> Ralink driver support  --->
                <*> Ralink rt27xx/rt28xx/rt30xx (USB) support
                [*] rt2800usb - Include support for rt33xx devices
                [*] rt2800usb - Include support for unknown (USB) devices
make menuconfig
Kernel Modules  --->
    USB Support  --->
        <*> kmod-usb-net

ビルド、packして、PhoenixCardでSDカードに書き込みます。

Firmwareが含まれていないので、以下から rt2870.bin をダウンロードします。
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rt2870.bin

ダウンロード後、Lichee RVにSDカードを挿して起動します。USBケーブルで接続し、adb pushでFirmwareをコピーします。

adb push <ダウンロードしたフォルダー>\rt2870.bin /lib/firmware

Wifiの接続は、/etc/wifi/wpa_supplicant.conf に設定します。以下の行をwpa_supplicant.confの最後に追加します。

network={
 ssid="各自のSSID"
 psk="パスワード"
}

再起動したら、dmesgでログを確認します。

dmesg
[    2.740277] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected
[    2.851405] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[    2.879973] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

[   19.697093] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   19.725499] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36

[   46.645229] wlan0: authenticate with __:__:__:__:__:__
[   46.695544] wlan0: send auth to __:__:__:__:__:__ (try 1/3)
[   46.716569] wlan0: authenticated
[   46.723084] wlan0: associate with __:__:__:__:__:__ (try 1/3)
[   46.746565] wlan0: RX AssocResp from __:__:__:__:__:__ (capab=0x1431 status=0 aid=132)
[   46.763376] wlan0: associated
[   46.776043] wlan0: Limiting TX power to 25 (25 - 0) dBm as advertised by __:__:__:__:__:__
[   46.803983] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

PLANET GW-USNano2

make kernel_menuconfig
Networking support  --->
    -*- Wireless  --->
        <*>  Generic IEEE 802.11 Networking Stack (mac80211)

Device Drivers  --->
    [*] Network device support  --->
        [*]  Wireless LAN  --->
            [*] Realtek devices
            <*> Realtek rtlwifi family of devices  --->
                <*> Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter
            <*> RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support
make menuconfig
Kernel Modules  --->
    USB Support  --->
        <*> kmod-usb-net

ビルド、packして、PhoenixCardでSDカードに書き込みます。

Firmwareが含まれていないので、以下から rtl8192cufw.bin, rtl8192cufw_A.bin, rtl8192cufw_B.bin, rtl8192cufw_TMSC.bin をダウンロードします。
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtlwifi

ダウンロード後、Lichee RVにSDカードを挿して起動します。USBケーブルで接続し、adb pushでFirmwareをコピーします。

adb push <ダウンロードしたフォルダー>\rtl8192cufw.bin /lib/firmware/rtlwifi
adb push <ダウンロードしたフォルダー>\rtl8192cufw_A.bin /lib/firmware/rtlwifi
adb push <ダウンロードしたフォルダー>\rtl8192cufw_B.bin /lib/firmware/rtlwifi
adb push <ダウンロードしたフォルダー>\rtl8192cufw_TMSC.bin /lib/firmware/rtlwifi

Wifiの接続は、/etc/wifi/wpa_supplicant.conf に設定します。以下の行をwpa_supplicant.confの最後に追加します。

network={
 ssid="各自のSSID"
 psk="パスワード"
}

再起動したら、dmesgでログを確認します。

dmesg
...
[   20.604879] rtl8192cu: MAC auto ON okay!
[   20.650532] rtl8192cu: Tx queue select: 0x05
[   21.048780] EXT4-fs (mmcblk0p7): warning: mounting unchecked fs, running e2fsck is recommended
[   21.104779] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[   21.728340] [SNDCODEC][sunxi_card_hw_params][620]:stream_flag: 0
[   22.496122] rtl8192c_common: Polling FW ready fail! REG_MCUFWDL:0x00000006.
[   22.504147] rtl8192c_common: Firmware is not ready to run!
[   35.042913] usb1-vbus: disabling
[   35.046684] vdd_3v3: disabling
[   48.624514] wlan0: authenticate with f8:b7:97:e6:a8:4a
[   48.655442] wlan0: send auth to __:__:__:__:__:__ (try 1/3)
[   48.685792] wlan0: authenticated
[   48.692938] wlan0: associate with __:__:__:__:__:__ (try 1/3)
[   48.793810] wlan0: RX AssocResp from __:__:__:__:__:__ (capab=0x1431 status=0 aid=130)
[   48.844129] wlan0: associated
[   48.870074] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   49.042573] wlan0: Limiting TX power to 25 (25 - 0) dBm as advertised by __:__:__:__:__:__

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2