<div dir="ltr"><div class="gmail-_3xX726aBn29LDbsDtzr_6E gmail-_1Ap4F5maDtT1E1YuCiaO0r gmail-D3IL3FD0RFy_mkKLPwL4" style="max-width:800px"><div class="gmail-_292iotee39Lmt0MkQZ2hPV gmail-RichTextJSON-root"><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Hello to everyone.</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I've
installed Ubuntu 14.04 + kernel 3.13 + kvm on my Samsung Chromebook
ARM "SNOW" model XE303C12. Almost everything works (but not the mouse
usb). My goal is to upgrade Ubuntu (kernel and userland and I want to keep
kvm enabled). So,I've got a new kernel sources from this link :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><a href="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.244.tar.xz" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener nofollow ugc" target="_blank">https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.244.tar.xz</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I have unpacked it and I've added at the bottom of the .config file these lines :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_KVM_MMIO=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_ARM_HOST=y
CONFIG_KVM_ARM_MAX_VCPUS=2
CONFIG_KVM_ARM_VGIC=y
CONFIG_KVM_ARM_TIMER=y
</code></pre><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I
tried to add those lines directly on the .config file editing the file
with nano because as soon as I have wrote "make menuconfig",I saw that
the KVM entries weren't there,as you can see :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><a href="https://ibb.co/WcXPTj5" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener nofollow ugc" target="_blank">https://ibb.co/WcXPTj5</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Unfortunately
those lines don't stick on the kernel config file. When I save it and I
reopen it,I see that the kvm lines have been deleted. (I'm trying to
compile the 5.4 kernel directly on the chromebook using an SSH
connection). As a second attempt I've used the kernel config file
offered by virtual open systems on their guide here :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><a href="http://www.virtualopensystems.com/en/solutions/guides/kvm-on-chromebook/" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener nofollow ugc" target="_blank">http://www.virtualopensystems.com/en/solutions/guides/kvm-on-chromebook/</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I've added the kvm entries (this time they stuck) and then I tried to recompile it with the command :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make uImage dtbs -j2
</code></pre><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">and also :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">make uImage dtbs -j2
</code></pre><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">This is the compiler that I'm using :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">gcc --version
gcc (Ubuntu/Linaro 4.8.2-19ubuntu1) 4.8.2
</code></pre><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">but this is what happened :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">root@marietto-Z87-HD3:/home/ziomario/Desktop/linux-5.4.244# ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make uImage dtbs -j4
scripts/kconfig/conf --syncconfig Kconfig
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
CALL scripts/atomic/check-atomics.sh
CC arch/arm/kernel/asm-offsets.s
arch/arm/kernel/asm-offsets.c:45:2: error: #error Your compiler is too buggy; it is known to miscompile kernels
#error Your compiler is too buggy; it is known to miscompile kernels
^
arch/arm/kernel/asm-offsets.c:46:2: error: #error and result in filesystem corruption and oopses.
#error and result in filesystem corruption and oopses.
^
make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
</code></pre><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">I tried to follow this guide because I wanted to upgrade gcc to a new version :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><a href="https://gist.github.com/alexandreelise/192a63e287018ddfc896bbcb70b219d4" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener nofollow ugc" target="_blank">https://gist.github.com/alexandreelise/192a63e287018ddfc896bbcb70b219d4</a></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">unfortunately this repo does not work anymore :</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><pre class="gmail-_3GnarIQX9tD_qsgXkfSDz1"><code class="gmail-_34q3PgLsx9zIU5BiSOjFoM">sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Cannot add PPA: 'ppa:ubuntu-toolchain-r/test'.
Please check that the PPA name or format is correct.
</code></pre></div></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div>