Acer Chromebook CB5-311 mainline

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

Re: Acer Chromebook CB5-311 mainline

Postby vman » Tue May 05, 2020 7:34 pm

Hi Lordrafa,

thanks for the detailed description of your installation procedure!

Actually I did not just fiddle with my old Arch install, but tried Debian and Ubuntu as well. Given the kernel errors I get, I think the problem is more with hardware initialization, than with what GNU/ Linux flavor I'm using. As far as I understand everyone here who has graphics acceleration got rid of the default bootloader and replaced it either with libreboot or with u-boot. In your case there was not even such a default bootloader...

The problem is: I never found step-by-step instructions like the ones you wrote on how to do this with the CB5-311. Apparently information that used to be online, according to Manizuca, is no longer available.
vman
 
Posts: 61
Joined: Sat Oct 15, 2016 6:00 pm

Re: Acer Chromebook CB5-311 mainline

Postby lordrafa » Thu May 07, 2020 12:03 pm

I would forgot about Debian and probably Ubuntu... I tried Debian 10 first and testing later... the problem is that they are using old versions, so they return the hell of kernel errors... Also the way that they have compiled the packages could affect. Probably the same would apply to Ubuntu....

Of course it could be posible that there is something nasty with coreboot (I think this is the CB5 bootloader) and the GPU but this wouldn't be my first call, because in theory the bootloader shouldn't do a mayor device initialization and ChromeOs at that point is a linux kernel so anything that the bootloader does would affect in a similar way....

Furthermore the errors that you describe "nouveau 57000000.gpu: gr: DATA_ERROR 0000009c" are the same that I could see in my TK1 before I installed the right xorg-server-git package from AUR....
lordrafa
 
Posts: 5
Joined: Sat May 02, 2020 12:41 am

Re: Acer Chromebook CB5-311 mainline

Postby fedup » Fri May 08, 2020 9:52 pm

Hello vman, mraxunilhcra
The pinebook pro looks a nice laptop and it will be a great improvement over the acer tegra-nyan. I'm sticking with mine for now as I like to get more years out of my gear. That said although I still have around 75% of the original battery life, my power connector and supply are causing problems. I have to move the cable about to get a good connection.

Recent kernel 5.5 and the newer 5.6 have introduced new bugs and fixed nothing. There seems to be a problem now with iommu and nouveau I noticed the 5.5 debian bullsye kernel has screen flicker, probably as a result. The custom defconfig I use is failing on 5.6 but I see boot logs on successful from Collaboro Labs that the iommu errors still there so this regression has not been flagged. I'm running a custom 5.4 kernel which is working well and 5.4 is running until December 2021. I'm not sure if the issues with the tegra124 series will ever be resolved; there is a HD decoder in staging for example but I doubt we will ever see the software which can use it.

@lordrafa
Are you able to suspend to ram on your TK1? This was broken around 4 years ago on the acers and has never been fixed. I'm using Uboot as the bootloader but the memory is mapped different from the the other tegra's. so uboot has to be built with a different BCT file. I'm actually running debian 10 on the emmc as its really stable I had to rebuild mesa to get open GL. I do experiment with the other systems on usb drives.
fedup
 
Posts: 30
Joined: Mon Jan 07, 2019 2:02 pm

Re: Acer Chromebook CB5-311 mainline

Postby mraxunilhcra » Thu May 14, 2020 6:18 pm

Hello, vman huge thanks for sharing your image with me.
Although I couldn't download it, probably because of the ipv6 vs ipv4 you mentioned.

Kali no longer makes images for Acer Chromebook CB5-311.
This is the last one to be found:

https://images.offensive-security.com/a ... yan.img.xz

5f82ad8105e721ef94bd0d99908d6b1e712a952bc90ef49f18a624ae94a7488c kali-linux-2019.4-nyan.img.xz

(With the 3.10 Google ChromeOS kernel)

I'm probably the only one in the world to run this.

It boots in ~5 sec and works form SD Card/USB flash BUT no sound/audio
Tried for 2 days to fix it but I exhausted every info on the internet and my minimal skills. So I give up.

I will appritiate so much if someone try it and have a quick look at the audio/sound.

fedup would you share your 5.4 image with me ? Is it arch?
I also want to run my gear longer, but now I can't find working image.
The debian10 that you have is it with the stock/default debian 4.19 kernel ?
I would love that (looking back at the thread 4.19 was a good working kernel).
I don't need 3d or video accelaration at all.

Pinebook Pro price adds up when you add shipping and essensial accesories +
import taxes or handling which you never know in advance.

Best Regards.
mraxunilhcra
 
Posts: 2
Joined: Sat Apr 18, 2020 7:27 pm

Re: Acer Chromebook CB5-311 mainline

Postby vman » Thu May 14, 2020 7:47 pm

Hi lordrafa, fedup, mraxunilhcra, and all fellow CB5-311 users,

indeed using old gear as long is it is working well is a nice thing to do. I'm really frustrated with all these end-of-support products. Support for my phone (Nexus 6p), which is still working quite well, even got dropped by LineageOS a few months ago. I'm still waiting for the Purism 5, which I ordered in 2017, and which is supposed to receive software updates past the life-time of the device... but that's a different topic.

Fedup, thanks for the update on the state of support. It is understandable, but sad nevertheless, how exotic hardware support erodes over time. I had a similar experience with my beautiful (though quite slow in the end) iMac G4. Eventually all major Linux distros completely dropped PPC support. The PinebookPro is not much of an improvement over the CB5-311, probably the GPU is even worse... but I'm assuming software support will be much better, and available for longer.

Lordrafa, it is not like I just installed old Debian versions. I tried unstable, actually, which comes with fairly recent software. I'm pretty sure something is wrong with booting the kernel the way I do, right from Google's Coreboot. But I'm reluctant to flash u-boot, and erase Chrome OS, since so far that at least works for video. Still I feel like I'll try some time soon, if no other solution appears.

Mraxunilhcra, now that I spent quite some time creating this image I also want you to get it. I just started uploading to uploadfiles.io. I wonder if it will be done by tomorrow. If yes, I'll send you the link, again in a PM.
vman
 
Posts: 61
Joined: Sat Oct 15, 2016 6:00 pm

Re: Acer Chromebook CB5-311 mainline

Postby fedup » Fri May 22, 2020 8:07 am

@mraxunilhcra and others who may want to try the kernel I use.
I create my kernel from a defconfig which has evolved over time. I don't have a git repo set up with my stuff at the moment
but as the defconfig is just a text file I'll just paste the contents below.
This config is not working with 5.6 which has 2 bad regressions.
I'm staying with 5.4 as I think it will be good for the life of my acer.

1. Download latest stable 5.4 kernel and just copy the contents below to arch/arm/configs/tegra-nyan_defconfig.
2. make tegra-nyan_defconfig
3. make -j4 bzImage modules
#I modify arch/arm/boot/dts/tegra124-nyan.dtsi allow cpufrequency
4. make tegra124-nyan-big.dtb
5. sudo make modules_install
Then use the zimage in arch/arm/boot/zImage and the dtb arch/arm/boot/dts/tegra124-nyan-big.dtb. You will only need a initrd if you are using an encrypted rootfs.
If you are using coreboot you will need to create the fit image with mkimage and then sign it with vbutil_kernel. and the dd the content into a kernel partition used by coreboot. Probably vman's image will be setup with the correct partitions.

Apologies for the size of this:
Code: Select all
CONFIG_SYSVIPC=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_PREEMPT=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_CGROUPS=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_BPF=y
CONFIG_NAMESPACES=y
CONFIG_USER_NS=y
CONFIG_CHECKPOINT_RESTORE=y
CONFIG_BLK_DEV_INITRD=y
# CONFIG_ELF_CORE is not set
CONFIG_BPF_SYSCALL=y
CONFIG_EMBEDDED=y
# CONFIG_COMPAT_BRK is not set
CONFIG_PROFILING=y
CONFIG_ARCH_TEGRA=y
CONFIG_ARM_LPAE=y
CONFIG_ARM_THUMBEE=y
CONFIG_SMP=y
CONFIG_NR_CPUS=8
CONFIG_HIGHMEM=y
# CONFIG_HIGHPTE is not set
CONFIG_SECCOMP=y
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
CONFIG_KEXEC=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPUFREQ_DT=y
# CONFIG_ARM_TEGRA20_CPUFREQ is not set
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_ARM_CPUIDLE=y
CONFIG_VFP=y
CONFIG_NEON=y
CONFIG_TRUSTED_FOUNDATIONS=y
CONFIG_TEGRA_IVC=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODULE_COMPRESS=y
CONFIG_MODULE_COMPRESS_XZ=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_CMA=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_PACKET_DIAG=y
CONFIG_UNIX=y
CONFIG_UNIX_DIAG=m
CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_STATISTICS=y
CONFIG_NET_KEY=y
CONFIG_NET_KEY_MIGRATE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_MROUTE=y
CONFIG_IP_MROUTE_MULTIPLE_TABLES=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_NET_FOU_IP_TUNNELS=y
CONFIG_INET_ESP=m
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_MD5SIG=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_INET6_AH=y
CONFIG_INET6_ESP=y
CONFIG_INET6_IPCOMP=y
CONFIG_IPV6_MIP6=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_NETFILTER=y
CONFIG_NF_CONNTRACK=m
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CONNTRACK_TIMESTAMP=y
CONFIG_NF_CONNTRACK_LABELS=y
CONFIG_NF_CONNTRACK_FTP=m
CONFIG_NF_CONNTRACK_NETBIOS_NS=m
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
CONFIG_IP_SET=m
CONFIG_NF_SOCKET_IPV4=m
CONFIG_NF_TPROXY_IPV4=m
CONFIG_NF_DUP_IPV4=m
CONFIG_NF_LOG_IPV4=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_RPFILTER=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_SECURITY=m
CONFIG_IP6_NF_IPTABLES=m
CONFIG_IP6_NF_MATCH_RPFILTER=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_TARGET_REJECT=m
CONFIG_IP6_NF_MANGLE=m
CONFIG_IP6_NF_RAW=m
CONFIG_IP6_NF_SECURITY=m
CONFIG_IP6_NF_NAT=m
CONFIG_IP_DCCP=m
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_BT=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIBTSDIO=m
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
CONFIG_CFG80211=m
CONFIG_MAC80211=m
CONFIG_RFKILL=m
CONFIG_RFKILL_INPUT=y
CONFIG_RFKILL_GPIO=m
CONFIG_PCI=y
CONFIG_PCI_MSI=y
CONFIG_PCI_TEGRA=y
CONFIG_UEVENT_HELPER=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_EXTRA_FIRMWARE="nvidia/tegra124/xusb.bin"
CONFIG_TEGRA_GMI=y
CONFIG_CONNECTOR=y
CONFIG_MTD=y
CONFIG_MTD_M25P80=y
CONFIG_MTD_SPI_NOR=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_RAM=m
CONFIG_BLK_DEV_RAM_COUNT=1
CONFIG_MISC_RTSX_USB=m
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=m
CONFIG_ATA=y
CONFIG_SATA_AHCI=y
CONFIG_AHCI_TEGRA=y
CONFIG_MD=y
CONFIG_BLK_DEV_DM=m
CONFIG_DM_CRYPT=m
CONFIG_DM_THIN_PROVISIONING=m
CONFIG_DM_FLAKEY=m
CONFIG_DM_VERITY=m
CONFIG_NETDEVICES=y
CONFIG_MDIO_DEVICE=y
CONFIG_MWIFIEX=m
CONFIG_MWIFIEX_SDIO=m
CONFIG_INPUT_EVDEV=y
# CONFIG_KEYBOARD_ATKBD is not set
CONFIG_KEYBOARD_GPIO=y
CONFIG_KEYBOARD_TEGRA=m
CONFIG_KEYBOARD_CROS_EC=y
# CONFIG_MOUSE_PS2 is not set
CONFIG_MOUSE_ELAN_I2C=m
# CONFIG_SERIO is not set
# CONFIG_LEGACY_PTYS is not set
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_OF_PLATFORM=y
CONFIG_SERIAL_TEGRA=y
CONFIG_HW_RANDOM=y
CONFIG_TCG_TPM=y
CONFIG_TCG_TIS_I2C_INFINEON=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_TEGRA=y
CONFIG_I2C_CROS_EC_TUNNEL=y
CONFIG_SPI=y
CONFIG_SPI_TEGRA114=y
CONFIG_PINCTRL_AS3722=y
CONFIG_GPIO_SYSFS=y
CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_AS3722=y
CONFIG_POWER_RESET_GPIO_RESTART=y
CONFIG_BATTERY_SBS=y
CONFIG_CHARGER_BQ24735=y
CONFIG_SENSORS_LM90=y
CONFIG_THERMAL=y
CONFIG_CPU_THERMAL=y
CONFIG_TEGRA_SOCTHERM=y
CONFIG_WATCHDOG=y
CONFIG_TEGRA_WATCHDOG=y
CONFIG_MFD_AS3722=y
CONFIG_MFD_CROS_EC=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_AS3722=y
CONFIG_REGULATOR_GPIO=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_MEDIA_CEC_SUPPORT=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=m
CONFIG_CEC_PLATFORM_DRIVERS=y
CONFIG_VIDEO_TEGRA_HDMI_CEC=y
CONFIG_DRM=y
CONFIG_DRM_NOUVEAU=m
CONFIG_DRM_TEGRA=y
CONFIG_DRM_TEGRA_STAGING=y
CONFIG_DRM_PANEL_SIMPLE=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_PWM=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_LOGO=y
CONFIG_SOUND=y
CONFIG_SND=y
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
# CONFIG_SND_DRIVERS is not set
CONFIG_SND_HDA_TEGRA=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_ARM is not set
# CONFIG_SND_SPI is not set
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_SOC=y
CONFIG_SND_SOC_TEGRA=y
CONFIG_SND_SOC_TEGRA30_I2S=y
CONFIG_SND_SOC_TEGRA_RT5640=y
CONFIG_SND_SOC_TEGRA_MAX98090=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_TEGRA=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_TEGRA=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=y
CONFIG_USB_GADGET=y
CONFIG_USB_ULPI_BUS=y
CONFIG_MMC=y
CONFIG_MMC_BLOCK_MINORS=16
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_TEGRA=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_AS3722=y
CONFIG_RTC_DRV_TEGRA=y
CONFIG_DMADEVICES=y
CONFIG_TEGRA20_APB_DMA=y
CONFIG_STAGING=y
CONFIG_STAGING_MEDIA=y
CONFIG_TEGRA_VDE=m
CONFIG_CROS_EC_SPI=m
CONFIG_TEGRA_IOMMU_SMMU=y
CONFIG_ARCH_TEGRA_124_SOC=y
CONFIG_PM_DEVFREQ=y
CONFIG_DEVFREQ_GOV_PERFORMANCE=m
CONFIG_DEVFREQ_GOV_POWERSAVE=m
CONFIG_DEVFREQ_GOV_USERSPACE=m
CONFIG_DEVFREQ_GOV_PASSIVE=m
CONFIG_ARM_TEGRA_DEVFREQ=y
CONFIG_MEMORY=y
CONFIG_PWM=y
CONFIG_PWM_TEGRA=y
CONFIG_PHY_TEGRA_XUSB=y
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
# CONFIG_DNOTIFY is not set
CONFIG_AUTOFS4_FS=m
CONFIG_UDF_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_UTF8=y
CONFIG_NTFS_FS=m
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_NFS_FS=y
CONFIG_NFS_V4=y
CONFIG_NLS_DEFAULT="utf-8"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ISO8859_1=y
CONFIG_SECURITY=y
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_APPARMOR=y
CONFIG_DEFAULT_SECURITY_APPARMOR=y
CONFIG_CRYPTO_PCRYPT=m
CONFIG_CRYPTO_DH=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_XTS=y
CONFIG_CRYPTO_CRCT10DIF=y
CONFIG_CRYPTO_SHA512=m
CONFIG_CRYPTO_SHA3=m
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_TWOFISH=m
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_USER_API_SKCIPHER=m
CONFIG_CRYPTO_USER_API_RNG=m
CONFIG_CRC_CCITT=y
CONFIG_DMA_CMA=y
CONFIG_CMA_SIZE_MBYTES=64
CONFIG_PRINTK_TIME=y
CONFIG_DEBUG_INFO=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_VM=y
CONFIG_SOFTLOCKUP_DETECTOR=y
CONFIG_SCHEDSTATS=y
CONFIG_FUNCTION_TRACER=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_STRICT_DEVMEM=y


