Menu

i810 graphic adapter with Directfb

2002-04-12
2002-04-14
  • Joel Franco Guzmán

    Hi,

      plz, i have tried to activate the DirectFB to the mey i810 device.
    I use the debian testing release. (Xfree 4.1)
    The steps was:
      install normal XFree4.1
      patch the clean kernel 2.4.18 with the linux-i810fb-0.0.23.tar.bz2 and then with linux-i810fb-0.0.24.tar.bz2.
      i activated all the options under the Console drivers/Frame-buffer support:
    <*>   Intel 810/815 support (EXPERIMENTAL)                                      [*]         use VESA GTF for Video Timings                                        [*]         enable accelerated drawing functions                                   [*]         enable display rotation code                                                [*]         enable device interface support (EXPERIMENTAL)

    compile and run the kernel:

    Linux version 2.4.18 (root@thor) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Qua Abr 10 19:12:12 BRT 2002
    BIOS-provided physical RAM map:
    BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
    BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
    BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
    BIOS-e820: 0000000000100000 - 000000000fee2ec0 (usable)
    BIOS-e820: 000000000fee2ec0 - 000000000fee6ec0 (ACPI data)
    BIOS-e820: 000000000fee6ec0 - 000000000feeef00 (ACPI NVS)
    BIOS-e820: 000000000feeef00 - 0000000010000000 (reserved)
    BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
    BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
    BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
    On node 0 totalpages: 65250
    zone(0): 4096 pages.
    zone(1): 61154 pages.
    zone(2): 0 pages.
    Kernel command line: auto BOOT_IMAGE=Linux ro root=306 hdc=ide-scsi hdd=ide-scsi video=i810fb:xres=1024:yres=768:hsync1=30:hsync2=70:vsync1=50:vsync2=160:vram=4:bpp=16:accel:mtrr:hwcur
    ide_setup: hdc=ide-scsi
    ide_setup: hdd=ide-scsi
    Initializing CPU#0
    Detected 868.652 MHz processor.
    Console: colour VGA+ 80x25
    Calibrating delay loop... 1730.15 BogoMIPS
    Memory: 254216k/261000k available (1437k kernel code, 6396k reserved, 400k data, 232k init, 0k highmem)
    Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
    Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
    Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
    CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
    CPU: L1 I cache: 16K, L1 D cache: 16K
    CPU: L2 cache: 256K
    CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#0.
    CPU:     After generic, caps: 0383fbff 00000000 00000000 00000000
    CPU:             Common caps: 0383fbff 00000000 00000000 00000000
    CPU: Intel Pentium III (Coppermine) stepping 06
    Enabling fast FPU save and restore... done.
    Enabling unmasked SIMD FPU exception support... done.
    Checking 'hlt' instruction... OK.
    POSIX conformance testing by UNIFIX
    mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
    mtrr: detected mtrr type: Intel
    PCI: PCI BIOS revision 2.10 entry at 0xfd7ec, last bus=1
    PCI: Using configuration type 1
    PCI: Probing PCI hardware
    Unknown bridge resource 2: assuming transparent
    PCI: Using IRQ router PIIX [8086/2410] at 00:1f.0
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    IBM machine detected. Enabling interrupts during APM calls.
    Starting kswapd
    Journalled Block Device driver loaded
    ACPI: Core Subsystem version [20011018]
    ACPI: Subsystem enabled
    ACPI: System firmware supports S0 S1 S4 S5
    Processor[0]: C0 C1, 8 throttling states
    ACPI: Power Button (FF) found
    ACPI: Multiple power buttons detected, ignoring fixed-feature
    ACPI: Power Button (CM) found
    parport0: PC-style at 0x378 (0x778) [PCSPP(,...)]
    parport0: irq 7 detected
    PCI: Found IRQ 11 for device 00:01.0
    Linux agpgart interface v0.99 (c) Jeff Hartmann
    agpgart: Maximum main memory to use for agp memory: 202M
    agpgart: Detected an Intel i810 E Chipset.
    agpgart: AGP aperture is 64M @ 0xf8000000
    Console: switching to colour frame buffer device 128x48
    fb0: Intel 810E Framebuffer Device v0.0.24, Tony Daplas
         Video RAM      : 4096K
         Mode           : 1024x768-16bpp
         Acceleration   : enabled
         MTRR           : enabled
         External VGA   : disabled
         Hardware cursor: enabled
         Video Timings  : VESA GTF (US)
         Rotation Code  : built
         Interface      : enabled
         Memory Tiling  : disabled
    pty: 256 Unix98 ptys configured
    Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    ttyS00 at 0x03f8 (irq = 4) is a 16550A
    ttyS01 at 0x02f8 (irq = 3) is a 16550A
    Real Time Clock Driver v1.10e
    i810_rng: RNG not detected
    ppdev: user-space parallel port driver
    block: 128 slots per queue, batch=32
    Uniform Multi-Platform E-IDE driver Revision: 6.31
    ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    PIIX4: IDE controller on PCI bus 00 dev f9
    PIIX4: chipset revision 2
    PIIX4: not 100% native mode: will probe irqs later
        ide0: BM-DMA at 0xfff0-0xfff7, BIOS settings: hda:DMA, hdb:pio
        ide1: BM-DMA at 0xfff8-0xffff, BIOS settings: hdc:DMA, hdd:DMA
    hda: Maxtor 33073H3, ATA DISK drive
    hdc: LG DVD-ROM DRD-8160B, ATAPI CD/DVD-ROM drive
    hdd: Hewlett-Packard CD-Writer Plus 9100, ATAPI CD/DVD-ROM drive
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    ide1 at 0x170-0x177,0x376 on irq 15
    hda: 60032448 sectors (30737 MB) w/2048KiB Cache, CHS=3736/255/63, UDMA(66)
    Partition check:
    hda: hda1 hda2 < hda5 hda6 hda7 hda8 >
    Floppy drive(s): fd0 is 1.44M
    FDC 0 is a post-1991 82077
    loop: loaded (max 8 devices)
    eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
    eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
    PCI: Found IRQ 5 for device 01:05.0
    eth0: OEM i82557/i82558 10/100 Ethernet, 00:02:55:32:21:02, IRQ 5.
      Board assembly 729857-009, Physical connectors present: RJ45
      Primary interface chip i82555 PHY #1.
      General self-test: passed.
      Serial sub-system self-test: passed.
      Internal registers self-test: passed.
      ROM checksum self-test: passed (0x04f4518b).
    [drm] AGP 0.99 on Intel i810 @ 0xf8000000 64MB
    [drm] Initialized i810 1.1.0 20010616 on minor 0
    SCSI subsystem driver Revision: 1.00
    scsi0 : SCSI host adapter emulation for IDE ATAPI devices
      Vendor: LG        Model: DVD-ROM DRD8160B  Rev: 1.00
      Type:   CD-ROM                             ANSI SCSI revision: 02
      Serial sub-system self-test: passed.
      Internal registers self-test: passed.
      ROM checksum self-test: passed (0x04f4518b).
    [drm] AGP 0.99 on Intel i810 @ 0xf8000000 64MB
    [drm] Initialized i810 1.1.0 20010616 on minor 0
    SCSI subsystem driver Revision: 1.00
    scsi0 : SCSI host adapter emulation for IDE ATAPI devices
      Vendor: LG        Model: DVD-ROM DRD8160B  Rev: 1.00
      Type:   CD-ROM                             ANSI SCSI revision: 02
      Vendor: HP        Model: CD-Writer+ 9100   Rev: 1.0c
      Type:   CD-ROM                             ANSI SCSI revision: 02
    Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
    Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
    sr0: scsi3-mmc drive: 16x/48x cd/rw xa/form2 cdda tray
    Uniform CD-ROM driver Revision: 3.12
    sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
    es1371: version v0.30 time 19:16:00 Apr 10 2002
    PCI: Found IRQ 9 for device 01:04.0
    PCI: Sharing IRQ 9 with 00:1f.3
    es1371: found chip, vendor id 0x1274 device id 0x1371 revision 0x06
    es1371: found es1371 rev 6 at io 0x7880 irq 9
    es1371: features: joystick 0x0
    ac97_codec: AC97 Audio codec, id: 0x4352:0x5913 (Cirrus Logic CS4297A rev A)
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP
    IP: routing cache hash table of 2048 buckets, 16Kbytes
    TCP: Hash tables configured (established 16384 bind 16384)
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    VFS: Mounted root (ext2 filesystem) readonly.
    Freeing unused kernel memory: 232k freed
    Adding Swap: 289128k swap-space (priority -1)
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,8), internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    eth0: 0 multicast blocks dropped.
    /dev/vmmon: Module vmmon: registered with major=10 minor=165 tag=$Name: build-1790 $
    /dev/vmmon: Module vmmon: initialized
    /dev/vmnet: open called by PID 322 (vmnet-bridge)
    /dev/vmnet: hub 0 does not exist, allocating memory.
    /dev/vmnet: port on hub 0 successfully opened
    bridge-eth0: up
    bridge-eth0: attached
    /dev/vmnet: open called by PID 340 (vmnet-natd)
    /dev/vmnet: hub 8 does not exist, allocating memory.
    /dev/vmnet: port on hub 8 successfully opened
    memory : cd8ba1e0
    memory : 00000000
    memory : cd8ba220
    /dev/vmnet: open called by PID 628 (vmnet-netifup)
    /dev/vmnet: port on hub 8 successfully opened
    /dev/vmnet: open called by PID 638 (vmnet-dhcpd)
    /dev/vmnet: port on hub 8 successfully opened
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range
    i810fb: required video memory, 4MB, is out of range

    then i copy the binary i810fb-0.0.13-xfree86.tar.bz2 to the modules of the XFree 4.1.

    Then installed the DirectFB 0.9.9 and patched it with DFB-0.9.9-i810-0.0.2.tar.bz2.

    OK.
    Then when the examples of the df_dok, and it failed:

    joel@thor:/usr/local/src/i810fb-0.0.13-xfree86$ df_dok

           ----------------------- DirectFB v0.9.9 ---------------------
                  (c)2000-2002  convergence integrated media GmbH 
            -----------------------------------------------------------

    (*) Single Application Core. (with MMX support)
    (*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
    (!) DirectFB/core/vt: Error opening `/dev/tty0'!
        --> Permission denied
    (!) DirectFB/Core: Error during initialization: dfb_vt_initialize()
    df_dok.c <652>:
        (#) DirectFBError [DirectFBCreate( &dfb )]: General initialization failure!

    Someone have some sugestions???????

    Thank U.

     
    • Antonino Daplas

      Antonino Daplas - 2002-04-14

      You need to be root to be able to use DirectFB in single app mode.  If you compile DirectFB with --enable-multi-app flag enabled, you can run DirectFB as a regular user.  Unfortunately, multi-app is not working with DirectFB 0.9.9.

       

Log in to post a comment.