Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo for Amlogic S9xx (TV box S905\S905X\S912)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
erm67
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 195
Location: somewhere in Renziland.

PostPosted: Mon Mar 06, 2017 5:00 pm    Post subject: Reply with quote

Quote:
Quake 3 Arena running on mainline Linux 4.10 on Amlogic S905 SoC at #lfelc 1080p 60fps !

http://baylibre.com/elc-2017-3d-mainline/


It looks like HDMI and 3D will go into linux 4.12 they are a bit late for 4.11
http://www.cnx-software.com/2017/03/06/mainline-linux-on-64-bit-arm-amlogic-socs-and-tv-boxes-such-as-wetek-hub-player-2-nexbox-a1-a95x-etc/
_________________
True ignorance is not the absence of knowledge, but the refusal to acquire it.
A posse ad esse non valet consequentia
Πάντα ῥεῖ
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Thu Mar 23, 2017 2:07 am    Post subject: firefox-52.0.1 Reply with quote

firefox-52.0.1-r1 emerge seems stuck on
Code:
Executing /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");

it seems emerge was executing python and xpcshell processes forever ...
and now python and xpcshell seem to wait for something that never comes.
update
same for firefox-52.0.2
same for firefox-53.0
same for firefox-53.0.3
see Firefox and Thunderbird on arm64 thread
firefox-54.0 build succeeds


Last edited by mDup on Wed Jun 21, 2017 3:31 pm; edited 2 times in total
Back to top
View user's profile Send private message
erm67
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 195
Location: somewhere in Renziland.

PostPosted: Tue May 09, 2017 5:21 am    Post subject: Reply with quote

Sorry I am a bit too busy to help with firefox, my box is a nextcloud server ...

Anyway, it's official support for HDMI and off-tree mali driver have been submitted (& merged) for kernel 4.12, yeahhhh, Odroid C1 - C2 are supported as well so it's time for a aarcch64 explosion :-)

Quote:
code cleanup in the GX family MMC driver (Heiner Kallweit - merged for v4.12)
improved support for the Amlogic P212 reference design (Martin Blumenstingl / xdarklight - merged for v4.12)
Support for the Khadas VIM [Pro] boards (Martin Blumenstingl / xdarklight - merged for v4.12)
DRM for Video Pipeline/HDMI (Neil Armstrong / narmstrong - merged for v4.12)
Mali clocks and devicetree support for GXBB and GXL (Neil Armstrong / narmstrong - merged for v4.12)
Basic MMC calibration for HS modes on GX family (Heiner Kallweit - merged for v4.12)
performance improvements (scatter-gather) for the GX family MMC driver (Heiner Kallweit - merged for v4.12)
Meson8 and Meson8b support the the SAR ADC driver (Martin Blumenstingl / xdarklight - merged for v4.13)


I hope to find some time to test it.
_________________
True ignorance is not the absence of knowledge, but the refusal to acquire it.
A posse ad esse non valet consequentia
Πάντα ῥεῖ
Back to top
View user's profile Send private message
mortonP
n00b
n00b


Joined: 22 Dec 2015
Posts: 6

PostPosted: Wed May 17, 2017 7:39 am    Post subject: Reply with quote

erm67 wrote:
kernel 4.12, yeahhhh, Odroid C1 - C2 are supported as well so it's time for a aarcch64 explosion :-)


With the upstream kernel support for the C2 nearing completion, I'm interested in a Gentoo image for my stack of C2s, as the "official" available Debian/Ubuntu LTS minimal/desktop images don't make me that happy.

So I searched for the current state of aarch64/arm64 support for Gentoo:

This forum appears where to be where the ARM(64) people hang out.
There is an experimental ARM64 stage3 at https://gentoo.osuosl.org/experimental/arm64/
ARM64 keywording seems to progress slowly in Gentoo as RPi3 64-bit support took way longer than C2(?), but people own more RPi3s
There appear to be several C2 specific Gentoo overlays: https://github.com/psychedup/gentoo-c2 https://github.com/teragonAT/odroidc2-overlay https://github.com/nxmyoz/c2-overlay ... ...
Some people also tried to assemble Gentoo on their own for C2: https://forum.odroid.com/viewtopic.php?f=138&t=21675
...
...did I miss anything else?

So.... can we deduplicate these efforts somehow?
I dream of a ready-to-write SD card image of Gentoo for the C2 with
upstream kernel
stage 3
DHCP network enabled so one can login headless
auto partition resize to microSD card size script upon first boot

....just like the already available Debian/Ubuntu builds.

How much effort is about needed for that?
How far is official arm64 architecture support in Gentoo?
Infrastructure for nightly snapshot?
ARM64 package CI infrastructure to raise them to their amd64 package stable states?
....

I'm both exited and confused... ;-)
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Sat May 20, 2017 10:56 pm    Post subject: Reply with quote

mortonP wrote:

I dream of a ready-to-write SD card image of Gentoo for the C2 with
upstream kernel
stage 3
DHCP network enabled so one can login headless

The latest stage3 image Gentoo_8gb_20170305.img I put on https://yadi.sk/d/8WUMwurb38CYTi uses balbes 3.14.29 kernel.
Next one will hopefully use mainline 4.12.0 kernel. Right now with latest 4.12.0 RC, I cannot get ethernet to work yet on my minimx-g.
update
balbes gave me an adjusted dtb for my minimx-g to make ethernet work.
there are few things TBD
- no audio
- nbd appears to give ext4 filesystem errors
I will try harder.


Last edited by mDup on Tue May 30, 2017 12:36 am; edited 1 time in total
Back to top
View user's profile Send private message
erm67
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 195
Location: somewhere in Renziland.

PostPosted: Mon May 29, 2017 8:45 pm    Post subject: Reply with quote

mortonP wrote:

With the upstream kernel support for the C2 nearing completion, I'm interested in a Gentoo image for my stack of C2s, as the "official" available Debian/Ubuntu LTS minimal/desktop images don't make me that happy.


I'm both exited and confused... ;-)


I use it as a home server, nextcloud (LAMP), postfix, dovecot, syncthing, emby (there's not enouh ram for that, but it works) and I have absolutely no problems using ACCEPT_KEYWORDS="*" , I find it is the perfect solution. It means I accept any stable ebuild, this means the stable for amd64 ....
This is my config, as you can see I use the stable amd64 without any particular problem, apart for java but it was easy to solve.

IMHO don't care about official support and just use gentoo amd64, mDup run a desktop using gentoo amd64 and it works. It's a 64 bit architecture after all, just like amd64.


make.conf
Code:
CPU_FLAGS="-march=native -mabi=lp64 -mcpu=native -ftree-vectorize"
GRAPHITE_FLAGS="-floop-interchange -floop-strip-mine -floop-block -fgraphite-ide
ntity -ftree-loop-distribution -ftree-loop-linear"
LTO_FLAGS="-flto=3 -fuse-linker-plugin -fno-fat-lto-objects"
CFLAGS="-O2 -pipe -fomit-frame-pointer ${CPU_FLAGS} ${GRAPHITE_FLAGS} ${LTO_FLAG
S}"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O2 -Wl,--as-needed ${CFLAGS}"
AR=gcc-ar
NM=gcc-nm
RANLIB=gcc-ranlib
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"
PORTDIR="/var/tmp/usr/portage"
DISTDIR="/var/tmp/usr/portage/distfiles"
PKGDIR="/var/tmp/usr/portage/packages"
VIDEO_CARDS="mali fbdev fbturbo"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
USE="arm64 alsa -X -gtk gpl"
MAKEOPTS="-j2"
ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="*"
PHP_TARGETS="php7-1"
source /var/lib/layman/make.conf
~

/etc/portage/profile/use.mask
Code:
-mysql
-gnutls
-ieee1394
-samba
-schroedinger
-aac
-aacplus
-faac
-fuse
-java
-kerberos
-ldap
-ladspa
-mono
-mercurial
-musepack
-pkcs11
-sasl
-toolame
-vpx
-xfs
-xine
-zvbi
-x264
-x265
-bluray
-graphite
-dvb
-sqlite
-threads
-ip
-pulseaudio
-ipc
-upnp

/etc/portage/package.use.mask
Code:

*/* -java
dev-lang/python -sqlite -threads
*/* -upnp -bs2b -doc -frei0r -gnutls -ieee1394 -samba -schroedinger -aac -aacplus -faac

/etc/portage/package.env
Code:

=net-fs/samba-4.5.8 no-gold.conf
=sys-process/numactl-2.0.11 no-lto.conf
=media-tv/tvheadend-4.0.9 gcc6.conf
=dev-lang/python-3.4.5 no-lto.conf
=sys-apps/pciutils-3.4.1 no-lto.conf
=media-sound/pulseaudio-10.0 no-lto.conf
=sys-apps/man-db-2.7.6.1-r2 no-graphite.conf
sys-devel/gettext lm.conf
=sys-devel/gcc-5.4.0-r3 no-graphite.conf
=media-libs/flac-1.3.2-r1 no-graphite.conf

/etc/portage/package.accept_keywords
Code:

# required by media-video/ffmpeg-2.8.6::gentoo[fdk]
# required by ffmpeg (argument)
=media-libs/fdk-aac-0.1.4-r1 **
dev-lang/php ~*
dev-php/pecl-redis **
dev-php/pecl-imagick **
=sys-devel/gcc-6.3.0 **
=sys-devel/gcc-5.4.0-r2 ~arm64

=sys-devel/binutils-2.27 **
=media-libs/libwebp-0.5.2 ~*
=sys-libs/readline-7.0_p1-r1 ~*
media-libs/x265 ~*
media-libs/x264 ~*
=media-tv/emby-server-3.1.2 **
dev-lang/mono ~*
=dev-dotnet/referenceassemblies-pcl-4.6 **
=dev-java/oracle-jdk-bin-1.8.0.111 ~arm64
=dev-java/oracle-jdk-bin-1.8.0.112 -*
media-tv/tvheadend ~*
=sys-block/thin-provisioning-tools-0.6.3 ~*
=virtual/imap-c-client-2 ~*
=dev-php/igbinary-2.0.1 ~*
net-fs/samba ~*
# required by sys-libs/ldb-1.1.29-r1::gentoo
# required by net-fs/samba-4.5.8::gentoo
# required by @selected
# required by @world (argument)
=sys-libs/talloc-2.1.9 ~*
# required by net-fs/samba-4.5.8::gentoo
# required by @selected
# required by @world (argument)
=sys-libs/ldb-1.1.29-r1 ~*
# required by net-fs/samba-4.5.8::gentoo
# required by @selected
# required by @world (argument)
=sys-libs/tevent-0.9.31-r1 ~*
# required by sys-libs/ldb-1.1.29-r1::gentoo
# required by net-fs/samba-4.5.8::gentoo
# required by @selected
# required by @world (argument)
=sys-libs/tdb-1.3.13 ~*

/etc/portage/package.use
Code:

www-servers/apache ssl -debug -doc -ldap -libressl -selinux -static -suexec thre
ads apache2_modules_actions apache2_modules_xml2enc apache2_modules_alias apache
2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apac
he2_modules_authn_core apache2_modules_authn_dbm apache2_modules_authn_file apac
he2_modules_authz_core apache2_modules_authz_dbm apache2_modules_authz_groupfile
 apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_us
er apache2_modules_autoindex apache2_modules_cache -apache2_modules_cgi -apache2
_modules_cgid -apache2_modules_dav -apache2_modules_dav_fs -apache2_modules_dav_
lock apache2_modules_deflate apache2_modules_dir apache2_modules_env apache2_mod
ules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modul
es_filter apache2_modules_headers apache2_modules_include apache2_modules_info a
pache2_modules_log_config apache2_modules_logio apache2_modules_mime apache2_mod
ules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modu
les_setenvif apache2_modules_socache_shmcb apache2_modules_speling apache2_modul
es_status apache2_modules_unique_id apache2_modules_unixd apache2_modules_userdi
r apache2_modules_usertrack apache2_modules_vhost_alias -apache2_modules_access_
compat -apache2_modules_asis -apache2_modules_auth_digest -apache2_modules_authn
_dbd -apache2_modules_authz_dbd apache2_modules_cache_disk apache2_modules_cache
_socache -apache2_modules_cern_meta -apache2_modules_charset_lite -apache2_modul
es_dbd -apache2_modules_dumpio apache2_modules_http2 -apache2_modules_ident -apa
che2_modules_imagemap -apache2_modules_lbmethod_bybusyness -apache2_modules_lbme
thod_byrequests -apache2_modules_lbmethod_bytraffic -apache2_modules_lbmethod_he
artbeat -apache2_modules_log_forensic -apache2_modules_macro apache2_modules_pro
xy -apache2_modules_proxy_ajp -apache2_modules_proxy_balancer -apache2_modules_p
roxy_connect apache2_modules_proxy_fcgi -apache2_modules_proxy_ftp apache2_modul
es_proxy_html apache2_modules_proxy_http -apache2_modules_proxy_scgi -apache2_mo
dules_proxy_wstunnel -apache2_modules_ratelimit -apache2_modules_remoteip -apach
e2_modules_reqtimeout -apache2_modules_slotmem_shm -apache2_modules_substitute -
apache2_modules_version apache2_mpms_event -apache2_mpms_prefork -apache2_mpms_w
orker
dev-lang/php acl berkdb bzip2 cli crypt ctype fileinfo filter gdbm hash mysqli i
conv ipv6 json nls opcache phar posix readline session simplexml ssl tokenizer u
nicode xml zlib -apache2 bcmath calendar cdb -cgi -cjk -coverage curl -debug -em
bed enchant exif flatfile fpm ftp gd gmp imap inifile intl iodbc  -ldap-sasl -li
bedit -libressl mhash mysql odbc pcntl pdo -phpdbg -postgres -qdbm -recode -shar
edmem -snmp soap sockets spell sqlite -sysvipc threads tidy truetype wddx webp x
mlreader xmlrpc xmlwriter -xpm xslt zip
dev-lang/python sqlite
app-eselect/eselect-php apache2 fpm
dev-libs/apr-util -berkdb gdbm  -freetds -nss -odbc openssl -postgres -sqlite -s
tatic-libs
# required by dev-php/pecl-imagick (argument)
media-gfx/imagemagick bzip2 cxx zlib -X -corefonts -djvu -fftw fontconfig -fpx -
graphviz -hdri jbig jpeg jpeg2k lcms -lqr -lzma -opencl -openexr -openmp -pango
-perl png postscript -q32 -q64 q8 -raw -static-libs svg tiff truetype webp -wmf -xml
media-tv/tvheadend cwc dvbscan timeshift zlib -capmt -constcw -dbus dvb -ffmpeg -hdhomerun imagecache inotify iptv libav satip uriparser xmltv -zeroconf
media-tv/xmltv -ar -ch_search -dk -dtvla -es_laguiatv -eu_dotmedia -eu_egon -eu_epg -fi -fi_sv -fr -fr_kazer -hr -huro -il -is it -na_dd -na_dtv -na_tvmedia -nl -no_gf -pt -pt_meo -sd_json -se_swedb -se_tvzon -tr -tv_check tv_combiner -tv_pick_cgi -uk_atlas -uk_bleb -uk_rt -uk_tvguide
media-tv/linuxtv-dvb-apps -alevt -test usb
media-video/ffmpeg alsa -armvfp bluray bzip2 encode fontconfig gpl hardcoded-tables iconv jpeg2k libass librtmp libsoxr lzma modplug mp3 -neon network opus postproc pulseaudio theora threads truetype twolame vorbis vpx wavpack webp x264 x265 xvid zlib -X -altivec -amr -amrenc -armv5te -armv6 -armv6t2 -bs2b -cdio -celt -chromaprint -cpudetection -debug -doc -ebur128 -fdk -flite -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -kvazaar -ladspa -libcaca -libilbc -libv4l -mipsdspr1 -mipsdspr2 -mipsfpu -mmal -nvenc -openal -opengl -openh264 -openssl -oss -pic rubberband -samba -schroedinger -sdl -snappy -speex -ssh -static-libs -test -v4l -vaapi -vdpau -xcb -zimg -zvbi
>=media-plugins/alsa-plugins-1.1.1 pulseaudio
sys-devel/gcc cxx fortran multilib nls nptl openmp pch sanitize vtv -altivec -awt -cilk -debug -doc -fixed-point -gcj -go graphite -hardened -jit -libssp -mpx -objc -objc++ -objc-gc -pie -regression-test -ssp -vanilla
# required by sys-libs/ldb-1.1.26::gentoo
# required by net-fs/samba-4.2.14::gentoo
# required by media-video/ffmpeg-2.8.6::gentoo[samba]
# required by ffmpeg (argument)
>=sys-libs/tevent-0.9.28 python
# required by net-fs/samba-4.2.14::gentoo
# required by media-video/ffmpeg-2.8.6::gentoo[samba]
# required by ffmpeg (argument)
>=sys-libs/ntdb-1.0-r1 python
# required by sys-libs/ldb-1.1.26::gentoo
# required by net-fs/samba-4.2.14::gentoo
# required by media-video/ffmpeg-2.8.6::gentoo[samba]
# required by ffmpeg (argument)
>=sys-libs/tdb-1.3.8 python
net-dns/bind berkdb caps ipv6 ssl threads dlz -doc -fetchlimit -filter-aaaa -fixed-rrset -geoip -gost -gssapi idn -json -ldap -libressl -mysql nslint -odbc -postgres -python -rpz -seccomp -selinux -sit -static-libs -urandom -xml
dev-lang/mono minimal
dev-java/oracle-jdk-bin alsa fontconfig headless-awt -cups -derby -doc -examples -javafx -jce -nsplugin -pax_kernel -selinux -source
dev-java/icedtea alsa cups jbootstrap pch source sunec webstart -cacao -doc -examples -gtk headless-awt -infinality -jamvm -kerberos -libressl -nsplugin -pax_kernel -pulseaudio -sctp -selinux -shenandoah -smartcard -test -zero
media-libs/leptonica zlib  gif jpeg jpeg2k png -static-libs -test tiff -utils -webp
app-text/tesseract -doc -examples jpeg math -opencl osd png -scrollview -static-libs tiff training -webp l10n_it
net-fs/samba acl pam system-mitkrb5 -addc -addns -ads aio avahi client -cluster -cups -dmapi fam -gnutls -iprint -ldap -quota -selinux syslog -systemd -test -winbind
net-mail/dovecot bzip2 ipv6 maildir pam ssl tcpd zlib -caps -cydir -doc -imapc -kerberos -ldap -libressl -lucene -lz4 -lzma managesieve mbox -mdbox -mysql -pop3c -postgres -sdbox -selinux sieve solr -sqlite -static-libs -suid textcat -vpopmail
mail-mta/postfix berkdb eai pam ssl -cdb -doc dovecot-sasl -hardened -ldap -ldap-bind -libressl -lmdb -mbox -memcached -mysql -nis -postgres -sasl -selinux -sqlite
sys-apps/lm_sensors sensord
net-wireless/bluez obex readline udev -cups -debug -deprecated -doc -experimental extra-tools -selinux -systemd -test -test-programs
app-emulation/docker device-mapper seccomp -apparmor -aufs -btrfs -experimental overlay
>=sys-libs/libseccomp-2.3.0 static-libs
app-text/poppler cxx introspection jpeg jpeg2k lcms utils -cairo -cairo-qt -cjk curl -debug -doc -nss png -qt4 -qt5 tiff
dev-libs/openssl asm sslv3 tls-heartbeat zlib -bindist gmp -kerberos -rfc3779 -sctp -sslv2 -static-libs -test -vanilla
dev-php/pecl-redis session igbinary
net-dns/avahi gdbm introspection ipv6 nls -autoipd -bookmarks -dbus -doc -gtk -gtk3 -howl-compat -mdnsresponder-compat -mono -python -qt4 -selinux -test -utils
media-sound/mpd alsa bzip2 curl eventfd ffmpeg fifo glib icu id3tag inotify ipv6 mad network signalfd tcpd unicode zlib -adplug ao audiofile cdio -debug expat faad flac -fluidsynth -gme -jack lame -libav -libmpdclient libsamplerate libsoxr -mikmod -mms -modplug mpg123 -musepack nfs ogg -openal opus -oss -pipe -pulseaudio -recorder -samba (-selinux) (-sid) sndfile soundcloud -sqlite -systemd -twolame upnp vorbis -wavpack -wildmidi -zeroconf zip
>=media-libs/flac-1.3.2-r1 ogg

