Mail archive
alpine-devel

[alpine-devel] ixgbe module

From: Jaroslav Jirásek <jirasek_at_sauron.cz>
Date: Mon, 05 May 2014 23:19:47 +0200

Hi, i'm trying to create package with ixgbe module compiled
from intel source. I make APKBUILD, which is in the end of this mail.
My APKBUILD is modified APKBUILD from open-vm-tools-grsec (2.7-stable),
where I found compiling kernel module too.

Package is compiled sucesfully, result is file ixgbe-grsec-3.10.37-r0
But I cannot install that. This is result from installing:

router2:~# apk add ixgbe-grsec
(1/3) Installing linux-firmware (20130506-r0)
ERROR: Failed to extract lib/firmware/LICENCE.ti-connectivity:
Read-only file system
wget: short write
ERROR: linux-firmware-20130506-r0: Read-only file system
(2/3) Installing linux-grsec (3.10.37-r0)
ERROR: Failed to extract lib/modules/3.10.37-0-grsec/modules.symbols:
Read-only file system
wget: short write
ERROR: linux-grsec-3.10.37-r0: Read-only file system
(3/3) Installing ixgbe-grsec (3.10.37-r0)
  99%
[#############################################################################################################################################################################################
]wget: short write
ERROR: ixgbe-grsec-3.10.37-r0: BAD signature
3 errors; 25 MiB in 43 packages

I try install package open-vm-tools-grsec and instalation
ends with the same error.

I understand, that /lib/modules is read only and
I cannot easily copy module in this tree. Module must be added
in grsec.modloop.squashfs ? Which way is right?

Thank you for help


_flavor=grsec
_kpkg=linux-$_flavor
_realname=ixgbe
_kver=3.10.37
_kpkgrel=0

_ver=3.21.2
_mypkgrel=0

# source the kernel version
if [ -f ../main/linux-${_flavor}/APKBUILD ]; then
         . ../main/linux-${_flavor}/APKBUILD
         [ "$_kver" != "$pkgver" ] && die "please set _kver to $pkgver"
         [ "$_kpkgrel" != "$pkgrel" ] && die "please set _kpkgrel to
$pkgrel"
fi

_abi_release=${_kver}-${_kpkgrel}-${_flavor}
_kernelver="$_kver-r$_kpkgrel"

pkgname="$_realname-$_flavor"
pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))

pkgdesc="Network Adapter Driver for PCI-E 10 Gigabit Network
Connections under Linux."
url="http://www.intel.com/support/network/adapter/pro100/sb/CS-032530.htm"
arch="all"
license="LGPL"
subpackages=""
#depends="linux-${_flavor}=${_kernelver}"
depends_dev="bash linux-${_flavor}-dev=${_kernelver}"
makedepends="$depends_dev"
source="http://downloadmirror.intel.com/14687/eng/ixgbe-${_ver}.tar.gz"

_builddir="$srcdir/$_realname-$_ver"

prepare() {
         cd "$_builddir"
         update_config_sub || return 1
         for i in $source; do
                 case $i in
                 *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return
1;;
                 esac
         done
}

build() {
         cd "$_builddir"/src
         make BUILD_KERNEL=${_abi_release}
}

package() {
         mkdir -p
$pkgdir/lib/modules/${_abi_release}/kernel/drivers/net/ethernet/intel/
         cd "$_builddir"/src
         for module in `find -type f -name '*.ko'`; do
                 install -D -m644 $module
"$pkgdir/lib/modules/${_abi_release}/kernel/drivers/net/ethernet/intel/"
         done
}



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Mon May 05 2014 - 23:19:47 GMT