-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse and keyboard don't work anymore after having recompiled your kernel 5.4.244 #21
Comments
I wrote a little bash script that executes the commmand line :
as soon as the desktop environment started (kde 5). This is the content of the log file : https://pastebin.ubuntu.com/p/GQ59sqt72v/ I would like to understand what's wrong. I don't understand it. But I understand this "kvm: Hyp mode initialized successfully". So kvm is working on the kernel version that I've used (5.4.244). |
This may happens in case kernel do not load required modules. I do not see in dmesg:
it is from kernel 5.15.120 but you got
that should be modules try to add and
at least mouse should work
So i guess you did not copy lib to / ? |
brtfs with compression run faster than ext4 and saves some space, that is it
you can, actually. according to your dmesg:
and according to
exynos5250-snow-rev5.dtb probably should fit better |
Mission accompished. After a full year of work,I've been able to enable KVM on the arm chromebook running on a relatively recent version of the kernel. Give a look here : very thanks,man,for all the support that you gave to me. Wthout it,I wouldn't have been able. Now what I should do is to install qemu 4 as you have suggested some time ago. Anyway I want to ask you if you want to explain to me how is the procedure that you use to create your devuan builds. I see that they use zImage instead of vmlinuz. To be able to use zImage or uImage as kernel file has been the key for me for enabling KVM. Thats because I'm not sure if u-boot can chainload vmlinuz. For a long time I've been frozen because I didn't know how to convert vmlinuz to zImage or uImage. |
Great! Congratulations! https://github.com/quarkscript/xe303c12_play_linux video demo is present; updated less tested ver - https://gitlab.com/quarkscript/linarm/-/blob/master/xe303c12/kali-linux/gadebli Actually Devuan uses kernel_image, it is a packed zImage with dtb, chromeos signing keys and kernel bootstring. Kernel package containes script that could gen new kernel_image from zImage if needed and flash it to kernel partiton. Last couple kernel packages from gitlab mirror has uImage too. but i did not check is it right generated. |
I tried to boot devuan using "kernel_image",but it didn't boot. Instead,zImage is able to boot but only when it is converted to uImage. Do you think that if I use ubuntu instead of devuan as userland,it will work ? I'm not sure that the installation of your deb file will work because I'm using a different configuration than your. In any case I prefer to don't use automatic scripts that may cause problems because they haven't been written with the exact configuration that I need to use to enable KVM. ---> Last couple kernel packages from gitlab mirror has uImage too. but i did not check is it right generated. can you give me the link of the gitlab mirror ? my next experiment is to change devuan 4 userland with your devuan 5. |
https://gitlab.com/quarkscript/linarm/ or you may look here too https://github.com/quarkscript2/xe303c12_arm_linux https://gitlab.com/quarkscript/linarm/-/blob/master/pkg/README.md kernel_image works with regular chromeos uboot but did not with nv-uboot Links to test disk images same as here. There is only one Devuan 5 (unstable) disk image i made and it was for trying bunsenlabs ui. If you want just update it could be done in same way as other debian based distro: edit /etc/apt/sources.list and replace chimaera with ceres or daedalus then execute Reason i use devuan 4 is old mesa that could be patched to enable limited video hw acceleration that is used with ffplay, mpv or vlc. |
I'm installing devuan 5 on the sd card. I will have problems with the mesa libs ? I will be able to play youtube videos or offline videos ? Is there the needing to patch the mesa libs if I use devuan 5 ? |
You will be able play video without patched mesa. |
What about mesa libs on devuan 4 ? Do i need to patch it ? where is the patch ? how to install mesa libs ? |
It should already be installed. Difference in cpu utilization dufing video playing with vlc, mpv or ffplay. In case you want to rebuild it patch could be https://github.com/quarkscript/linux-armv7-xe303c12-only/blob/master/archlinuxarm/some_forked_apps/mesa/gpuac.patch or patch and instruction how to build deb packages https://gitlab.com/quarkscript/linarm/-/blob/master/pkg/README.md#how-mesa-2035-was-rebuilded deb packages itself https://gitlab.com/quarkscript/linarm/-/tree/master/pkg/mesa For install execute sudo apt install ./packagename.deb ./packagename2.deb and so on. To hold/unhold packages using interactive aptitude could be a little bit easier than apt |
This project is not ended,yet. I've installed virt-manager and I tried to create a new virtual machine. With my big surprise,I saw the warning :
What could the cause ? KVM seems to running great. It is detected by kvm-ok and even virt-manager can establish a connection QEMU / KVM. The qemu version installed is the 5.2.0. |
in this example I've used qemu 5.2.0 installed by default by the devuan 4 :
|
in this example I've compiled qemu-system-arm on ubuntu 12.04 as described by the vos tutorial and then I've copied the libraries produced on the devuan 4 + 5.4 kernel installation :
|
Hello.
I'm still trying to enable KVM on a more recent kernel version,to be precise on the 5.4.244. Quickly this is what I did :
In the uboot source directory:
$ sudo ./scripts/sdcard.sh /dev/sdX
This will erase all data and create 4 partitions in the medium, along with copying the u-boot binary to the first partition:
a) ChromeOS signed binary (vos chained u-boot)
b) Partition 2 not used
c) EXT2 partition for u-boot files (here I have copied your zImage (converted in uImage and your exynos5250-snow.dtb files). I've got the zip file that you created for me one month ago,here :
https://github.com/quarkscript/linux-armv7-xe303c12-only/files/11615040/5.4.244-kvm.zip
I have decompress it and I've got the zImage file that was stored inside the deb file. Since I want to use u-boot,I have converted zImage into uImage using the following command :
# mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux kernel" -d zImage uImage
d) EXT4 partition for userspace files. Here I have copied the devuan 4 userland files that I've got here :
https://drive.google.com/u/0/uc?id=1KSgE-3G2GEBzcYhk_JleVYWl6m061GdI&export=download
but I haven't used a btrfs fs,but ext4. And I have extended the space on the partition from 1882M to 200 GB.
sudo dd if=nv_uboot-snow.kpart of=/dev/sdX1
(nv_uboot-snow.kpart taken from the vos website)what happened ? that the chromebook booted and the desktop enviroment also started. Unfortunately mouse and keyboard and trackpad don't work,so I can't check if kvm exists. But I think that there is an high chance that it works. Why keyboard,mouse and trackpad don't work ? maybe that when you have re-compiled your 5.4.244 kernel,you haven't enabled the drivers ? Previously I had configured the SSH server on the Chromebook,but I can't connect to it because it is enabled only when I will able to overcome the login screen. Can you suggest something to try ?
NB : I have enabled the automatic login and I saw :
The text was updated successfully, but these errors were encountered: