Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libasterfusionbf_driver.so needs to be linked against libi2c.so too #2

Open
mc36 opened this issue May 24, 2024 · 7 comments
Open

libasterfusionbf_driver.so needs to be linked against libi2c.so too #2

mc36 opened this issue May 24, 2024 · 7 comments

Comments

@mc36
Copy link

mc36 commented May 24, 2024

libi2c.so needs to be dynamically linked against libasterfusionbf_driver.so

manually adding "-li2c" to ibasterfusionbf_driver_la_CFLAGS in platforms/asterfusion-bf/src/Makefile

please find the logs below...

all the best!

cs

mc36@core:~$ ./sw.sh
256
insmod: ERROR: could not insert module /home/mc36/nct6779d/nct6779d.ko: File exists
insmod: ERROR: could not load module /home/mc36/bf-sde-9.13.3/build/pkgsrc/bf-drivers/kdrv/bf_kpkt/bf_kpkt.ko: No such file or directory
i2c-3 smbus sio_smbus SMBus adapter
i2c-1 smbus SMBus I801 adapter at 3000 SMBus adapter
i2c-2 i2c CP2112 SMBus Bridge on hidraw0 I2C adapter
i2c-0 smbus SMBus iSMT adapter at 887d6000 SMBus adapter
insmod: ERROR: could not load module /home/mc36/bf-sde-9.13.3/install/lib/modules/bf_kpkt.ko: No such file or directory
Using SDE /home/mc36/bf-sde-9.13.3
Using SDE_INSTALL /home/mc36/bf-sde-9.13.3/install
Setting up DMA Memory Pool
Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf
Using SDE_DEPENDENCIES /home/mc36/bf-sde-9.13.3/install
Using PATH /home/mc36/bf-sde-9.13.3/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Using LD_LIBRARY_PATH /home/mc36/bf-sde-9.13.3/install/lib:/home/mc36/bf-sde-9.13.3/install/lib::/usr/local/lib
2024-05-24 14:09:19.435254 BF_SWITCHD DEBUG - bf_switchd: system services initialized
2024-05-24 14:09:19.435326 BF_SWITCHD DEBUG - bf_switchd: loading conf_file /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf...
2024-05-24 14:09:19.435374 BF_SWITCHD DEBUG - bf_switchd: processing device configuration...
2024-05-24 14:09:19.435451 BF_SWITCHD DEBUG - Configuration for dev_id 0
2024-05-24 14:09:19.435477 BF_SWITCHD DEBUG - Family : tofino
2024-05-24 14:09:19.435499 BF_SWITCHD DEBUG - pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
2024-05-24 14:09:19.435519 BF_SWITCHD DEBUG - pci_int_mode : 0
2024-05-24 14:09:19.435540 BF_SWITCHD DEBUG - sds_fw_path : share/tofino_sds_fw/avago/firmware
2024-05-24 14:09:19.435560 BF_SWITCHD DEBUG - bf_switchd: processing P4 configuration...
2024-05-24 14:09:19.435623 BF_SWITCHD DEBUG - coal_mirror_enable=0 coal_min=0 sessions_num=0
2024-05-24 14:09:19.435652 BF_SWITCHD DEBUG - P4 profile for dev_id 0
2024-05-24 14:09:19.435673 BF_SWITCHD DEBUG - num P4 programs 1
2024-05-24 14:09:19.435694 BF_SWITCHD DEBUG - p4_name: bf_router
2024-05-24 14:09:19.435715 BF_SWITCHD DEBUG - p4_pipeline_name: pipe
2024-05-24 14:09:19.435735 BF_SWITCHD DEBUG - libpd:
2024-05-24 14:09:19.435754 BF_SWITCHD DEBUG - libpdthrift:
2024-05-24 14:09:19.435774 BF_SWITCHD DEBUG - context: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/context.json
2024-05-24 14:09:19.435828 BF_SWITCHD DEBUG - config: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/tofino.bin
2024-05-24 14:09:19.435849 BF_SWITCHD DEBUG - Pipes in scope [
2024-05-24 14:09:19.435868 BF_SWITCHD DEBUG - 0
2024-05-24 14:09:19.435888 BF_SWITCHD DEBUG - 1
2024-05-24 14:09:19.435909 BF_SWITCHD DEBUG - 2
2024-05-24 14:09:19.435929 BF_SWITCHD DEBUG - 3
2024-05-24 14:09:19.435950 BF_SWITCHD DEBUG - ]
2024-05-24 14:09:19.435971 BF_SWITCHD DEBUG - diag:
2024-05-24 14:09:19.435990 BF_SWITCHD DEBUG - accton diag:
2024-05-24 14:09:19.436011 BF_SWITCHD DEBUG - Agent[0]: /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
2024-05-24 14:09:19.439950 BF_SWITCHD DEBUG - bf_switchd: library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so loaded
2024-05-24 14:09:19.441429 BF_SWITCHD DEBUG - bf_switchd: agent[0] initialized

