The X11 driver

This forum is for supported devices using an ARMv7 Allwinner SoC.

The X11 driver

Postby lman » Tue Jan 06, 2015 4:26 pm

I follow this url
viewtopic.php?f=33&t=5979



who can help me ?
I use cubieboard 1, HDMI,fex disp is
$this->bbcode_second_pass_code('', '
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 3
screen0_output_mode = 10
')

but
$this->bbcode_second_pass_code('', 'cat /var/log/Xorg.0.log|grep EE
[ 5707.267] Current Operating System: Linux alarm 3.4.103-3-ARCH #1 PREEMPT Fri Jan 2 20:30:18 MST 2015 armv7l
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 5707.320] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[ 5707.323] (EE) systemd-logind: failed to take device /dev/dri/card1: Operation not permitted
[ 5707.439] (EE) FBTURBO(0): FBIOPUT_VSCREENINFO: Invalid argument
[ 5707.439] (EE) FBTURBO(0): mode initialization failed
[ 5707.439] (EE)
[ 5707.440] (EE) AddScreen/ScreenInit failed for driver 0
[ 5707.441] (EE)
[ 5707.442] (EE)
[ 5707.443] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 5707.444] (EE)
[ 5707.445] (EE) FBTURBO(0): FBIOPUT_VSCREENINFO: Invalid argument
[ 5707.447] (EE) Server terminated with error (1). Closing log file.
')

my step
$this->bbcode_second_pass_code('', '
mkdir /tmp/arch
mkdir /tmp/boot

mount /dev/sde1 /tmp/boot
mount /dev/sde2 /tmp/arch

bsdtar -xpf ArchLinuxARM-sun4i-latest.tar.gz -C /tmp/arch
sync
umount /tmp/boot
umount /tmp/arch

pacman -Syu
pacman -S make gcc git-core automake autoconf pkg-config libtool
pacman -S xorg-server-devel xorg-server mesa-libgl
pacman -S xorg-xinit xterm xf86-video-fbdev

cd /home
git clone https://github.com/robclark/libdri2.git
git clone https://github.com/linux-sunxi/sunxi-mali
git clone https://github.com/ssvb/xf86-video-fbturbo
git clone https://github.com/linux-sunxi/libump.git
sync

# for best performance but
# max power consumption
pacman -S cpupower
echo '
governor="performance"
'>>/etc/default/cpupower

# enable this service
systemctl enable cpupower.service
systemctl start cpupower.service

echo '
# needed for xf86-video-fbturbo
ump
mali

# apparently needed too
drm
mali_drm

# wi-fi ... if needed ...
8192cu
' >/usr/lib/modules-load.d/modules.conf

modprobe ump
modprobe mali
modprobe drm
modprobe mali_drm
modprobe hdmi

echo '[Unit]
Description=reachable /dev/ump and /dev/mali

[Service]
Type=oneshot
ExecStart=/usr/bin/chmod 666 /dev/ump
ExecStart=/usr/bin/chmod 666 /dev/mali
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target'>/etc/systemd/system/mali.service
systemctl enable mali.service
systemctl start mali.service


cd /home/libdri2
./autogen.sh --prefix=/usr
make install

cd /home/libump
autoreconf -i
./configure
make
make install

cd /home/sunxi-mali
chmod 755 lib/mali/r3p0/armhf/x11/libMali.so
ldd lib/mali/r3p0/armhf/x11/libMali.so
git submodule init
git submodule update
make config ABI=armhf VERSION=r3p0
make
make install

cd /home/xf86-video-fbturbo
autoreconf -vi
./configure --prefix=/usr ;
make
make install

echo 'Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
# `man fbturbo` to know more options
Option "AccelMethod" "G2D"
EndSection
'>/etc/X11/xorg.conf.d/99-fbturbo.conf
')
lman
 
Posts: 2
Joined: Tue Jan 06, 2015 4:17 pm

Re: The X11 driver

Postby lman » Wed Jan 07, 2015 1:42 pm

I know my question

need loading lcd and hdmi mod
$this->bbcode_second_pass_code('', 'modprobe lcd
modprobe hdmi')
lman
 
Posts: 2
Joined: Tue Jan 06, 2015 4:17 pm


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 3 guests