Install Aquantia 10G inside pfsense / Freebsd

Attaching the Aquantia driver for latest pfSense (2.7.2)

Steps to reproduce successful compilation of net/aquantia-atlantic-kmod for pfSense.

Install Poudriere

git clone https://github.com/freebsd/poudriere.git
cd poudriere
./configure
make
make install
cp /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf (check & update)

Download & compile FreeBSD source code at correct version

pkg install git
rm -rf /usr/src
git clone -o freebsd https://git.FreeBSD.org/src.git /usr/src
cd /usr/src
git checkout 0c783a37d5d5
make buildworld -j number of CPU cores

Create jail for compilation

poudriere jail -c -j pf272amd64 -a amd64 -m src=/usr/src

Compile

cd
cat "net/aquantia-atlantic-kmod" > pkglist.txt
poudriere bulk -f pkglist.txt -j pf272amd64

Profit

find your binary at /usr/local/poudriere/data/packages/pf272amd64-default/All/aquantia-atlantic-kmod-0.0.5_3.pkg

aquantia-atlantic-kmod-0.0.5_3_freebsd14.0.zip

Issue installing nvidia-465 on Ubuntu 18.04

I faced this error when attempting to install nvidia-465 on Ubuntu 18.04

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  nvidia-465
The following NEW packages will be installed:
  nvidia-465
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
3 not fully installed or removed.
Need to get 246 MB of archives.
After this operation, 681 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  nvidia-465 465.19.01-0ubuntu1 [246 MB]
Fetched 246 MB in 6s (44.1 MB/s)
(Reading database ... 167281 files and directories currently installed.)
Preparing to unpack .../nvidia-465_465.19.01-0ubuntu1_amd64.deb ...
Unpacking nvidia-465 (465.19.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-465_465.19.01-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package libglx-mesa0:amd64 20.0.8-0ubuntu1~18.04.1
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-465_465.19.01-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

To resolve this, run

sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken

PetaLinux 2020.1 Installation Steps on WSL Ubuntu 20.04 64-bit

Update from previous post

Dependencies:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev python2.7 tofrodos gawk xvfb gcc g++- git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gpg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g:i386 libsdl1.2-dev libglib2.0-dev

Installation:


mkdir -p /opt/petalinux/2020.1
sudo chown admin:admin -R /opt/petalinux
./petalinux-v2020.1-final-installer.run -d /opt/petalinux/2020.1
export PATH="/opt/petalinux/2020.1/tools/common/petalinux/bin/:$PATH"
source /opt/petalinux/2020.1/settings.sh

LAN7430 Register Instructions

LAN7430 Register Instructions

Get ID

busybox devmem $((0xfbc00000+0x0000)) 

Initalise MAC

busybox devmem $((0xfbc00000+0x0100)) 32 $(( `busybox devmem $((0xfbc00000+0x0100))` | 0x00001000 | 0x00000800 ))

PHY Reset

busybox devmem $((0xfbc00000+0x0014)) 32 $((`busybox devmem $((0xfbc00000+0x0014))` | 0x00000010))

Read Phy Ready Status (not working?)

# PHY_RST
echo $((! (`busybox devmem $((0xfbc00000+0x0014))` )& 0x00000010 )) 

# PHY_CTL_READY
echo $((`busybox devmem $((0xfbc00000+0x0014))` & 0x00000080)) 

References