View previous topic :: View next topic |
Author |
Message |
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Oct 09, 2012 8:37 am Post subject: [SOLVED] rts_bpp & Gentoo kernel 3.6.0, 3.6.1 |
|
|
Hi
I am making a new topic for rts_bpp & Gentoo kernel 3.6.0, 3.6.1
Previous one, RTL8411 - rts_bpp is here:
https://forums.gentoo.org/viewtopic-t-922794.html
For the last months the solution from topic above was fine for every new kernel: make, make install, depmod, reboot and card reader did work.
Unfortunately it doesn't work with new Gentoo-kernel 3.6.0 & 3.6.1. I tough maybe there is a problem with a new kernel, but developer who did make this driver (rts_bpp) said it works for him for a new kernels. So I've made some research for Gentoo.
Code: | * sys-kernel/gentoo-sources
Latest version available: 3.6.1
Latest version installed: 3.6.1
Size of files: 80,408 kB
|
[1] Looks like here everything is OK like for previous kernels:
Code: | # make
cp -f ./define.release ./define.h
make -C /lib/modules/3.6.1-gentoo/build/ SUBDIRS=/mnt/rts_bpp modules
make[1]: Entering directory `/usr/src/linux-3.6.1-gentoo'
CC [M] /mnt/rts_bpp/rtsx.o
CC [M] /mnt/rts_bpp/rtsx_chip.o
CC [M] /mnt/rts_bpp/rtsx_transport.o
CC [M] /mnt/rts_bpp/rtsx_scsi.o
CC [M] /mnt/rts_bpp/rtsx_card.o
CC [M] /mnt/rts_bpp/general.o
CC [M] /mnt/rts_bpp/sd.o
CC [M] /mnt/rts_bpp/xd.o
CC [M] /mnt/rts_bpp/ms.o
LD [M] /mnt/rts_bpp/rts_bpp.o
Building modules, stage 2.
MODPOST 1 modules
LD [M] /mnt/rts_bpp/rts_bpp.ko
make[1]: Leaving directory `/usr/src/linux-3.6.1-gentoo' |
Code: |
# make install
cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f |
[2] But as a result, after rebooting computer there is no driver:
Code: | # lspci -v
...
06:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289
(rev 01)
Subsystem: Realtek Semiconductor Co., Ltd. Device 5289
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f7800000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00 |
[3] What I realized, from the Gentoo-kernel 3.6.0 & 3.6.1 there is some difference in /lib64/modules after installing driver:
Code: | # ls -la /lib64/modules/
total 28
drwxr-xr-x 7 root root 4096 Oct 8 22:35 .
drwxr-xr-x 11 root root 4096 Oct 8 19:12 ..
drwxr-xr-x 6 root root 4096 Aug 27 22:32 3.5.2-gentoo
drwxr-xr-x 6 root root 4096 Sep 14 10:00 3.5.3-gentoo
drwxr-xr-x 6 root root 4096 Sep 26 10:45 3.5.4-gentoo
drwxr-xr-x 6 root root 4096 Oct 6 16:03 3.6.0-gentoo
drwxr-xr-x 6 root root 4096 Oct 8 22:32 3.6.1-gentoo
|
For 3.5.4 we have scsi folder, and there is a driver:
Code: | # ls -la /lib64/modules/3.5.4-gentoo/kernel/drivers/
total 24
drwxr-xr-x 6 root root 4096 Sep 18 09:32 .
drwxr-xr-x 5 root root 4096 Sep 18 09:32 ..
drwxr-xr-x 3 root root 4096 Sep 18 09:32 char
drwxr-xr-x 3 root root 4096 Sep 18 09:32 net
drwxr-xr-x 2 root root 4096 Sep 18 09:42 scsi
drwxr-xr-x 3 root root 4096 Sep 18 09:32 staging
|
Code: | # ls -la /lib64/modules/3.5.4-gentoo/kernel/drivers/scsi/
total 452
drwxr-xr-x 2 root root 4096 Sep 18 09:42 .
drwxr-xr-x 6 root root 4096 Sep 18 09:32 ..
-rw-r--r-- 1 root root 448894 Sep 18 09:42 rts_bpp.ko
-rw-r--r-- 1 root root 2991 Sep 18 09:32 scsi_wait_scan.ko
|
For Gentoo kernels 3.6.0 & 3.6.1 there is scsi file instead of scsi folder:
Code: | # ls -la /lib64/modules/3.6.0-gentoo/kernel/drivers/
total 460
drwxr-xr-x 5 root root 4096 Oct 6 15:53 .
drwxr-xr-x 5 root root 4096 Oct 3 20:43 ..
drwxr-xr-x 3 root root 4096 Oct 3 20:43 char
drwxr-xr-x 3 root root 4096 Oct 3 20:43 net
-rw-r--r-- 1 root root 448862 Oct 6 16:03 scsi
drwxr-xr-x 3 root root 4096 Oct 3 20:43 staging
|
Code: | # ls -la /lib64/modules/3.6.1-gentoo/kernel/drivers/
total 460
drwxr-xr-x 5 root root 4096 Oct 8 22:32 .
drwxr-xr-x 5 root root 4096 Oct 8 22:28 ..
drwxr-xr-x 3 root root 4096 Oct 8 22:28 char
drwxr-xr-x 3 root root 4096 Oct 8 22:28 net
-rw-r--r-- 1 root root 448862 Oct 8 22:32 scsi
drwxr-xr-x 3 root root 4096 Oct 8 22:28 staging
|
All I did for installations rts_bpp driver for those 2 kernels (3.6.0 & 3.6.1) was the same like for many others kernels before:
Code: |
# make install
cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f |
So whats wrong? Why I have scsi file instead scsi folder in those new kernels? Bellow header listing of this starnge scsi file:
Code: | ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 331920 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 64 (bytes)
Number of section headers: 35
Section header string table index: 32 |
Last edited by Xywa on Tue Oct 09, 2012 11:01 am; edited 1 time in total |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Tue Oct 09, 2012 8:53 am Post subject: |
|
|
Err, the basics of the shell: You're copying the file "rts_bpp.ko" to a file called "scsi". |
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Oct 09, 2012 10:24 am Post subject: |
|
|
Gusar wrote: | Err, the basics of the shell: You're copying the file "rts_bpp.ko" to a file called "scsi". |
It did work for the last few kernels:
Code: | # make install
cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f |
Maybe because there was no scsi folder, so option -f (for cp) made a scsi file (instead of coping this file inside scsi folder)
Code: | -f, --force
if an existing destination file cannot be opened, remove it and try again (redundant if the -n option is used)
|
Anyway, I did manually scsi folder, did
Code: | # make install
cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f |
again. I have got scsi folder and there is a driver inside scsi:
Code: | # ls -la /lib64/modules/3.6.1-gentoo/kernel/drivers/
total 24
drwxr-xr-x 6 root root 4096 Oct 9 11:16 .
drwxr-xr-x 5 root root 4096 Oct 8 22:28 ..
drwxr-xr-x 3 root root 4096 Oct 8 22:28 char
drwxr-xr-x 3 root root 4096 Oct 8 22:28 net
drwxr-xr-x 2 root root 4096 Oct 9 11:16 scsi
drwxr-xr-x 3 root root 4096 Oct 8 22:28 staging |
Code: | # ls -la /lib64/modules/3.6.1-gentoo/kernel/drivers/scsi/
total 448
drwxr-xr-x 2 root root 4096 Oct 9 11:16 .
drwxr-xr-x 6 root root 4096 Oct 9 11:16 ..
-rw-r--r-- 1 root root 448862 Oct 9 11:16 rts_bpp.ko
|
UPDATE
OK It works.
Code: | [code]# make install
cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f[/code]
|
The problem is if there is no scsi folder, so comannd above (make install) is creating scsi file instead of coping a driver inside /scsi file.
So after manually creating scsi folder, did make install again, depmod and everything works fine.
So Gusar,
should it be a
Code: | cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi/ -f |
instead of
Code: | cp rts_bpp.ko /lib/modules/3.6.1-gentoo/kernel/drivers/scsi -f |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|