Ati-drivers-arch. ATI for stock kernel.
Despite the fact I love everyone using my ArchCK because it has ATI drivers, ATI drivers now work on the stock kernel too.
S1G1 made a package and put it in the AUR, which I have since adopted and put into community.
Over the next few days as the mirrors sync, you will be able to get the ati driver for the vanilla kernel, by installing, 'ati-drivers-arch' from community.
iphitus
Cerebral wrote:kernel26archck-2.6.15 uses initramfs, which provides the same functionality as initrd but, as I'm told, is better.
Setup is the same as with initrd, except you edit /etc/mkinitramfs.conf and run mkinitramfs auto
good to know.. but I'd need the archck kernel on an install cd for that, wouldn't I? Which it normally isn't afaik. Or does the stock one support initrd and initramfs?
But anyhow, I already experienced the very same problem in enemy-territory and quake3 with kernel26archck-2.6.15 and ati-drivers
Cerebral wrote:Check your xorg.conf "Modules" section -- are 'dri' and 'glx' listed twice in there?
errr... seems so :oops: fixed that. thanks!
dibblethewrecker wrote:The order they are loaded is important too
didn't know that one! but it doesn't seem to change anything if I switch the order.. at least nothing obvious. Module section now looks like this:
Section "Module"
Load "dri"
Load "glx"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "freetype"
EndSection
Device section:
Section "Device"
Identifier "Radeon1"
Driver "fglrx"
Option "no_accel" "no"
Option "no_dri" "no"
Option "mtrr" "off"
Option "DesktopSetup" "0x00000000"
Option "MonitorLayout" "AUTO, AUTO"
Option "IgnoreEDID" "off"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
Option "NoTV" "yes"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x06419064"
Option "GammaCorrectionII" "0x06419064"
Option "Capabilities" "0x00000000"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "CenterMode" "off"
Option "PseudoColorVisuals" "off"
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "ForceGenericCPU" "no"
BusID "PCI:1:0:0"
EndSection
Well, the enemy-territory problem persists.. am I still missing something or are the ati drivers a bit messed up with 2.6.15?
Similar Messages
-
[SOLVED] nVidia 87.76 Drivers installer fails to build kernel module
Hey,
I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://www.nvnews.net/vbulletin/showthread.php?t=87332, many people have found that the 96.xx series drivers cause graphical corruption when using a GeForce2 IGP.
Before coming to Arch, I had used Xubuntu 7.04 and managed to compile the last known working drivers, version 87.76, following the instructions here: http://kmandla.wordpress.com/2007/03/25 … 20-12-386/
That all went well but now I'm using Arch. I tried using the nvidia-96.xx driver in the repos just for testing sake but I still got the same graphical corruption.
Thus I have been trying to install the 87.76 drivers on Arch, but it always fails at the kernel module building stage. I had first applied this patch here, http://www.nvnews.net/vbulletin/showthr … ost1086669, before compling as the plain driver wont compile against recent kernels.
Here is the output from the installer:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Aug 5 11:57:53 2007
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.22-ARCH/build'
-> Kernel output path: '/lib/modules/2.6.22-ARCH/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-ARCH/bui
ld SYSOUT=/lib/modules/2.6.22-ARCH/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/build SUBDIRS=/home
/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
echo; \
/bin/false)
make[2]: *** No rule to make target `GLX'. Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
Any ideas as to how I can get the kernel module to build?
I am using 'kernel26 2.6.22.1-4' with the 'kernel-headers 2.6.22.1-1' from the testing repo.
Last edited by Nameless One (2007-08-10 07:08:38)make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/buildSUBDIRS=/home/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
The name of the directory you placed the driver in contains spaces. That is why you get the no rule to make target GLX error.
It would be better not to circumvent pacman. I am using the following PKGBUILDs for the 8776 driver:
nvidia-8776:
pkgname=nvidia-8776
pkgver=1.0.8776
_nver=1.0-8776
_kernver='2.6.22-ARCH'
pkgrel=1
pkgdesc="NVIDIA drivers for Arch kernel."
arch=(i686 x86_64)
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=(kernel26 nvidia-8776-utils)
conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
install=nvidia.install
source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run NVIDIA_kernel-1.0-8776-20061203.diff.txt)
md5sums=('93ad45fe7b974a5a80348e1890f9b7c9' '70e669f06ee4881c2583261672de292a')
[ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b' '70e669f06ee4881c2583261672de292a')
build()
# Extract
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${_nver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${_nver}-pkg0
# Any extra patches are applied in here...
patch -p0 < $startdir/NVIDIA_kernel-1.0-8776-20061203.diff.txt ||return 1
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/$_kernver/build module || return 1
# install kernel module
mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
Place the patch (NVIDIA_kernel-1.0-8776-20061203.diff.txt) and nvidia.install in the same directory as the PKGBUILD.
nvidia-utils:
pkgname=nvidia-8776-utils
pkgver=1.0.8776
_nver=1.0-8776
pkgrel=1
pkgdesc="NVIDIA drivers utilities and libraries."
arch=(i686 x86_64)
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=(xorg-server)
conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' 'nvidia-71xx-utils' 'nvidia-96xx-utils')
provides=('libgl' )
#install=nvidia.install
source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run)
md5sums=('93ad45fe7b974a5a80348e1890f9b7c9')
[ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b')
build()
# override nvida install routine and do it the long way.
cd $startdir/src/
sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/
mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
install `find lib/ -iname \*.so\*` $startdir/pkg/usr/lib/
install lib/tls/* $startdir/pkg/usr/lib
install share/man/man1/* $startdir/pkg/usr/man/man1/
rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz
install X11R6/lib/libXv* $startdir/pkg/usr/lib/
install share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/
# fix nvidia .desktop file
sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
install share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/
install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers
install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions
install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/
cd $startdir/pkg/usr/lib/;
ln -s /usr/lib/libGL.so.$pkgver libGL.so
ln -s /usr/lib/libGL.so.$pkgver libGL.so.1
ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1
ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1
cd $startdir/pkg/usr/lib/xorg/modules/extensions;
ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so
install $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/
find $startdir/pkg/usr -type d -exec chmod 755 {} \;
# phew :)
Last edited by kappa (2007-08-09 11:14:42) -
PKGBUILD for custom kernel issue
Hi all,
Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time as it keeps making me have to find an ethernet cable. I used the kerne26 Arch PKGBUILD as a base and included parts of kernel-netbook for broadcom-wl, kernel26-grsecurity, and kernel26-ck and altered name variables and links etc so it all works and all sources are downloaded. I also got the two .patch files (semaphore and something else) from the kernel-netbook tarball to build the thing with, I don't know if it would work without them.
However when I get into the build() a few patches are applied before I get messages about patches already applied or reversed, and then it says build failed because of an error, I can't tell which package is causing thins or why (it all goes by too fast, and the error says failed without reason, and the reversed patch messages are what is immediately previous to it). I have not yet gone all the way through the pkgbuild - especially towards the end, and I felt that the standard setup of init file system creation and such were ok, and if anything does need altering about it, I can deal with it once I get these first troubles solved.
Below is my pkgbuild so far. Hopefully there are people out there who can aid me with this.
Thanks,
Ben.
# Maintainer: Ben Ward <[email protected]>
pkgbase="kernel26"
# pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
pkgname=kernel26-custom # Build kernel with a different name
#Base kernel info
_kernelname=${pkgname#kernel26}
_basekernel=2.6.38
pkgver=${_basekernel}.3
pkgrel=1
#ARCH patch info
_archpatchver=1
_archpatchname="patch-${pkgver}-${_archpatchver}-ARCH"
#_archpatchname="patch-${pkgver}-1-ARCH"
#grsecurity info
_grsec=2.2.2
_timestamp=201104182227
#Broadcom-wl info
_broadcom_ver=5.100.82.38
_broadcom="hybrid-portsrc_x86_32-v${_broadcom_ver//./_}"
#ck-patch info
_ckpatchversion=3
_ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.kernel.org"
options=(!strip)
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
ftp://ftp.archlinux.org/other/kernel26/${_archpatchname}.bz2
http://grsecurity.net/test/grsecurity-${_grsec}-${pkgver}-${_timestamp}.patch
http://www.broadcom.com/docs/linux_sta/${_broadcom}.tar.gz
http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
"semaphore.patch"
"mutex-sema.patch"
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
md5sums=('7d471477bfa67546f902da62227fa976'
'b3677121c4b5efcb8128c2000788d0aa'
'5b14b6eb2cdcb074905d4974437c4df6'
'a19024797f192fe21a468de80c101d8a'
'c0074a1622c75916442e26763ddf47d0'
'88d5b3e0622f8c48dad19ab9ac3c16f0'
'aee89fe7f034aea2f2ca95322774c1b5'
'21ce3f7967d7305064bf7eb60030ffea'
'f66543886835ab8599b29cd0c48aa66d'
'd866bcc06672fee17736bd5022f700fe'
'25584700a0a679542929c4bed31433b6')
build() {
cd ${srcdir}/linux-$_basekernel
# Apply kernel.org patch to basekernel
msg "Checking basekernel is ip to date..."
if [[ "${_basekernel}" != "${pkgver}" ]]; then
msg "Patching source with upstream patch..."
patch -Np1 -i "${srcdir}/patch-${pkgver}" || return 1
fi
# Add -ARCH patches
# See http://projects.archlinux.org/linux-2.6-ARCH.git/
msg "Patching Kernel with ARCH patches..."
patch -Np1 -i ${srcdir}/${_archpatchname}
# Add ck patch
msg "Patching Kernel with ck patches..."
patch -Np1 -i ${srcdir}/${_ckpatchname}
# Add grsecurity patch
msg "Patching kernel with grsecurity testing branch..."
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
yes "" | make config
# build!
make ${MAKEFLAGS} bzImage modules
package_kernel26() {
pkgdesc="The Linux Kernel and modules"
groups=('base')
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
# # add vmlinux
install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
# remove build and source links
rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
# gzip -9 all modules to safe 100MB of space
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
##Section: Broadcom-wl
msg "Compiling broadcom-wl module:"
cd ${srcdir}/
#patching broadcom as broadcom-wl package on AUR
patch -p1 < license.patch
patch -p1 < semaphore.patch
patch -p1 < mutex-sema.patch
make -C ${srcdir}/linux-$_basekernel M=`pwd`
install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko
package_kernel26-headers() {
pkgdesc="Header files and scripts for building modules for kernel26"
mkdir -p ${pkgdir}/lib/modules/${_kernver}
cd ${pkgdir}/lib/modules/${_kernver}
ln -sf ../../../usr/src/linux-${_kernver} build
cd ${srcdir}/linux-$_basekernel
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add dvb headers
# in reference to:
# http://bugs.archlinux.org/task/20402
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add headers vor virtualbox
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for broadcom wl
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for crypto modules
# in reference to:
# http://bugs.archlinux.org/task/22081
cp -a include/crypto $pkgdir/usr/src/linux-${_kernver}/include/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
# strip scripts directory
find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
/usr/bin/strip $STRIP_SHARED "$binary";;
*application/x-archive*) # Libraries (.a)
/usr/bin/strip $STRIP_STATIC "$binary";;
*application/x-executable*) # Binaries
/usr/bin/strip $STRIP_BINARIES "$binary";;
esac
done
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
package_kernel26-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
cd ${srcdir}/linux-$_basekernel
mkdir -p $pkgdir/usr/src/linux-$_kernver
mv Documentation $pkgdir/usr/src/linux-$_kernver
find $pkgdir -type f -exec chmod 444 {} \;
find $pkgdir -type d -exec chmod 755 {} \;
# remove a file already in kernel26 package
rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
I wonder if localyesconfig would take care of broadcom-wl for me...
Last edited by Ben9250 (2011-04-20 00:12:44)Thank you. I guess trying the abs method wouldn't hurt. My main issue was configuration. I've only just skimmed the PKGBUILD so I'm not aware of how it handles it. I suppose I could write my own as described in the wiki as well. Thanks again.
Edit: Further research has revealed to me that the kernel headers are merely there for when the full source tree isn't. Seeing as the full tree is present in my case, the headers are unnecessary. I may take graysky's advice though and use pacman to manage my kernel.
Last edited by smithr.michael1997 (2011-03-31 02:17:29) -
[solved] building the kernel headers for custom kernels
well, ive been building several different kernels for my laptop, so that i can test stuff. but ive got a problem with the kernel headers.
ive mirrored the arch kernel's PKGBUILD and modified some naming to get a custom kernel. but when i try to build a custmo module, it complains the headers are broken. (example, vbox_build_module).
im pasting the pkgbuild here for future reference...if someone sees something thats plain wrong, please say so.
thanks
# $Id: PKGBUILD 60382 2009-12-04 15:31:11Z tpowa $
# Maintainer: Tobias Powalowski <[email protected]>
# Maintainer: Thomas Baechler <[email protected]>
pkgbase="kernel26"
#pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
pkgname=('kernel26-git' 'kernel26-git-headers') # Build kernel with a different name
_kernelname=${pkgname#kernel26}
pkgver=2.6.34
pkgrel=1
_patchname=""
_branch="linux-2.6"
_gittag="v2.6.34-rc3"
#_gittag="origin"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
source=(config
# standard config files for mkinitcpio ramdisk
kernel26.preset
${_patchname})
build() {
cd ${srcdir}/$_branch
msg "Fetching branch ${_branch}"
## FOR BISECT, Comment these lines
git reset --hard
git clean -d -f
git fetch
msg "Cheking out tag ${_gittag}"
git checkout $_gittag
### a patch
if [ "${_patchname}" != "" ]; then
patch -Np1 -i ${srcdir}/$_patchname || return 1
fi
# if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
# else
cat ../config >./.config
# fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
make menuconfig # CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
yes "" | make config
# build!
make bzImage modules || return 1
package_kernel26-git() {
pkgdesc="The Linux Kernel and modules"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'kernel26-firmware>=2.6.32' 'module-init-tools' 'mkinitcpio>=0.5.20')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
KARCH=x86
cd ${srcdir}/$_branch
_kernver="$(make kernelrelease)"
mkdir -p ${pkgdir}/{lib/modules,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
# # add vmlinux
install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
# remove build and source links
rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
package_kernel26-git-headers() {
pkgdesc="Header files and scripts for building modules for kernel26"
mkdir -p ${pkgdir}/lib/modules/${_kernver}
cd ${pkgdir}/lib/modules/${_kernver}
ln -sf ../../../usr/src/linux-${_kernver} build
cd ${srcdir}/$_branch
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add headers vor virtualbox
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for broadcom wl
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
# add header for aufs2-util
cp -a ${srcdir}/$_branch/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
package_kernel26-firmware() {
pkgdesc="The included firmware files of the Linux Kernel"
groups=('base')
cd ${srcdir}/$_branch
make firmware || return 1
make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
Last edited by eldragon (2010-04-04 14:58:16)ngoonee wrote:
Check out this line
for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
for anything that might be missing. The error message when compiling would give you more of a clue. Off-hand, you may need to add 'generated', as I recall I needed that when the kernel moved to 2.6.33.
Problem with vbox_build_module after Kernel update.
Would you care to elaborate for us less versed in "Linux Geek" skills?
Thanks.......
[root@Arch2009p2 jeff]# vbox_build_module
Building vboxdrv for Linux 2.6.33-ARCH
make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
for f in . linux r0drv r0drv/generic r0drv/linux VBox common/err common/string common/log generic math/gcc; \
do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
rm -rf .vboxdrv* .tmp_ver* vboxdrv.* Module.symvers Modules.symvers modules.order
make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
make[1]: Entering directory `/opt/VirtualBox/src/vboxnetflt'
for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
rm -rf .vboxnetflt* .tmp_ver* vboxnetflt.* Modules.symvers modules.order
make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetflt'
make[1]: Entering directory `/opt/VirtualBox/src/vboxnetadp'
for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
rm -rf .vboxnetadp* .tmp_ver* vboxnetadp.* Modules.symvers modules.order
make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetadp'
rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
make KBUILD_VERBOSE= -C /lib/modules/2.6.33-ARCH/build SUBDIRS=/opt/VirtualBox/src/vboxdrv SRCROOT=/opt/VirtualBox/src/vboxdrv modules
make[2]: Entering directory `/usr/src/linux-2.6.33-ARCH'
CC [M] /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o
In file included from /opt/VirtualBox/src/vboxdrv/include/VBox/types.h:34,
from /opt/VirtualBox/src/vboxdrv/linux/../SUPDrvInternal.h:39,
from /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.c:37:
/opt/VirtualBox/src/vboxdrv/include/iprt/types.h:100:30: error: linux/autoconf.h: No such file or directory
make[3]: *** [/opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[2]: *** [_module_/opt/VirtualBox/src/vboxdrv] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.33-ARCH'
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
make: *** [all] Error 2 -
Script to easily build modules for custom kernels
I got bored, and thought of this ages ago. I have no use for it now, but i'm sure someone else will.
run:
abs-module $modulename $kernel
$modulename is any kernel module that's available in /var/abs, so if you have some that arent in a default abs, put em in /var/abs/local and they will be spotted by this.
$kernel is the name of the kernel that you want to compile for. this can be found with 'uname -r'. If $kernel is not specified, then it will default to what you are running now.
this will only work for module packages that have a variable called _kernver which sets the kernel it will be compiled for. I know all the winmodems, ATi and drivers I maintain do, not sure about some of the others. nvidia won't work.
#! /bin/bash
# Set the variables up
module="$1"
kernel="$2"
pacman="1"
current="`uname -r`"
# Check things
if [ -z "$module" ]; then
echo "No module specified"
return 1
fi
if [ -z "$kernel" ]; then
echo "No kernel specified, building for: $current"
kernel="$current"
fi
if [ ! -e "/lib/modules/$kernel/build" ]; then
echo "Specified kernel is not installed"
return 1
fi
# Check if module exists
origdir="`find /var/abs -type d -name $module`"
if [ -z "$origdir" ]; then
echo "Specified module does not exist"
return 1
fi
# Prepare to build
newdir="/var/abs/local/$module-$kernel"
if [ -d "$newdir" ]; then
rm -rf "$newdir"
fi
cp -R $origdir $newdir
cd $newdir
source PKGBUILD
if [ -z "$_kernver" ]; then
echo "PKGBUILD does not have $_kernver."
return 1
fi
sed "s/$_kernver/$kernel/g" -i PKGBUILD
sed "s/pkgname=$pkgname/pkgname=$pkgname-$kernel/g" -i PKGBUILD
# Build!
makepkg
# Post build messages/install
if [ $? = 0 ]; then
package="`find $newdir -name *pkg.tar.gz`"
# variable is at top
if [ "$pacman" = "1" ]; then
pacman -U $package
else
echo "Package is ready to install: $package"
fi
else
echo "Build failed"
fi
sorry if there's any stupid bash in there, i'm tired. and yeah, I know it's a tad verbose and spacy, but it seems to works fine.
JamesIphitus > I'm looking 4 something like your script that will allow me to load spca5xx when running my custom kernelbeyond
Unfortunetely spca5xx seems not to be manageable by your abs-module script, as its PKGBUILD doesn't have a variable called _kernver.
Log :
/usr/bin/abs-make-module spca5xx
No kernel specified, building for: 2.6.17-beyond-LLEWELLYN
PKGBUILD does not have .
/usr/bin/abs-make-module: line 52: return: can only `return' from a function or sourced script
sed: -e expression #1, char 0: no previous regular expression
==> Making package: spca5xx-2.6.17-beyond-LLEWELLYN 0.60.00-2 (Sun Jul 23 11:44:52 CEST 2006)
==> Validating source files with MD5sums
spca5xx-20060501.tar.gz ... Passed
==> Extracting Sources...
==> tar --use-compress-program=gzip -xf spca5xx-20060501.tar.gz
tar: spca5xx-20060501/drivers: implausibly old time stamp 1970-01-01 01:00:00
==> Starting build()...
./PKGBUILD: line 13: cd: /var/abs/local/spca5xx-2.6.17-beyond-LLEWELLYN/src/spca5xx-2.6.17-beyond-LLEWELLYN-20060501: No such file or directory
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed. Aborting...
Build failed -
Stock Kernel == vanilla Kernel ?
Hi
is there a difference between the stock/ftp upgraded kernel26 and then vanilla (ftp.kernel.org) Kernel, are there any patches aplied with the ARCH version ? I mean if both have the same version number ?
triple faultThis is the pkgbuild for the stock kernel, as you can see there are several patches apllied.
# $Id: PKGBUILD,v 1.171 2006/10/07 10:07:19 tpowa Exp $
# Maintainer: judd <jvinet>
pkgname=kernel26
basekernel=2.6.18
pkgver=2.6.18
pkgrel=7
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
url="http://www.kernel.org"
backup=('boot/kconfig26')
depends=('module-init-tools' 'mkinitcpio>=0.5.7')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi' 'alsa-driver' 'ieee80211' 'hostap-driver26' 'pwc' 'nforce')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$basekernel.tar.bz2
#http://www.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
#http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.18-rc6.bz2
#http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.18-rc6-git1.bz2
ftp://152.104.238.194/cn/nic/r1000_v1.04.tgz
config config.x86_64 logo_linux_clut224.ppm logo_linux_mono.pbm logo_linux_vga16.ppm
mkinitcpio-$pkgname.conf
#ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/$basekernel/acpi-release-20060310-$basekernel.diff.bz2
acpi-dsdt-initrd-v0.8.2-2.6.18.patch r1000-build.patch jmicron-ide.patch wacom-volito.patch)
md5sums=('296a6d150d260144639c3664d127d174' '95ffba4436fbb866a7e68809eac3bfb9'
'77797a931701d98ab4115b96a80b3aa4' '3335d7db57bba196e9af04251c4bcc7c'
'5a62bcc7e96601052c7405459b483826' 'ed6b42fea2f5d27f7eb920746ccc1ebb'
'a995ec849ea43d3c89d607bbdd1e7d09' '8c579c72a4f7187de6b496aec88250ed'
'51633dc6b0e7d78d4f3de86bf18f9228' '82fd4f8c08dff9e802013aaf0e00e3a0'
'97884da6e8d66bb120b9766b421db102' 'ff00c830ee99412aca35e68b37d829a7')
build() {
[ "${CARCH}" = "i686" ] && KARCH=i386
[ "${CARCH}" = "x86_64" ] && KARCH=x86_64
cd $startdir/src/linux-$basekernel
# add upstream patch from 2.6.18 series
#patch -Np1 -i ../patch-2.6.18-rc6 || return 1
#patch -Np1 -i ../patch-2.6.18-rc6-git1 || return 1
#patch -Np1 -i ../patch-$pkgver || return 1
# add acpi custom dsdt patch
patch -Np1 -i ../acpi-dsdt-initrd-v0.8.2-2.6.18.patch || return 1
# add support for jmicron ide devices
patch -Np1 -i ../jmicron-ide.patch || return 1
# fix wacom volito devices
patch -Np0 -i ../wacom-volito.patch || return 1
# remove the extraversion from Makefile
#sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =-rc6|g' Makefile
sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
# Arch logo!
cp ../logo_linux_clut224.ppm drivers/video/logo/
cp ../logo_linux_mono.pbm drivers/video/logo/
cp ../logo_linux_vga16.ppm drivers/video/logo/
if [ "$CARCH" == "x86_64" ]; then
cat ../config.x86_64 >./.config
else
# get rid of the 'i' in i686
carch=`echo $CARCH | sed 's|i||'`
cat ../config | sed "s|#CARCH#|$carch|g" >./.config
fi
# build the full kernel version to use in pathnames
. ./.config
#_kernver="2.6.18-rc6${CONFIG_LOCALVERSION}"
_kernver="${basekernel}${CONFIG_LOCALVERSION}"
# load configuration
yes "" | make config
# build!
make bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26
cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26 # for x86_64
install -D -m644 Makefile
$startdir/pkg/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile
$startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config
$startdir/pkg/usr/src/linux-${_kernver}/.config
install -D -m644 .config $startdir/pkg/boot/kconfig26
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel
for i in acpi asm-generic asm-$KARCH config linux math-emu media net pcmcia scsi sound video; do
cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions
cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
cp arch/$KARCH/Makefile.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
done
# add dm headers
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
# add CLUSTERIP file for iptables
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
done
cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
cd $startdir/pkg/lib/modules/${_kernver} &&
(rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
# for binary modules make prepare
cd $startdir/pkg/lib/modules/${_kernver}/build
make prepare
# install fallback mkinitcpio.conf file for kernel
install -m644 -D $startdir/src/mkinitcpio-$pkgname.conf $startdir/pkg/boot/mkinitcpio-$pkgname.conf
# set correct depmod command for install
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
# install r1000 driver for newer realtek network cards
cd $startdir/src/r1000_v1.04/
patch -Np0 -i $startdir/src/r1000-build.patch || return 1
make KDIR=$startdir/src/linux-$basekernel modules
install -D -m644 $startdir/src/r1000_v1.04/src/r1000.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/r1000.ko -
ISE Webpack, Cable Drivers not installing for Debian Wheezy
Trying to install ISE Webpack with cable drivers yield the following error during installation:
Driver installation failed. Please check the /.xinstall/install.log file for more information on the cause of the installation failure.
Since drivers are not installed, attempting to launch iMPACT later on gives:
WARNING:iMPACT - Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
WARNING:iMPACT - Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
WARNING:iMPACT - Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
WARNING:iMPACT - Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
WARNING:iMPACT - Module windrvr6 is not loaded. Please reinstall the cable drivers. See Answer Record 22648.
WARNING:iMPACT:923 - Can not find cable, check cable setup !
The entire install.log can be found here:
--Install log = /tmp/xilinx_ise_webpack/14.7/ISE_DS/.xinstall/install.log
--Installing cable drivers.
--Driver versions in this package: windrvr=1301, xpc4drvr=1041
--Script name = /tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/install_drivers
--HostName = invidia
--Current working dir = /home/andreas/documents/diku/master_thesis/Xilinx_ISE_DS_14.7_1015_1-1
--Script location = /home/andreas/documents/diku/master_thesis/Xilinx_ISE_DS_14.7_1015_1-1
--Script argument=/tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE.
Digilent Cable Drivers Installer
Checking for prerequisite: libusb-1.0
libusb-1.0.so.0 is present
Installing component: Digilent Adept Runtime
Adept Runtime Installer
64-bit operating system detected
Installing runtime libraries.....
Checking to see if libdabs.so is already installed....
Existing installation of libdabs.so found. Checking to see if this version should be installed.
Version 2.11.1 is currently installed. Version libdabs.so.2.11.1 will not be installed.
Checking to see if libdaci.so is already installed....
Existing installation of libdaci.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdaci.so.2.7.2 will not be installed.
Checking to see if libdaio.so is already installed....
Existing installation of libdaio.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdaio.so.2.7.2 will not be installed.
Checking to see if libdemc.so is already installed....
Existing installation of libdemc.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdemc.so.2.7.2 will not be installed.
Checking to see if libdepp.so is already installed....
Existing installation of libdepp.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdepp.so.2.7.2 will not be installed.
Checking to see if libdftd2xx.so is already installed....
Existing installation of libdftd2xx.so found. Checking to see if this version should be installed.
Version 1.0.1 is currently installed. Version libdftd2xx.so.1.0.1 will not be installed.
Checking to see if libdgio.so is already installed....
Existing installation of libdgio.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdgio.so.2.7.2 will not be installed.
Checking to see if libdjtg.so is already installed....
Existing installation of libdjtg.so found. Checking to see if this version should be installed.
Version 2.10.1 is currently installed. Version libdjtg.so.2.10.1 will not be installed.
Checking to see if libdmgr.so is already installed....
Existing installation of libdmgr.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdmgr.so.2.7.2 will not be installed.
Checking to see if libdmgt.so is already installed....
Existing installation of libdmgt.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdmgt.so.2.7.2 will not be installed.
Checking to see if libdpcomm.so is already installed....
Existing installation of libdpcomm.so found. Checking to see if this version should be installed.
Version 2.10.1 is currently installed. Version libdpcomm.so.2.10.1 will not be installed.
Checking to see if libdpcutil.so is already installed....
Existing installation of libdpcutil.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdpcutil.so.2.7.2 will not be installed.
Checking to see if libdpio.so is already installed....
Existing installation of libdpio.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdpio.so.2.7.2 will not be installed.
Checking to see if libdpti.so is already installed....
Existing installation of libdpti.so found. Checking to see if this version should be installed.
Version 2.8.2 is currently installed. Version libdpti.so.2.8.2 will not be installed.
Checking to see if libdspi.so is already installed....
Existing installation of libdspi.so found. Checking to see if this version should be installed.
Version 2.8.2 is currently installed. Version libdspi.so.2.8.2 will not be installed.
Checking to see if libdstm.so is already installed....
Existing installation of libdstm.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdstm.so.2.7.2 will not be installed.
Checking to see if libdtwi.so is already installed....
Existing installation of libdtwi.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libdtwi.so.2.7.2 will not be installed.
Checking to see if libjtsc.so is already installed....
Existing installation of libjtsc.so found. Checking to see if this version should be installed.
Version 2.7.2 is currently installed. Version libjtsc.so.2.7.2 will not be installed.
Successfully installed runtime libraries.
Installing system binaries.....
installed "/usr/local/sbin/dftdrvdtch"
Successfully installed system binaries in "/usr/local/sbin".
Installing firmware images.....
Successfully installed firmware images in "/usr/local/share/digilent/data/firmware".
Installing JTSC device list.....
Successfully installed JTSC device list "/usr/local/share/digilent/data/jtscdvclist.txt".
Installing CoolRunner support files.....
Successfully installed CoolRunner support files in "/usr/local/share/digilent/data/xpla3".
Installing CoolRunner 2 support files.....
Successfully installed CoolRunner 2 support files in "/usr/local/share/digilent/data/xbr".
Installing Adept Runtime configuration.....
Successfully installed Adept Runtime configuration "/etc/digilent-adept.conf".
Installing USB UDEV rules.....
Successfully installed USB UDEV rules "/etc/udev/rules.d/52-digilent-usb.rules".
Successfully reloaded UDEV rules.
Successfully updated dynamic loader cache.
Successfully installed Adept Runtime.
Successfully installed component: Digilent Adept Runtime
Installing component: FTDI Drivers (libftd2xx)
FTDI Driver Installer
64-bit operating system detected
Checking to see if libftd2xx.so is already installed....
Existing installation of libftd2xx.so found. Checking to see if this version should be installed.
Version 1.0.4 is currently installed. Version libftd2xx.so.1.0.4 will not be installed.
Successfully updated dynamic loader cache
Successfully installed FTDI Driver
Successfully installed component: FTDI Drivers (libftd2xx)
Installing component: libCseDigilent
Installer for Plugins for Xilinx Tools
Plugins will be installed in the following directory: "/tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE"
Found plugin "libCseDigilent" version "14.1" by "Digilent".
Successfully installed plugin in "/tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE/lib/lin64/plugins/Digilent/libCseDigilent".
Successfully installed 1 plugin(s) for Xilinx Tools.
Successfully installed component: libCseDigilent
Successfully installed Digilent Cable Drivers
--Kernel version = 3.2.0-4-amd64.
--Arch = x86_64.
--Installer version = 1100
--Unsetting ARCH environment variable.
--File /lib/modules/misc/install_windrvr6 does not exist.
--Installing USB drivers------------------------------------------
--File /etc/hotplug/usb/xusbdfwu.fw/xusbdfwu.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusbdfwu.hex version = 1030
--File xusbdfwu.hex exists.
--File xusbdfwu.hex version = 1030
--File xusbdfwu.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xlp.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xlp.hex version = 1028
--File xusb_xlp.hex exists.
--File xusb_xlp.hex version = 1028
--File xusb_xlp.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_emb.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_emb.hex version = 1028
--File xusb_emb.hex exists.
--File xusb_emb.hex version = 1028
--File xusb_emb.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xpr.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xpr.hex version = 2004
--File xusb_xpr.hex exists.
--File xusb_xpr.hex version = 2004
--File xusb_xpr.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xup.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xup.hex version = 1030
--File xusb_xup.hex exists.
--File xusb_xup.hex version = 1030
--File xusb_xup.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xp2.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xp2.hex version = 2300
--File xusb_xp2.hex exists.
--File xusb_xp2.hex version = 2300
--File xusb_xp2.hex is already updated.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xse.hex exists.
--File /etc/hotplug/usb/xusbdfwu.fw/xusb_xse.hex version = 2006
--File xusb_xse.hex exists.
--File xusb_xse.hex version = 2006
--File xusb_xse.hex is already updated.
--Product ID 0007 is already in the usermap.
--Product ID 0009 is already in the usermap.
--Product ID 000d is already in the usermap.
--Product ID 000f is already in the usermap.
--Product ID 0013 is already in the usermap.
--Product ID 0015 is already in the usermap.
--Product ID 0008 is already in the usermap.
--Installing windrvr6---------------------------------------------
--Checking version.
--File /lib/modules/3.2.0-4-amd64/kernel/drivers/misc/windrvr6.ko does not exist.
--File LINUX.3.2.0-4-amd64.x86_64/windrvr6.ko does not exist.
--Setting source version to 1301.
--File LINUX.3.2.0-4-amd64.x86_64/windrvr6.ko is newer than the destination file.
USE_KBUILD = no
checking for cpu architecture... x86_64
checking for WinDriver root directory... /tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64
checking for linux kernel source... found at /lib/modules/3.2.0-4-amd64/build
checking for lib directory... ln -sf $(ROOT_DIR)/lib/$(SHARED_OBJECT)_32.so /usr/lib/$(SHARED_OBJECT).so; ln -sf $(ROOT_DIR)/lib/$(SHARED_OBJECT).so /usr/lib64/$(SHARED_OBJECT).so
checking which directories to include... -I/lib/modules/3.2.0-4-amd64/source/include
checking linux kernel version... not found
make -f makefile.wd clean
make[1]: Entering directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
make[1]: Leaving directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
make -f makefile.wd
make[1]: Entering directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
make[1]: Leaving directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
make -f makefile.wd
make[1]: Entering directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
make[1]: Leaving directory `/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/linux_drivers/windriver64/windrvr'
--make windrvr install rc= 2
--install_windrvr6 rc = 2
--Module windrvr6 is not running.
--Module xpc4drvr is not running.
--Note: By default, the file permission of /dev/windrvr6 is enabled for the root user only
and must be changed to allow access to other users.
--real rc=2
--Driver installation failed.
--Digilent Return code = 0
--Xilinx Return code = 1
--Return code = 1
INFO ::Mon Dec 02 10:59:01 TZ 2013:: Console message preference has been changed to INFO
INFO ::Mon Dec 02 10:59:01 TZ 2013:: Xilinx Installer/Updater launched.
INFO ::Mon Dec 02 10:59:05 TZ 2013:: Proxy choice: IE
INFO ::Mon Dec 02 10:59:05 TZ 2013:: install version: 14.7
INFO ::Mon Dec 02 10:59:05 TZ 2013:: dat file URL: www.xilinx.com/direct/swhelp/14_wiclient.dat
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Install Location: /tmp/xilinx_ise_webpack/14.7/ISE_DS
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: Acquire or Manage a License Key
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Edition : ISE WebPACK
INFO ::Mon Dec 02 11:03:14 TZ 2013:: ISE DS Common
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Install Location: common
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Module: ISE DS Common
INFO ::Mon Dec 02 11:03:14 TZ 2013:: EDK
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Install Location: EDK
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Module: EDK
INFO ::Mon Dec 02 11:03:14 TZ 2013:: PlanAhead Analysis Tool
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Install Location: PlanAhead
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Module: PlanAhead Files
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: setupEnv.sh
INFO ::Mon Dec 02 11:03:14 TZ 2013:: ISE
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Install Location: ISE
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Module: Design Environment Tools
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Module: WebPACK Devices
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: Install Linux System Generator Info XML
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: Ensure Linux System Generator Symlinks
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: Enable WebTalk to send software, IP and device usage statistics to Xilinx (Always enabled for WebPACK license)
INFO ::Mon Dec 02 11:03:14 TZ 2013:: Option: Install Cable Drivers
INFO ::Mon Dec 02 11:08:59 TZ 2013:: fileset.txt written.
INFO ::Mon Dec 02 11:08:59 TZ 2013:: Migrating registry and creating file association
WARN ::Mon Dec 02 11:08:59 TZ 2013:: Unable to copy "/home/andreas/documents/diku/master_thesis/Xilinx_ISE_DS_14.7_1015_1-1/common/idata/.pref.bin" to "/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/.xinstall/idata/.pref.bin" source does not exist.
INFO ::Mon Dec 02 11:09:00 TZ 2013:: Post-GUI updates completed.
INFO ::Mon Dec 02 11:11:41 TZ 2013:: fileset.txt written.
INFO ::Mon Dec 02 11:11:41 TZ 2013:: Migrating registry and creating file association
INFO ::Mon Dec 02 11:11:42 TZ 2013:: Post-GUI updates completed.
INFO ::Mon Dec 02 11:13:23 TZ 2013:: fileset.txt written.
INFO ::Mon Dec 02 11:13:23 TZ 2013:: Migrating registry and creating file association
INFO ::Mon Dec 02 11:13:24 TZ 2013:: Post-GUI updates completed.
INFO ::Mon Dec 02 11:19:00 TZ 2013:: fileset.txt written.
INFO ::Mon Dec 02 11:19:00 TZ 2013:: Migrating registry and creating file association
INFO ::Mon Dec 02 11:19:01 TZ 2013:: Post-GUI updates completed.
INFO ::Mon Dec 02 11:19:07 TZ 2013:: Execute: setupEnv.sh
INFO ::Mon Dec 02 11:19:07 TZ 2013:: Execute: Install Linux System Generator Info XML
INFO ::Mon Dec 02 11:19:07 TZ 2013:: Execute: /tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE/sysgen/util/ensure_symlinks.sh /tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE/sysgen lin64
INFO ::Mon Dec 02 11:19:07 TZ 2013:: Execute: /tmp/xilinx_ise_webpack/14.7/ISE_DS/PlanAhead/data/webtalk/webtalk_install.sh on
INFO ::Mon Dec 02 11:19:07 TZ 2013:: Execute: /bin/sh -c "/tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/install_script/install_drivers/install_drivers >>/tmp/xilinx_ise_webpack/14.7/ISE_DS/.xinstall/install.log /tmp/xilinx_ise_webpack/14.7/ISE_DS/ISE"
INFO ::Mon Dec 02 11:19:14 TZ 2013:: Driver installation failed. Please check the /.xinstall/install.log file for more information on the cause of the installation failure.
INFO ::Mon Dec 02 11:19:36 TZ 2013:: Execute: /tmp/xilinx_ise_webpack/14.7/ISE_DS/common/bin/lin64/xlcm
INFO ::Mon Dec 02 11:20:14 TZ 2013:: Xilinx Installer/Updater exited with return status "0".
INFO ::Mon Dec 02 11:20:14 TZ 2013:: ################################################################
What are the steps required to fix the drivers on Debian Wheezy?
Thanks in advance
Andreas FrischI'm a bit surprised that the only supported Linux distros are commercial (costing money) distros!
What's the point in providing Linux support for your tools then. The overwhelming majority of Linux users use free distros like Mint, Ubuntu, Debian, Fedora etc.
I had exactly the same problem and now I'm forced to BUY a Linux distro in order to build PetaLinux?
Anyway, a) are there any plans to support these tools on the more popular (free) distros? and b) Does anyone know if we can use CentOS 6, since that's supposed to be a community (free) clone of the supported (but not free) RHEL 6 distro?
Anyone know of an 'unsuported' Linux distro that 'works' anyway (especially for the cable drivers)?
It LOOKS as if that one cable driver install issue is the only thing preventing us from using a boat load of other distros. Can't this be fixed?
-
[solved] stock kernel boot on xen fail
Hi all,
I install the archlinux on xen (http://prgmr.com/xen/) with the formal kernel
when boot the system, I get this error
xc_dom_probe_bzimage_kernel: unknown compression format
Anyone know how to solve it?
Last edited by hongy19 (2011-05-08 13:15:15)Thanks for your reply. I have changed to use kernel26-xen from aur and it works.
It seems that the stock kernel uses xz to compress bzImage. And pygrub should only support gzip bzImage (https://bugzilla.redhat.com/show_bug.cgi?id=515831) for xen3.x. For xen4.0, lzma and bzip2 are supported
(http://wiki.xensource.com/xenwiki/Xen4.0)
[hongy19@Archlinux linux-2.6.38-ARCH]$ cat .config |grep -i config_kernel
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
CONFIG_KERNEL_XZ=y
# CONFIG_KERNEL_LZO is not set
So I guess the stock kernel could not used with xen right now.
fukawi2 wrote:I'm not sure how prgmr do their Xen, but I'll take a stab that maybe you're using an xz compressed initrd? Try switching to gz
Last edited by hongy19 (2011-05-08 14:04:53) -
Does arch support for amd 780g matherboard?
does arch support for amd 780g matherboard?
3 days ago, I installed the arch 2007.08.02, and I update the system up to date. I installed the xorg, ati driver, gdm, and gnome, but my 22" SAMSUNG LCD displayed error (display the desktop but the colors all wrong, can't see anything clearly), then I downloaded the ati catalyst install package , and installed it, the error occured too, so I came here to ask you
how to deal with it?
the video card of the matherboard is radeon hd3200.
Last edited by xmfs (2008-04-24 03:26:47)Sorry for taking this long to reply, I was out of town.
I finally got it working with the latest catalyst. Video and everything. I am posting my xorg in case anyone finds it helpfull. I haven't done any tweaks and it is far from complete but it is working as base project.
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection
Section "Module"
Load "GLcore"
Load "xtrap"
Load "glx"
Load "dbe"
Load "extmod"
Load "record"
Load "dri"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
DisplaySize 518 324
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1200"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection -
Is it possible to compile NVIDIA for multiple kernels simultaneously?
Hi all,
First, the reference is http://wiki.archlinux.org/index.php/NVI … tom_kernel, as well as a small discussion I started at http://aur.archlinux.org/packages.php?ID=20410.
Basically, currently the nvidia-beta (and I'm sure the rest of the nvidia scripts) use `uname -r` to obtain the current kernel name, which is then used for the rest of the PKGBUILD. Its relatively trivial to alter that to the name of whichever kernel, meaning there's no problem compiling nvidia.ko for kernel26-ice from within kernel26 itself, and to alter the name of the package so that your nvidia-beta package does not need to be over-written (you then have two nvidia.ko, each for their own kernel.
My question is, is it possible for a single PKGBUILD to compile nvidia.ko for all kernels currently installed (probably through looking at either /lib/modules or /usr/src)? This would mean only one maintainer is needed for nvidia-beta or nvidia-17xx or whichever series, and the same PKGBUILD could be used on any system, even those with multiple kernels.
I'm not very familiar with the limitations of PKGBUILDs, or the rules governing what they may or may not do (for example, accessing and checking the machine itself outside the fakeroot?), so this may be nonsense, if so feel free to point it out. Another idea would be for a simple bash script to create as many PKGBUILDs as required, based on the most recent nvidia-beta PKGBUILD, simply sed-replacing uname -r with the appropriate kernel names and modifying the PKG name.Hi,
it's not difficult to do but I DO NOT recommend to do it (see my notes below the code).
PKGBUILD
pkgname=nvidia-beta
pkgver=185.18.04
pkgrel=1
pkgdesc="NVIDIA beta drivers for kernel26."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86 && NV=0
[ "$CARCH" = "x86_64" ] && ARCH=x86_64 && NV=0
provides=(nvidia=${pkgver})
url="http://www.nvidia.com/"
depends=(kernel26 nvidia-utils-beta)
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=('nvidia.install')
source=(ftp://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}.run)
md5sums=('95b67e6f17cc54d36ae2743df76c9f6d')
[ "$CARCH" = "x86_64" ] && md5sums=('33967a6d452c562bb8af02b0734ebf22')
build()
# Read list of installed kernels
KERNELS=`ls -1 /lib/modules`
# Extract the nvidia drivers
cd $startdir/src/
sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}.run --extract-only
cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}
cd usr/src/nv
ln -s Makefile.kbuild Makefile
# Now build modules for each kernel
for KERNEL in $KERNELS; do
echo "Building for ${KERNEL}"
# Compile the module
make SYSSRC=/lib/modules/${KERNEL}/build module || return 1
# Install kernel module
mkdir -p $startdir/pkg/lib/modules/${KERNEL}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${KERNEL}/kernel/drivers/video/ || return 1
# Clean
make clean || return 1
done;
nvidia.install
# arg 1: the new package version
post_install() {
KERNELS=`ls -1 /lib/modules`
for KERNEL in $KERNELS; do
depmod -v $KERNEL > /dev/null 2>&1
done;
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
# arg 1: the old package version
post_remove() {
KERNELS=`ls -1 /lib/modules`
for KERNEL in $KERNELS; do
depmod -v $KERNEL > /dev/null 2>&1
done;
op=$1
shift
$op $*
PS: I haven't test it because I don't use multiple kernels
But be aware of possible problems. Some modifications may influence kernel functionalities, so once you compile a driver for kernel26-xyz on kernel26-zyx the module may not work on kernel26-xyz or may cause unexpected issues.
You also should not (you possibly even won't be able to) build module for different release version (eg. build for 2.6.28 on 2.6.29) due changes in kernel headers.
I'm also not sure if it is safe to generate module dependencies for another kernel then you are currently running.
As you can see above, it is not problem to make such a PKGBUILD, but it also brings too many problems and it's too dangerous that it is better to stay at current model "module package for each kernel". So if you want to you may try to use this PKGBUILD, but I strictly warn everyone else that it may cause more harm then use so don't blame me if something goes wrong. You were warned .
Last edited by ProgDan (2009-04-30 13:48:06) -
Should mini displayPort work with stock kernel & nouveau?
Hi,
I've just set up Arch on a MacBook 5,1 (nvidia GeForce 9400M & mini displayPort graphics output).
X11 works fine out of the box (stock kernel & xf86-video-nouveau). However, if I connect a external screen with a mini displayPort -> VGA adapter, the external screen only shows some vertical lines. I see the following error:
[drm] nouveau 0000:03:00.0: auxch DEFER too many times, bailing
Apparently, such a setup should work with the latest kernel (nouveau driver) and xf86 nouveau driver. In fact, some folks at RedHat report so with my very same hardware setup: https://bugzilla.redhat.com/show_bug.cgi?id=642728
Anyone has sucessfully setup a external monitor with Nouveau & mini displayPort?
Any help would be much appreciated, as this feature is critical for me.
For the record I'm using this from the core / extra repos:
- Kernel 3.1.5-1
- xf86-video-nouveau 0.0.16_git20110829-1You're right, but I forgot to mention that the Samsung display is just an LCD monitor, so I don´t really need to get audio output for both connections
Currently, I use an HDMI-to-DVI adapter to connect the Samsung monitor, but I'd like to use the HDMI output to connect my LCD TV instead (and probably a home theater system in the future), and use the Mini DisplayPort output for the monitor, so that I can have a dual-display setup.
I asked this question, because I read the description for the Mini DisplayPort-to-DVI adapter in the Mexico Apple Store web page, and that description tells that only Macbooks support the adapter. In the US Apple Store page, it does tell that the adapter is supported by any Apple computer with a Mini DP connection, so I just wanted to confirm which description is true, to avoid confusions.
Anyway, I appreciate that you took the time to respond... Regards!! -
Nouveau for multiple kernels?
Hi all,
Am thinking of trying out the nouveau driver, since I've been gaming a LOT less lately. I understand I need xf86-video-nouveau (roughly analogous to the nvidia-utils package), nouveau-firmware, and nouveau-drm (roughly analogous to the nvidia package).
Thing is, I use 3 kernels and switch between them fairly regularly. Because of this I use (and maintain) the nvidia-beta-all package on the AUR. In order to get this same level of functionality with nouveau I'd need something like nouveau-drm-all.
There is an nouveau-drm-bfs PKGBUILD in the AUR, but all that does is copy the .ko files built for 2.6.33-ARCH to a new /lib/modules/* location. I'm pretty sure that wouldn't work for all kernels (especially the -rt kernel I'm fond of using), so I'd like to ask those who are already using nouveau, do you use custom kernels? Does re-running the nouveau-drm PKGBUILD on your custom kernel work?Actually, more needs to be done, since the PKGBUILD I have in mind will build N copies of nouveau-drm .ko files if you have N kernels installed. I've never understood, for example, why nvidia-beta is written in such a way that if I use it in my custom kernel and for some reason can't boot the custom kernel, I don't have nvidia.ko in my stock -ARCH kernel so I can't even get GUI on that.
In any case, I believe I would also have to modify the Makefile, which uses `uname -r` in several places. nouveao-drm-bfs doesn't, because that PKGBUILD writer assumed that you would run it while kernel26-bfs is already installed and running. My nvidia-beta-all PKGBUILD can be used whatever kernel happens to be booted at the time. -
Stock kernel isn't compatible with nvidia-dkms and nvidia-hook?
Hello pals
I'm using linux-ice, linux-lqx and linux-ck kernels with nvidia-dkms and nvidia-hook. Everything is ok, with kde upping.
I've started from stock kernel. During the dkms (or hook, I don't remember) pacman says that nvidia and nvidia(dkms or hook) were incompatible... remove nvidia? I've selected yes
After it, stock kernel don't upps the kde... stays on black screen. Login on tty1, 2 or 3 is possible, with ctrl+alt+F1...F3, but, kde with kernel don't works
no errors appears.
to force stock kernel been compiled by hook, I wait a while, when using the other kernels, and yesterday I did a "Syyu"
new kernel, new linux-headers too... but still blank screen
I only can use stock kernel and Nvidia driver, not dkms/hook installed one?Ok, i know little about dkms / mkinitcpio hooks , but best option seems to try and build the nividia module manually to get more info.
nvidia-hook gets sources from here : https://github.com/alucryd/mkinitcpio-hooks/ ,
build ()
_version=$(pacman -Qs '^nvidia$'|sed 's/^[^ ]* \|-[0-9]*$//g;2d')
echo "Building nvidia modules for ${KERNELVERSION} kernel..."
dkms install nvidia/${_version} -k ${KERNELVERSION}/_arch
echo "Ok."
help ()
cat<<HELPEOF
This hook rebuilds nvidia modules. It does nothing to the initrd image.
HELPEOF
looks like all the hook does is run dkms install, try running that command manually to get more info. -
Should modules for different kernels differ?
I'm trying to build acpi_call-git from the AUR. The build seems to go rather too smoothly. I uninstalled a custom kernel (which I only have for debugging) which leaves the standard Arch and Arch LTS kernels installed. I have the headers installed for both kernels:
$ pacman -Qs linux-[lts-]*headers
local/linux-headers 3.11.4-1
Header files and scripts for building modules for Linux kernel
local/linux-lts-headers 3.10.15-1
Header files and scripts for building modules for Linux-lts kernel
What is confusing me is that the package seems to build identical modules for the two kernels and I am not sure whether that's right:
$ diff pkg/acpi_call-git/usr/lib/modules/extramodules-3.11-ARCH/acpi_call.ko.gz pkg/acpi_call-git/usr/lib/modules/extramodules-3.10-lts/acpi_call.ko.gz
$ echo $?
0
Shouldn't there be a difference between the two? That is, I know that you typically need modules which match the kernel - otherwise the modules can't be loaded. So presumably if building module M for kernel K1 produces M1, and building module M for kernel K2 produces M2, then M1 cannot be identical with M2.
Is there a problem here or am I just horribly confused?If the kernel functions (especially the specifications) used by acpi_call haven't changed, then the module could indeed be the same for both kernels.
You'd have to check the kernel commits for acpi related changes to be sure. -
Dual booting of 32 and 64 bit arch, how to upgrade kernel?
Hi all,
I have set up a concurrent 32 and 64 bit arch install on my system. I partitioned my system to have 5 partitions:
boot
32bit root
64bit root
swap
home
(64 bit root and home in an extended partition)
I renamed the 64 bit kernel files in /boot to
kernel26_64.img
kernel26-fallback_64.img
System_64.map26
vmlinuz26_64
the 32 bit kernel files have their 'normal' names
kernel26.img
kernel26-fallback.img
System.map26
vmlinuz26
Then I changed grubs menu.lst accordingly to either boot the 32 or 64 bit installation, both using same swap and home partition. This works by now. But if I want to upgrade my kernel through pacman, the 64 bit install will overwrite the 32bit kernel files because it generates the 'normal' filenames which belong to the 32bit installation. Is there a way to tell mkinitcpio to build files with a *_64 at the end while run by pacman -Syu?
Does anybody see other caveats? Are there other solutions to archieve my goal?
Harvey
Last edited by Harey (2009-11-11 21:38:41)You can change the name of the initcpio images in /etc/mkinitcpio.d/kernel26.preset. To change the name of the kernel itself (vmlinuz26), you'll have to compile your own kernel. Well, not quite; this untested PKGBUILD I whipped up just repackages the official 64-bit kernel, with important names changed:
#pkgname=kernel26 # Build stock -ARCH kernel
pkgname=kernel26-64 # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.31
pkgver=${_basekernel}.6
pkgrel=1
_patchname="patch-${pkgver}-${pkgrel}-ARCH"
pkgdesc="The Linux Kernel and modules"
arch=(x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'kernel26-firmware>=2.6.31' 'module-init-tools' 'mkinitcpio>=0.5.20')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
provides=('kernel26')
conflicts=('kernel26')
replaces=('kernel26' 'kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500')
install=kernel26.install
source=(ftp://ftp.archlinux.org/core/os/x86_64/kernel26-${pkgver}-${pkgrel}-x86_64.pkg.tar.gz)
optdepends=('crda: to set the correct wireless channels of your country')
md5sums=('d017c2cd05530d8ac47c5f95495c5d49')
sha256sums=('8f04074814ae0f697edcec2b1d215d3790746acb154604f2b223f32fa71c6434')
build() {
cp -r ${srcdir}/boot ${pkgdir} || return 1
cp -r ${srcdir}/etc ${pkgdir} || return 1
cp -r ${srcdir}/lib ${pkgdir} || return 1
cp -r ${srcdir}/usr ${pkgdir} || return 1
mv ${pkgdir}/boot/{vmlinuz26,vmlinuz26_64} || return 1
mv ${pkgdir}/boot/{System.map26,System_64.map26} || return 1
sed -i 's/\.img/_64\.img/g' ${pkgdir}/etc/mkinitcpio.d/kernel26.preset || return 1
Maybe you are looking for
-
ATI Radeon HD 4870 Composite Video?
ATI's spec sheet on the Radeon HD 4870 states that it can provide an analog composite video out. Is this feature enabled on the version that can be optioned on the Mac Pro, and if so with what adapters?
-
Group Policy Startup Script Applies My Policy But Does Not Run The Acual Scripts
I have created a basic batch file with msiexec.exe to uninstall a program on startup and then another separate .bat script to install the same program but the newer version. The software I'm referring to has to be completely uninstalled BEFORE I inst
-
How to take screenshots for 4.7" and 5.5" ios devices?
Hi all, I usually create screenshots of my AIR apps using a combination of actual screenshots on devices I own, and screenshots of the standalone player by testing the AIR app on my development machine. However, I don't own any of the new 4.7" or 5.5
-
Make download button show all download instead of only a few downloads.
Just updated from version 25. Is there a way to make it show all download instead of showing only a few downloads when I click it the download button? Also, is there a way to make it automatically opens the show all download when I download a picture
-
Hi. I am trying to make a SWF open a new browser window when it is clicked, acting as a Splash page that opens the main page. I want the main page to open in a new window 800 x 600 with none of the address bar, toolbars etc. I've managed this but the