_________________
True ignorance is not the absence of knowledge, but the refusal to acquire it.
A posse ad esse non valet consequentia
Πάντα ῥεῖ
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Tue Jun 13, 2017 9:02 pm    Post subject: Reply with quote

I've used mDup's image to set up gentoo on my mini m8s ii but cannot launch kodi/xorg. I've got xorg-server with mesa and fb drivers but xrandr cannot get full display params so ends up with:
Code:
localhost ~ # DISPLAY=:0.0 xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080      0.00*


I'm not familiar with x servers on linux but i guess xorg.conf has to be filled manually, could you help me with this?
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Tue Jun 13, 2017 10:38 pm    Post subject: Reply with quote

oczkers wrote:
I've used mDup's image to set up gentoo on my mini m8s ii but cannot launch kodi/xorg. I've got xorg-server with mesa and fb drivers but xrandr cannot get full display params so ends up with:
Code:
localhost ~ # DISPLAY=:0.0 xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080      0.00*


I'm not familiar with x servers on linux but i guess xorg.conf has to be filled manually, could you help me with this?


Did you build some X window manager? twm for example?
If so does 'startx' launch X?
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Tue Jun 13, 2017 10:43 pm    Post subject: Reply with quote

I'm trying to launch kodi standalone (on top of x, no wm) but:
Code:
01:33:12.578 T:547918737424   DEBUG: Selected UDev as storage provider
01:33:12.599 T:547918737424    INFO: Available videomodes (xrandr):
01:33:12.599 T:547918737424    INFO: Output 'default' has 1 modes
01:33:12.599 T:547918737424    INFO: ID:0x53 Name:1920x1080 Refresh:0.000000 Width:1920 Height:1080
01:33:12.599 T:547918737424    INFO: Pixel Ratio: 1.000000
01:33:12.599 T:547918737424  NOTICE: Checking resolution 16
01:33:12.600 T:547918737424   ERROR: Failed to find matching visual
01:33:12.601 T:547918737424    INFO: GL: Maximum texture width: 32768


