Xen - Android on Dom-U help

Post Reply
dansope
Has thanked: 0
Been thanked: 0

Xen - Android on Dom-U help

Unread post by dansope » Wed Feb 22, 2017 4:07 am

Hello all,

Let me state that I have search the forums and have read numerous threads including...
http://forum.odroid.com/viewtopic.php?f=98&t=6643
https://lists.gt.net/xen/devel/344315
http://forum.odroid.com/viewtopic.php?f=64&t=3831
http://forum.odroid.com/viewtopic.php?f=60&t=6370

etc.

As the title suggest, I would like to deploy Android on dom-U for xen. At this point, I have built xen using the wiki http://odroid.com/dokuwiki/doku.php?id=en:xu4_xen, and have both dom-0 and dom-U working with linux server without GUI, however, I would like to have a third dom-U (dom-A) which allows android...

The goals I wish to achieve...
1. Android as Dom-U -- use android.img found on dokuwiki? or perphaps use entire source code, build, and use 4+ images (ramdisk.img, system.img, etc.)
2. GUI representation of both Dom-0 (linux) and dom-U (android) -- I may need to build xen tools with qemu and edit the domU.cfg file, either use sdl or vnc...


Can I use the android image that I found from http://odroid.com/dokuwiki/doku.php?id= ... se_android --android-4.4.4-alpha-4.4-sd_installer-odroidxu3-20170206.img and somehow build it for dom-U, maybe run dd command, kpartx, replicate the steps from the wiki for dom-U and get android working...

Any and all information would be greatly appreciated! :)
These users thanked the author dansope for the post:
michale s (Thu Jan 16, 2020 7:49 pm)

User avatar
Brian.K
Posts: 246
Joined: Tue Sep 15, 2015 7:30 pm
languages_spoken: English, Korean
ODROIDs: XU4, C1+, C2
Location: South Korea
Has thanked: 0
Been thanked: 0
Contact:

Re: Xen - Android on Dom-U help

Unread post by Brian.K » Thu Feb 23, 2017 2:26 pm

The first step for this work is to enable GUI environment on Dom0 Linux.
There are a lot of changes in the kernel 3.10.y for XU4 Ubuntu. I think porting Xen Dom0 specific changes to HK's 3.10.y kernel with reference to Linux dom0 is better approach than to use old linux domain 0 kernel.

The next is to make Android DomU kernel.
DomU kernel must have Xen guest support on ARM, front-end drivers and some Xen domain U specific kernel configurations. Please refer to Domain U setting wiki page.

Their two steps are the basics for doing it. And then, you have to fix the problems that you face while doing it. To resolve some issues will be easy, something will be very hard to fix it.
Good luck!

PS. I think Xen on XU4 work have to be rebooted based on 4.9 kernel because Hardkernel released 4.9 kernel for XU4 recently.

dansope
Has thanked: 0
Been thanked: 0

Re: Xen - Android on Dom-U help (odroid xu-3)

Unread post by dansope » Fri Feb 24, 2017 1:33 am

To enable GUI environment for Dom0 Linux, does that have anything to do with building xen tools with qemu? I am not sure what steps are needed to take to enable a gui environment for Dom0 Linux.

Let us assume I have both Dom0 kernel and Android DomU kernel ready to go, How do i configure, or rather, what part of the android source code do I need to deploy Android DomU... e.g. cache.img ramdisk.img, system.img userdata.img, etc. With Dom0's settings, we only had one image file, but with Android we have multiple image files...

I thought about trying to use the android image that I found from http://odroid.com/dokuwiki/doku.php?id= ... se_android in the format: android-4.4.4-alpha-4.4-sd_installer-odroidxu3-20170206.img -- one image vs 4-5 images.

note: forgot to mention my device is odroid xu-3

Thanks so much for your response Brian.

Regards

dansope
Has thanked: 0
Been thanked: 0

Re: Xen - Android on Dom-U help

Unread post by dansope » Thu Apr 06, 2017 4:41 am

The next is to make Android DomU kernel.
DomU kernel must have Xen guest support on ARM, front-end drivers and some Xen domain U specific kernel configurations. Please refer to Domain U setting wiki page.
I am having an error on building Android Dom-U kernel with Xen enabled options...Below are the list of steps taken:

1. android kernel from git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y-android
2. make odroidxu3_defconfig ARCH=arm (I also tried make exynos_defconfig) I am not sure which one to use.
3. make menuconfig ARCH=arm
4. Follow Domain U setting wiki page
5. make ARCH=arm CROSS_COMPILE=/path/to/toolchain -j4 (receive error)

The error is listed here

Code: Select all

ddan@ddan-VirtualBox:~/Desktop/linux$ make ARCH=arm CROSS_COMPILE=~/Desktop/arm-eabi-4.6/bin/arm-eabi- -j8
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
                 from include/linux/dma-mapping.h:9,
                 from arch/arm/kernel/asm-offsets.c:15:
/home/ddan/Desktop/linux/arch/arm/include/asm/io.h:30:28: fatal error: mach/exynos-ss.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
Anyone have any idea?
These users thanked the author dansope for the post:
michale s (Thu Jan 16, 2020 7:33 pm)

michale s
Posts: 9
Joined: Wed Jan 01, 2020 6:48 pm
languages_spoken: english
ODROIDs: ODROID XU4
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Xen - Android on Dom-U help

Unread post by michale s » Thu Jan 16, 2020 7:32 pm

dansope wrote:
Thu Apr 06, 2017 4:41 am
The next is to make Android DomU kernel.
DomU kernel must have Xen guest support on ARM, front-end drivers and some Xen domain U specific kernel configurations. Please refer to Domain U setting wiki page.
I am having an error on building Android Dom-U kernel with Xen enabled options...Below are the list of steps taken:

1. android kernel from git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y-android
2. make odroidxu3_defconfig ARCH=arm (I also tried make exynos_defconfig) I am not sure which one to use.
3. make menuconfig ARCH=arm
4. Follow Domain U setting wiki page
5. make ARCH=arm CROSS_COMPILE=/path/to/toolchain -j4 (receive error)

The error is listed here

Code: Select all

ddan@ddan-VirtualBox:~/Desktop/linux$ make ARCH=arm CROSS_COMPILE=~/Desktop/arm-eabi-4.6/bin/arm-eabi- -j8
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
                 from include/linux/dma-mapping.h:9,
                 from arch/arm/kernel/asm-offsets.c:15:
/home/ddan/Desktop/linux/arch/arm/include/asm/io.h:30:28: fatal error: mach/exynos-ss.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
Anyone have any idea?
i am also facing similar issue.could someone please help me?

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests