應該是廢了,一直debug wifi 一陣子就斷線。
結果是usb 問題,一陣子就斷線重新偵測...
換了bananapi 就OK,半小時了都還沒斷
dhcp-host=11:22:33:44:55:66,172.16.200.7
.PHONY: recoveryimage-nodeps recoveryimage-nodeps: @echo "make $@: ignoring dependencies" $(call build-recoveryimage-target, $(INSTALLED_RECOVERYIMAGE_TARGET))和..
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTFS) $(MKBOOTIMG) $(MINIGZIP) \ $(INSTALLED_RAMDISK_TARGET) \ $(INSTALLED_BOOTIMAGE_TARGET) \ $(INTERNAL_RECOVERYIMAGE_FILES) \ $(recovery_initrc) $(recovery_sepolicy) $(recovery_kernel) \ $(INSTALLED_2NDBOOTLOADER_TARGET) \ $(recovery_build_prop) $(recovery_resource_deps) \ $(recovery_fstab) \ $(RECOVERY_INSTALL_OTA_KEYS) $(call build-recoveryimage-target, $@)
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp allow-hotplug wlan1 iface wlan1 inet static address 172.16.110.1 netmask 255.255.255.0
interface=wlan1 driver=nl80211 ssid=MYSSIDNAME hw_mode=g channel=6 ieee80211n=1 macaddr_acl=0 auth_algs=3 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=MYPASSWORD wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40] logger_syslog=-1 logger_syslog_level=0
interface=wlan1 dhcp-range=172.16.110.2,172.16.110.8,255.255.255.0,12h dhcp-host=XX:XX:XX:XX:XX:XX,172.16.110.7
Supported interface modes: * IBSS * managed * AP * AP/VLAN * WDS * monitor * mesh pointbcm43xx 只有support:
Supported interface modes: * IBSS * managed然後 rtl8188eu 則因為沒有 implement nl80211 界面,所以iw command 列不出來....
s35390a->client[0] = client; i2c_set_clientdata(client, s35390a); /* This chip uses multiple addresses, use dummy devices for them */ for (i = 1; i < 8; ++i) { s35390a->client[i] = i2c_new_dummy(client->adapter, client->addr + i); if (!s35390a->client[i]) { dev_err(&client->dev, "Address %02x unavailable\n", client->addr + i); err = -EBUSY; goto exit_dummy; }
CONFIG_RTC_DRV_S35390A=y
{ .type = "s35390a", .addr = 0x30, .flags = 0, }
30: UU UU UU UU UU UU UU UU 38 39 3a 3b 3c 3d 3e 3f符合source code..
struct i2c_msg { __u16 addr; /* slave address */ __u16 flags; #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ #define I2C_M_RD 0x0001 /* read data, from slave to master */ #define I2C_M_NOSTART 0x4000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_REV_DIR_ADDR 0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ #define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */ #define I2C_M_NEED_DELAY 0x0020 // add by kfx #define I2C_M_REG8_DIRECT 0x0040 // add by kfx __u16 len; /* msg length */ __u8 *buf; /* pointer to msg data */ __u32 scl_rate; // add by kfx int udelay; //add by kfx __u16 read_type; }