EDIT: debug logs
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Wed Jun 14, 2017 12:24 am    Post subject: Reply with quote

oczkers wrote:
I'm trying to launch kodi standalone (on top of x, no wm) but:
Code:
01:33:12.578 T:547918737424   DEBUG: Selected UDev as storage provider
01:33:12.599 T:547918737424    INFO: Available videomodes (xrandr):
01:33:12.599 T:547918737424    INFO: Output 'default' has 1 modes
01:33:12.599 T:547918737424    INFO: ID:0x53 Name:1920x1080 Refresh:0.000000 Width:1920 Height:1080
01:33:12.599 T:547918737424    INFO: Pixel Ratio: 1.000000
01:33:12.599 T:547918737424  NOTICE: Checking resolution 16
01:33:12.600 T:547918737424   ERROR: Failed to find matching visual
01:33:12.601 T:547918737424    INFO: GL: Maximum texture width: 32768


EDIT: debug logs

I get same as you when just running X as user (I also try X -fbbpp 24)
Code:
user@minimx-g ~ $ DISPLAY=:0.0 xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080      0.00*

but:
Code:
user@minimx-g ~ $ DISPLAY=:0.0 xterm

does correctly open a terminal on the display.
have a nice day.
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Wed Jun 14, 2017 8:49 am    Post subject: Reply with quote

Quote:
does correctly open a terminal on the display.

Right, looks like it's just kodi denies to launch because of incomplete display detection(?).
To get opengl support i need xf86-video-armsoc and kernel 4.12, any luck with this already?
I'll be happy to mess around with mainline kernel but is there any way to get rid of bootimage (android on internal) and see whole kernel logs on tv without soldering uart?
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Wed Jun 14, 2017 8:56 pm    Post subject: Reply with quote

oczkers wrote:
Quote:
does correctly open a terminal on the display.

Right, looks like it's just kodi denies to launch because of incomplete display detection(?).
To get opengl support i need xf86-video-armsoc and kernel 4.12, any luck with this already?
I'll be happy to mess around with mainline kernel but is there any way to get rid of bootimage (android on internal) and see whole kernel logs on tv without soldering uart?

if you set
previous_dmesg="YES"
in
/etc/conf.d/bootmisc
then at least you keep previous dmesg as /var/log/dmesg.old
This is what I used as long as I had no HDMI for 4.1x kernels.
And I keep it that way now.

You want to launch kodi in X, wayland or fb ?
In any case I don't think there is reasonable performance yet, at least not when I tried last time.
Another trick is to have an ubuntu chroot and try to run ubuntu binaries.
For example I cannot compile latest gentoo firefox but I, as user, can run latest ubuntu firefox form chroot.
Code:
xhost +
chroot /root/ubuntu firefox

Own compiled mainline linux 4.12rc kernel works with balbes config and correct dtb.
But my network NBD drive was not stable and audio did not work. Perhaps other things do not work either.
I will retry when 4.12 is out. Credits go to balbes.
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Wed Jun 14, 2017 9:48 pm    Post subject: Reply with quote

Quote:
You want to launch kodi in X, wayland or fb ?

gles/opengl needs additional drivers in user space etc. so i decided to stay away until 4.12 gets out and trying to start in X with fbdev (without hw)

Quote:
previous_dmesg="YES"
in
/etc/conf.d/bootmisc

It doesn't save kernel panic if i'm correct so without working kernel config this can be veeery long ride.

Quote:
Another trick is to have an ubuntu chroot and try to run ubuntu binaries.

Clever but that's not exactly what we're trying to do here :-).

Quote:
balbes config and correct dtb.

ripped from armbian image and kernel.org without any patching at all?
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Wed Jun 14, 2017 10:41 pm    Post subject: Reply with quote

oczkers wrote:

ripped from armbian image and kernel.org without any patching at all?