BSP ver : Git: r78 24.02-rc1-33-gc2dd6cf-dev built: 19:05:37 UTC 2024-05-24

System Preview
Login User: mc36
Runtime User: root
Host: core
Arch: x86_64
Bits/LONG: 64
Platform: Linux
Kernel: 5.10.0-29-amd64
OS: #1 SMP Debian 5.10.216-1 (2024-05-03)
CPU: 4

Loading /etc/platform.conf ...

Initializing i2c ... i2c-3

Initializing uart ... Skip ...

Reading EEPROM ...
bf_switchd: symbol lookup error: /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so.0: undefined symbol: i2c_smbus_write_block_data

@hangtsi
Copy link
Collaborator

hangtsi commented Jun 7, 2024

Please sync your local repo from remote and build bsp via cmake to see whether the issue resolved. I have checked building and running on Debian 11 it works fine.

@mc36
Copy link
Author

mc36 commented Jun 7, 2024

hi,

cmake fails out with the below message....

please note that it's a default debian 11 with bf-sde-9.13.3 and the bsp installed to my home....

ps:

the ./autogen.sh ; ./configure --prefix=$SDE_INSTALL --enable-thrift ; make ; make install

method also fails now when it tries to link the cp2112_utils and uart_utils....

thanks,

mc36@core:~/bf-bsp-lts/build$ cmake ../
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(14.04|16.04|18.04|20.04|22.04)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=9
-- Giving -DSDE_VERSION=9130
-- Linking target_utils target_sys
CMake Error at CMakeLists.txt:114 (find_package):
By not providing "FindThrift.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Thrift", but
CMake did not find one.

Could not find a package configuration file provided by "Thrift" with any
of the following names:

ThriftConfig.cmake
thrift-config.cmake

Add the installation prefix of "Thrift" to CMAKE_PREFIX_PATH or set
"Thrift_DIR" to a directory containing one of the above files. If "Thrift"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "/home/mc36/bf-bsp-lts/build/CMakeFiles/CMakeOutput.log".
mc36@core:~/bf-bsp-lts/build$

mc36@core:$ ls
access-bmc.sh asic.yaml c.sh lr.sh port_map.json sai.yam
access-cpu.sh bf-bsp-lts lf.sh model_20240524_133829.log rare sw.sh
access-dpu1.sh bf_drivers.log libcgos.so nct6779d reimage.sh update.sh
access-dpu2.sh bf-sde-9.13.3 lp.sh platform.conf rtr zlog-cfg-cur
mc36@core:
$