fedup
 
Posts: 30
Joined: Mon Jan 07, 2019 2:02 pm

Re: Acer Chromebook CB5-311 mainline

Postby fedup » Mon May 25, 2020 12:52 pm

I tried sway on my test system and it loads but just like gnome-session the screen is blank. It seems to be working as I'm able to logout but there must be something wrong in mesa and nouveau.

I then tried running a weston which runs with wayland backend no problems. I noticed a huge improvement in 1080p playback with mpv was smooth with no tearing so this is very good news, BBC iplayer was also good in firefox, It seems performance of Xwayland is superior to the modesetting X driver. I did push the pstate up but only to 250MHZ. Automatic GPU frequency though it partially works never seems to put the speed up when you need it.

I was able to run a gnome-shell from within weston by running:
dbus-run-session -- gnome-shell --nested --wayland
gnome then ran very well although in a window. I could increase the window but could increase upto 1600x900 but not full screen. Performance was good so it shows that wayland works but something is stilll wrong.

Sway also ran in a nested window from weston using my i3 config.

weston is not really meant as full desktop but I have to say it works better than anything else I've tried. However some applications including mpv and chromium cause a crash which I needed a ssh shell to recover.
fedup
 
Posts: 30
Joined: Mon Jan 07, 2019 2:02 pm

Previous

Return to nVidia

Who is online

Users browsing this forum: No registered users and 3 guests