[ldv-project] Error While testing Linux Kernel Driver

Ilja Zakharov ilja.zakharov at ispras.ru
Fri Jun 5 19:40:03 MSK 2015


Hi Shyamjith,

Your installation warnings look strange but not critical. Also parameter 
"drivers=" should contain either relative path to the driver or 
subsystem in the kernel or absolute path to an archive with a driver and 
build script. Examples:

"drivers=drivers/net/usb/cdc-phonet.ko"
"drivers=drivers/net/usb/"
"drivers=/home/user/mypath/to/driver.tar.bz" (works only without 
"kernel_driver=1" flag)

And note, that it is better to use rules with postfix "a" like 
"rule_models=32_7a".

Regarding the problem with Wait3 unfortunately I cannot recommend 
something except switching to perl 18 or even earlier, since we have 
never met such behaviour. By the way we can provide you with a Docker 
image with both sources and installation to run LDV without any 
dependencies installation. You can download it from there: 
http://linuxtesting.org/downloads/ldv-src-docker-0.8.tar.gz  and learn 
how to deal with it here: 
http://forge.ispras.ru/projects/ldv/wiki/LDV_Tools_in_Docker

-- 
With best regards,
Ilja Zakharov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org
e-mail: ilja.zakharov at ispras.ru

05.06.2015 11:59, Shyamjith K V ?????:
> Hi,
>  I am finding some difficulties in testing a linux kernel driver with LDV.
> Before going to the error , i want to confirm that my LDV console-tool 
> is installed correctly
>
> The following were the last few console outputs of my "make" command
>
> *
> *
>
>     */home/acsia/.rvm/gems/ruby-2.2.1/gems/bones-3.8.3/lib/bones/helpers.rb:7:
>     warning: Insecure world writable dir
>     /home/acsia/perl5/perlbrew/bin in PATH, mode 040777
>     cd pkg/logging-1.4.3
>     WARNING:  licenses is empty, but is recommended.  Use a license
>     abbreviation from:
>     http://opensource.org/licenses/alphabetical
>     WARNING:  open-ended dependency on little-plugger (>= 1.1.3) is
>     not recommended
>       if little-plugger is semantically versioned, use:
>         add_runtime_dependency 'little-plugger', '~> 1.1', '>= 1.1.3'
>     WARNING:  open-ended dependency on flexmock (>= 0, development) is
>     not recommended
>       if flexmock is semantically versioned, use:
>         add_development_dependency 'flexmock', '~> 0'
>     WARNING:  open-ended dependency on bones-git (>= 0, development)
>     is not recommended
>       if bones-git is semantically versioned, use:
>         add_development_dependency 'bones-git', '~> 0'
>     WARNING:  open-ended dependency on bones-extras (>= 0,
>     development) is not recommended
>       if bones-extras is semantically versioned, use:
>         add_development_dependency 'bones-extras', '~> 0'
>     WARNING:  open-ended dependency on bones (>= 3.8.3, development)
>     is not recommended
>       if bones is semantically versioned, use:
>         add_development_dependency 'bones', '~> 3.8', '>= 3.8.3'
>     WARNING:  See http://guides.rubygems.org/specification-reference/
>     for help
>       Successfully built RubyGem
>       Name: logging
>       Version: 1.4.3
>       File: logging-1.4.3.gem
>     mv logging-1.4.3.gem ../logging-1.4.3.gem
>     cd -
>     make[1]: Leaving directory
>     `/home/acsia/Desktop/LDV/ldv-tools/shared/ruby'*
>
>
>
>
> and the following were the logs after /sudo 
> prefix=/path/to/installation/dir make install-console-tools/
>
>     *
>     **cd gems/logging && gem install --install-dir
>     /home/acsia/Desktop/LDV/consol-tool-5.22.0/shared/ruby/gem
>     --bindir
>     /home/acsia/Desktop/LDV/consol-tool-5.22.0/shared/ruby/bin
>     --no-rdoc --no-ri pkg/logging*.gem
>     **Fetching: little-plugger-1.1.3.gem (100%)
>     **Successfully installed little-plugger-1.1.3
>     **Successfully installed logging-1.4.3
>     **2 gems installed*
>
>
>
> is my console-tools installed properly??
>
>
> Now come to the error that i was faced..
>
> I have Downloaded linux-2.36.tar.bz2 and placed it it inside a sample 
> directory..and run
>
> *ldv-manager "envs=linux-2.6.36.tar.bz2" kernel_driver=1 
> "drivers=/home/acsia/Desktop/LDV/new_result/linux-2.6.36/drivers" 
> "rule_models=32_7 32_1"*
>
> But i am getting the following error...
>
>
>     *Compilation failed in require at
>     /home/acsia/Desktop/LDV/consol-tools/drv-env-gen/../shared/perl/Utils.pm
>     line 13.
>     BEGIN failed--compilation aborted at
>     /home/acsia/Desktop/LDV/consol-tools/drv-env-gen/../shared/perl/Utils.pm
>     line 13.
>     Compilation failed in require at
>     /home/acsia/Desktop/LDV/consol-tools/ldv-core/../drv-env-gen/drv-env-gen
>     line 31.
>     BEGIN failed--compilation aborted at
>     /home/acsia/Desktop/LDV/consol-tools/ldv-core/../drv-env-gen/drv-env-gen
>     line 31.
>     No such file or directory at
>     /home/acsia/Desktop/LDV/consol-tools/ldv-core/ldv-core line 311.
>     ldv-core: WARNING: Fatal error.  Stopping services before reporting...
>     ldv-core: WARNING: Killing build...
>     ldv-core: WARNING: BCE failed*
>
>
> The line number 13 inside Utils.pm is *use Proc::Wait3*
> **i have that tool already installed
> *locate Wait3* give as follows
> /usr/local/lib/perl5/site_perl/5.22.0/x86_64-linux/auto/Proc/Wait3/Wait3.so
>
>
> NOTE: i am using perl-5.22.0
>
> output */which per/*/*l*/ command is
>
> /home/acsia/perl5/perlbrew/perls/perl-5.22.0/bin/perl
>
> but the perl used inside some files like ldv-core is
> #!/usr/bin/perl
>
> Please guide me to resolve this problem ...... sorry if i included too 
> much information
>
>
>
>
> -- 
> Regards,
> Shyam
>
>
>
> _______________________________________________
> ldv-project mailing list
> ldv-project at linuxtesting.org
> http://linuxtesting.org/cgi-bin/mailman/listinfo/ldv-project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxtesting.org/pipermail/ldv-project/attachments/20150605/780958d3/attachment.html>


More information about the ldv-project mailing list