Hi all, I was excited about a nice post on KVM on ARM on the cubietruck. http://rwmj.wordpress.com/2013/12/13/kvm-working-on-the-cubietruck/
However, so far I have not managed to get it working myself. I have tried the branches sunxi-test, sunxi-test2 and sunxi-devel of https://github.com/jwrdegoede/linux-sunxi/ but either the compilation of the kernel or of its modules fails. All compilation steps were performed on the cubietruck itself - so no additional cross-compilation complexity. Has anyone on this list successfully compiled a recent kernel version for cubietruck? Has anyone hints where I have missed an important bit? Thanks, Udo
Hi,
On 01/30/2014 07:29 PM, Udo Seidel wrote:
Hi all, I was excited about a nice post on KVM on ARM on the cubietruck. http://rwmj.wordpress.com/2013/12/13/kvm-working-on-the-cubietruck/
However, so far I have not managed to get it working myself. I have tried the branches sunxi-test, sunxi-test2 and sunxi-devel of https://github.com/jwrdegoede/linux-sunxi/ but either the compilation of the kernel or of its modules fails.
A log with error messages would be useful. jwrdegoede/linux-sunxi sunxi-devel branch should work, try using the attached .config
Regards,
Hans
Hi Hans,
On Thu, 30 Jan 2014, Hans de Goede wrote:
A log with error messages would be useful. jwrdegoede/linux-sunxi sunxi-devel branch should work, try using the attached .config
thanks for that. I used your config, enabled LPAE and KVM and retried the compilation (see below).
[root@cubietruck linux-sunxi]# LOADADDR=0x40008000 make uImage dtbs modules > stdout.log 2> stderr.log [root@cubietruck linux-sunxi]#
[root@cubietruck linux-sunxi]# which gcc /usr/bin/gcc [root@cubietruck linux-sunxi]# rpm -qf /usr/bin/gcc gcc-4.8.2-7.fc20.armv7hl [root@cubietruck linux-sunxi]#
The amended config files and the log files are attached. The compilation did not succeed. :-(
Hope the log files help to indicate where the problem is.
Thanks, Udo
Me again,
On Fri, 31 Jan 2014, Udo Seidel wrote:
A log with error messages would be useful. jwrdegoede/linux-sunxi sunxi-devel branch should work, try using the attached .config
have used your config without changing it and that worked. Meaning kernel and modules were compiled successfully. Now I wonder why enabling LPAE and KVM broke that. Has the list any hints/suggestions?
Thanks, Udo
Hi,
On 02/02/2014 08:07 PM, Udo Seidel wrote:
Me again,
On Fri, 31 Jan 2014, Udo Seidel wrote:
A log with error messages would be useful. jwrdegoede/linux-sunxi sunxi-devel branch should work, try using the attached .config
have used your config without changing it and that worked. Meaning kernel and modules were compiled successfully.
Good to hear.
Now I wonder why enabling LPAE and KVM broke that.
A good question, I'm afraid I don't have time to look into this atm.
BTW why are you enabling LPAE? Have you tried using just KVM ? For the sunxi stuff there is little reason to enable LPAE.
Regards,
Hans
Hi Hans,
On Mon, 3 Feb 2014, Hans de Goede wrote:
BTW why are you enabling LPAE? Have you tried using just KVM ? For the sunxi stuff there is little reason to enable LPAE.
I have not looked into that in detail ... there is dependency in the kernel configuration so that KVM will not show up as an option if LPAE is not set. That was/is the only reason why I have enabled LPAE.
BTW, I did further checks .. and indeed enabling LPAE is the trouble-maker. I will try to do some tests by breaking the config dependency between LPAE and KVM.
I will keep the list posted.
Udo
On 02/02/2014 08:07 PM, Udo Seidel wrote:
Me again,
On Fri, 31 Jan 2014, Udo Seidel wrote:
A log with error messages would be useful. jwrdegoede/linux-sunxi sunxi-devel branch should work, try using the attached .config
have used your config without changing it and that worked. Meaning kernel and modules were compiled successfully.
Good to hear.
Now I wonder why enabling LPAE and KVM broke that.
A good question, I'm afraid I don't have time to look into this atm.
BTW why are you enabling LPAE? Have you tried using just KVM ? For the sunxi stuff there is little reason to enable LPAE.
Because CONFIG_KVM on ARM depends on "ARM_VIRT_EXT && ARM_LPAE"
Peter