mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-29 15:43:52 +00:00
improve the kernel build procedure
This commit is contained in:
parent
017548727a
commit
9634f24ef2
@ -18,7 +18,7 @@ In this app note, we show how to use the dual antenna I/Q capture to capture the
|
||||
- Setup the side channel:
|
||||
```
|
||||
insmod side_ch.ko iq_len_init=8187
|
||||
(8187 should be <4096 if smaller FPGA, like z7020, is used)
|
||||
(iq_len_init should be <4096, like 4095, if smaller FPGA, like z7020, is used)
|
||||
./side_ch_ctl wh11d2000
|
||||
(Set a smaller pre_trigger_len 2000, because we want to see what happens after the trigger instead of long period stored before the trigger)
|
||||
```
|
||||
|
@ -674,7 +674,7 @@ CONFIG_INET_TCP_DIAG=y
|
||||
CONFIG_TCP_CONG_CUBIC=y
|
||||
CONFIG_DEFAULT_TCP_CONG="cubic"
|
||||
# CONFIG_TCP_MD5SIG is not set
|
||||
CONFIG_IPV6=y
|
||||
CONFIG_IPV6=m
|
||||
# CONFIG_IPV6_ROUTER_PREF is not set
|
||||
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
|
||||
# CONFIG_INET6_AH is not set
|
||||
@ -684,12 +684,12 @@ CONFIG_IPV6=y
|
||||
# CONFIG_IPV6_ILA is not set
|
||||
# CONFIG_INET6_XFRM_TUNNEL is not set
|
||||
# CONFIG_INET6_TUNNEL is not set
|
||||
CONFIG_INET6_XFRM_MODE_TRANSPORT=y
|
||||
CONFIG_INET6_XFRM_MODE_TUNNEL=y
|
||||
CONFIG_INET6_XFRM_MODE_BEET=y
|
||||
CONFIG_INET6_XFRM_MODE_TRANSPORT=m
|
||||
CONFIG_INET6_XFRM_MODE_TUNNEL=m
|
||||
CONFIG_INET6_XFRM_MODE_BEET=m
|
||||
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
|
||||
# CONFIG_IPV6_VTI is not set
|
||||
CONFIG_IPV6_SIT=y
|
||||
CONFIG_IPV6_SIT=m
|
||||
# CONFIG_IPV6_SIT_6RD is not set
|
||||
CONFIG_IPV6_NDISC_NODETYPE=y
|
||||
# CONFIG_IPV6_TUNNEL is not set
|
||||
@ -874,11 +874,11 @@ CONFIG_NF_DEFRAG_IPV6=m
|
||||
CONFIG_NF_CONNTRACK_IPV6=m
|
||||
# CONFIG_NF_SOCKET_IPV6 is not set
|
||||
# CONFIG_NF_DUP_IPV6 is not set
|
||||
CONFIG_NF_REJECT_IPV6=y
|
||||
CONFIG_NF_LOG_IPV6=y
|
||||
CONFIG_NF_REJECT_IPV6=m
|
||||
CONFIG_NF_LOG_IPV6=m
|
||||
CONFIG_NF_NAT_IPV6=m
|
||||
# CONFIG_NF_NAT_MASQUERADE_IPV6 is not set
|
||||
CONFIG_IP6_NF_IPTABLES=y
|
||||
CONFIG_IP6_NF_IPTABLES=m
|
||||
# CONFIG_IP6_NF_MATCH_AH is not set
|
||||
# CONFIG_IP6_NF_MATCH_EUI64 is not set
|
||||
# CONFIG_IP6_NF_MATCH_FRAG is not set
|
||||
@ -889,16 +889,16 @@ CONFIG_IP6_NF_IPTABLES=y
|
||||
# CONFIG_IP6_NF_MATCH_RPFILTER is not set
|
||||
# CONFIG_IP6_NF_MATCH_RT is not set
|
||||
# CONFIG_IP6_NF_TARGET_HL is not set
|
||||
CONFIG_IP6_NF_FILTER=y
|
||||
CONFIG_IP6_NF_TARGET_REJECT=y
|
||||
CONFIG_IP6_NF_FILTER=m
|
||||
CONFIG_IP6_NF_TARGET_REJECT=m
|
||||
# CONFIG_IP6_NF_TARGET_SYNPROXY is not set
|
||||
CONFIG_IP6_NF_MANGLE=y
|
||||
CONFIG_IP6_NF_MANGLE=m
|
||||
# CONFIG_IP6_NF_RAW is not set
|
||||
# CONFIG_IP6_NF_NAT is not set
|
||||
CONFIG_BRIDGE_NF_EBTABLES=y
|
||||
CONFIG_BRIDGE_NF_EBTABLES=m
|
||||
# CONFIG_BRIDGE_EBT_BROUTE is not set
|
||||
CONFIG_BRIDGE_EBT_T_FILTER=y
|
||||
CONFIG_BRIDGE_EBT_T_NAT=y
|
||||
CONFIG_BRIDGE_EBT_T_FILTER=m
|
||||
CONFIG_BRIDGE_EBT_T_NAT=m
|
||||
# CONFIG_BRIDGE_EBT_802_3 is not set
|
||||
# CONFIG_BRIDGE_EBT_AMONG is not set
|
||||
# CONFIG_BRIDGE_EBT_ARP is not set
|
||||
@ -911,7 +911,7 @@ CONFIG_BRIDGE_EBT_T_NAT=y
|
||||
# CONFIG_BRIDGE_EBT_VLAN is not set
|
||||
# CONFIG_BRIDGE_EBT_ARPREPLY is not set
|
||||
# CONFIG_BRIDGE_EBT_DNAT is not set
|
||||
CONFIG_BRIDGE_EBT_MARK_T=y
|
||||
CONFIG_BRIDGE_EBT_MARK_T=m
|
||||
# CONFIG_BRIDGE_EBT_REDIRECT is not set
|
||||
# CONFIG_BRIDGE_EBT_SNAT is not set
|
||||
# CONFIG_BRIDGE_EBT_LOG is not set
|
||||
@ -922,14 +922,14 @@ CONFIG_BRIDGE_EBT_MARK_T=y
|
||||
# CONFIG_TIPC is not set
|
||||
# CONFIG_ATM is not set
|
||||
# CONFIG_L2TP is not set
|
||||
CONFIG_STP=y
|
||||
CONFIG_BRIDGE=y
|
||||
CONFIG_STP=m
|
||||
CONFIG_BRIDGE=m
|
||||
CONFIG_BRIDGE_IGMP_SNOOPING=y
|
||||
CONFIG_HAVE_NET_DSA=y
|
||||
# CONFIG_NET_DSA is not set
|
||||
# CONFIG_VLAN_8021Q is not set
|
||||
# CONFIG_DECNET is not set
|
||||
CONFIG_LLC=y
|
||||
CONFIG_LLC=m
|
||||
# CONFIG_LLC2 is not set
|
||||
# CONFIG_IPX is not set
|
||||
# CONFIG_ATALK is not set
|
||||
@ -1056,28 +1056,26 @@ CONFIG_FIB_RULES=y
|
||||
CONFIG_WIRELESS=y
|
||||
CONFIG_WEXT_CORE=y
|
||||
CONFIG_WEXT_PROC=y
|
||||
CONFIG_CFG80211=y
|
||||
CONFIG_CFG80211=m
|
||||
CONFIG_NL80211_TESTMODE=y
|
||||
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
|
||||
CONFIG_CFG80211_CERTIFICATION_ONUS=y
|
||||
CONFIG_CFG80211_REG_CELLULAR_HINTS=y
|
||||
CONFIG_CFG80211_REG_RELAX_NO_IR=y
|
||||
CONFIG_CFG80211_DEVELOPER_WARNINGS=y
|
||||
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
|
||||
CONFIG_CFG80211_DEFAULT_PS=y
|
||||
# CONFIG_CFG80211_DEBUGFS is not set
|
||||
CONFIG_CFG80211_DEBUGFS=y
|
||||
# CONFIG_CFG80211_INTERNAL_REGDB is not set
|
||||
CONFIG_CFG80211_CRDA_SUPPORT=y
|
||||
CONFIG_CFG80211_WEXT=y
|
||||
# CONFIG_LIB80211 is not set
|
||||
CONFIG_MAC80211=y
|
||||
CONFIG_MAC80211=m
|
||||
CONFIG_MAC80211_HAS_RC=y
|
||||
CONFIG_MAC80211_RC_MINSTREL=y
|
||||
CONFIG_MAC80211_RC_MINSTREL_HT=y
|
||||
# CONFIG_MAC80211_RC_MINSTREL_VHT is not set
|
||||
CONFIG_MAC80211_RC_MINSTREL_VHT=y
|
||||
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
|
||||
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
|
||||
# CONFIG_MAC80211_MESH is not set
|
||||
CONFIG_MAC80211_MESH=y
|
||||
CONFIG_MAC80211_LEDS=y
|
||||
# CONFIG_MAC80211_DEBUGFS is not set
|
||||
CONFIG_MAC80211_DEBUGFS=y
|
||||
CONFIG_MAC80211_MESSAGE_TRACING=y
|
||||
CONFIG_MAC80211_DEBUG_MENU=y
|
||||
# CONFIG_MAC80211_NOINLINE is not set
|
||||
@ -1088,7 +1086,14 @@ CONFIG_MAC80211_DEBUG_MENU=y
|
||||
# CONFIG_MAC80211_OCB_DEBUG is not set
|
||||
# CONFIG_MAC80211_IBSS_DEBUG is not set
|
||||
# CONFIG_MAC80211_PS_DEBUG is not set
|
||||
# CONFIG_MAC80211_MPL_DEBUG is not set
|
||||
# CONFIG_MAC80211_MPATH_DEBUG is not set
|
||||
# CONFIG_MAC80211_MHWMP_DEBUG is not set
|
||||
# CONFIG_MAC80211_MESH_SYNC_DEBUG is not set
|
||||
# CONFIG_MAC80211_MESH_CSA_DEBUG is not set
|
||||
# CONFIG_MAC80211_MESH_PS_DEBUG is not set
|
||||
# CONFIG_MAC80211_TDLS_DEBUG is not set
|
||||
# CONFIG_MAC80211_DEBUG_COUNTERS is not set
|
||||
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
|
||||
# CONFIG_WIMAX is not set
|
||||
CONFIG_RFKILL=y
|
||||
@ -1849,7 +1854,6 @@ CONFIG_WLAN_VENDOR_ADMTEK=y
|
||||
# CONFIG_ADM8211 is not set
|
||||
CONFIG_WLAN_VENDOR_ATH=y
|
||||
# CONFIG_ATH_DEBUG is not set
|
||||
# CONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS is not set
|
||||
# CONFIG_ATH5K is not set
|
||||
# CONFIG_ATH5K_PCI is not set
|
||||
# CONFIG_ATH9K is not set
|
||||
@ -1892,7 +1896,7 @@ CONFIG_WLAN_VENDOR_RALINK=y
|
||||
CONFIG_WLAN_VENDOR_REALTEK=y
|
||||
# CONFIG_RTL8180 is not set
|
||||
# CONFIG_RTL8187 is not set
|
||||
CONFIG_RTL_CARDS=y
|
||||
CONFIG_RTL_CARDS=m
|
||||
# CONFIG_RTL8192CE is not set
|
||||
# CONFIG_RTL8192SE is not set
|
||||
# CONFIG_RTL8192DE is not set
|
||||
@ -1910,10 +1914,10 @@ CONFIG_WLAN_VENDOR_ST=y
|
||||
CONFIG_WLAN_VENDOR_TI=y
|
||||
# CONFIG_WL1251 is not set
|
||||
# CONFIG_WL12XX is not set
|
||||
CONFIG_WL18XX=y
|
||||
CONFIG_WLCORE=y
|
||||
CONFIG_WLCORE_SPI=y
|
||||
CONFIG_WLCORE_SDIO=y
|
||||
CONFIG_WL18XX=m
|
||||
CONFIG_WLCORE=m
|
||||
CONFIG_WLCORE_SPI=m
|
||||
CONFIG_WLCORE_SDIO=m
|
||||
CONFIG_WILINK_PLATFORM_DATA=y
|
||||
CONFIG_WLAN_VENDOR_ZYDAS=y
|
||||
# CONFIG_USB_ZD1201 is not set
|
||||
|
@ -65,15 +65,20 @@ home_dir=$(pwd)
|
||||
|
||||
set -x
|
||||
|
||||
cd $OPENWIFI_DIR/user_space/
|
||||
./prepare_kernel.sh $OPENWIFI_DIR $XILINX_DIR 32 build
|
||||
sudo true
|
||||
./prepare_kernel.sh $OPENWIFI_DIR $XILINX_DIR 64 build
|
||||
sudo true
|
||||
|
||||
LINUX_KERNEL_SRC_DIR_NAME32=adi-linux
|
||||
LINUX_KERNEL_SRC_DIR_NAME64=adi-linux-64
|
||||
|
||||
cd $OPENWIFI_DIR/user_space/
|
||||
# special case, we need our xilinx_dma.c is there when building kernel to avoid version issue
|
||||
cp $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME32/drivers/dma/xilinx/xilinx_dma.c $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME32/drivers/dma/xilinx/xilinx_dma.c.bak
|
||||
cp $OPENWIFI_DIR/driver/xilinx_dma/xilinx_dma.c $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME32/drivers/dma/xilinx -rf
|
||||
./prepare_kernel.sh $OPENWIFI_DIR $XILINX_DIR 32 build
|
||||
sudo true
|
||||
cp $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME64/drivers/dma/xilinx/xilinx_dma.c $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME64/drivers/dma/xilinx/xilinx_dma.c.bak
|
||||
cp $OPENWIFI_DIR/driver/xilinx_dma/xilinx_dma.c $OPENWIFI_DIR/$LINUX_KERNEL_SRC_DIR_NAME64/drivers/dma/xilinx -rf
|
||||
./prepare_kernel.sh $OPENWIFI_DIR $XILINX_DIR 64 build
|
||||
sudo true
|
||||
|
||||
$OPENWIFI_DIR/user_space/get_fpga.sh $OPENWIFI_DIR
|
||||
|
||||
BOARD_NAME_ALL="zc706_fmcs2 zed_fmcs2 zc702_fmcs2 adrv9361z7035 adrv9364z7020 zcu102_fmcs2 zcu102_9371"
|
||||
|
Loading…
x
Reference in New Issue
Block a user