mc36@core:/bf-bsp-lts$ make
make all-recursive
make[1]: Entering directory '/home/mc36/bf-bsp-lts'
Making all in platforms
make[2]: Entering directory '/home/mc36/bf-bsp-lts/platforms'
Making all in include
make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/include'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/include'
Making all in asterfusion-bf
make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
Making all in thrift
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make all-am
make[5]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
Making all in include
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
Making all in src
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
Making all in cp2112_util
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
CCLD cp2112_util
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:712: undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:766: undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:865: undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:916: undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_bmc_write_read': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:993: undefined reference to i2c_smbus_read_block_data'
/usr/bin/ld: /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:975: undefined reference to `i2c_smbus_write_block_data'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:504: cp2112_util] Error 1
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
make[3]: *** [Makefile:380: all-recursive] Error 1
make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
make[2]: *** [Makefile:376: all-recursive] Error 1
make[2]: Leaving directory '/home/mc36/bf-bsp-lts/platforms'
make[1]: *** [Makefile:615: all-recursive] Error 1
make[1]: Leaving directory '/home/mc36/bf-bsp-lts'
make: *** [Makefile:440: all] Error 2
mc36@core:
/bf-bsp-lts$

@hangtsi
Copy link
Collaborator

hangtsi commented Jun 8, 2024 via email

@mc36
Copy link
Author

mc36 commented Jun 8, 2024

hi,

ohhh, an updated readme... nicee! :)

anyway -li2c seems still to be missing during the linking phase...

thanks,

mc36@core:~/bf-bsp-lts$ ./autogen.sh
/home/mc36/bf-sde-9.13.3/install
:/home/mc36/bf-sde-9.13.3/install/lib
Copying bd-map json for tof2 based platforms ...
Git Local version: 48
ALL GIT Version: Git: r48 24.06-rc1
Generated: platforms/asterfusion-bf/include//version.h
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force ${ACLOCAL_FLAGS} -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:90: installing './compile' configure.ac:9: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory .'
Press any key to continue...

mc36@core:~/bf-bsp-lts/build$ cmake .. -DCMAKE_MODULE_PATH=pwd/../cmake -DCMAKE_INSTALL_PREFIX=$SDE_INSTALL -DOS_NAME=Debian -DOS_VERSION=11 -DSDE_VERSION=9133
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(14.04|16.04|18.04|20.04|22.04)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=11
-- Giving -DSDE_VERSION=9133
-- Linking target_utils target_sys
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (THRIFT)
does not match the name of the calling package (Thrift). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindThrift.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:114 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found THRIFT: /usr/lib/x86_64-linux-gnu/libthrift.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mc36/bf-bsp-lts/build
mc36@core:/bf-bsp-lts/build$ make
Scanning dependencies of target pltfm_o
[ 1%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_init.c.o
[ 2%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_handlers.c.o
[ 2%] Built target pltfm_o
Scanning dependencies of target asterfusionbf_driver_o
[ 3%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 4%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 5%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 6%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 7%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform.c.o
[ 8%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_board.c.o
[ 9%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_health_mntr.c.o
[ 10%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/lq.c.o
[ 11%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led.c.o
[ 12%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x564p.c.o
[ 13%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x532p.c.o
[ 14%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x308p.c.o
[ 15%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x312p.c.o
[ 16%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x732q.c.o
[ 17%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_hc36y24c.c.o
[ 18%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_cpld_led.c.o
[ 20%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cpld/bf_pltfm_cpld_ucli.c.o
[ 21%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_spi/bf_pltfm_spi.c.o
[ 22%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_module.c.o
[ 23%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module.c.o
[ 24%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x564p.c.o
[ 25%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x532p.c.o
[ 26%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x308p.c.o
[ 27%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x312p.c.o
[ 28%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x732q.c.o
[ 29%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_hc36y24c.c.o
[ 30%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module.c.o
[ 31%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x564p.c.o
[ 32%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x532p.c.o
[ 33%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x308p.c.o
[ 34%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x312p.c.o
[ 35%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x732q.c.o
[ 36%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_hc36y24c.c.o
[ 37%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 38%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 40%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_tmp.c.o
[ 41%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_vrail.c.o
[ 42%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ps.c.o
[ 43%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_fan.c.o
[ 44%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_mac.c.o
[ 45%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ucli.c.o
[ 46%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 47%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf_ucli.c.o
[ 47%] Built target asterfusionbf_driver_o
Scanning dependencies of target asterfusionbf_driver
[ 48%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so
[ 48%] Built target asterfusionbf_driver
Scanning dependencies of target pltfm_driver_o
[ 49%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 50%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf_ucli.c.o
[ 51%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_porting.c.o
[ 52%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_cli.c.o
[ 53%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_ucli.c.o
[ 54%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_comm.c.o
[ 55%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_comm.c.o
[ 56%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff.c.o
[ 57%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/dom.c.o
[ 58%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/map.c.o
[ 60%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/nonstandard.c.o
[ 61%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_db.c.o
[ 62%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_enums.c.o
[ 63%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_led/bf_led.c.o
[ 64%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf.c.o
[ 65%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf_tf2.c.o
[ 66%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_qsfp_mgmt.c.o
[ 67%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_sfp_mgmt.c.o
[ 68%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_porting.c.o
[ 68%] Built target pltfm_driver_o
Scanning dependencies of target pltfm_driver
[ 69%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_driver.so
[ 69%] Built target pltfm_driver
Scanning dependencies of target asterfusion_bin_srcs_o
[ 70%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 71%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 72%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 73%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 74%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 75%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 76%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 77%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 77%] Built target asterfusion_bin_srcs_o
Scanning dependencies of target cp2112_util
[ 78%] Building C object CMakeFiles/cp2112_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 80%] Linking C executable cp2112_util
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_read_byte': bf_pltfm_master_i2c.c:(.text+0x104e): undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_read_block': bf_pltfm_master_i2c.c:(.text+0x1200): undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_write_byte': bf_pltfm_master_i2c.c:(.text+0x13aa): undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_write_block': bf_pltfm_master_i2c.c:(.text+0x1559): undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_bmc_write_read': bf_pltfm_master_i2c.c:(.text+0x175c): undefined reference to i2c_smbus_read_block_data'
/usr/bin/ld: bf_pltfm_master_i2c.c:(.text+0x180a): undefined reference to `i2c_smbus_write_block_data'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cp2112_util.dir/build.make:119: cp2112_util] Error 1
make[1]: *** [CMakeFiles/Makefile2:299: CMakeFiles/cp2112_util.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
mc36@core:
/bf-bsp-lts/build$

@hangtsi
Copy link
Collaborator

hangtsi commented Jun 24, 2024

Please try bf-bsp-lts/tags/24.06

@mc36
Copy link
Author

mc36 commented Jun 25, 2024

hi,

after a fresh clone of the repo, the build now succeeds however starting the bf-sde exits with the i2c symbol lookup error...

br,

cs

mc36@core:~/bf-bsp-lts/build$ cmake .. -DCMAKE_MODULE_PATH=pwd/../cmake -DCMAKE_INSTALL_PREFIX=$SDE_INSTALL -DOS_NAME=Debian -DOS_VERSION=10 -DSDE_VERSION=9133
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(1404|1604|1804|2004|2204)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=10
-- Giving -DSDE_VERSION=9133
-- Giving -DTHRIFT_ENABLED=ON
-- Giving -DDEFAULT_LASER_ON=OFF
-- Giving -DASTERFUSION-DIAGS=OFF
-- Giving -DCOVERAGE=OFF
-- Linking target_utils target_sys
-- Linking i2c
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (THRIFT)
does not match the name of the calling package (Thrift). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindThrift.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:128 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found THRIFT: /usr/lib/x86_64-linux-gnu/libthrift.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mc36/bf-bsp-lts/build
mc36@core:/bf-bsp-lts/build$ make
Scanning dependencies of target pltfm_o
[ 1%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_init.c.o
[ 2%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_handlers.c.o
[ 2%] Built target pltfm_o
Scanning dependencies of target asterfusionbf_driver_o
[ 3%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 4%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 5%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 6%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 7%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform.c.o
[ 8%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_board.c.o
[ 9%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_health_mntr.c.o
[ 10%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/lq.c.o
[ 11%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led.c.o
[ 12%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x564p.c.o
[ 13%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x532p.c.o
[ 14%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x308p.c.o
[ 15%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x312p.c.o
[ 16%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x732q.c.o
[ 17%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_hc36y24c.c.o
[ 18%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_cpld_led.c.o
[ 20%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cpld/bf_pltfm_cpld_ucli.c.o
[ 21%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_spi/bf_pltfm_spi.c.o
[ 22%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_module.c.o
[ 23%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module.c.o
[ 24%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x564p.c.o
[ 25%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x532p.c.o
[ 26%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x308p.c.o
[ 27%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x312p.c.o
[ 28%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x732q.c.o
[ 29%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_hc36y24c.c.o
[ 30%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module.c.o
[ 31%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x564p.c.o
[ 32%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x532p.c.o
[ 33%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x308p.c.o
[ 34%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x312p.c.o
[ 35%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x732q.c.o
[ 36%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_hc36y24c.c.o
[ 37%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 38%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 40%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_tmp.c.o
[ 41%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_vrail.c.o
[ 42%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ps.c.o
[ 43%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_fan.c.o
[ 44%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_mac.c.o
[ 45%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ucli.c.o
[ 46%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 47%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf_ucli.c.o
[ 47%] Built target asterfusionbf_driver_o
Scanning dependencies of target asterfusionbf_driver
[ 48%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so
[ 48%] Built target asterfusionbf_driver
Scanning dependencies of target pltfm_driver_o
[ 49%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 50%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf_ucli.c.o
[ 51%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_porting.c.o
[ 52%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_cli.c.o
[ 53%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_ucli.c.o
[ 54%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_comm.c.o
[ 55%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_comm.c.o
[ 56%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff.c.o
[ 57%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/dom.c.o
[ 58%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/map.c.o
[ 60%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/nonstandard.c.o
[ 61%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_db.c.o
[ 62%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_enums.c.o
[ 63%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_led/bf_led.c.o
[ 64%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf.c.o
[ 65%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf_tf2.c.o
[ 66%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_qsfp_mgmt.c.o
[ 67%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_sfp_mgmt.c.o
[ 68%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_porting.c.o
[ 68%] Built target pltfm_driver_o
Scanning dependencies of target pltfm_driver
[ 69%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_driver.so
[ 69%] Built target pltfm_driver
Scanning dependencies of target asterfusion_bin_srcs_o
[ 70%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 71%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 72%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 73%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 74%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 75%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 76%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 77%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 77%] Built target asterfusion_bin_srcs_o
Scanning dependencies of target cp2112_util
[ 78%] Building C object CMakeFiles/cp2112_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 80%] Linking C executable cp2112_util
[ 80%] Built target cp2112_util
Scanning dependencies of target pltfm_mgr_rpc_python
[ 81%] Generating gen-py/pltfm_mgr_rpc/constants.py, gen-py/pltfm_mgr_rpc/init.py, gen-py/pltfm_mgr_rpc/ttypes.py, gen-py/pltfm_mgr_rpc/pltfm_mgr_rpc.py, gen-py/pltfm_mgr_rpc/pltfm_mgr_rpc-remote
[ 81%] Built target pltfm_mgr_rpc_python
Scanning dependencies of target pltfm_pm_rpc_python
[ 82%] Generating gen-py/pltfm_pm_rpc/constants.py, gen-py/pltfm_pm_rpc/init.py, gen-py/pltfm_pm_rpc/ttypes.py, gen-py/pltfm_pm_rpc/pltfm_pm_rpc.py, gen-py/pltfm_pm_rpc/pltfm_pm_rpc-remote
[ 82%] Built target pltfm_pm_rpc_python
[ 83%] Generating gen-cpp/pltfm_mgr_rpc.cpp, gen-cpp/pltfm_mgr_rpc.h, gen-cpp/pltfm_mgr_rpc_types.cpp, gen-cpp/pltfm_mgr_rpc_types.h, gen-cpp/pltfm_pm_rpc.cpp, gen-cpp/pltfm_pm_rpc.h, gen-cpp/pltfm_pm_rpc_types.cpp, gen-cpp/pltfm_pm_rpc_types.h
Scanning dependencies of target pltfm_mgr_thrift
[ 84%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/src/bf_platform_rpc_server.cpp.o
[ 85%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_mgr_rpc.cpp.o
[ 86%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_mgr_rpc_types.cpp.o
[ 87%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_pm_rpc.cpp.o
[ 88%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_pm_rpc_types.cpp.o
[ 89%] Linking CXX shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr_thrift.so
[ 89%] Built target pltfm_mgr_thrift
Scanning dependencies of target pltfm_mgr
[ 90%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
[ 90%] Built target pltfm_mgr
Scanning dependencies of target spi_i2c_util
[ 91%] Building C object CMakeFiles/spi_i2c_util.dir/platforms/asterfusion-bf/tofino_spi_util/tofino_spi_if.c.o
[ 92%] Building C object CMakeFiles/spi_i2c_util.dir/platforms/asterfusion-bf/tofino_spi_util/tofino_porting_spi.c.o
[ 93%] Linking C executable spi_i2c_util
[ 93%] Built target spi_i2c_util
Scanning dependencies of target uart_util
[ 94%] Building C object CMakeFiles/uart_util.dir/platforms/asterfusion-bf/uart_util/uart_util.c.o
[ 95%] Linking C executable uart_util
[ 95%] Built target uart_util
Scanning dependencies of target syseeprom_util
[ 96%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/syseeprom_util.c.o
[ 97%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 98%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c.o
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c: In function ‘decode_tlv_value’:
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:386:17: warning: ‘sprintf’ argument 3 overlaps destination object ‘value’ [-Wrestrict]
386 | sprintf (value, "%s 0x%02X", value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
387 | tlv->value[i]);
| ~~~~~~~~~~~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:343:37: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
343 | char *value)
| ~~~~~~^~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:404:17: warning: ‘sprintf’ argument 3 overlaps destination object ‘value’ [-Wrestrict]
404 | sprintf (value, "%s 0x%02X", value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
405 | tlv->value[i]);
| ~~~~~~~~~~~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:343:37: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
343 | char *value)
| ~~~~~~^~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c: In function ‘tlvinfo_add_tlv’:
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:815:13: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
815 | strncpy (data, strval, MAX_TLV_VALUE_LEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable syseeprom_util
[100%] Built target syseeprom_util
mc36@core:
/bf-bsp-lts/build$ make instal
make: *** No rule to make target 'instal'. Stop.
mc36@core:/bf-bsp-lts/build$ make install
[ 2%] Built target pltfm_o
[ 47%] Built target asterfusionbf_driver_o
[ 48%] Built target asterfusionbf_driver
[ 68%] Built target pltfm_driver_o
[ 69%] Built target pltfm_driver
[ 77%] Built target asterfusion_bin_srcs_o
[ 80%] Built target cp2112_util
[ 81%] Built target pltfm_mgr_rpc_python
[ 82%] Built target pltfm_pm_rpc_python
[ 89%] Built target pltfm_mgr_thrift
[ 90%] Built target pltfm_mgr
[ 93%] Built target spi_i2c_util
[ 95%] Built target uart_util
[100%] Built target syseeprom_util
Install the project...
-- Install configuration: "Release"
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/spi_i2c_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/cp2112_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/uart_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/syseeprom_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_pci_bringup.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_wr_local.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_wr.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_rd_local.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_rd.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/credo_firmware.bin
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-cfgen.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-clean.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-diags.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-setup.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/sdepythonpath.py
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/pltfm_pm_rpc-remote
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/ttypes.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/init.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/pltfm_pm_rpc.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/constants.py
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/ttypes.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/init.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/pltfm_mgr_rpc.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/pltfm_mgr_rpc-remote
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/constants.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_qsfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_sfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_bd_cfg.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_ext_phy.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_spi.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_cp2112_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_chss_mgmt_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_bmc_tty.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_mav_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_master_i2c.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_uart.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/pltfm_types.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/version.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_porting.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_bd_map.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm_types/bf_pltfm_types.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_port_mgmt/bf_port_mgmt_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_port_mgmt/bf_port_mgmt_porting.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm_mgr/pltfm_mgr_handlers.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_led/bf_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_qsfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_sfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff_standards.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/map.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/dom.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff_db.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8436.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8472.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8636.h
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_sfp.h
mc36@core:
/bf-bsp-lts/build$
mc36@core:~$ ./sw.sh
[sudo] password for mc36:
256
i2c-3 smbus sio_smbus SMBus adapter
i2c-1 smbus SMBus I801 adapter at 3000 SMBus adapter
i2c-2 i2c CP2112 SMBus Bridge on hidraw0 I2C adapter
i2c-0 smbus SMBus iSMT adapter at 887d6000 SMBus adapter
Using SDE /home/mc36/bf-sde-9.13.3
Using SDE_INSTALL /home/mc36/bf-sde-9.13.3/install
Setting up DMA Memory Pool
Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf
Using SDE_DEPENDENCIES /home/mc36/bf-sde-9.13.3/install
Using PATH /home/mc36/bf-sde-9.13.3/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Using LD_LIBRARY_PATH /home/mc36/bf-sde-9.13.3/install/lib:/home/mc36/bf-sde-9.13.3/install/lib::/usr/local/lib
2024-06-25 11:52:18.219770 BF_SWITCHD DEBUG - bf_switchd: system services initialized
2024-06-25 11:52:18.220394 BF_SWITCHD DEBUG - bf_switchd: loading conf_file /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf...
2024-06-25 11:52:18.220451 BF_SWITCHD DEBUG - bf_switchd: processing device configuration...
2024-06-25 11:52:18.220731 BF_SWITCHD DEBUG - Configuration for dev_id 0
2024-06-25 11:52:18.220764 BF_SWITCHD DEBUG - Family : tofino
2024-06-25 11:52:18.220783 BF_SWITCHD DEBUG - pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
2024-06-25 11:52:18.220805 BF_SWITCHD DEBUG - pci_int_mode : 0
2024-06-25 11:52:18.220825 BF_SWITCHD DEBUG - sds_fw_path : share/tofino_sds_fw/avago/firmware
2024-06-25 11:52:18.220845 BF_SWITCHD DEBUG - bf_switchd: processing P4 configuration...
2024-06-25 11:52:18.222076 BF_SWITCHD DEBUG - coal_mirror_enable=0 coal_min=0 sessions_num=0
2024-06-25 11:52:18.222108 BF_SWITCHD DEBUG - P4 profile for dev_id 0
2024-06-25 11:52:18.222128 BF_SWITCHD DEBUG - num P4 programs 1
2024-06-25 11:52:18.222150 BF_SWITCHD DEBUG - p4_name: bf_router
2024-06-25 11:52:18.222171 BF_SWITCHD DEBUG - p4_pipeline_name: pipe
2024-06-25 11:52:18.222190 BF_SWITCHD DEBUG - libpd:
2024-06-25 11:52:18.222209 BF_SWITCHD DEBUG - libpdthrift:
2024-06-25 11:52:18.222230 BF_SWITCHD DEBUG - context: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/context.json
2024-06-25 11:52:18.222249 BF_SWITCHD DEBUG - config: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/tofino.bin
2024-06-25 11:52:18.222268 BF_SWITCHD DEBUG - Pipes in scope [
2024-06-25 11:52:18.222288 BF_SWITCHD DEBUG - 0
2024-06-25 11:52:18.222306 BF_SWITCHD DEBUG - 1
2024-06-25 11:52:18.222327 BF_SWITCHD DEBUG - 2
2024-06-25 11:52:18.222345 BF_SWITCHD DEBUG - 3
2024-06-25 11:52:18.222366 BF_SWITCHD DEBUG - ]
2024-06-25 11:52:18.222385 BF_SWITCHD DEBUG - diag:
2024-06-25 11:52:18.222403 BF_SWITCHD DEBUG - accton diag:
2024-06-25 11:52:18.222422 BF_SWITCHD DEBUG - Agent[0]: /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
2024-06-25 11:52:18.229025 BF_SWITCHD DEBUG - bf_switchd: library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so loaded
2024-06-25 11:52:18.245120 BF_SWITCHD DEBUG - bf_switchd: agent[0] initialized

BSP ver : Git: r49 24.06 built: 16:49:40 UTC 2024-06-25

System Preview
Login User: mc36
Runtime User: root
Host: core
Arch: x86_64
Bits/LONG: 64
Platform: Linux
Kernel: 5.10.0-30-amd64
OS: #1 SMP Debian 5.10.218-1 (2024-06-01)
CPU: 4

Loading /etc/platform.conf ...

Initializing i2c ... i2c-3

Initializing uart ... Skip ...

Reading EEPROM ...
bf_switchd: symbol lookup error: /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so: undefined symbol: i2c_smbus_write_block_data

@mc36
Copy link
Author

mc36 commented Jun 25, 2024

after a bit of playing, i was able to bring it up with the cmake method....

mc36@core:~$ diff old/CMakeLists.txt bf-bsp-lts/CMakeLists.txt
250c250
< target_link_libraries(pltfm_mgr PUBLIC pltfm_mgr_thrift ${bfsys_lib} curl usb-1.0 ${private_lib})

target_link_libraries(pltfm_mgr PUBLIC pltfm_mgr_thrift ${bfsys_lib} curl usb-1.0 i2c ${private_lib})
252c252
< target_link_libraries(pltfm_mgr PUBLIC ${bfsys_lib} curl usb-1.0 ${private_lib})


target_link_libraries(pltfm_mgr PUBLIC ${bfsys_lib} curl usb-1.0 i2c ${private_lib})
mc36@core:~$

is what needed for that.... afterwards, i see this:

System Preview
Login User: mc36
Runtime User: root
Host: core
Arch: x86_64
Bits/LONG: 64
Platform: Linux
Kernel: 5.10.0-30-amd64
OS: #1 SMP Debian 5.10.218-1 (2024-06-01)
CPU: 4

Loading /etc/platform.conf ...

Initializing i2c ... i2c-3

Initializing uart ... Skip ...

Reading EEPROM ...

########################
BMC v1.0.6-offical
########################
########################
AFN_BD_ID_X312PT_V3P0
########################

Initializing CPLD ...
CPLD1 : v3.0
CPLD2 :
CPLD3 : v1.0
CPLD4 : v1.0
CPLD5 : v2.0

Initializing QSFP ...
QSFPs/vQSFPs : 12/ 4

Initializing SFP ...
SFPs/xSFPs : 50/ 2

Health monitor started
ONLP monitor started
Starting BF-PLATFORM RPC server on : : 9095

Loading /etc/transceiver-cases.conf ... done(8 entries)

2024-06-25 12:54:29.230367 BF_SWITCHD DEBUG - Device 0: Operational mode set to ASIC
2024-06-25 12:54:29.230419 BF_SWITCHD DEBUG - Initialized the device types using platforms infra API
2024-06-25 12:54:29.230442 BF_SWITCHD DEBUG - ASIC detected at PCI /sys/class/bf/bf0/device
2024-06-25 12:54:29.230509 BF_SWITCHD DEBUG - ASIC pci device id is 16 (0x0010)
Starting PD-API RPC server on port 9090
2024-06-25 12:54:29.245893 BF_SWITCHD DEBUG - bf_switchd: drivers initialized
Setting core_pll_ctrl0=cd44cbfe
/

Initializing LED ...
Port deleted -> Off
Port disabled -> Off
Port enabled -> Off
Link up -> Green
Link dn -> Off
Link at 1G/10G -> Green
Link at 25G -> Green
Link at 40G -> Green
Link at 50G -> Green
Link at 100G -> Green
Link at 200G -> Off
Link at 400G -> Off
bf_pm_cold_init:1311 Bind QSFP Mgmt callback ..
bf_pm_cold_init:1337 Bind QSFP Mgmt callback Tx-only ..
2024-06-25 12:54:37.746929 BF_SWITCHD DEBUG - bf_switchd: dev_id 0 initialized
2024-06-25 12:54:37.746977 BF_SWITCHD DEBUG - bf_switchd: initialized 1 devices
Adding Thrift service for bf-platforms to server
2024-06-25 12:54:37.747080 BF_SWITCHD DEBUG - bf_switchd: thrift initialized for agent : 0
2024-06-25 12:54:37.747108 BF_SWITCHD DEBUG - bf_switchd: spawning cli server thread
2024-06-25 12:54:37.747356 BF_SWITCHD DEBUG - bf_switchd: spawning driver shell
2024-06-25 12:54:37.747456 BF_SWITCHD DEBUG - bf_switchd: server started - listening on port 9999

    ********************************************
    *      WARNING: Authorised Access Only     *
    **********bfruntime gRPC server started on 0.0.0.0:50052

bfshell> SFP 46 : 23/2 : inserted

bfshell>
bfshell>
bfshell>
bfshell>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants