电视盒子刷机教程
https://www.histb.com/ 海思刷机教程以及刷机安装包。
刷机有三种方式:
- U盘刷机,就是利用U盘,然后短接后系统进入升级模式后刷机
- USB刷机,利用双公头USB线,然后使用adb软件刷机,下载adb并配置环境变量
- TTL线刷,有的机器不支持TTL,比如Hi3789mv100,TTL线可以连接,但是串口不打印数据
ubuntu wifi驱动:
刷机ubuntu后发现wifi网卡没有启动,执行lsusb,看到无线网卡型号:
root@hi3798mv100:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:0179 Realtek Semiconductor Corp. RTL8188ETV Wireless LAN 802.11n Network Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
查找RTL8188ETV的KO并加载
https://bbs.histb.com/d/18-wifi
2、驱动包
目前有Hi3798mv100大部分机型都适用的RTL8188FTV、RTL818ETV的驱动,mv200和mv300并不使用,另外后缀对应相应的nas系统日期版本,版本之间无法通用。
rtl8188etv-0302.tar.gz
rtl8188ftv-0302.tar.gz
rtl8188etv-0403.tar.gz
rtl8188ftv-0403.tar.gz驱动包下载:
链接:https://pan.baidu.com/s/10QmX6Z4mb_p_9SdOC4BMUQ
提取码:q1xj下载rtl8188etv-0808.tar.gz、hi_kernel-mv100-0808.bin、wifi_install.sh。其中rtl8188etv-0808.tar.gz为网卡驱动KO包、hi_kernel-mv100-0808.bin需要更新内核版本包、wifi_install.sh安装文件。
执行安装命令
#更新内核,如果内核版本为4.4.35_ecoo_81092768,则不需要更新
dd if=./hi_kernel-mv100-0808.bin of=/dev/mmcblk0p6 bs=1M count=1024
#加载网卡驱动KO
sh wifi_install.sh -f rtl8188etv-0808.tar.gz -s 123 -p 123
查看网卡驱动
#vermagic为内核版本号,需要安装内核版本一致,否则不能安装
root@hi3798mv100:~# modinfo rtl8188eu
filename: /lib/modules/4.4.35_ecoo_81092768/rtl8188eu.ko
version: v4.3.24_16705.20160509
author: Realtek Semiconductor Corp.
description: Realtek Wireless Lan Driver
license: GPL
srcversion: 57450657E05675BB9066AAF
alias: usb:v07B8p8179d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0BDAp0179d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0BDAp8179d*dc*dsc*dp*ic*isc*ip*in*
depends: cfg80211
intree: Y
vermagic: 4.4.35_ecoo_81092768 SMP mod_unload ARMv7 p2v8
parm: rtw_ips_mode:The default IPS mode (int)
parm: rtw_usb_rxagg_mode:int
parm: rtw_country_code:The default country code (in alpha2) (charp)
parm: rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm: rtw_qos_opt_enable:int
parm: ifname:The default name to allocate for first interface (charp)
parm: if2name:The default name to allocate for second interface (charp)
parm: rtw_pwrtrim_enable:int
parm: rtw_initmac:charp
parm: rtw_special_rf_path:int
parm: rtw_chip_version:int
parm: rtw_rfintfs:int
parm: rtw_lbkmode:int
parm: rtw_network_mode:int
parm: rtw_channel:int
parm: rtw_mp_mode:int
parm: rtw_wmm_enable:int
parm: rtw_vrtl_carrier_sense:int
parm: rtw_vcs_type:int
parm: rtw_busy_thresh:int
parm: rtw_ht_enable:int
parm: rtw_bw_mode:int
parm: rtw_ampdu_enable:int
parm: rtw_rx_stbc:int
parm: rtw_ampdu_amsdu:int
parm: rtw_lowrate_two_xmit:int
parm: rtw_rf_config:int
parm: rtw_power_mgnt:int
parm: rtw_smart_ps:int
parm: rtw_low_power:int
parm: rtw_wifi_spec:int
parm: rtw_full_ch_in_p2p_handshake:int
parm: rtw_antdiv_cfg:int
parm: rtw_antdiv_type:int
parm: rtw_switch_usb3:int
parm: rtw_enusbss:int
parm: rtw_hwpdn_mode:int
parm: rtw_hwpwrp_detect:int
parm: rtw_hw_wps_pbc:int
parm: rtw_max_roaming_times:The max roaming times to try (uint)
parm: rtw_fw_iol:FW IOL. 0:Disable, 1:enable, 2:by usb speed (int)
parm: rtw_mc2u_disable:int
parm: rtw_80211d:Enable 802.11d mechanism (int)
parm: rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm: rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm: rtw_adaptivity_en:0:disable, 1:enable (uint)
parm: rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm: rtw_adaptivity_dml:0:disable, 1:enable (uint)
parm: rtw_adaptivity_dc_backoff:DC backoff for Adaptivity (uint)
parm: rtw_adaptivity_th_l2h_ini:TH_L2H_ini for Adaptivity (int)
parm: rtw_adaptivity_th_edcca_hl_diff:TH_EDCCA_HL_diff for Adaptivity (int)
parm: rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm: rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm: rtw_RFE_type:default init value:64 (uint)
parm: rtw_GLNA_type:default init value:0 (uint)
parm: rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm: rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm: rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm: rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm: rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm: rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_phy_file_path:The path of phy parameter (charp)
parm: rtw_load_phy_file:PHY File Bit Map (int)
parm: rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
配置WIFI
#命令配置wifi
mcli device wifi connect L5-12 password "123456" ifname wlan0
#列出当前发现的wifi
root@hi3798mv100:~# nmcli device wifi list
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
76:6F:88:B4:2E:33 -- Infra 1 270 Mbit/s 100 ▂▄▆█ WPA1 WPA2
74:6F:88:C4:2E:33 L5-12 Infra 1 270 Mbit/s 100 ▂▄▆█ WPA1 WPA2
74:B7:B3:A9:43:BE ChinaNet-Snfq Infra 11 270 Mbit/s 100 ▂▄▆█ WPA1 WPA2
A4:A9:30:C2:17:42 yyds Infra 8 270 Mbit/s 79 ▂▄▆_ WPA2
A6:A9:30:A2:17:42 -- Infra 8 270 Mbit/s 79 ▂▄▆_ --
44:8E:EC:81:A3:7A 2506 Infra 1 130 Mbit/s 74 ▂▄▆_ WPA2
46:8E:EC:B1:A3:7A -- Infra 1 130 Mbit/s 74 ▂▄▆_ WPA2
AC:EE:64:36:20:A1 ChinaNet-2 Infra 11 130 Mbit/s 74 ▂▄▆_ WPA1 WPA2
70:C6:DD:2F:00:73 H3C_2F0071 Infra 1 270 Mbit/s 60 ▂▄▆_ WPA1 WPA2
D4:84:57:DA:F1:20 midea_dc_0534 Infra 1 65 Mbit/s 54 ▂▄__ --
24:27:30:3E:F0:94 midea_db_0016 Infra 1 65 Mbit/s 52 ▂▄__ --
70:C6:DD:2F:00:71 -- Infra 1 270 Mbit/s 47 ▂▄__ --
E4:72:E2:8F:1C:44 ChinaNet-xS9K Infra 4 130 Mbit/s 40 ▂▄__ WPA1 WPA2
24:E8:E5:38:B6:64 CMCC-mtac Infra 8 130 Mbit/s 40 ▂▄__ WPA1 WPA2
E4:68:A3:DE:5C:8C ChinaNet-pEAD Infra 2 54 Mbit/s 34 ▂▄__ WPA1
00:66:19:47:5C:E1 -- Infra 11 270 Mbit/s 34 ▂▄__ WPA2
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
配置文件修改
# /etc/network/interfaces.d/wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid L5-12
wpa-psk 123456
启动网卡
ifup -v wlan0