Slackware inside Pandora.


Tried the omapfb X driver.


Got a black screen.


Here's my log :



Code:
[   239.894] (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:

omap1/2/3, S1D13745, HWA742

[   239.895] (--) using VT number 7

[   239.915] (WW) Falling back to old probe method for OMAPFB

[   239.916] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[   239.916] (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory

[   239.916] (WW) Can't autodetect LCD controller, assuming internal

[   239.917] (II) LCD controller: internal

[   239.917] (II) omapfb(0): Base plane capabilities:

[   239.917] (II) omapfb(0): Base plane supports the following image formats:

[   239.917] (II) omapfb(0): VideoRAM: 3000KiB (SDRAM)

[   239.917] (**) omapfb(0): Depth 16, (--) framebuffer bpp 16

[   239.917] (==) omapfb(0): RGB weight 565

[   239.917] (==) omapfb(0): Default visual is TrueColor

[   239.917] (II) omapfb(0): Detecting outputs

[   239.918] (II) omapfb(0): Output lcd using monitor section Monitor0

[   239.918] (WW) omapfb(0): OMAPFBDSSOutputReadValue: reading value from sysfs entry timings for lcd failed: No such file or directory

[   239.918] (II) omapfb(0): Output tv has no monitor section

[   239.920] (II) omapfb(0): overlayPoolInit: Found 3 framebuffers, 3 overlays and 2 managers

[   239.920] (II) omapfb(0): EDID for output lcd

[   239.920] (II) omapfb(0): Printing probed modes for output tv

[   239.920] (II) omapfb(0): Modeline "720x574"x25.0   13.50  720 732 788 864  574 579 615 625 (15.6 kHz)

[   239.920] (II) omapfb(0): Output lcd disconnected

[   239.920] (II) omapfb(0): Output tv connected

[   239.921] (II) omapfb(0): Using exact sizes for initial modes

[   239.921] (II) omapfb(0): Output tv using initial mode 720x574

[   239.921] (II) omapfb(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.

[   239.921] (II) omapfb(0): XRandR extension initialized

[   239.991] (--) omapfb(0): Virtual size is 800x574 (pitch 800)

[   239.991] (**) omapfb(0):  Mode "720x574": 13.5 MHz, 15.6 kHz, 25.0 Hz

[   239.991] (II) omapfb(0): Modeline "720x574"x25.0   13.50  720 732 788 864  574 579 615 625 (15.6 kHz)

[   239.991] (==) omapfb(0): DPI set to (96, 96)

[   239.992] (II) Loading sub module "fb"

[   239.992] (II) LoadModule: "fb"

[   240.093] (II) Loading /usr/lib/xorg/modules/libfb.so

[   240.257] (II) Module fb: vendor="X.Org Foundation"

[   240.262]  compiled for 1.9.5, module version = 1.0.0

[   240.262]  ABI class: X.Org ANSI C Emulation, version 0.4

[   240.575] (EE) omapfb(0): FBIOBLANK: Invalid argument

[   240.576] (==) omapfb(0): DPMS enabled

[   240.576] (II) omapfb(0): RandR 1.2 enabled, ignore the following RandR disabled message.

[   240.576] (--) RandR disabled


I wonder how to activate the LCD through xorg.conf .
 
Nope, the real problem seems to be around :



Code:
[   188.257] (II) config/udev: Adding input device nub0 (/dev/input/event2)

[   188.258] (II) No input driver/identifier specified (ignoring)

[   188.259] (II) config/udev: Adding input device nub0 (/dev/input/js0)

[   188.259] (II) No input driver/identifier specified (ignoring)

[   188.261] (II) config/udev: Adding input device nub1 (/dev/input/event3)

[   188.261] (II) No input driver/identifier specified (ignoring)

[   188.262] (II) config/udev: Adding input device nub1 (/dev/input/js1)

[   188.262] (II) No input driver/identifier specified (ignoring)

[   188.348] (WW) omapfb(0): overlayPoolApplyConnections: Disconnecting overlay 0

[   188.349] (WW) omapfb(0): overlayPoolApplyConnections: Connecting 0 -> 0 -> 1

[   209.833]

Backtrace:

[   217.080] Segmentation fault at address 0x18
 
Another thing (using autoloaded fb driver), i can't see picodrive rendering, but pcsx rearmed works fine. Fun.
 
The distro's install is made through my PC. I grouped useful scripts/sources/etc. that i put on the SD too.


After that, i prefer to compile the kernel and libraries on the host, even if it's slow (can do other things aside).


I currently struggle with the TI graphics drivers.
 
The distro's install is made through my PC. I grouped useful scripts/sources/etc. that i put on the SD too.


After that, i prefer to compile the kernel and libraries on the host, even if it's slow (can do other things aside).


I currently struggle with the TI graphics drivers.
ok. when are you gonna do a video for us to see it running on your unit. though im a linux noob. I have been installing slackware on my laptops since version 9 or so. I currently have 13.37 install on my win7 installation through virtualbox, (first time). I 've had always had a dual boot system.
 
Well there's many things to setup. You can taste some screenshots of the 12.2 up in this thread.


I now succeded into installing a 13.37. I even run KDE 4 ^^.


Basic controls works, but some things are not yet supported by 3.2.1 kernel, like cpu mHz settings.
 
I'm a bit stuck with the 3d driver.


Dunno if it's the correct way to (un)set toolchain pathes.


I want to compile native :



Code:
#Rules.make


################# FIELDS MODIFIABLE BY THE USER ###############################

############### All the fields below are mandatory ############################

# Set home area (ex /home/user123/)

HOME=/root/


# Set installation folder (typically, OMAP35x_Graphics_***)

GRAPHICS_INSTALL_DIR=$(HOME)/Graphics_SDK


# Location of demo executables and install information

GFX_DEMOS_EXECPATH=$(GRAPHICS_INSTALL_DIR)/gfxsdkdemos


# Toolchain path

CSTOOL_DIR=/usr/bin

CSTOOL_PREFIX=

CSTOOL_PATH=$(CSTOOL_DIR)/bin

CSTOOL_LIBSTDC++_PATH=$(CSTOOL_DIR)/lib


# Set the kernel installation path

KERNEL_INSTALL_DIR=/usr/src/linux


# Target NFS root file system location

#TARGETFS_INSTALL_DIR=/avme_nfs_root/users/mahesh/targetfs

TARGETFS_INSTALL_DIR=/
 
Thx.


Do i still need those 4 :


0002-Compile-fixes-for-recent-kernels.patch


0001-OMAP3-SGX-TI-4.00.00.01-2.6.37-rc1-use-semaphore-ove.patch


fix-2.6.27.patch


spinlock_3430.patch



Code:
bash-4.1# cd Graphics_SDK/GFX_Linux_KM/

bash-4.1# ls

COPYING  INSTALL  Kbuild  Makefile  README  eurasiacon  include4  services4  tools

bash-4.1# emacs Makefile

bash-4.1# patch < ../../sgx_4_00_00_01_3.2.patch

patching file Makefile

Hunk #1 succeeded at 160 (offset -3 lines).

can't find file to patch at input line 16

Perhaps you should have used the -p or --strip option?

The text leading up to this was:

--------------------------

|diff -urp GFX_Linux_KM_/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c

|--- GFX_Linux_KM_/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c  2012-02-13 00:18:55.966091002 +0200

|+++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c   2012-02-13 00:20:47.906091001 +0200

--------------------------

File to patch: ^C

bash-4.1# cd ..

bash-4.1# patch < ../sgx_4_00_00_01_3.2.patch

patching file Makefile

Hunk #1 FAILED at 163.

1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej

can't find file to patch at input line 16

Perhaps you should have used the -p or --strip option?

The text leading up to this was:

--------------------------

|diff -urp GFX_Linux_KM_/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c

|--- GFX_Linux_KM_/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c  2012-02-13 00:18:55.966091002 +0200

|+++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c   2012-02-13 00:20:47.906091001 +0200

--------------------------

File to patch: ^C

bash-4.1# ls

GFX_Linux_KM   Makefile.KM	Makefile.rej  Rules.make   addkernelmodules.sh  gfx_rel_es3.x  gfxsdkdemos  tools

GFX_Linux_SDK  Makefile.SDK   README.PDF	Rules.make~  attributions.txt 	gfx_rel_es5.x  include  	uninstall

Makefile   	Makefile.orig  README.TXT	TSPA.txt 	gfx_rel_es2.x    	gfx_rel_es6.x  targetfs

?


---EDIT :


Maybe it's because i removed debug folders to gain space ?


Or i patched with 0002-Compile-fixes-for-recent-kernels.patch before ?
 
Last edited by a moderator:
Redid it from zero, patched with your patch only :



Code:
bash-4.1$ patch -p1 < ../../sgx_4_00_00_01_3.2.patch

patching file Makefile

Hunk #1 succeeded at 160 (offset -3 lines).

patching file services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c

patching file services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c

patching file services4/srvkm/env/linux/osfunc.c

patching file services4/system/omap3430/sysutils_linux.c

Hunk #1 FAILED at 33.

1 out of 1 hunk FAILED -- saving rejects to file services4/system/omap3430/sysutils_linux.c.rej





Code:
root@darkstar:~# cd Graphics_SDK/GFX_Linux_KM/

root@darkstar:~/Graphics_SDK/GFX_Linux_KM# make

make -C /usr/src/linux M=`pwd`

make[1]: Entering directory `/usr/src/pandora-kernel'

  CC [M]  /root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o

/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:124:5: error: unknown field 'ioctl' specified in initializer

/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:124:5: warning: initialization from incompatible pointer type

/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c: In function 'bc_cat_init':

/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:495:4: error: implicit declaration of function 'omap_rev_lt_3_0'

make[3]: *** [/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o] Error 1

make[2]: *** [/root/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/bufferclass_ti] Error 2

make[1]: *** [_module_/root/Graphics_SDK/GFX_Linux_KM] Error 2

make[1]: Leaving directory `/usr/src/pandora-kernel'

make: *** [all] Error 2

root@darkstar:~/Graphics_SDK/GFX_Linux_KM#
 
Last edited by a moderator:
Worked fine, thanks.


Modules loaded.


The pvr-init script hat to be started before X ?


I think i have to modify my xorg.conf now.
 
cputype, devmem2 and pvrsrvinit i suppose ?


I copied them from OP rootfs, and got :


/usr/bin/pvrsrvinit ... error loading shared libraries: libsrv_um.so


I hope it's included ^^.


Thx.
 
Code:
strace pvrsrvinit
reports i have no /dev/pvrsrvkm


Dunno mknod numbers since not listed in /proc/devices :/
 
Weird. I'm back with official OP kernel for now.


I have another things to report :


1-On my 1st normal OP, console keyboard is weird, and when booting the same slack SD card on my non-wifi OP, the console keyboard is ok.


I use the official /etc/keymap-extension-2.6.map.


Checked dates, it's OK.


2- I have to manually modprobe usb-ehci. Others modules are well auto-loaded.
 
Last edited by a moderator:
1. weird, I haven't seen this.


2. it's done on purpose - usb-ehci doesn't support power saving so not inserted by default to save power.
 
Back
Top