Установка драйвера skystar2 в убунту 8

Kubuntu, Xubuntu и другие

Модератор: Модераторы разделов

Soldier
Сообщения: 144

Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

Привет всем.
Решил настроить радио на убунту8. Есть карта skystar2 (rev.02). Скачал драйвера с linuxtv.org, распаковал, и начав устанавливать - получаю сообщение:

Код: Выделить всё

# make
make -C /home/radio/v4l-dvb-0276304b76b9/v4l
make[1]: Entering directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
scripts/make_makefile.pl
make[1]: execvp: scripts/make_makefile.pl: Permission denied
Updating/Creating .config
/bin/sh: ./scripts/make_kconfig.pl: Permission denied
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
make[1]: Leaving directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
make: *** [all] Error 2

подскажите как решить проблему.
Заранее всем благодрен.

ЗЫ. Версия ubuntu:

Код: Выделить всё

Linux ubuntu 2.6.24-23-server #1 SMP Thu Nov 27 19:19:15 UTC 2008 i686 GNU/Linux
Спасибо сказали:
Soldier
Сообщения: 144

Re: Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

выставил chmod 777 для всех файлов.
запустил как make.
Получил такое:

Код: Выделить всё

# make
make -C /home/radio/v4l-dvb-0276304b76b9/v4l
make[1]: Entering directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.24
File not found: /lib/modules/2.6.24-23-server/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: Leaving directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
make[1]: Entering directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.24
File not found: /lib/modules/2.6.24-23-server/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
make[1]: Leaving directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
make: *** [all] Error 2
root@ubuntu:/home/radio/v4l-dvb-0276304b76b9# make all
make -C /home/radio/v4l-dvb-0276304b76b9/v4l all
make[1]: Entering directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.24
File not found: /lib/modules/2.6.24-23-server/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
make[1]: Leaving directory `/home/radio/v4l-dvb-0276304b76b9/v4l'
make: *** [all] Error 2
Спасибо сказали:
blackdevil
Бывший модератор
Сообщения: 2751
Статус: Добровольный помощник
ОС: Ubuntu (lts)

Re: Установка драйвера skystar2 в убунту 8

Сообщение blackdevil »

Ошибки начинаются вот с этого:
Updating/Creating .config
Preparing to compile for kernel version 2.6.24
File not found: /lib/modules/2.6.24-23-server/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.

То есть скрипт make_kconfig.pl не может найти файл .config в папке /lib/modules/2.6.24-23-server/build/.config. Убедитесь что он там есть. И заодно выложите тут содержимое скрипта, посмотрим на чем спотыкается.

Еще вот отличный мануал (в посте Thraxes):
ссылка

Вот также полезная информация на русском:
ссылка1
ссылка2
Простые решения для Ubuntu-подобных систем: смотрим тут
Спасибо сказали:
Soldier
Сообщения: 144

Re: Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

вот собственно листинг make_kconfig.pl

Код: Выделить всё

#!/usr/bin/perl
use FileHandle;
use strict;

my %depend = ();
my %minver = ();
my %config = ();
my %stringopt = ();
my %intopt = ();
my %hexopt = ();
my %tristate = ();
my %kernopts = ();
my %depmods = ();
my ($version, $level, $sublevel, $kernver);

my $kernel = shift;
my $kernsrc = shift;
my $force_kconfig = shift;

my $debug=0;

###########################################################
# Read a .config file (first argument) and put the resulting options in a
# hash, which is returned.  This subroutine should be called in a hash
# context or it will not be very useful.
sub process_config($)
{
    my $filename = shift;
    my %conf;
    my $in = new FileHandle;

    open $in, $filename or die "File not found: $filename";
    while (<$in>) {
        if (/^CONFIG_(\w+)\s*=\s*(\S.*?)\s*$/) {
            my $c = \($conf{$1} = $2);
            $$c =~ y/nmy/012/ if $$c =~ /^.$/;
            next;
        }
        if (/^# CONFIG_(\w+) is not set$/) {
            $conf{$1} = 0;
            next;
        }
        unless (/^#|$/) {
            print "Confused by this line in $filename:\n$_";
        }
    }
    close $in;
    return %conf;
}

sub add_bool($)
{
    my $arg=shift;

    exists $config{$arg} or die "Adding unknown boolean '$arg'";
    print "Boolean: $arg\n" if $debug;
    $tristate{$arg} = "bool";
}

sub add_tristate($)
{
    my $arg=shift;

    exists $config{$arg} or die "Adding unknown tristate '$arg'";
    print "Tristate: $arg\n" if $debug;
    $tristate{$arg}="tristate";
    # tri default is 'm'
    $config{$arg} = 1 if($config{$arg});
}

sub add_int($)
{
    my $arg=shift;

    print "Int: $arg\n" if $debug;
    exists $config{$arg} or die "Adding unknown int '$arg'";
    $intopt{$arg} = 0;
}

sub add_hex($)
{
    my $arg=shift;

    print "Hex: $arg\n" if $debug;
    exists $config{$arg} or die "Adding unknown hex '$arg'";
    $hexopt{$arg} = 0;
}

sub add_string($)
{
    my $arg=shift;

    print "String: $arg\n" if $debug;
    exists $config{$arg} or die "Adding unknown string '$arg'";
    $stringopt{$arg} = "";
}

sub set_int_value($$)
{
    my $key = shift;
    my $val = shift;

    exists $intopt{$key} or die "Default for unknown int option '$key'";
    $intopt{$key} = $val;
}

sub set_hex_value($$)
{
    my $key = shift;
    my $val = shift;

    exists $hexopt{$key} or die "Default for unknown hex option '$key'";
    $hexopt{$key} = "0x$val";
}

sub set_string_value($$)
{
    my $key = shift;
    my $val = shift;

    exists $stringopt{$key} or die "Default for unknown string option '$key'";
    $stringopt{$key} = "\"$val\"";
}

sub add_config($)
{
    my $arg = shift;

    if ($arg =~ /^(\w+)\s*$/) {
        $config{$1} = 2;
    } else {
        die "Do not understand config variable '$arg'";
    }
}

########################################
# Turn option off, iff it already exists
sub disable_config($)
{
    my $key = shift;

    $config{$key} = 0 if (exists $config{$key});
}

# %{$depend{'FOO'}} lists all variables which depend on FOO.  This is the
# reverse of the variables that FOO depends on.
my %depend = ();
sub finddeps($$)
{
    my $key = shift;
    my $deps = shift;

    $deps =~ s/^\W+//;
    $depend{$_}{$key} = 1 foreach(split(/\W[\Wynm]*/, $deps));
}

# @{$depends{'FOO'}} is a list of dependency expressions that FOO depends
# on.  This is the reverse of the variables that depend on FOO.
my %depends = ();
sub depends($$)
{
    my $key = shift;
    my $deps = shift;

    (!defined $key || $key eq '') and
        die "Got bad key with $deps\n";
    finddeps($key, $deps);
    push @{$depends{$key}}, $deps;
}

sub selects($$$)
{
    my $key = shift;
    my $select = shift;
    my $if = shift;

    finddeps($key, $select);
    if(defined $if) {
        finddeps($key, $if);
        # Transform "select X if Y" into "depends on !Y || X"
        $select = "!($if) || ($select)";
    }
    push @{$depends{$key}}, $select;
}

# Needs:
# %depend <- %depend{FOO} lists the variables that depend on FOO
# %depends <- %depends{FOO} lists the dependency expressions for FOO
# %config <- the value of all media variables
# %kernopts <- the value of all kernel variables (including media ones)
#
# Checks the dependencies of all media variables, recursively.  Returns
# a new hash that has the new values of all media variables.
sub checkdeps()
{
    my %allconfig;

    @allconfig{keys %depend} = @kernopts{keys %depend};
    @allconfig{keys %config} = values %config;
    # Set undef values to 0
    map { defined $_ or $_ = 0 } values %allconfig;

    # First run, check deps for all the v4l-dvb variables.  Following
    # runs, check all variables which depend on a variable that was
    # changed.  Stop when no more variables change.
    for(my %changed = (), my @tocheck = keys %config; @tocheck;
        @tocheck = keys %changed, %changed = ()) {
        foreach (@tocheck) {
            next unless($allconfig{$_});    # skip disabled vars
            if (!checkvardeps($_)) {
                $changed{$_} = 1 foreach keys %{$depend{$_}};
            }
        }
    }
    return map { $_ => $allconfig{$_} } keys %config;

    # Check the dependencies of a variable, if one fails the variable
    # is set to 0.  Returns 0 if the variable failed, 1 if it passed.
    sub checkvardeps($) {
        my $key = shift;
        my $deps = $depends{$key};
        foreach (@$deps) {
            next if($_ eq '');
            if (!eval(toperl($_))) {
                print "Disabling $key, dependency '$_' not met\n" if $debug;
                $allconfig{$key} = 0;
                return 0;
            }
        }
        return 1;
    }

    # Convert a Kconfig expression to a Perl expression
    sub toperl($)
    {
        local $_ = shift;

        # Turn n,m,y into 0,1,2
        s/\bn\b/0/g; s/\bm\b/1/g; s/\by\b/2/g;

        # Turn = into ==, but keep != as != (ie. not !==)
        s/(?<!!)=/==/g;

        # Turn FOO into the value of $allconfig{FOO}
        s/\b([A-Za-z_]\w*)\b/$allconfig{$1}/g;

        return $_;
    }
}

# Text to be added to disabled options
my $disabled_msg = <<'EOF';
    ---help---
      WARNING! This driver needs at least kernel %s!  It may not
      compile or work correctly on your kernel, which is too old.

EOF

# List of all kconfig files read in, used to make dependencies for the
# output combined Kconfig file.
my @kconfigfiles = ();

# "if" statements found in Kconfig files.
my @kifs = ();

# Read and parse a Kconfig file.  First argument is base of source
# directory tree, the second is the file to open (with path).  Recursivly
# parses Kconfig files from 'source' directives.
#
# Prints to OUT a combined version of all the Kconfig files.  This file
# is edited slightly to disable options that need a newer kernel.
sub open_kconfig($$) {
    my ($dir,$file)=@_;
    my $in = new FileHandle;
    my $key;
    my $disabled = 0;
    my $in_help = 0;
    my $default_seen = 0;

    print "Opening $file\n" if $debug;
    open $in, '<', $file or die "File not found: $file";
    push @kconfigfiles, $file;
    while (<$in>) {
        # In our Kconfig files, the first non-help line after the
        # help text always has no indention.  Technically, the
        # help text is ended by just by the indention decreasing,
        # but that is a pain to keep track of.
        if ($in_help && /^\S/) {
            $in_help = 0;
        } elsif ($in_help) {
            # Still inside help text
            next;
        }

        # Start of help text
        if (/^\s*(---)?help(---)?\s*$/) {
            $in_help = 1;
            # Insert VIDEO_KERNEL_VERSION dependency, default
            # n line, and help text note for disabled drivers.
            if ($disabled) {
                if(exists $tristate{$key} && !$default_seen) {
                    print OUT "\tdefault n\n";
                }
                print OUT "\tdepends on VIDEO_KERNEL_VERSION\n";
                $_ = sprintf($disabled_msg, $minver{$key});
            }
            next;
        }
        # No help text should get processed past this point
        $in_help and die "I'm very confused";

        # start of a new stanza, reset
        if (/^\w/) {
            $disabled = 0;
            $default_seen = 0;
            $key = undef;
        }
        next if (/^\s*#/ || /^\s*$/); # skip comments and blank lines

        if (m|^\s*source\s+"([^"]+)"\s*$| ||
            m|^\s*source\s+(\S+)\s*$|) {
            open_kconfig($dir, "$dir/$1");
            $_ = '';    # don't print the source line itself
            next;
        }

        my $nothandled = 0;
        if (m|^\s*(?:menu)?config (\w+)\s*$|) {
            $key = $1;
            print "Found config '$key' at $file:$.\n" if $debug;
            add_config($key);

            if (exists $minver{$key} &&
                cmp_ver($minver{$key}, $kernver) > 0) {
                $disabled = 1;
                disable_config($key);
                print "$key: Requires at least kernel $minver{$key}\n";
                print OUT "# $key disabled for insufficient kernel version\n";
            } else {
                $disabled=0;
            }
            # Add dependencies from enclosing if/endif blocks
            depends($key, $_) foreach (@kifs);
        } elsif (m|^\s*comment\s+"[^"]*"\s*$|) {
            $key = 'comment';
        } elsif (m|^\s*menu\s+"[^"]*"\s*$|) {
            $key = 'menu';
            push @kifs, '';  # placeholder for any depends on clauses
        } elsif (m|^\s*if\s+(.+?)\s*$|) {
            push @kifs, $1;
        } elsif (/^\s*end(if|menu)\s*(?:#.*)?$/) {
            # Won't handle menu/if blocks that aren't strictly
            # nested, but no one should do that!
            $#kifs >= 0 or die "Unmatched end$1 at $file:$.\n";
            pop @kifs;
        } else {
            $nothandled = 1;
        }
        next unless ($nothandled);
        # Remaining Kconfig directives only makse sense inside Kconfig blocks
        unless(defined $key) {
            print "Skipping $file:$. $_" if $debug;
            next;
        }

        # Don't process any directives in comment blocks
        next if ($key eq 'comment');

        # Only depends on lines are accepted in menus
        if ($key eq 'menu') {
            if (m|^\s*depends on\s+(.+?)\s*$|) {
                my $x = pop @kifs;
                $x .= ' && ' if($x ne '');
                $x .= "($1)";
                push @kifs, $x;
            } else {
                print "Skipping unexpected line in menu stanza $file:$.$_" if $debug;
            }
            next;
        }

        # config type
        if(/^\s*bool(ean)?\s/) {
            add_bool($key);
        } elsif (/^\s*tristate\s/) {
            add_tristate($key);
        } elsif (/^\s*int\s/) {
            add_int($key);
        } elsif (/^\s*hex\s/) {
            add_hex($key);
        } elsif (/^\s*string\s/) {
            add_string($key);

        # select and depend lines
        } elsif (m|^\s*depends on\s+(.+?)\s*$|) {
            depends($key, $1);
        } elsif (m|^\s*select\s+(\w+)(\s+if\s+(.+?))?\s*$|) {
            selects($key, $1, $3);

        # default lines
        } elsif (m|^\s*default\s+(.+?)(?:\s+if .*)?\s*$|) {
            my $o = $1;
            # Get default for int options
            if ($o =~ m|^"(\d+)"$| && exists $intopt{$key}) {
                set_int_value($key, $1);
            # Get default for hex options
            } elsif ($o =~ m|^"(0x)?([[:xdigit:]]+)"$| && exists $hexopt{$key}) {
                set_hex_value($key, $2);
            # Get default for string options
            } elsif ($o =~ m|^"(.*)"$| && exists $stringopt{$key}) {
                set_string_value($key, $1);

            # Override default for disabled tri/bool options
            # We don't care about the default for tri/bool options otherwise
            } elsif ($o =~ /^(y|n|m|"yes"|"no")$/i && exists $tristate{$key}) {
                if ($disabled) {
                    $default_seen = 1;
                    $_ = "\tdefault n\n";
                }
            } else {
                print "Unknown default at $file:$. $_\n" if $debug;
            }
        } else {
            print "Skipping $file:$. $_" if $debug;
        }
    } continue {
        print OUT $_;
    }
    close $in;
}

sub parse_versions()
{
    my $in = new FileHandle;
    my $ver;

    open $in, '<versions.txt' or die "File not found: versions.txt";
    while (<$in>) {
        if (/\[(\d+\.\d+\.\d+)\]/) {
            $ver = $1;
        } elsif (/^\s*(\w+)/) {
            $minver{$1} = $ver;
            print "minimal version for $1 is $ver\n" if $debug;
        }
    }
    close $in;
}

# Read in the .version file to get the kernel version
sub get_version()
{
    open IN, '<.version' or die 'File not found: .version';
    while (<IN>) {
        if (/KERNELRELEASE\s*[:]*[=]+\s*(\d+)\.(\d+)\.(\d+)/) {
            $version=$1;
            $level=$2;
            $sublevel=$3;
            return $kernver="$version.$level.$sublevel";
        }
    }
    close IN;
}

# Like ver1 <=> ver2, but understands X.Y.Z version strings
sub cmp_ver($$)
{
    shift =~ /(\d+)\.(\d+)\.(\d+)/;
    my ($v1_ver,$v1_level,$v1_sublevel) = ($1,$2,$3);
    shift =~ /(\d+)\.(\d+)\.(\d+)/;
    my ($v2_ver,$v2_level,$v2_sublevel) = ($1,$2,$3);

    my $cmp = $v1_ver <=> $v2_ver;
    return $cmp unless($cmp == 0);
    $cmp = $v1_level <=> $v2_level;
    return $cmp unless($cmp == 0);
    return $v1_sublevel <=> $v2_sublevel;
}

# Get kernel version
get_version();
print "Preparing to compile for kernel version $kernver\n";

# Get Kernel's config settings
%kernopts = process_config("$kernel/.config");

# Modules must be on, or building out of tree drivers makes no sense
if(!$kernopts{MODULES}) {
    print <<"EOF";
You appear to have loadable modules turned off in your kernel.  You can
not compile the v4l-dvb drivers, as modules, and use them with a kernel
that has modules disabled.

If you want to compile these drivers into your kernel, you should
use 'make kernel-links' to link the source for these drivers into
your kernel tree.  Then configure and compile the kernel.
EOF
    exit -1;
}

# Kernel < 2.6.22 is missing the HAS_IOMEM option
if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) {
    $kernopts{HAS_IOMEM} = 2;
}

# Kernel < 2.6.23 is missing the VIRT_TO_BUS option
if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) {
    # VIRT_TO_BUS -> !PPC64
    $kernopts{VIRT_TO_BUS} = 2 - $kernopts{PPC64};
}

# Get minimum kernel version for our variables
parse_versions();

kernelcheck();

open OUT, ">Kconfig" or die "Cannot write Kconfig file";
print OUT <<"EOF";
mainmenu "V4L/DVB menu"
source Kconfig.kern
config VIDEO_KERNEL_VERSION
    bool "Enable drivers not supported by this kernel"
    default n
    ---help---
      Normally drivers that require a kernel newer $version.$level.$sublevel,
      the kernel you are compiling for now, will be disabled.

      Turning this switch on will let you enabled them, but be warned
      they may not work properly or even compile.

      They may also work fine, and the only reason they are listed as
      requiring a newer kernel is that no one has tested them with an
      older one yet.

       If the driver works, please post a report at V4L mailing list:
            video4linux-list\@redhat.com.

      Unless you know what you are doing, you should answer N.

EOF

open_kconfig('../linux', '../linux/drivers/media/Kconfig');
open_kconfig('.', './Kconfig.sound');
close OUT;

# These options should default to off
disable_config('DVB_AV7110_FIRMWARE');
disable_config('DVB_CINERGYT2_TUNING');
disable_config('DVB_FE_CUSTOMISE');
disable_config('VIDEO_HELPER_CHIPS_AUTO');

# ACI needs some kernel includes that might not be there
disable_config('SOUND_ACI_MIXER') if (! -e "$kernsrc/sound/oss/sound_config.h");

# Check dependencies
my %newconfig = checkdeps();

# TODO: tell the user which options were disabled at this point
%config = %newconfig;

# Create Kconfig.kern, listing all non-media (i.e. kernel) variables
# that something depended on.
$depend{MODULES}{always} = 1;    # Make sure MODULES will appear
open OUT, '>Kconfig.kern' or die "Cannot write Kconfig.kern file: $!";
while (my ($key, $deps) = each %depend) {
    next if exists $config{$key};    # Skip media variables

    print OUT "# Needed by ", join(', ', keys %$deps), "\n";
    print OUT "config $key\n\ttristate\n";
    print OUT "\tdefault ", qw(n m y)[$kernopts{$key}], "\n\n";
}
close OUT;

# Create make dependency rules for the Kconfig file
open OUT, '>.kconfig.dep' or die "Cannot write .kconfig.dep file: $!";
print OUT 'Kconfig: ';
print OUT join(" \\\n\t", @kconfigfiles), "\n";
close OUT;

# Produce a .config file if forced or one doesn't already exist
if ($force_kconfig==1 || !-e '.config') {
    open OUT, '>.config' or die "Cannot write .config file: $!";
    foreach (keys %tristate) {
        if ($config{$_}) {
            print OUT "CONFIG_$_=", qw(n m y)[$config{$_}], "\n";
        } else {
            print OUT "# CONFIG_$_ is not set\n";
        }
    }
    while (my ($key,$value) = each %intopt) {
        print OUT "CONFIG_$key=$value\n" if($config{$key});
    }
    while (my ($key,$value) = each %hexopt) {
        print OUT "CONFIG_$key=$value\n" if($config{$key});
    }
    while (my ($key,$value) = each %stringopt) {
        print OUT "CONFIG_$key=$value\n" if($config{$key});
    }
    close OUT;
    print "Created default (all yes) .config file\n";
}

# Check for full kernel sources and print a warning
sub kernelcheck()
{
    my $fullkernel="$kernsrc/fs/fcntl.c";
    if (! -e $fullkernel) {
        print <<"EOF2";

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

EOF2
    }
}

не смог прикрепить, т.к. мне почему-то нельзя. :)
Спасибо сказали:
blackdevil
Бывший модератор
Сообщения: 2751
Статус: Добровольный помощник
ОС: Ubuntu (lts)

Re: Установка драйвера skystar2 в убунту 8

Сообщение blackdevil »

В перле я увы не силен, но все сводится к тому что файла .config нет там, где он должен быть:

Код: Выделить всё

###########################################################
# Read a .config file (first argument) and put the resulting options in a
# hash, which is returned.  This subroutine should be called in a hash
# context or it will not be very useful.
sub process_config($)
{
    my $filename = shift;
    my %conf;
    my $in = new FileHandle;

    open $in, $filename or die "File not found: $filename";
.................
Простые решения для Ubuntu-подобных систем: смотрим тут
Спасибо сказали:
Soldier
Сообщения: 144

Re: Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

файл .config я создал ручками (создал рукаими папку build а в ней уже и сам файл)
Запустил make kernel-links теперь пишет что нет .myconfig. Где его искать не знаю.
Какие сторонние программы надо для этого дела? Может ядро надо пересобрать? Если да, то с какими параметрами?
Спасибо сказали:
Аватара пользователя
romuil
Сообщения: 2095
Статус: Ромунцель
ОС: ALTLinux Sisyphus

Re: Установка драйвера skystar2 в убунту 8

Сообщение romuil »

Soldier, скажи зачем ты пытаешь скомпилировать драйвер, который и так есть в ядре?
Спасибо сказали:
Soldier
Сообщения: 144

Re: Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

По нескольким причинам, одна из которых в том, что данное устройство не создается в /dev/dvb.
В ядре я не спорю, что есть.

В принципе проблему решил, по ри загрузке все же получаю такое:

[ 26.707067] b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
[ 26.757122] flexcop-pci: will use the HW PID filter.
[ 26.757134] flexcop-pci: card revision 2
[ 26.757153] ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 21
[ 26.797112] DVB: registering new adapter (FlexCop Digital TV device)
[ 26.798972] b2c2-flexcop: MAC address = 00:08:c9:a0:50:57
[ 26.799225] b2c2-flexcop: i2c master_xfer failed
[ 26.799544] CX24123: detected CX24123
[ 26.887141] input: Power Button (FF) as /devices/virtual/input/input4
[ 26.956967] ACPI: Power Button (FF) [PWRF]
[ 26.957087] input: Power Button (CM) as /devices/virtual/input/input5
[ 27.016932] ACPI: Power Button (CM) [PWRB]
[ 27.017063] input: Sleep Button (CM) as /devices/virtual/input/input6
[ 27.096920] ACPI: Sleep Button (CM) [FUTS]
[ 27.506701] saa7146: register extension 'budget dvb'.
[ 27.672648] DVB: Unable to find symbol cx24113_attach()
[ 27.672723] b2c2-flexcop: CX24113 could NOT be attached
[ 27.799344] b2c2-flexcop: ISL6421 successfully attached
[ 27.799354] b2c2-flexcop: found 'Conexant CX24123/CX24109' .
[ 27.799361] DVB: registering frontend 0 (Conexant CX24123/CX24109)...
[ 27.799442] b2c2-flexcop: initialization of 'Sky2PC/SkyStar 2 DVB-S rev 2.8' at the 'PCI' bus controlled by a 'FlexCopIIb' complete

[ 27.801778] flexcop-pci: will use the HW PID filter.
[ 27.801792] flexcop-pci: card revision 2
[ 27.801809] ACPI: PCI Interrupt 0000:00:0d.0[A] -> GSI 17 (level, low) -> IRQ 16
[ 27.836611] DVB: registering new adapter (FlexCop Digital TV device)
[ 27.838528] b2c2-flexcop: MAC address = 00:08:c9:a0:40:c0
[ 27.838798] b2c2-flexcop: i2c master_xfer failed
[ 27.839149] CX24123: detected CX24123
[ 27.939008] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 28.420822] DVB: Unable to find symbol cx24113_attach()
[ 28.420898] b2c2-flexcop: CX24113 could NOT be attached
[ 28.421318] b2c2-flexcop: ISL6421 successfully attached
[ 28.421323] b2c2-flexcop: found 'Conexant CX24123/CX24109' .
[ 28.421328] DVB: registering frontend 1 (Conexant CX24123/CX24109)...
[ 28.421420] b2c2-flexcop: initialization of 'Sky2PC/SkyStar 2 DVB-S rev 2.8' at the 'PCI' bus controlled by a 'FlexCopIIb' complete
[ 28.424070] agpgart: Detected SiS chipset - id:1608
[ 28.429456] agpgart: AGP aperture is 64M @ 0xe8000000
[ 28.430317] ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 22
[ 28.430376] saa7146: found saa7146 @ mem d094a000 (revision 1, irq 22) (0x13c2,0x1018).
[ 28.430389] saa7146 (0): dma buffer size 192512
[ 28.430395] DVB: registering new adapter (TT-Budget-S-1401 PCI)
[ 28.487256] adapter has MAC addr = 00:d0:5c:67:c8:08
[ 28.781283] DVB: registering frontend 2 (Philips TDA10086 DVB-S)...
[ 28.781724] ACPI: PCI Interrupt 0000:00:02.7[C] -> GSI 18 (level, low) -> IRQ 17
[ 29.086364] NET: Registered protocol family 10

Еще раз обращаю внимание на:
[ 26.799225] b2c2-flexcop: i2c master_xfer failed
[ 27.838798] b2c2-flexcop: i2c master_xfer failed


еще почему-то после этой установки стал отваливаться 2 сетевой ифейс. Приходится руками поднимать его после каждой перезагрузки.
Спасибо сказали:
Soldier
Сообщения: 144

Re: Установка драйвера skystar2 в убунту 8

Сообщение Soldier »

По нескольким причинам, одна из которых в том, что данное устройство не создается в /dev/dvb.
В ядре я не спорю, что есть.

В принципе проблему решил, по ри загрузке все же получаю такое:

[ 26.707067] b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully
[ 26.757122] flexcop-pci: will use the HW PID filter.
[ 26.757134] flexcop-pci: card revision 2
[ 26.757153] ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 21
[ 26.797112] DVB: registering new adapter (FlexCop Digital TV device)
[ 26.798972] b2c2-flexcop: MAC address = 00:08:c9:a0:50:57
[ 26.799225] b2c2-flexcop: i2c master_xfer failed
[ 26.799544] CX24123: detected CX24123
[ 26.887141] input: Power Button (FF) as /devices/virtual/input/input4
[ 26.956967] ACPI: Power Button (FF) [PWRF]
[ 26.957087] input: Power Button (CM) as /devices/virtual/input/input5
[ 27.016932] ACPI: Power Button (CM) [PWRB]
[ 27.017063] input: Sleep Button (CM) as /devices/virtual/input/input6
[ 27.096920] ACPI: Sleep Button (CM) [FUTS]
[ 27.506701] saa7146: register extension 'budget dvb'.
[ 27.672648] DVB: Unable to find symbol cx24113_attach()
[ 27.672723] b2c2-flexcop: CX24113 could NOT be attached
[ 27.799344] b2c2-flexcop: ISL6421 successfully attached
[ 27.799354] b2c2-flexcop: found 'Conexant CX24123/CX24109' .
[ 27.799361] DVB: registering frontend 0 (Conexant CX24123/CX24109)...
[ 27.799442] b2c2-flexcop: initialization of 'Sky2PC/SkyStar 2 DVB-S rev 2.8' at the 'PCI' bus controlled by a 'FlexCopIIb' complete

[ 27.801778] flexcop-pci: will use the HW PID filter.
[ 27.801792] flexcop-pci: card revision 2
[ 27.801809] ACPI: PCI Interrupt 0000:00:0d.0[A] -> GSI 17 (level, low) -> IRQ 16
[ 27.836611] DVB: registering new adapter (FlexCop Digital TV device)
[ 27.838528] b2c2-flexcop: MAC address = 00:08:c9:a0:40:c0
[ 27.838798] b2c2-flexcop: i2c master_xfer failed
[ 27.839149] CX24123: detected CX24123
[ 27.939008] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
[ 28.420822] DVB: Unable to find symbol cx24113_attach()
[ 28.420898] b2c2-flexcop: CX24113 could NOT be attached
[ 28.421318] b2c2-flexcop: ISL6421 successfully attached
[ 28.421323] b2c2-flexcop: found 'Conexant CX24123/CX24109' .
[ 28.421328] DVB: registering frontend 1 (Conexant CX24123/CX24109)...
[ 28.421420] b2c2-flexcop: initialization of 'Sky2PC/SkyStar 2 DVB-S rev 2.8' at the 'PCI' bus controlled by a 'FlexCopIIb' complete
[ 28.424070] agpgart: Detected SiS chipset - id:1608
[ 28.429456] agpgart: AGP aperture is 64M @ 0xe8000000
[ 28.430317] ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 22
[ 28.430376] saa7146: found saa7146 @ mem d094a000 (revision 1, irq 22) (0x13c2,0x1018).
[ 28.430389] saa7146 (0): dma buffer size 192512
[ 28.430395] DVB: registering new adapter (TT-Budget-S-1401 PCI)
[ 28.487256] adapter has MAC addr = 00:d0:5c:67:c8:08
[ 28.781283] DVB: registering frontend 2 (Philips TDA10086 DVB-S)...
[ 28.781724] ACPI: PCI Interrupt 0000:00:02.7[C] -> GSI 18 (level, low) -> IRQ 17
[ 29.086364] NET: Registered protocol family 10

Еще раз обращаю внимание на:
[ 26.799225] b2c2-flexcop: i2c master_xfer failed
[ 27.838798] b2c2-flexcop: i2c master_xfer failed


еще почему-то после этой установки стал отваливаться 2 сетевой ифейс. Приходится руками поднимать его после каждой перезагрузки.

начал париться с настройками на спутник. Понять не могу. Вот настройки:

Код: Выделить всё

# freq pol sr fec
S 11050000 V 3300000 AUTO

Вроде все правильно. выполняю: /usr/bin/scan /home/radio/sat/60.sat
И получаю:

Код: Выделить всё

scanning /home/radio/sat/60.sat
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 11050000 V 3300000 9
>>> tune to: 11050:v:0:3300
WARNING: >>> tuning failed!!!
>>> tune to: 11050:v:0:3300 (tuning failed)
WARNING: >>> tuning failed!!!
ERROR: initial tuning failed
dumping lists (0 services)
Done.


Я так и не понял откуда берется лишний 0
Спасибо сказали: