board.c:1: warning: target CPU does not support interworking

本文解决编译过程中出现的弱内联函数声明错误问题,通过注释掉特定代码行来避免错误,确保编译过程正常进行。

打印的错误信息如下:

board.c:1: warning: target CPU does not support interworking
board.c:125: error: inline function 'coloured_LED_init' cannot be declared weak
board.c:127: error: inline function 'red_LED_on' cannot be declared weak
board.c:129: error: inline function 'red_LED_off' cannot be declared weak
board.c:131: error: inline function 'green_LED_on' cannot be declared weak
board.c:133: error: inline function 'green_LED_off' cannot be declared weak
board.c:135: error: inline function 'yellow_LED_on' cannot be declared weak
board.c:137: error: inline function 'yellow_LED_off' cannot be declared weak
make[1]: *** [board.o] Error 1
make[1]: Leaving directory `/opt/FriendlyARM/u-boot-2008.10/lib_arm'
make: *** [lib_arm/libarm.a] Error 2


解决方法:如图注释掉相应行

 * May be supplied by boards if desired
 */
void inline __coloured_LED_init (void) {}
//void inline coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init")));
void inline __red_LED_on (void) {}
//void inline red_LED_on (void) __attribute__((weak, alias("__red_LED_on")));
void inline __red_LED_off(void) {}
//void inline red_LED_off(void)     __attribute__((weak, alias("__red_LED_off")));
void inline __green_LED_on(void) {}
//void inline green_LED_on(void) __attribute__((weak, alias("__green_LED_on")));
void inline __green_LED_off(void) {}
//void inline green_LED_off(void)__attribute__((weak, alias("__green_LED_off")));
void inline __yellow_LED_on(void) {}
//void inline yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on")));
void inline __yellow_LED_off(void) {}
//void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off")));


/************************************************************************
 * Init Utilities *
 ************************************************************************

Frame 30695: 460 bytes on wire (3680 bits), 460 bytes captured (3680 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720519827 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -41 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -41 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 39 dB TSF timestamp: 720519827 [Duration: 580µs] IEEE 802.11 Beacon frame, Flags: ........C Type/Subtype: Beacon frame (0x0008) Frame Control Field: 0x8000 .000 0000 0000 0000 = Duration: 0 microseconds Receiver address: Broadcast (ff:ff:ff:ff:ff:ff) Destination address: Broadcast (ff:ff:ff:ff:ff:ff) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 0110 .... = Sequence number: 166 Frame check sequence: 0x5e3e59be [unverified] [FCS Status: Unverified] [WLAN Flags: ........C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13517576 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (377 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Traffic Indication Map (TIM): DTIM 0 of 1 bitmap Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: RM Enabled Capabilities (5 octets) Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd.Frame 30737: 588 bytes on wire (4704 bits), 588 bytes captured (4704 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720561840 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -45 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -45 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 35 dB TSF timestamp: 720561840 [Duration: 752µs] IEEE 802.11 Probe Response, Flags: ....R...C Type/Subtype: Probe Response (0x0005) Frame Control Field: 0x5008 .000 0000 0011 1100 = Duration: 60 microseconds Receiver address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Destination address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 0111 .... = Sequence number: 167 Frame check sequence: 0x6f33a99f [unverified] [FCS Status: Unverified] [WLAN Flags: ....R...C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13559589 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (505 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: RM Enabled Capabilities (5 octets) Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Reduced Neighbor Report Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd. Frame 30738: 588 bytes on wire (4704 bits), 588 bytes captured (4704 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720564593 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -41 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -41 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 39 dB TSF timestamp: 720564593 [Duration: 752µs] IEEE 802.11 Probe Response, Flags: ....R...C Type/Subtype: Probe Response (0x0005) Frame Control Field: 0x5008 .000 0000 0011 1100 = Duration: 60 microseconds Receiver address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Destination address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 0111 .... = Sequence number: 167 Frame check sequence: 0xa18b26ee [unverified] [FCS Status: Unverified] [WLAN Flags: ....R...C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13562342 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (505 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: RM Enabled Capabilities (5 octets) Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Reduced Neighbor Report Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd. Frame 30738: 588 bytes on wire (4704 bits), 588 bytes captured (4704 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720564593 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -41 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -41 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 39 dB TSF timestamp: 720564593 [Duration: 752µs] IEEE 802.11 Probe Response, Flags: ....R...C Type/Subtype: Probe Response (0x0005) Frame Control Field: 0x5008 .000 0000 0011 1100 = Duration: 60 microseconds Receiver address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Destination address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 0111 .... = Sequence number: 167 Frame check sequence: 0xa18b26ee [unverified] [FCS Status: Unverified] [WLAN Flags: ....R...C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13562342 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (505 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: RM Enabled Capabilities (5 octets) Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Reduced Neighbor Report Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd. Frame 30781: 460 bytes on wire (3680 bits), 460 bytes captured (3680 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720623179 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -41 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -41 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 39 dB TSF timestamp: 720623179 [Duration: 580µs] IEEE 802.11 Beacon frame, Flags: ........C Type/Subtype: Beacon frame (0x0008) Frame Control Field: 0x8000 .000 0000 0000 0000 = Duration: 0 microseconds Receiver address: Broadcast (ff:ff:ff:ff:ff:ff) Destination address: Broadcast (ff:ff:ff:ff:ff:ff) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 1001 .... = Sequence number: 169 Frame check sequence: 0x515e2862 [unverified] [FCS Status: Unverified] [WLAN Flags: ........C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13620928 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (377 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Traffic Indication Map (TIM): DTIM 0 of 1 bitmap Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: RM Enabled Capabilities (5 octets) Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd.
09-05
Frame 30737: 588 bytes on wire (4704 bits), 588 bytes captured (4704 bits) on interface rpcap://192.168.0.1:2002/radiotap0, id 0 Radiotap Header v0, Length 43 Header revision: 0 Header pad: 0 Header length: 43 Present flags MAC timestamp: 720561840 Flags: 0x12 Data Rate: 6.0 Mb/s Channel frequency: 5200 [5 GHz 40] Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum Antenna signal: -45 dBm Antenna noise: -80 dBm Antenna: 0 Vendor namespace: Broadcom-0 802.11 radio information PHY type: 802.11a (OFDM) (5) Turbo type: Non-turbo (0) Data rate: 6.0 Mb/s Channel: 40 Frequency: 5200MHz Signal strength (dBm): -45 dBm Noise level (dBm): -80 dBm Signal/noise ratio (dB): 35 dB TSF timestamp: 720561840 [Duration: 752µs] IEEE 802.11 Probe Response, Flags: ....R...C Type/Subtype: Probe Response (0x0005) Frame Control Field: 0x5008 .000 0000 0011 1100 = Duration: 60 microseconds Receiver address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Destination address: 16:ef:15:6a:e3:3d (16:ef:15:6a:e3:3d) Transmitter address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) Source address: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) BSS Id: 9a:07:1d:bc:37:44 (9a:07:1d:bc:37:44) .... .... .... 0000 = Fragment number: 0 0000 1010 0111 .... = Sequence number: 167 Frame check sequence: 0x6f33a99f [unverified] [FCS Status: Unverified] [WLAN Flags: ....R...C] IEEE 802.11 Wireless Management Fixed parameters (12 bytes) Timestamp: 13559589 Beacon Interval: 0.102400 [Seconds] Capabilities Information: 0x1111 Tagged parameters (505 bytes) Tag: SSID parameter set: "TP-Link_3748_5G" Tag: Supported Rates 6(B), 9, 12, 18, 24(B), 36, 48, 54, [Mbit/sec] Tag: Country Information: Country Code DE, Environment Global operating classes Tag: Power Constraint: 0 Tag: TPC Report Transmit Power: 17 dBm Tag: RSN Information Tag: QBSS Load Element 802.11e CCA Version Tag: RM Enabled Capabilities (5 octets) Tag: AP Channel Report: Operating Class 134, Channel List : 37, Tag: Supported Operating Classes Tag: HT Capabilities (802.11n D1.10) Tag: HT Information (802.11n D1.10) Tag: Extended Capabilities (9 octets) Tag: Interworking Tag: Advertisement Protocol Tag: VHT Capabilities Tag: VHT Operation Tag: Tx Power Envelope Ext Tag: HE Capabilities Ext Tag: HE Operation Ext Tag: MU EDCA Parameter Set Tag: Reduced Neighbor Report Tag: Vendor Specific: Microsoft Corp.: WPS Tag: Vendor Specific: Epigram, Inc. Tag: Vendor Specific: Broadcom Tag: Vendor Specific: Microsoft Corp.: WMM/WME: Parameter Element Tag: Vendor Specific: Wi-Fi Alliance: Multi Band Operation - Optimized Connectivity Experience Tag: Vendor Specific: Tp-Link Technologies Co.,Ltd. 这是AP与STA交互的报文
09-05
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值