Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

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

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby tincman » Wed Sep 21, 2016 4:19 pm

$this->bbcode_second_pass_quote('', 'I')m using 4.8-rc7 and wifi is not working... also tried with rc1. however, my eMMC speeds seems fine, and usb is working with LPAE. Can you confirm that your wifi is still working?


I meant to update this: wifi works great when I'm at work (no WPA, and low interference), but does hang very often when I'm at home (aka, with WPA2 and high interference).

The problem seems to be timeout related (which were some new mmc updates in 4.7 and 4.8): my guess what is happening is the system timeouts waiting for an interrupt from the wifi chip, then gets a spurious interrupt from it it wasn't expecting and drops it--this puts the firmware into an unrecoverable state and requires a full power cycle to fix.

I've also been running into other MMC related errors and crashes, but they do not happen often enough that I've been able to guess as to why.

@NoDiskNoFun: I'm sorry, I finally read your logs in more detail: it looks like you tried to use xf86-video-nouveau

Use my 1.18.3 xorg-server package, but use the modesetting driver (this is the default, you shouldn't have to specify any xorg.conf.d files). xf86-video-nouveau only works for discreet nvidia GPUs, and modesetting has been hacked to support the Tegra chip.

If that is what you did in the last post, perhaps try posting your dmesg?
tincman
 
Posts: 25
Joined: Sat Feb 23, 2013 5:27 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby Manizuca » Tue Oct 04, 2016 2:17 am

Hi, just a quick update.
Reverting commit 0cb52aac4d "mwifiex: do not set multiport flag for tx/rx single packet" fixes the wifi for me. Using v4.8-rc8 here and the connection is stable
Manizuca
 
Posts: 17
Joined: Sun Aug 28, 2016 3:05 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby haagch » Wed Oct 05, 2016 10:41 am

Nice. Is there an upstream bug report?
haagch
 
Posts: 60
Joined: Thu Apr 02, 2015 5:36 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby Manizuca » Sat Oct 08, 2016 5:11 am

$this->bbcode_second_pass_quote('haagch', 'N')ice. Is there an upstream bug report?


Yes, https://bugzilla.kernel.org/show_bug.cgi?id=176421
Manizuca
 
Posts: 17
Joined: Sun Aug 28, 2016 3:05 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby NoDiskNoFun » Wed Oct 12, 2016 11:32 pm

So i tried some things but nothing did the trick. Maybe i've missed something in my installer-script, would be nice if someone could take a look at it. And maybe you could say me how you installed arch on your cb5 (or share your rootfs as .tar.gz =)). Thanks in advance =)

Here is my dmesg
Here is my Xorg.0.log
NoDiskNoFun
 
Posts: 31
Joined: Fri Sep 16, 2016 2:34 am

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby vman » Sat Oct 15, 2016 8:01 pm

@NoDiskNoFun: I managed to install Arch on my CB5-311 by using instructions and scripts from
https://www.tbi.univie.ac.at/~ronny/acer-cb5-311.html

This gave me a usable System with the XFCE desktop. But because it is using an Nvidia driver that only supports an older X version, it had to install several downgraded packages (xorg-server etc), and in order to satisfy dependencies when I tried to update the system I had to add five more packages to the IgnorePkg line in pacman.conf: xf86-input-joystick, xf86-input-keyboard, xorg-server-xvfb, xf86-input-mouse, and xf86-video-fbdev. The system was working ok, but I could not start KDE, probably because of the outdated xserver, and I did not like using the outdated packages... so I'm trying to switch to the mainline kernel too.

Now KDE is working, but more important features are not! With the 4.8.1-2 kernel, whether self-compiled or from the repository (builduser@leming) I had neither USB nor Wifi!

Your post, NoDiskNoFun, inspired me to use the 4.8.0-rc8-1-ARCH kernel from the repository, because your dmesg had less usb errors in it. With 4.8.1-2 I get:

$this->bbcode_second_pass_code('', '
[ 1.878305] tegra-xusb 70090000.usb: Direct firmware load for nvidia/tegra124/xusb.bin failed with error -2
[ 1.878325] tegra-xusb 70090000.usb: failed to request firmware: -2
[ 1.878333] tegra-xusb 70090000.usb: failed to load firmware: -2
[ 1.879622] tegra-xusb: probe of 70090000.usb failed with error -2
')
...where with the rc kernel I get:
$this->bbcode_second_pass_code('', '
[ 6.859749] tegra-xusb 70090000.usb: Firmware timestamp: 2014-09-16 02:10:07 UTC
[ 6.859781] tegra-xusb 70090000.usb: xHCI Host Controller
[ 6.859849] tegra-xusb 70090000.usb: new USB bus registered, assigned bus number 1
[ 6.860774] tegra-xusb 70090000.usb: hcc params 0x0184f525 hci version 0x100 quirks 0x00010010
[ 6.860850] tegra-xusb 70090000.usb: irq 342, io mem 0x70090000
')

With usb I can at least get network access through a usb-ethernet adapter. But what can I do to get Wifi back to work? I read something about disabling a device that confuses the network manager?

X is running with kernel modesetting und the 'fb' driver, according to /var/log/Xorg.0.log - can anyone give me a tip on how to make use of Nouveau?
vman
 
Posts: 63
Joined: Sat Oct 15, 2016 6:00 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby NoDiskNoFun » Sun Oct 16, 2016 1:16 pm

@vman:

maybe you get your wifi back by disabling uap0 device, take a look at my script

# hack for removing uap0 device on startup (avoid freeze)
echo 'install mwifiex_sdio /sbin/modprobe --ignore-install mwifiex_sdio && sleep 1 && iw dev uap0 del' > /etc/modprobe.d/mwifiex.conf

wifi was working fine for me but X-Server won't start =|

as tincman mention before nouveau driver is for "discreet nvidia cards"
but i installed arch in april or so with xf86-video-nouveau and it was working fine. i was also able to play arx liberatis without any crash.

but i'll try what you have done. My system is running through RaumZeit's script too, so i'll try to update from this state. Maybe this way is working better ...

EDIT:
@vman: Did you installed xserver package from tincman or main? Which version do you use?
NoDiskNoFun
 
Posts: 31
Joined: Fri Sep 16, 2016 2:34 am

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby vman » Sun Oct 16, 2016 8:29 pm

Thanks, NoDiskNoFun, for the suggestions! Actually I already had your modprobe configuration thanks to RaumZeit's script. Maybe it was just a misconfiguration in the actual NetworkManager, but anyway: after experimenting with leaving away the modprobe configuration (no good, makes the mlan0 network device disappear), and using an external usb network adapter (no success initially), WiFi for some odd reason now works again. :D

I'm acutally new to Arch, but I do have experience with Linux (mostly Debian) on unusual hardware, namely on old Apple computers (PowerPC).

@NoDiskNoFun: I'm using xorg-server version 1.18.4-1 from main (actually from 'extra', it seems). Performance is not great, but ok for browsing and e-mail - my main activities with this nice device.

Still, if anyone has a working configuration for nouveau (kernel config?), than I'd be happy to hear about it.
vman
 
Posts: 63
Joined: Sat Oct 15, 2016 6:00 pm

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby Manizuca » Wed Oct 19, 2016 1:49 am

Tried kernel 4.9-rc1, but it didnt boot for me. However, i found 2 changes to the charger code present in the new version (ae0f74be6 and c65a8b5112), applying them to 4.8.2 solves the charger not being detected.

$this->bbcode_second_pass_quote('NoDiskNoFun', '@')vman:
as tincman mention before nouveau driver is for "discreet nvidia cards"
but i installed arch in april or so with xf86-video-nouveau and it was working fine. i was also able to play arx liberatis without any crash.

did you compile the kernel from tincman repo?

$this->bbcode_second_pass_quote('vman', 'S')till, if anyone has a working configuration for nouveau (kernel config?), than I'd be happy to hear about it.

As said above, use the patches and config from https://github.com/sctincman/PKGBUILDs/ ... mc-timings
For me the only problem was the wifi, but fixed that just reverting one commit (as i said some comments ago)
Manizuca
 
Posts: 17
Joined: Sun Aug 28, 2016 3:05 pm
Top

Re: Mainline Kernel on Tegra K1 (Acer Chromebook 13 CB5-311)

Postby vman » Wed Oct 19, 2016 8:16 pm

$this->bbcode_second_pass_quote('', 'F')or me the only problem was the wifi, but fixed that just reverting one commit (as i said some comments ago)

I'll have to look into that first - my WiFi only worked once. I won't have time for it until next week, though.

Anyway thanks for the help, and I'll try to find my way around in this new Arch world. ;-)
vman
 
Posts: 63
Joined: Sat Oct 15, 2016 6:00 pm
Top

PreviousNext

Return to nVidia

Who is online

Users browsing this forum: No registered users and 5 guests