Skip to content

Commit

Permalink
[Edgecore][as9516-32d] Access bmc by using libcurl
Browse files Browse the repository at this point in the history
1. Modify kernel config for using usb0 interface
2. Implement the BMC curl accessing for ONL
3. Fix the issus that failed building with stretch

Signed-off-by: Willy Liu <[email protected]>
  • Loading branch information
WillyLiu-EC committed Jun 1, 2023
1 parent dd61cc1 commit 5993f24
Show file tree
Hide file tree
Showing 11 changed files with 870 additions and 794 deletions.
2 changes: 2 additions & 0 deletions builds/any/rootfs/stretch/common/all-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@
- tree
- memtester
- ipmitool
- curl
- libcurl3-nss
4 changes: 2 additions & 2 deletions builds/any/rootfs/stretch/standard/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ Multistrap:

Debian:
packages: *Packages
source: http://${DEBIAN_MIRROR}
source: http://archive.debian.org/debian/
suite: ${ONL_DEBIAN_SUITE}
keyring: debian-archive-keyring
omitdebsrc: true

Debian-Local:
packages: *Packages
source: http://${APT_CACHE}${DEBIAN_MIRROR}
source: http://${APT_CACHE}archive.debian.org/debian/
suite: ${ONL_DEBIAN_SUITE}
keyring: debian-archive-keyring
omitdebsrc: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1951,8 +1951,40 @@ CONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_LAN78XX is not set
# CONFIG_USB_USBNET is not set
CONFIG_USB_USBNET=y
# CONFIG_USB_NET_AX8817X is not set
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_USB_NET_CDCETHER=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_NCM=y
CONFIG_USB_NET_HUAWEI_CDC_NCM=y
CONFIG_USB_NET_CDC_MBIM=y
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not set
CONFIG_USB_NET_CDC_SUBSET=y
# CONFIG_USB_ALI_M5632 is not set
# CONFIG_USB_AN2720 is not set
# CONFIG_USB_BELKIN is not set
# CONFIG_USB_ARMLINUX is not set
# CONFIG_USB_EPSON2888 is not set
# CONFIG_USB_KC2190 is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_VL600 is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_WLAN is not set

#
Expand Down Expand Up @@ -3231,7 +3263,7 @@ CONFIG_USB_UHCI_HCD=y
#
CONFIG_USB_ACM=y
CONFIG_USB_PRINTER=y
# CONFIG_USB_WDM is not set
CONFIG_USB_WDM=y
# CONFIG_USB_TMC is not set

#
Expand Down
1 change: 1 addition & 0 deletions packages/base/any/onlp/src/onlplib/module/make.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ onlplib_INCLUDES := -I $(THIS_DIR)inc
onlplib_INTERNAL_INCLUDES := -I $(THIS_DIR)src
onlplib_DEPENDMODULE_ENTRIES := init:onlplib

GLOBAL_LINK_LIBS += -lcurl
ifeq ($(ONL_DEBIAN_SUITE),buster)
GLOBAL_CFLAGS += -DONLPLIB_CONFIG_I2C_INCLUDE_SMBUS=1
GLOBAL_LINK_LIBS += -li2c
Expand Down
Loading

0 comments on commit 5993f24

Please sign in to comment.