cx88 on adm5120

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi ,
What to do to make kernel 2.6 working on adm5120 to support cx23881? I follow the steps on 
http://www.student.tue.nl/Q/t.f.a.wilms/adm5120/ 
and modify relevant CONFIG_ XXX for cx88. I built cx88 into kernel instead of modules.However, at boot time,the following error infomation appears:
Booting Linux... 
Kernel decompress ... PASSLinux version 2.6.12-rc1-mipscvs-20050403y (root@xxxxxxxxxxxx) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)) #42 Wed Jun 21 17:06:09 CST 2006
CPU revision is: 0001800b
ADM5120 board setup
System has PCI BIOS
Determined physical RAM map:
memory: 00c7b000 @ 00385000 (usable)
Built 1 zonelists
Kernel command line: 
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 128 (order: 7, 2048 bytes)
CPU clock: 175MHz
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 12600k/12780k available (2177k kernel code, 160k reserved, 610k data, 716k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
PCI: Failed to allocate mem resource #0:1000000@12000000 for 0000:00:02.0
ADM5120 LED & GPIO driver
ttyS0 at I/O 0x12600000 (irq = 1) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 2) is a ADM5120
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
cx88[0]: can't get MMIO memory @ 0x12000000
cx8800: probe of 0000:00:02.0 failed with error -22
cx2388x blackbird driver version 0.0.4 loaded
ADM5120 board flash (0x200000 at 0x1fc00000)
ADM5120: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
ADM5120: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
ftl_cs: FTL header not found.
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
NET: Registered protocol family 17
Freeing unused kernel memory: 716k freed
Bad inittab entry: echo "start is suceed... !!!"
Algorithmics/MIPS FPU Emulator v1.5
BusyBox v1.01 (2006.01.05-02:44+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
Pease notice these items:
PCI: Failed to allocate mem resource #0:1000000@12000000 for 0000:00:02.0
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
cx88[0]: can't get MMIO memory @ 0x12000000
cx8800: probe of 0000:00:02.0 failed with error -22
And I found the following information from ADM5120 Datasheet:
For PCI application, ADM5120 can be used as PCI host. The PCI_COnfiguration_Addr and PCI_Configuration_Data are used to access the PCI configuration space and configure the PCI device. While PCI_IO and PCI_Memory are used to access PCI device for IO and Memory space. For more detail information refer Chapter?4
?1140-0000H to 114F-FFFFH is PCI memory access
?1150-0000H to 115F-FFEFH is PCI I/O space
?115F-FFF0H is PCI configuration address port (Dword Access only)
?115F-FFF8H is PCI configuration data port(Dword Access only)
It looks like that pci mem map is wrong.
there are some other information:
/proc # cat pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: PCI device 1317:5120 (Linksys) (rev 0).
Non-prefetchable 32 bit memory at 0xf0000000 [0xffffffff].
Bus 0, device 2, function 0:
Multimedia video controller: Conexant Winfast TV2000 XP (rev 5).
IRQ 6.
Master Capable. No bursts. Min Gnt=20.Max Lat=55.
Non-prefetchable 32 bit memory at 0x12000000 [0x114fffff].
/proc # cat iomem
00385000-00ffffff : System RAM
11200000-11200084 : adm5120-hcd
11400000-114fffff : PCI memory space
/proc # cat ioports
11500000-115fffef : PCI IO space

And now,you may think the kernel source code about pci mem map is wrong.But how about the following case?
there is another Compression/Decompression Card based on VW2010 chip, runing on same kernel and adm5120 board, it appears differently:
/proc # cat pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: PCI device 1317:5120 (Linksys) (rev 0).
Non-prefetchable 32 bit memory at 0xf0000000 [0xffffffff].
Bus 0, device 2, function 0:
Multimedia video controller: Vweb Corp VW2010 (rev 0).
IRQ 6.
Non-prefetchable 32 bit memory at 0x11400000 [0x1141ffff].
Non-prefetchable 32 bit memory at 0x11420000 [0x11420fff].
Non-prefetchable 32 bit memory at 0x11421000 [0x11421fff].
/proc # cat iomem
00385000-00ffffff : System RAM
11200000-11200084 : adm5120-hcd
11400000-114fffff : PCI memory space
11400000-1141ffff : 0000:00:02.0
11420000-11420fff : 0000:00:02.0
11421000-11421fff : 0000:00:02.0
/proc # cat ioports
11500000-115fffef : PCI IO space

The pci mem map is ok!

And now may i conclude the tv-card based cx23881 is wrong ? otherwise, how to fix it?
thanks !
--

Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

[Index of Archives]     [Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Util Linux]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]
  Powered by Linux