#!/bin/sh
CUR=$(pwd)
clear
EXTS="compiletc bc squashfs-tools"
for EXT in $EXTS
do
EXT=${EXT/.tcz/}
[ ! -f /etc/sysconfig/tcedir/optional/${EXT}.tcz ] && tce-load -w $EXT
[ ! -d /tmp/tcloop/${EXT} ] && tce-load -i $EXT
done
[ -d lldp_all ] && rm lldp_* -fR
[ ! -f lldpd-1.0.18.tar.gz ] && wget https://media.luffy.cx/files/lldpd/lldpd-1.0.18.tar.gz
[ ! -d lldpd-1.0.18 ] && tar -zxf lldpd-1.0.18.tar.gz
cd lldpd-1.0.18; mkdir build; cd build
[ ! -f ../.configured ] && ../configure --prefix=/usr/local --localstatedir=/var --sysconfdir=/usr/local/etc --with-embedded-libevent --without-snmp && touch ../.configured
make -j 9
make DESTDIR=/tmp/lldp install
mv /tmp/lldp $CUR/lldp_all
mkdir -p $CUR/lldp_ext/usr/local \
$CUR/lldp_doc/usr/local/share \
$CUR/lldp_dev/usr/local
# DEV
mv $CUR/lldp_all/usr/local/include $CUR/lldp_dev/usr/local/
# DOC
mv $CUR/lldp_all/usr/local/share/doc $CUR/lldp_doc/usr/local/share/
mv $CUR/lldp_all/usr/local/share/man $CUR/lldp_doc/usr/local/share/
# EXT
mv $CUR/lldp_all/usr/local/* $CUR/lldp_ext/usr/local/
# STRIP Binaries
touch $CUR/.deps; rm $CUR/.deps -f
cd $CUR/lldp_ext
find -type f | magic | grep ELF | awk '{print $2}' > /tmp/bins
for file in $(cat /tmp/bins)
do
strip -s ${file}
ldd ${file} >> $CUR/.deps
done
rm /tmp/bins -f
# Create TCZs
cd $CUR
mksquashfs lldp_ext lldp.tcz >/dev/null 2>&1
mksquashfs lldp_doc lldp-doc.tcz >/dev/null 2>&1
mksquashfs lldp_dev lldp-dev.tcz >/dev/null 2>&1
cat > lldp.tcz.dep << "EOF"
readline
ncursesw
EOF
Feel free to add generic flags to taste! :)I'll take care of it this evening.@Rich: 'Knew you were the man for the job! LOL, plus, you've got keys to make it happen! :)
ice: module unloaded
ice: Intel(R) Ethernet Connection E800 Series Linux Driver
ice: Copyright (c) 2018, Intel Corporation.
ice 0000:1f:00.0: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
ice 0000:1f:00.0: Falling back to sysfs fallback for: intel/ice/ddp/ice.pkg
ice 0000:1f:00.0: The DDP package file was not found or could not be read. Entering Safe Mode
ice 0000:1f:00.0: not enough device MSI-X vectors. wanted = 66, available = 2
ice 0000:1f:00.0: Reducing request to 1 MSI-X vectors for LAN traffic.
ice 0000:1f:00.0: RDMA is not supported on this device
ice 0000:1f:00.1: Direct firmware load for intel/ice/ddp/ice.pkg failed with error -2
ice 0000:1f:00.1: Falling back to sysfs fallback for: intel/ice/ddp/ice.pkg
ice 0000:1f:00.1: The DDP package file was not found or could not be read. Entering Safe Mode
ice 0000:1f:00.1: not enough device MSI-X vectors. wanted = 66, available = 2
ice 0000:1f:00.1: Reducing request to 1 MSI-X vectors for LAN traffic.
ice 0000:1f:00.1: RDMA is not supported on this device
ice 0000:1f:00.0 eth2: NIC Link is up 25 Gbps Full Duplex, Requested FEC: RS-FEC, Negotiated FEC: FC-FEC/BASE-R, Autoneg Advertised: Off, Autoneg Negotiated: False, Flow Control: None
root@yim:/# find / -name ice
/usr/local/lib/firmware/intel/ice
/tmp/tcloop/intel-firmware/usr/local/lib/firmware/intel/ice
/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice
/sys/bus/pci/drivers/ice
/sys/module/ice
root@yim:/# cd /usr/local/lib/firmware/intel/ice/ddp
ddp-comms/ ddp-wireless_edge/ ddp/
root@yim:/# cd /usr/local/lib/firmware/intel/ice/ddp
root@yim:/usr/local/lib/firmware/intel/ice/ddp# ls
ice-1.3.30.0.pkg
root@yim:/usr/local/lib/firmware/intel/ice/ddp#
[code][ 36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[ 36.176536] pcm512x 1-004d: Failed to get supplies: -517
[ 36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]
[ 36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[ 36.176536] pcm512x 1-004d: Failed to get supplies: -517
[ 36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517
sudo mkdir -p /lib/firmware/intel/ice/ddp
sudo cp /tmp/tcloop/intel-firmware/usr/local/lib/firmware/intel/ice/ddp/ice-1.3.30.0.pkg /lib/firmware/intel/ice/ddp/ice.pkg
sudo modprobe -r ice
sudo modprobe ice
1. mkdir -p /lib/firmware/intel/ice/ddp/
2. mount firmware-intel.tcz, and get ice-xxxx.pkg
3. cp ice-xxxx.pkg /lib/firmware/intel/ice/ddp/ice.pkg
4. rebuild my os
5. deploy it in my server
6. dmesg
ice 0000:1f:00.0: The DDP package was successfully loaded: [b]ICE OS Default Package version 1.3.30.0[/b]
ipmi_si IPI0001:00: Using irq 10
ipmi_si IPI0001:00: IPMI message handler: Found new BMC (man_id: 0x0002a2, prod_id: 0x0100, dev_id: 0x20)
ipmi_si IPI0001:00: IPMI kcs interface initialized
ipmi_ssif: IPMI SSIF Interface driver
ice 0000:1f:00.0: PTP init successful
ice 0000:1f:00.0: 126.024 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x8 link)
ice 0000:1f:00.1: DDP package already present on device: [b]ICE OS Default Package version 1.3.30.0[/b]
random: crng init done
Adding 131737436k swap on /dev/zram0. Priority:-2 extents:1 across:131737436k SS
ice 0000:1f:00.1: PTP init successful
this means ice driver load success# lldpctl
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
# tcpdump -i eth2 ether proto 0x88cc -A -s0 -t -c 1 -vvv
tcpdump: listening on eth2, link-type EN10MB (Ethernet), capture size 262144 bytes
LLDP, length 168
Chassis ID TLV (1), length 7
Subtype MAC address (4): 92:13:04:4c:6e:9d (oui Unknown)
0x0000: 0492 1304 4c6e 9d
Port ID TLV (2), length 7
Subtype MAC address (3): 30:3e:a7:0f:2b:d0 (oui Unknown)
0x0000: 0330 3ea7 0f2b d0
Time to Live TLV (3), length 2: TTL 120s
0x0000: 0078
System Name TLV (5), length 6: yimding
0x0000: 7061 7970 616c
System Description TLV (6), length 86
TinyCoreLinux 14.0 Linux 6.1.2-tinycore64 #612 SMP Mon Jan 2 17:24:30 UTC 2023 x86_64
0x0000: 5469 6e79 436f 7265 4c69 6e75 7820 3134
0x0010: 2e30 204c 696e 7578 2036 2e31 2e32 2d74
0x0020: 696e 7963 6f72 6536 3420 2336 3132 2053
0x0030: 4d50 204d 6f6e 204a 616e 2020 3220 3137
0x0040: 3a32 343a 3330 2055 5443 2032 3032 3320
0x0050: 7838 365f 3634
System Capabilities TLV (7), length 4
System Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c)
Enabled Capabilities [Station Only] (0x0080)
0x0000: 009c 0080
Management Address TLV (8), length 12
Management Address length 5, AFI IPv4 (1): 10.160.64.93
Interface Index Interface Numbering (2): 6
0x0000: 0501 0aa0 405d 0200 0000 0600
Port Description TLV (4), length 4: eth2
0x0000: 6574 6832
Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
Link aggregation Subtype (3)
aggregation status [supported], aggregation port ID 0
0x0000: 0012 0f03 0100 0000 00
Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
MAC/PHY configuration/status Subtype (1)
autonegotiation [none] (0x00)
PMD autoneg capability [unknown] (0x0000)
MAU type unknown (0x0072)
0x0000: 0012 0f01 0000 0000 72
End TLV (0), length 0
......Ln....0>..+....x
.yimdingl.VTinyCoreLinux 14.0 Linux 6.1.2-tinycore64 #612 SMP Mon Jan 2 17:24:30 UTC 2023 x86_64..........
.@]........eth2. .......... ........r..
1 packet captured
1 packet received by filter
0 packets dropped by kernel
281 packets dropped by interface
lldpcli show neighbors
cd src/
tc@box:~/ice-1.16.3/src$ make
make: /bin/bash: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
make: -c: No such file or directory
common.mk:71: *** Kernel header files not in any of the expected locations.
common.mk:72: *** Install the appropriate kernel development package, e.g.
common.mk:73: *** kernel-devel, for building kernel modules and try again. Stop
tc@box:~/ice-1.16.3/src$ make install
common.mk:71: *** Kernel header files not in any of the expected locations.
common.mk:72: *** Install the appropriate kernel development package, e.g.
common.mk:73: *** kernel-devel, for building kernel modules and try again. Stop.
tc@box:~/ice-1.16.3/src$ tce-load -wi linux-headers-$(uname -r).tcz
Downloading: linux-headers-6.1.2-tinycore64.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: linux-headers-6.1.2-tinycore64.tcz.md5.txt: No such file or directory
Error on linux-headers-6.1.2-tinycore64.tcz
tc@box:~/ice-1.16.3/src$
tce-load -i compiletc perl5 ncursesw-dev bc glibc_apps elfutils-dev
wget http://tinycorelinux.net/14.x/x86_64/release/src/kernel/linux-6.1.2-patched.txz
wget http://tinycorelinux.net/14.x/x86_64/release/src/kernel/Module.symvers-6.1.2-tinycore64.gz
wget http://tinycorelinux.net/14.x/x86_64/release/src/kernel/config-6.1.2-tinycore64
gunzip Module.symvers-6.1.2-tinycore64.gz
tar xf linux-6.1.2-patched.txz
cd linux-6.1.2
make mrproper
cp ../config-6.1.2-tinycore64 .config
make oldconfig
make prepare
make modules_prepare
mv ../Module.symvers-6.1.2-tinycore64 Module.symvers
make SUBDIRS=scripts/mod
sudo ln -s /usr/src/linux-6.1.2 /lib/modules/6.1.2-tinycore64/build
cd ice-1.16.3/src
make
/usr/src/ethernet-linux-ice/src/kcompat_gnss.c:224:27: error: 'no_llseek' undeclared here (not in a function); did you mean 'noop_llseek'?
224 | .llseek = no_llseek,
| ^~~~~~~~~
tc@box:~$ grep -Ris "no_llseek" Downloads/linux-6.12.11/*
Downloads/linux-6.12.11/Documentation/filesystems/porting.rst:no_llseek is gone; don't set .llseek to that - just leave it NULL instead.
Downloads/linux-6.12.11/scripts/coccinelle/api/stream_open.cocci:@ has_no_llseek @
Downloads/linux-6.12.11/scripts/coccinelle/api/stream_open.cocci:@ maybe_stream depends on (!has_llseek || has_no_llseek || has_noop_llseek) && !has_mmap && !has_copy_file_range && !has_remap_file_range && !has_read_iter && !has_write_iter && !has_splice_read && !has_splice_write @
So the documentation suggests it's gone.Downloads/linux-6.12.11/fs/read_write.c: * able to perform the seek. In this case you use noop_llseek() instead of
Downloads/linux-6.12.11/fs/read_write.c:loff_t noop_llseek(struct file *file, loff_t offset, int whence)
Downloads/linux-6.12.11/fs/read_write.c:EXPORT_SYMBOL(noop_llseek);
Downloads/linux-6.12.11/fs/cachefiles/daemon.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/dlm/plock.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/dlm/user.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/dlm/user.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/dlm/user.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/coda/psdev.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/coda/pioctl.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/fuse/cuse.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/eventpoll.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/btrfs/super.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/ecryptfs/miscdev.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/fs/char_dev.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/include/drm/drm_accel.h: .llseek = noop_llseek, \
Downloads/linux-6.12.11/include/drm/drm_gem_dma_helper.h: .llseek = noop_llseek,\
Downloads/linux-6.12.11/include/drm/drm_gem.h: .llseek = noop_llseek,\
Downloads/linux-6.12.11/include/linux/fs.h:extern loff_t noop_llseek(struct file *file, loff_t offset, int whence);
Downloads/linux-6.12.11/ipc/shm.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/ipc/shm.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/kernel/trace/blktrace.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/kernel/power/qos.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/kernel/gcov/fs.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/net/atm/proc.c: .proc_lseek = noop_llseek,
Downloads/linux-6.12.11/net/mac80211/debugfs.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/samples/kfifo/inttype-example.c: .proc_lseek = noop_llseek,
Downloads/linux-6.12.11/samples/kfifo/record-example.c: .proc_lseek = noop_llseek,
Downloads/linux-6.12.11/samples/kfifo/bytestream-example.c: .proc_lseek = noop_llseek,
Downloads/linux-6.12.11/scripts/coccinelle/api/stream_open.cocci:@ has_noop_llseek @
Downloads/linux-6.12.11/scripts/coccinelle/api/stream_open.cocci: .llseek = noop_llseek,
Downloads/linux-6.12.11/scripts/coccinelle/api/stream_open.cocci:@ maybe_stream depends on (!has_llseek || has_no_llseek || has_noop_llseek) && !has_mmap && !has_copy_file_range && !has_remap_file_range && !has_read_iter && !has_write_iter && !has_splice_read && !has_splice_write @
Downloads/linux-6.12.11/security/tomoyo/securityfs_if.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/sound/sound_core.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/sound/core/sound.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/sound/core/timer.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/sound/core/seq/oss/seq_oss.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/virt/kvm/kvm_main.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/virt/kvm/kvm_main.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/virt/kvm/kvm_main.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/virt/kvm/kvm_main.c: .llseek = noop_llseek,
Downloads/linux-6.12.11/virt/kvm/kvm_main.c: .llseek = noop_llseek,
You can see noop_llseek is defined in /fs/read_write.c and used all over the place.... the tc-14.x kernel source...Ah, I had checked the TC16 (6.12) source. I just checked the TC14 (6.1.2) source
grep -r no_llseek /usr/src/ice-1.16.3
/usr/src/ice-1.16.3/src/kcompat_gnss.c: .llseek = no_llseek,
tc@box:/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice$ ls
ice.ko
tc@box:/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice$ sudo modprobe ice
modprobe: can't load module ice (kernel/drivers/net/ethernet/intel/ice/ice.ko.gz): No such file or directory
tc@box:/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice$
sudo gzip ice.ko
tc@box:/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice$ ls
ice.ko.gz
tc@box:/lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice$ sudo modprobe ice
modprobe: can't load module ice (kernel/drivers/net/ethernet/intel/ice/ice.ko.gz): invalid module format
tce-status -i
acl
attr
bash
bc
binutils
bison
bzip2
bzip2-dev
bzip2-lib
compiletc
diffutils
e2fsprogs_base-dev
elfutils
elfutils-dev
file
findutils
flex
gawk
gcc
gcc_base-dev
gcc_libs
gcc_libs-dev
gettext
glibc_add_lib
glibc_apps
glibc_base-dev
gmp
grep
isl
liblzma
liblzma-dev
libzstd
linux-6.1_api_headers
m4
make
mpc
mpfr
ncursesw
ncursesw-dev
openssh
openssl
openssl-dev
patch
perl5
pkg-config
readline
rsync
sed
util-linux_base-dev
zlib_base-dev
# cd /usr/src/linux-6.1.2
# make menuconfig
# make prepare
# make modules_prepare
# make SUBDIRS=scripts/mod
# ln -s /usr/src/linux-6.1.2 /lib/modules/6.1.2-tinycore64/build
# cd ~/ice-1.16.3/src
# make
tc@box:~/ice-1.16.3/src$ sudo make
mktemp: Invalid argument
/home/tc/ice-1.16.3/src/kcompat-generator.sh:496: failed with rc: 1
/home/tc/ice-1.16.3/src/kcompat-generator.sh:496: failed with rc: 1
make ccflags-y="-std=gnu11 -Wno-nested-externs " -C "/lib/modules/6.1.2-tinycore64/build" CONFIG_=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/tc/ice-1.16.3/src" NEED_AUX_BUS="0" modules
make[1]: Entering directory '/usr/src/linux-6.1.2'
mktemp: Invalid argument
realpath: /usr/src/linux-6.1.2//home/tc/ice-1.16.3/src/kcompat-generator.sh: No such file or directory
:496: failed with rc: 1
realpath: /usr/src/linux-6.1.2//home/tc/ice-1.16.3/src/kcompat-generator.sh: No such file or directory
:496: failed with rc: 1
CC [M] /home/tc/ice-1.16.3/src/ice_main.o
CC [M] /home/tc/ice-1.16.3/src/ice_controlq.o
CC [M] /home/tc/ice-1.16.3/src/ice_common.o
CC [M] /home/tc/ice-1.16.3/src/ice_nvm.o
CC [M] /home/tc/ice-1.16.3/src/ice_switch.o
CC [M] /home/tc/ice-1.16.3/src/ice_sched.o
CC [M] /home/tc/ice-1.16.3/src/ice_base.o
CC [M] /home/tc/ice-1.16.3/src/ice_lib.o
CC [M] /home/tc/ice-1.16.3/src/ice_txrx_lib.o
CC [M] /home/tc/ice-1.16.3/src/ice_txrx.o
CC [M] /home/tc/ice-1.16.3/src/ice_fltr.o
CC [M] /home/tc/ice-1.16.3/src/ice_irq.o
CC [M] /home/tc/ice-1.16.3/src/ice_pf_vsi_vlan_ops.o
CC [M] /home/tc/ice-1.16.3/src/ice_vsi_vlan_ops.o
CC [M] /home/tc/ice-1.16.3/src/ice_vsi_vlan_lib.o
CC [M] /home/tc/ice-1.16.3/src/ice_hwmon.o
CC [M] /home/tc/ice-1.16.3/src/ice_tc_lib.o
CC [M] /home/tc/ice-1.16.3/src/ice_fdir.o
CC [M] /home/tc/ice-1.16.3/src/ice_ethtool_fdir.o
CC [M] /home/tc/ice-1.16.3/src/ice_acl_main.o
CC [M] /home/tc/ice-1.16.3/src/ice_acl.o
CC [M] /home/tc/ice-1.16.3/src/ice_acl_ctrl.o
CC [M] /home/tc/ice-1.16.3/src/ice_vlan_mode.o
CC [M] /home/tc/ice-1.16.3/src/ice_ddp.o
CC [M] /home/tc/ice-1.16.3/src/ice_flex_pipe.o
CC [M] /home/tc/ice-1.16.3/src/ice_flow.o
CC [M] /home/tc/ice-1.16.3/src/ice_parser.o
CC [M] /home/tc/ice-1.16.3/src/ice_imem.o
CC [M] /home/tc/ice-1.16.3/src/ice_pg_cam.o
CC [M] /home/tc/ice-1.16.3/src/ice_metainit.o
CC [M] /home/tc/ice-1.16.3/src/ice_bst_tcam.o
CC [M] /home/tc/ice-1.16.3/src/ice_ptype_mk.o
CC [M] /home/tc/ice-1.16.3/src/ice_mk_grp.o
CC [M] /home/tc/ice-1.16.3/src/ice_proto_grp.o
CC [M] /home/tc/ice-1.16.3/src/ice_flg_rd.o
CC [M] /home/tc/ice-1.16.3/src/ice_xlt_kb.o
CC [M] /home/tc/ice-1.16.3/src/ice_parser_rt.o
CC [M] /home/tc/ice-1.16.3/src/ice_aux_support.o
CC [M] /home/tc/ice-1.16.3/src/ice_lag.o
CC [M] /home/tc/ice-1.16.3/src/ice_cpi.o
CC [M] /home/tc/ice-1.16.3/src/ice_ieps.o
CC [M] /home/tc/ice-1.16.3/src/ice_ieps_lm.o
CC [M] /home/tc/ice-1.16.3/src/ice_gnss.o
CC [M] /home/tc/ice-1.16.3/src/ice_ethtool.o
CC [M] /home/tc/ice-1.16.3/src/ice_devlink.o
CC [M] /home/tc/ice-1.16.3/src/devlink/ice_devlink_health.o
CC [M] /home/tc/ice-1.16.3/src/ice_fw_update.o
CC [M] /home/tc/ice-1.16.3/src/ice_eswitch.o
CC [M] /home/tc/ice-1.16.3/src/ice_repr.o
CC [M] /home/tc/ice-1.16.3/src/ice_idc.o
CC [M] /home/tc/ice-1.16.3/src/ice_debugfs.o
CC [M] /home/tc/ice-1.16.3/src/ice_fwlog.o
CC [M] /home/tc/ice-1.16.3/src/ice_ptp.o
CC [M] /home/tc/ice-1.16.3/src/ice_ptp_hw.o
CC [M] /home/tc/ice-1.16.3/src/ice_tspll.o
CC [M] /home/tc/ice-1.16.3/src/ice_arfs.o
CC [M] /home/tc/ice-1.16.3/src/kcompat.o
CC [M] /home/tc/ice-1.16.3/src/kcompat_gnss.o
LD [M] /home/tc/ice-1.16.3/src/ice.o
mktemp: Invalid argument
realpath: /usr/src/linux-6.1.2//home/tc/ice-1.16.3/src/kcompat-generator.sh: No such file or directory
:496: failed with rc: 1
realpath: /usr/src/linux-6.1.2//home/tc/ice-1.16.3/src/kcompat-generator.sh: No such file or directory
:496: failed with rc: 1
MODPOST /home/tc/ice-1.16.3/src/Module.symvers
CC [M] /home/tc/ice-1.16.3/src/ice.mod.o
LD [M] /home/tc/ice-1.16.3/src/ice.ko
make[1]: Leaving directory '/usr/src/linux-6.1.2'
tc@box:~/ice-1.16.3/src$ echo $?
0
sudo /sbin/depmod -a
sudo modprobe ice
#cp ice.ko /lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice/.
#mv ice.ko.gz ~/ice.ko.gz.bak
#cd /lib/modules/6.1.2-tinycore64/kernel/drivers/net/ethernet/intel/ice/
#gzip ice.ko
#depmod -a
# modprobe -r ice
# modprobe ice
# lldpctl eth0
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:17:52
Chassis:
ChassisID: xxxx
SysName: xxxx
SysDescr: xxxx
MgmtIP: xxxx
MgmtIface: 83886080
Capability: Bridge, on
Capability: Router, on
Port:
PortID: xxx
PortDescr: xxxx
TTL: xxx
VLAN: xxx
Unknown TLVs:
TLV: xxx
-------------------------------------------------------------------------------
Thanks Rich - I've rebooted since then and it takes 2h+ to prepare the kernel source on my ancient laptop, so I'll wait to see how @yimding gets on with the tc-14.x kernel source...i follow your step to compile ice driver