Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Installing Gentoo on a TF700T (ARM, Tegra3, carhu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Fri Nov 28, 2014 4:25 pm    Post subject: [SOLVED] Installing Gentoo on a TF700T (ARM, Tegra3, carhu) Reply with quote

Hi all!
thanks to this great little project here: http://forum.xda-developers.com/showthread.php?t=2387133 i managed to get a real Linux up and running on my Asus Transformer Infinity (TF700T) based on a Tegra3 /cardhu architecture.

Since the only root imag i could find is a ubuntu/lubuntu, i decided to give it the boot and go for my favourite linux: Gentoo!

I managed to get my own base gentoo system boot from a partition on the mSD card (/dev/mmblk1p0) starting from an armv7 stage3. As for the kernel i am currently using the same kernel that both Android and Lubuntu are using, it's a modified that10-cogano6 kernel with built-in support for the cardhu platform, WiFi, bluetooth and whatnot. Under lubuntu, everything works cool.

My trouble starts with X. I am totally unable to start X from Gentoo all i get is a perfectly working lxde desktop on totally borked display which looks like bitmaps are all over the place with the screen flickering and deformed. I can see a very small flickering image of the desktop (where i can make out the menu, for example, when i touch the screen in the corrent lower-left corner) about 1/4 of the screen size and repeaded smeared around the screen a few times. The system will respond to CTRL+ALT+F1 and, albeit the console will not resume, i can still type a CTRL+C & reboot. And i can login via ssh also, so it's only a display problem, everything else works great.

Keep in mind that ubuntu works like a charm, even with openGL hardware accelerated.

I was using xorg-server 1.14, ubuntu is using 1.11.3. So i progressively downgraded to 1.13, 1.12 and finally to 1.11.4. Aboslutely no changes each version behaves exactly the same.

To be 100% sure of what i am doing i have the exact identical /etc/X11/xorg.conf file in both ubuntu and gento, i double checked the NVIDIA provided drivers, and they are exactly the same in Gentoo and ubuntu (diff says all binary files are identical).

Then i did one more test: i mounted the ubuntu partition within gentoo, mounted -o bind dev, sys, run, proc, dev/pts and tmp (which is on tmpfs), chrooted into the ubuntu partition, and started X: it works!

The only thing in the Xorg.log.0 which differs from the ubuntu's log is that on Gentoo the tegra driver uses the modeline 1920x1200@60Hz while on ubuntu it uses 1920x1200@0Hz (yes, 0Hz it's not a typo). I tryed to add manually that modeline to the xorg.conf, but with no good. I have also tryed using a remote login to change it while X was running with xrandr, but it does not work even if the new modeline is activated...

At this point i am totally stuck. I don't know where to go next... i might try one more downgrade to xorg-server 1.10.x, but would it be useful? at this point i doubt it.

Does enybody have any pointers or suggestions? There is really little on tegra boards out there, and i did extensive googling, believe me. I tried each trick for TF201, TF300 or TF700 i could find, but nothing cuts it.

Please note also i have completely rebuilt by system on the tablet (emerge -ev world)...

For your reference, the logs are on:
http://www.gardiol.org/tf700/Xorg.0.log for the Gentoo X

and
http://www.gardiol.org/tf700/ubuntu_xorg_log for the ubuntu log...



EDIT = FIXED. i started from the arm-softfp stage3, which is NOT compatible with the binary Tegra driver, you MUST use the arm-hardfp startge3. Be advised, and don't make my mistake!


_________________
Willy Gardiol
willy@gardiol.org


Last edited by shimitar on Thu Dec 04, 2014 8:50 am; edited 1 time in total
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1330

PostPosted: Fri Nov 28, 2014 11:26 pm    Post subject: Reply with quote

Hi!

Post your
Code:
emerge --info
, please.
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Sat Nov 29, 2014 3:34 am    Post subject: Reply with quote

