Open denysvitali opened 7 years ago
@vartom
Oh, I see!
I missed the run_autogen
part. Thank you!
Unfortunately when I build the rootfs w/ the ld.so.conf.d
entry I'm not able to run gdm / lightdm anymore. Therefore we can't use the latest mesa for whatever reason.
@denysvitali This is because the mesa /Xorg is falling. And without software rendering.
@vartom I know, but I still haven't figured out why it does fail. I'm also having troubles while building mesa on Travis CI. Once that's fixed I'll be able to release reproduceable rootfs.
@thierryreding Build the kernel from next-20180316, with it it got even worse. now even the kmscube broke down.
@vartom Have you tried this kernel image?
@denysvitali No. I did not begin to merge. It was easier to add patches for smaug.
Ps How can you explain the need to get native vendor files that are not compatible and are not requested by the mainline kernel?
I want to reproduce the same result as in this message. I can not find what went wrong.
@vartom I use them here: https://github.com/denysvitali/linux-smaug/blob/linux-4.17-next/arch/arm64/configs/dragon_denvit_defconfig#L1131
The most important ones are nvidia/tegra210/xusb.bin
and nvidia/tegra210/vic04_ucode.bin
binaries. Without them I cannot get the device to boot
@denysvitali It's easier to add them once in the form of a patch.
In addition, most of these files are searched for under other names in other directories, for example https://github.com/denysvitali/linux-smaug/blob/bfc7ad6f09eba9fb1f06ea2da8803affd447bf12/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c#L132
@vartom Sure thing, but they still are proprietary files which we don't have any license for. Therefore I'm pretty sure they cannot be legally added to the project (there is a TOS that needs to be accepted)
You technically cannot intertwine them very much with the kernel, but that's why you have the apposite linux-firmware package for all the blobs. https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.nvidia
I really should try to build an arсhlinux with this package Package Details: mesa-git 18.1.0_devel https://aur.archlinux.org/packages/mesa-git/
A little information https://archlinuxarm.org/forum/viewtopic.php?f=49&t=12185&start=10#p57929
@vartom Good! We can try to makepkg
during the rootfs build, and install it afterwards
Yesterday I did not manage to make the package. Perhaps we will wait for the release, if it includes support for tegra https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/1014386-mesa-18-0-rc5-released-mesa-18-0-should-finally-be-out-on-friday
Unfortunately mesa-18 hasn't been tagged... yet. Let's wait for a release and see if it works.
@denysvitali this is not so important, in 18.0 there is still no support for tegra. I still can not assemble the installation package. All the time that something goes wrong. @denysvitali @Samt43 Can you try?
I can not find a solution to several errors. /usr/share/makepkg/util/pkgbuild.sh: line 69: /dev/fd/62: No such file or directory Another such error chmod: cannot access '/mnt/data/home/dima/Pc/rootfs/tegra-nouveau/out/target/aarch64/ArchLinuxArm/home/alarm/abs/mesa-full-tegra/pkg': No such file or directory ==> ERROR: A failure occurred in (). I create a pkg directory, during the execution of makepkg it is deleted and again gives an error that there is no this directory
Hi guys, i just wanted to know if one can use the tegra X1 linux driver https://developer.nvidia.com/embedded/dlc/l4t-jetson-tx1-driver-package-28-2-ga on pixel C. Thank you.
@rakhenmanoa As far as I know this driver can be used only with the appropriate kernel 28.2 (the driver in the kernel) for L4T from nvidia.
Does the recently tagged mesa 18.1 RC support tegra?
yes, it appears to: https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/tegra?h=mesa-18.1.0-rc1
as opposed to 18.0.1, which doesn't have the driver: https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers?h=mesa-18.0.1
I'll try a new build tomorrow and report back the results 👍
Hi guys, the group fail0verflow posted a Linux system for the Nintendo switch with accelerated graphics, there https://fail0verflow.com/blog/2018/shofel2/ Do you think it will work on Pixel C ?
Hey @rakhenmanoa! I noticed it too and I'm currently setting up the CI to generate a rootfs w/ the latest mesa, as suggested by @q66.
I'll report back soon: meanwhile you can check the build status here
@denysvitali btw, once the GPU stuff is confirmed working and Mesa 18.1 makes it into its package repository, I'll probably look into porting Void Linux arm64 onto my Pixel C (it frequently lies unused unless I'm traveling, I'd like to change that) - what's the current status of Bluetooth support? Still the same with latest 4.17-rc2 kernel as previously, i.e. not working? Additionally, is there any public discussion channel? (ideally on IRC)
@q66
Wonderful! I look forward to your contribution!
I created the Linux On Pixel C Organization on GitHub and I plan to switch to it in the newr future, because this project isn't only mine.
If you want to be part of the organization I can add you as a member.
The current bluetooth support is being tracked in #10. At the moment the brcm4354 works just for the Wi-Fi (= Standard Bluetooth and BTLE doesn't work).
I haven't tried the latest 4.17-rc2 kernel, but I'm planning to. Theoretically speaking a kernel build is already ready (but not yet tested) here (and yes, that release name is ugly. I need to fix my CI)
There is currently no public discussion channel, but I've just created a Telegram group which can be found here
We can create an IRC channel on freenode and link the two. If you want to create it and moderate it you can do it :)
In the following hours I'll test the new kernel, and try to fix my CI. I'll then generate a better rootfs w/ the newest mesa 18.1
Hopefully I'll find some time to migrate / imolement the CI on the pixelc-linux organization.
Curently I'm using both Travis-CI and Jenkins (hosted at jenkins.ded1.denv.it). pixelc-linux members have the permissions to edit and run jobs on that istance as they wish
Alright. I created a #linux-on-pixel-c
channel on freenode; if you want to get a relay bot in there or something, go ahead. I'll register the channel with chanserv in the meantime. And I guess it's a good idea to start looking into TWRP'ing my Pixel C and setting up Android tools (adb/fastboot) on my FreeBSD workstation and perhaps a Linux VM for building.
Everyone is welcome to join the #tegra channel on Freenode. Its focus is on upstream Linux development and most people involved with upstream Linux development on Tegra hang out there, so I it should be a good fit for what you're trying to achieve.
Btw, we now have a Telegram group which is linked to the #linux-on-pixel-c
channel on Freenode. We'll discuss there about the project. Every progress we make will be published / described in the respective issue (on this project).
We'll eventually migrate to @pixelc-linux in the near future, in the meantime we'll keep the discussions here, on Telegram and on Freenode.
@thierryreding Thanks! I'll make sure to check out the #tegra
channel!
The kernel 4.17-rc2 does not correctly display the image on the screen. Just like the kernel of Next-20180316, which I mentioned earlier.
@vartom What do you mean by "does not correctly display the image on the screen"? Are there glitches?
I personally tried w/ one of the recently tagged builds (for example this one) which use the Google provided tegra blobs, and it seems to work fine. Acceleration is still missing though because I wasn't able to build mesa 18.1 yet (I'm still having some problems w/ my Jenkins pipeline - I'll have to fix them when I have more free time)
the logs are displayed correctly. The problem manifests itself when the image forms a GPU. turn on the utility kmscube or take my rootfs with working acceleration.
@denysvitali I do not understand your persistence in using Google blobs. They will not work with the mainline kernel. Using them you will not get hardware video acceleration!
ps Conducted an elementary comparison of files by content. In the directory nvidia / tegra210 all files that are used by the mainline kernel (from Linux-firmware) are the same as those from Google. The files in the firmware / new file directory are the same as the files located in the firmware / nvidia / gm20b / gr / directory, but they have different names.
Perhaps the mainline kernel can use old blob names, or maybe not.
@thierryreding
This is the email that @vartom has wrote you today. I pasted it here with his permission in order to keep the discussion public, so that everyone can help / be helped.
Hello. I have already noted in the subject Graphics Acceleration Is Missing #2 that since the kernel is next from 03/16/18 the image has become spoiled on the screen. So I dropped some videos with a problem in the telegram group https://t.me/joinchat/AMCvfg2mCMNEQHJxvFzf2Q Today I found out for what patch this happens. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/gpu/drm/tegra?id=4ae4b5c0dbaa499f2fd9215caac6e474c8dd477f I tested it in the kernel and in the kernel 4.17. Without this patch, the image remains normal. Could you double-check this patch and fix it?
cc/ @vartom, @q66, @nvidia
This is what happens:
Hello denysvitli, Can you please put a package together for me that allows me to flash linux with gpu acceleration to my pixel c, in this forum post ive seen you get gpu acceleration to work so congrats on that, i would like to test your linux build for the pixel c, im not a linux developer or someone who can port linux to android like you 😄 but i just want to try linux on my tablet< Thanks :P
You will have to wait until our infra is properly up, I guess. Which hopefully shouldn't take long at this point...
Ok cool, im currently actually installing the available build of linux for the pixel c but i ran in to a problem, the cache partition isn't big enough to store the latest rootfs tar
@PixelCUser Just copy the rootfs over /sdcard
Btw, please, let's not go off topic here. If you're having some troubles installing a Linux Distro on your Pixel C, feel free to open a new issue. This is specifically related to the graphic acceleration issues we're facing.
In a couple of days we'll probably have a better way to deliver updated versions of our rootfs and kernel images, so that it will be easier for everyone to install a Linux Distro on their Pixel C.
If you want to be informed about the changes, click "Watch" on this repo to be notified of all the changes, or join our Telegram group at https://telegram.me/pixelclinux / IRC channel on Freenode #linux-on-pixel-c
Edit: Fix Telegram Link, thanks @mirh
Currently Linux on Pixel C is missing GPU Acceleration, therefore the UI is laggy dmesg is available here