Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] nvidia_driver

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Sukneet Basuta <sukneet AT gmail.com>
  • To: Dan Kociela <dkociela AT gmail.com>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] nvidia_driver
  • Date: Mon, 29 Oct 2012 23:59:39 -0400

On Mon, Oct 29, 2012 at 9:16 PM, Dan Kociela <dkociela AT gmail.com> wrote:
> Hi,
> I hope it isn't inappropriate to ask on this mailing list. I've been unable
> to cast the nvidia_driver spell lately. I keep getting "Failed rivafb sanity
> check". The only framebuffer my kernel has support for is vesafb, and I
> tried removing that from the kernel, but still got the error. The nvidia
> installer works just fine, but then sorcery doesn't track the install, and I
> get issues when running cleanse --prune (and I assume cleanse --fix). smgl
> is my daily driver, any advice would be appreciated. Thanks
> Dan Kociela

The rivafb check is the following (if RET=0, the check passed).

RET=1
VERBOSE=$7
OLD_FILE="linux/autoconf.h"
NEW_FILE="generated/autoconf.h"

if [ -f $HEADERS/$NEW_FILE -o -f $OUTPUT/include/$NEW_FILE ]; then
FILE=$NEW_FILE
fi
if [ -f $HEADERS/$OLD_FILE -o -f $OUTPUT/include/$OLD_FILE ]; then
FILE=$OLD_FILE
fi

if [ -n "$FILE" ]; then
#
# We are looking at a configured source tree; verify
# that its configuration doesn't include rivafb using
# a compile check.
#
rm -f conftest.h
test_headers

echo "$CONFTEST_PREAMBLE
#ifdef CONFIG_FB_RIVA
#error CONFIG_FB_RIVA defined!
#endif
" > conftest$$.c

$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1

if [ -f conftest$$.o ]; then
RET=0
fi

rm -f conftest$$.c conftest$$.o
rm -f conftest.h
else
CONFIG=$HEADERS/../.config
if [ -f $CONFIG ]; then
if [ -z "$(grep "^CONFIG_FB_RIVA=y" $CONFIG)" ]; then
RET=0
fi
fi
fi

The spell sets $HEADERS = /lib/modules/$KVER/source/include , where
$KVER is the latest kernel version installed by sorcery (not
necessarily the one you are currently running). Maybe try recasting
linux. If you installed your own kernel, I believe it uses the version
under /usr/src/linux, or if that doesn't exist it uses uname. Nvidia's
installer uses /lib/modules/$(shell uname -r)/source/include

If that doesn't work, check if linux/autoconf.h or
generated/autoconf.h exists under /lib/modules/$KVER/source . If one
or more does, check for traces of CONFIG_FB_RIVA. If not, check
/lib/modules/$KVER/source/.config for CONFIG_FB_RIVA=y




Archive powered by MHonArc 2.6.24.

Top of Page