open nic driver on Alveo U280, rwaxi ioctl: Operation not supported error
ngominh911 opened this issue · 0 comments
ngominh911 commented
Hi all,
I installed the reference_nic_au280.bit on the Alveo U280 board.
The PC is Ubuntu 22.04, vivado version 2020
The driver is loaded, and two interfaces (onic4s0f0, onic4s0f1) showed up.
When I tried ./rdaxi -a 0x4 (read input arbiter ID), it returned rwaxi ioctl: Operation not supported error.
Some parts of the code:
fd = socket(AF_INET6, SOCK_DGRAM, 0);
....
sifr.addr = addr;
if ((flags & HAVE_VALUE) != 0) {
sifr.val = value;
req = NFDP_IOCTL_CMD_WRITE_REG;
}
memset(&ifr, 0, sizeof(ifr));
memcpy(ifr.ifr_name, ifnam, ifnamlen);
ifr.ifr_name[ifnamlen] = '\0';
ifr.ifr_data = (char *)&sifr;
rc = ioctl(fd, req, &ifr);
if (rc == -1)
{
err(1, "ioctl-");
}
Anyone know about this issue? Thanks.