[codetf700t gcc # emerge --info
!!! Repository 'tf700' is missing masters attribute in '/var/lib/layman/tf700/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.8-r2 (default/linux/arm/13.0/armv7a, gcc-4.6.3, glibc-2.19-r1, 3.1.10-that10-cogano6 armv7l)
=================================================================
System uname: Linux-3.1.10-that10-cogano6-armv7l-ARMv7_Processor_rev_9_-v7l-with-gentoo-2.2
KiB Mem: 991176 total, 679812 free
KiB Swap: 1048572 total, 1042372 free
Timestamp of tree: Thu, 13 Nov 2014 14:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash: 4.2_p53
dev-lang/perl: 5.18.2-r2
dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1
dev-util/ccache: 3.1.9-r3
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.69
sys-devel/automake: 1.13.4
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 4.6.3, 4.8.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo tf700
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-softfp-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
CHOST="armv7a-softfp-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/tf700"
USE="X acl arm armv5te armv6 armv6t2 berkdb bindist bluetooth bzip2 cli cracklib crypt cups cxx dbus fortran gdbm gudev iconv ipv6 jpeg jpg modules ncurses neon networkmanager nls nptl openmp pam pcre pdf png policykit readline session sqlite ssl tcpd tiff truetype unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
[/code]]
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Sat Nov 29, 2014 3:38 am    Post subject: Reply with quote

Here it is. Just note I used default gcc 4.8.3 I have just switched to 4.6.3 to match Ubuntu gcc... I am trying an

Code:

emerge -ev xorg-server


with this compiler now.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1330

PostPosted: Sat Nov 29, 2014 2:33 pm    Post subject: Reply with quote

The log show a driver (multitouch) that not match with your xorg server version. Add 'mutouch' to INPUT_DEVICES variable and emerge xorg-drivers for rebuild It.
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Sat Nov 29, 2014 6:01 pm    Post subject: Reply with quote

Yes I fixed it it was only a matter of recompiling it since it is not in portage. It has nothing to do with the screen issue.

Just to be more clear: the issue is NOT FIXED. Just the secondary error on that specific input driver is, which is not related to the main issue here.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Mon Dec 01, 2014 7:44 am    Post subject: Reply with quote

I managed to reocmpile my entire system with gcc 4.6.3 (the same used by ubuntu) and... nope.

The result is even more surprising: now X will segfault as soon as the tegra driver tries to open the display...

I am now going to remove ALL the X-related packages (x11-proto/libs/base/drivers) and add back one a time until i get the smallest set of (hopefully) working packages and see IF the driver will work...

Of course, switching back to gcc 4.8 now.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Wed Dec 03, 2014 2:55 pm    Post subject: Reply with quote

Still no luck here. Recompiled all back with GCC 4.8, the weird borked screen is back. Tried to disable XRENDER, enable DRI / DRI2 / GLX, no luck...

I really don't see what else i can try.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1330

PostPosted: Wed Dec 03, 2014 3:43 pm    Post subject: Reply with quote

Post the xorg log again.
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Thu Dec 04, 2014 6:57 am    Post subject: Reply with quote

Cool! I fixed it!

It seems that i started off from the wrong foot. I installed, without noticing, the Gentoo arm-softfp base system, instead of the arm-hardfp! Due to this issue, the tegra driver was not working properly.

I finally pinpointed it because going trhough the working ubuntu installation the libc was built against a different looking gcc core than mine... digged a bit, found the difference, installed a Gentoo arm-hardfp test charoot, and it works!

With an arm-hardfp stage3 X works great with the tegra driver.
Now, i will revert by root to hardfp and keep going!
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Fri Sep 18, 2015 7:30 pm    Post subject: Reply with quote

hi shimitar,
i own a tf201 and would like to boot a gentoo stage 3 from a usb stick...

i've found these resources:
https://wiki.gentoo.org/wiki/Asus_Transformer_Prime
http://lifeinarootshell.blogspot.it/2013/03/howto.html

but it looks like it would work only with the original jb boot loader.

since i've upgraded to the hairy bean boot loader a long time ago in order to flash it with latest custom roms, i wonder what's the steps you've followed to boot gentoo...

thank you
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Fri Sep 18, 2015 9:36 pm    Post subject: Reply with quote

Check on the gentoo wiki. ... I have detailed the entire procedure for the 700 there. Search for tf700t on the en wiki... there is an installation page.

I am away at the moment and can't find the direct link... but it should not be difficult to find. I would guess it should work exactly in the same way. Most probably my ISO (linked on the same wiki page) should work out of the box.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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