I took config from balbes boot partition and verbatim kernel.org code.
But there were 2 tiny changes kindly provided to me by balbes.
one to change arm64/kernel TEXT_OFFSET
one to change the eth_phy0 for my minimx-g meson-gxbb-p200.dts

I just emerged kodi 17.3 which runs inside X, but it is unusable (one can hardly move mouse)

Running kodi standalone fullscreen on framebuffer gave:
ERROR: Unable to create GUI. Exiting.

kodi runs in wayland too but is even less usable.

All 3 above test with libmali built from buildroot-openlinux in LD_LIBRARY_PATH.

running kodi standalone from zesty ubuntu chroot fails (it says pulseaudio requires shared memfd call which 3.14.29 does not have).

Note that for day to day usage I still run 3.14.29. This may change as soon as I can build 4.12 which has audio en stable network.

I will update the stage3 image then.
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Thu Jun 15, 2017 5:11 pm    Post subject: Reply with quote

oczkers wrote:

Quote:
Another trick is to have an ubuntu chroot and try to run ubuntu binaries.

Clever but that's not exactly what we're trying to do here :-).

Agreed, but sometimes it helps, like: to emerge rust one needs rustc (chicken end egg) and rust-bin does not emerge.
So I wrap ubuntu chroot rustc in a bash script in /usr/local/bin ...
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Thu Jun 15, 2017 5:57 pm    Post subject: Reply with quote

Quote:
ERROR: Unable to create GUI. Exiting.

Exactly what i was dealing with. Messing around with fbdev is not worth it when main kernel with gles is on the corner. Unfortunately i cannot boot mini m8s II with 4.12 config or even armbian untouched image - stuck on bootimage so kernel panic i guess :/


If someone want to test 4.12+ there is nice recipe https://lists.infradead.org/pipermail/linux-amlogic/2017-June/004092.html
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Thu Jun 15, 2017 7:01 pm    Post subject: Reply with quote

oczkers wrote:
ERROR: Unable to create GUI. Exiting.
Exactly what i was dealing with. Messing around with fbdev is not worth it when main kernel with gles is on the corner.

But there must be some way to configure to build kodi to run on fb with 3.14.29 ...
Because that is what LibreELEC does. I run (own built 64bit) kszaq LE myself on a s905s.
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Thu Jun 15, 2017 8:02 pm    Post subject: Reply with quote

Quote:
Because that is what LibreELEC does.

Are you sure it's not gles with additional drivers and modded kernel?

Code:
OPENGLES="opengl-meson"

https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/projects/S905/options
https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/packages/graphics/opengl-meson/package.mk
https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/packages/linux-drivers/gpu-aml/package.mk

edit: and "libamcodec" for hw accelerated decoding
Code:
KODIPLAYER_DRIVER="libamcodec"
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Thu Jun 15, 2017 11:23 pm    Post subject: Reply with quote

oczkers wrote:
Quote:
Because that is what LibreELEC does.

Are you sure it's not gles with additional drivers and modded kernel?
Code:
OPENGLES="opengl-meson"

https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/projects/S905/options
https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/packages/graphics/opengl-meson/package.mk
https://github.com/kszaq/LibreELEC.tv/blob/8.0.2b/packages/linux-drivers/gpu-aml/package.mk
edit: and "libamcodec" for hw accelerated decoding
Code:
KODIPLAYER_DRIVER="libamcodec"

I guess you exceed my knowledge about ways to run kodi and graphical methods in general.
It is not X and it is not wayland, so I assumed it was direct to FrameBuffer.
Looking at build tree, at first sight, it seems everything relevant in LE is compiled from source.
So, in theory, I suppose, one could make a gentoo overlay ebuild achieving same binary?
I must be missing or misunderstanding something...
If in my gentoo I do
Code:
lddtree kodi.bin
for the LE kodi.bin, all libraries are present (including buildroot libGLESv2).
I have not succeeded to build LE 3.14.29 kernel which, for one thing, has these special media driver modules.
I should also admit: media was not my primary goal for arm64 gentoo, bleeding edge lightweight desktop is my focus.
Back to top
View user's profile Send private message
oczkers
n00b
n00b


Joined: 13 Jun 2017
Posts: 9

PostPosted: Fri Jun 16, 2017 8:43 am    Post subject: Reply with quote

Quote:
I guess you exceed my knowledge about ways to run kodi and graphical methods in general.
It is not X and it is not wayland, so I assumed it was direct to FrameBuffer.

I don't think so, just looked at build script and saw this opengl-meson, gpu-aml etc. so i assume it's not simple fb but all this is new to me.
My understanding is we need (for 3.14):
gpu-aml - gpu drivers from official amlogic, it might be included in kernel already but in libreelec i see at least two modules mali and mali_drm
opengl-meson - some kind of modified opengl library that supports mali gpu (dunno if this can be build, libreelec just downloads binaries)

edit:To enable amcodec in kodi:
Code:
-DENABLE_AML=ON
Back to top
View user's profile Send private message
erm67
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 195
Location: somewhere in Renziland.

PostPosted: Mon Jul 03, 2017 6:09 pm    Post subject: Reply with quote

Also the PKGBUILD of kodi-c2 from archlinux arm can be useful to get some ideas:
https://github.com/archlinuxarm/PKGBUILDs/blob/d43c636da9c82c971101cae2cf18a221bb09f005/alarm/kodi-c2/PKGBUILD
amlogic libs for acceleration:
https://github.com/archlinuxarm/PKGBUILDs/blob/dccefdad0e0d423bc2a66a2ebe38710ebc485aef/alarm/aml-libs-c2/PKGBUILD




BTW balbes has already some images with kernel 4.12 rc5 here it works fine apart the emmc too slow.
_________________
True ignorance is not the absence of knowledge, but the refusal to acquire it.
A posse ad esse non valet consequentia
Πάντα ῥεῖ
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Fri Jul 07, 2017 6:03 pm    Post subject: Reply with quote

FYI: I could build and run vanilla 4.12.0 just fine but there is a network issue in that big file transferts stall. USB works.
I run on MiniMX-G and dmesg reports RTL8211F Gigabit Ethernet (and PTP not supported by HW).
I reported this upstream netdev kernel list.
update
I changed 4.12.0 drivers/net/phy/realtek.c RTL8211F code to equal the 3.14.29 amlogic/ethernet/phy/am_realtek.c code and now the networking works without TCP stalls. Also, firefox now no longer crashes. For now I do not have audio yet.
hmmm 30 min later I have NBD crashing TV box.
update
seems issue was caused by tx-delay in my particular dts.
All seems fine now for a gentoo stage3 with at least network for minimx-g.
thanks to xdarklight #linux-amlogic
Did not test other devices (have none) except one s905x which has no USB support which I feel no-go.


Last edited by mDup on Fri Jul 14, 2017 12:22 pm; edited 5 times in total
Back to top
View user's profile Send private message
erm67
Apprentice
Apprentice


Joined: 01 Nov 2005
Posts: 195
Location: somewhere in Renziland.

PostPosted: Sat Jul 08, 2017 5:52 am    Post subject: Reply with quote

Great ... hopefully also cryptodev works with 4.12, on 3.14.29 it just fills the log with 'CryptoAPI failure: -22' message .... I upgraded to a S912 board and it would be nice to be able to use the ARM crypto extensions.
_________________
True ignorance is not the absence of knowledge, but the refusal to acquire it.
A posse ad esse non valet consequentia
Πάντα ῥεῖ
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Sat Jul 15, 2017 10:47 pm    Post subject: Reply with quote

For those interested: I uploaded a stage3 Gentoo_8gb_20170715.img.xz
using vanilla 4.12.0 kernel with config kindly provided by balbes to
https://yadi.sk/d/8WUMwurb38CYTi

This image can potentially be used to start building any system to
your own taste.

I am not supporting it in any way. I may want to help people who try
to use it. There are a few hacks involved.

The image works on s905 [I have a minimx-g]. It also boots on s905x
[I have spot-i7-pro] but on s905x I see no hdmi output and there is no
USB support (no keyboard no mouse). One can still ssh into the tv-box
as user (password 1). root password is 1234.

It may work for s912

There are several things that do not work (like: no audio). I did not
test many things (like: bluetooth wifi ...).


Last edited by mDup on Mon Jul 17, 2017 6:53 pm; edited 2 times in total
Back to top
View user's profile Send private message
mDup
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2006
Posts: 138

PostPosted: Sun Jul 16, 2017 4:36 pm    Post subject: Reply with quote

erm67 wrote:
Great ... hopefully also cryptodev works with 4.12, on 3.14.29 it just fills the log with 'CryptoAPI failure: -22' message .... I upgraded to a S912 board and it would be nice to be able to use the ARM crypto extensions.

I have no s912 (yet) to test ARM crypto extensions. My s905 does not support the kernel configs and complains when I modprobe the modules.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
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