nuvoton980 kernel support bridge and nat(七)

1      Scope of Document

This document describes kernel how to support bridge and nat

2      Requiremen

2.1     Function Requirement

 

2.2     Performance Requirement

NA

3      Method

3.1     Export cross compile

 

3.2     Support  kernel  bridge and nat

 

 

 

 

CONFIG_NET_INGRESS=y

CONFIG_NETFILTER=y

# CONFIG_NETFILTER_DEBUG is not set

CONFIG_NETFILTER_ADVANCED=y

CONFIG_BRIDGE_NETFILTER=y

 

#

# Core Netfilter Configuration

#

CONFIG_NETFILTER_INGRESS=y

CONFIG_NETFILTER_NETLINK=y

# CONFIG_NETFILTER_NETLINK_ACCT is not set

# CONFIG_NETFILTER_NETLINK_QUEUE is not set

# CONFIG_NETFILTER_NETLINK_LOG is not set

CONFIG_NF_CONNTRACK=y

CONFIG_NF_CONNTRACK_MARK=y

CONFIG_NF_CONNTRACK_PROCFS=y

# CONFIG_NF_CONNTRACK_EVENTS is not set

# CONFIG_NF_CONNTRACK_TIMEOUT is not set

# CONFIG_NF_CONNTRACK_TIMESTAMP is not set

# CONFIG_NF_CT_PROTO_DCCP is not set

# CONFIG_NF_CT_PROTO_SCTP is not set

# CONFIG_NF_CT_PROTO_UDPLITE is not set

# CONFIG_NF_CONNTRACK_AMANDA is not set

# CONFIG_NF_CONNTRACK_FTP is not set

# CONFIG_NF_CONNTRACK_H323 is not set

# CONFIG_NF_CONNTRACK_IRC is not set

CONFIG_NF_CONNTRACK_BROADCAST=y

CONFIG_NF_CONNTRACK_NETBIOS_NS=y

# CONFIG_NF_CONNTRACK_SNMP is not set

# CONFIG_NF_CONNTRACK_PPTP is not set

# CONFIG_NF_CONNTRACK_SANE is not set

# CONFIG_NF_CONNTRACK_SIP is not set

# CONFIG_NF_CONNTRACK_TFTP is not set

# CONFIG_NF_CT_NETLINK is not set

# CONFIG_NF_CT_NETLINK_TIMEOUT is not set

CONFIG_NF_NAT=y

CONFIG_NF_NAT_NEEDED=y

# CONFIG_NF_NAT_AMANDA is not set

# CONFIG_NF_NAT_FTP is not set

# CONFIG_NF_NAT_IRC is not set

# CONFIG_NF_NAT_SIP is not set

# CONFIG_NF_NAT_TFTP is not set

CONFIG_NF_NAT_REDIRECT=y

CONFIG_NF_TABLES=y

# CONFIG_NF_TABLES_NETDEV is not set

# CONFIG_NFT_EXTHDR is not set

# CONFIG_NFT_META is not set

CONFIG_NFT_CT=y

# CONFIG_NFT_RBTREE is not set

# CONFIG_NFT_HASH is not set

# CONFIG_NFT_COUNTER is not set

# CONFIG_NFT_LOG is not set

# CONFIG_NFT_LIMIT is not set

CONFIG_NFT_MASQ=y

# CONFIG_NFT_REDIR is not set

CONFIG_NFT_NAT=y

CONFIG_NFT_REJECT=y

CONFIG_NFT_COMPAT=y

CONFIG_NETFILTER_XTABLES=y

 

#

# Xtables combined modules

#

# CONFIG_NETFILTER_XT_MARK is not set

CONFIG_NETFILTER_XT_CONNMARK=y

 

#

# Xtables targets

#

# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set

# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set

# CONFIG_NETFILTER_XT_TARGET_HMARK is not set

# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set

# CONFIG_NETFILTER_XT_TARGET_LED is not set

# CONFIG_NETFILTER_XT_TARGET_LOG is not set

# CONFIG_NETFILTER_XT_TARGET_MARK is not set

CONFIG_NETFILTER_XT_NAT=y

# CONFIG_NETFILTER_XT_TARGET_NETMAP is not set

# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set

# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set

# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set

CONFIG_NETFILTER_XT_TARGET_REDIRECT=y

# CONFIG_NETFILTER_XT_TARGET_TEE is not set

# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set

 

#

# Xtables matches

#

# CONFIG_NETFILTER_XT_MATCH_ADDRTYPE is not set

# CONFIG_NETFILTER_XT_MATCH_BPF is not set

# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set

# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set

# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set

# CONFIG_NETFILTER_XT_MATCH_CONNLABEL is not set

# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set

CONFIG_NETFILTER_XT_MATCH_CONNMARK=y

CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y

# CONFIG_NETFILTER_XT_MATCH_CPU is not set

# CONFIG_NETFILTER_XT_MATCH_DCCP is not set

# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set

# CONFIG_NETFILTER_XT_MATCH_DSCP is not set

# CONFIG_NETFILTER_XT_MATCH_ECN is not set

# CONFIG_NETFILTER_XT_MATCH_ESP is not set

# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set

# CONFIG_NETFILTER_XT_MATCH_HELPER is not set

# CONFIG_NETFILTER_XT_MATCH_HL is not set

# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set

# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set

# CONFIG_NETFILTER_XT_MATCH_L2TP is not set

# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set

# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set

# CONFIG_NETFILTER_XT_MATCH_MAC is not set

# CONFIG_NETFILTER_XT_MATCH_MARK is not set

# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set

# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set

# CONFIG_NETFILTER_XT_MATCH_OSF is not set

# CONFIG_NETFILTER_XT_MATCH_OWNER is not set

# CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set

# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set

# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set

# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set

# CONFIG_NETFILTER_XT_MATCH_REALM is not set

# CONFIG_NETFILTER_XT_MATCH_RECENT is not set

# CONFIG_NETFILTER_XT_MATCH_SCTP is not set

# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set

# CONFIG_NETFILTER_XT_MATCH_STATE is not set

# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set

# CONFIG_NETFILTER_XT_MATCH_STRING is not set

# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set

# CONFIG_NETFILTER_XT_MATCH_TIME is not set

# CONFIG_NETFILTER_XT_MATCH_U32 is not set

# CONFIG_IP_SET is not set

# CONFIG_IP_VS is not set

 

#

# IP: Netfilter Configuration

#

CONFIG_NF_DEFRAG_IPV4=y

CONFIG_NF_CONNTRACK_IPV4=y

CONFIG_NF_CONNTRACK_PROC_COMPAT=y

# CONFIG_NF_TABLES_IPV4 is not set

# CONFIG_NF_TABLES_ARP is not set

CONFIG_NF_DUP_IPV4=y

# CONFIG_NF_LOG_ARP is not set

# CONFIG_NF_LOG_IPV4 is not set

# CONFIG_NF_REJECT_IPV4 is not set

CONFIG_NF_NAT_IPV4=y

CONFIG_NF_NAT_MASQUERADE_IPV4=y

# CONFIG_NF_NAT_PPTP is not set

# CONFIG_NF_NAT_H323 is not set

CONFIG_IP_NF_IPTABLES=y

# CONFIG_IP_NF_MATCH_AH is not set

# CONFIG_IP_NF_MATCH_ECN is not set

# CONFIG_IP_NF_MATCH_TTL is not set

# CONFIG_IP_NF_FILTER is not set

# CONFIG_IP_NF_TARGET_SYNPROXY is not set

CONFIG_IP_NF_NAT=y

CONFIG_IP_NF_TARGET_MASQUERADE=y

# CONFIG_IP_NF_TARGET_NETMAP is not set

CONFIG_IP_NF_TARGET_REDIRECT=y

# CONFIG_IP_NF_MANGLE is not set

# CONFIG_IP_NF_RAW is not set

# CONFIG_IP_NF_ARPTABLES is not set

# CONFIG_NF_TABLES_BRIDGE is not set

# CONFIG_BRIDGE_NF_EBTABLES is not set

CONFIG_STP=y

CONFIG_BRIDGE=y

CONFIG_BRIDGE_IGMP_SNOOPING=y

CONFIG_LLC=y

CONFIG_NUC980_UART6=y

# CONFIG_ENABLE_UART6_CTS_WAKEUP is not set

# CONFIG_ENABLE_UART6_PDMA is not set

# CONFIG_NUC980_UART6_PA is not set

# CONFIG_NUC980_UART6_PD is not set

# CONFIG_NUC980_UART6_PE is not set

CONFIG_NUC980_UART6_FC_PA=y

# CONFIG_NUC980_UART6_FC_PD is not set

CONFIG_NUC980_UART8_PA=y

# CONFIG_NUC980_UART8_FC_PA_PG is not set

 

 

make nuc980_eth2uart_defconfig

 

make uImage

 

4      Output file

../image/980uImage

posted @ 2020-03-20 10:08  嵌入式实操  阅读(531)  评论(0编辑  收藏  举报