View previous topic :: View next topic |
Author |
Message |
dkasak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/18872133235222c0da55f16.jpg)
Joined: 10 Feb 2012 Posts: 61
|
Posted: Fri Jul 21, 2017 4:45 am Post subject: qemu and arm - extracting a kernel |
|
|
Hi all. I'm thinking of replacing my home server with an ARM SOC, and I'd like to 1st see that everything I want to use at least compiles on ARM. I've downloaded an ARM image, which I assume is supposed to be dd'd to an SD card. I've rebuilt qemu with:
Code: | QEMU_SOFTMMU_TARGETS="x86_64 arm" |
virt-manager now shows me architecture options, and I can select ARM. The next screen, however, insists that "A kernel is required for armv7l guests". I've googled around a little ( eg https://fedoraproject.org/wiki/QA:Testcase_Virt_ARM_on_x86?rd=QA:Testcase_Virt_x86_on_ARM ), and seen that some people are using libguestfs-tools to extract kernels from raw images. However this ( libguestfs ) doesn't compile for me:
Code: | checking if we should build the appliance... yes
checking for supermin... no
checking for --with-supermin-packager-config option... not set
checking for --with-supermin-extra-options option... not set
configure: error: supermin >= 5.1 must be installed
|
I guess I can build it manually. Am I going down the right path here? Has someone extracted a kernel from a raw disk image and successfully booted an ARM distro on x86? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
russK l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/15742077964704e215e5664.jpg)
Joined: 27 Jun 2006 Posts: 665
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54874 Location: 56N 3W
|
Posted: Fri Jul 21, 2017 8:28 am Post subject: |
|
|
dkasak,
The kernel is one of the easiest packages to cross compile.
Its well supported because its always the first step in porting to a new CPU.
Go for cross compiling your kernel, that will make it trivial to add cross distcc later.
With Code: | QEMU_SOFTMMU_TARGETS="x86_64 arm" | you can chroot into your arm code on an amd64 host. There is no need for a full KVM.
Thats explained in some detail for arm64.
Change the arm64 bits to arm. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dkasak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/18872133235222c0da55f16.jpg)
Joined: 10 Feb 2012 Posts: 61
|
Posted: Wed Jul 26, 2017 12:45 am Post subject: |
|
|
Thanks for the tip re: cross-compiling. That's an interesting approach. I've just ordered my ARM system, so it will be very handy to be able to build on my AMD and push to my ARM ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54874 Location: 56N 3W
|
Posted: Wed Jul 26, 2017 9:24 am Post subject: |
|
|
Moved from Other Things Gentoo to Gentoo on Alternative Architectures.
ARM goes here meanwhile. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|