So, läuft .
Das sind die Anpassungen, die ich gemacht habe:
targets/x86-xen_domu/config:
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_xen_domu=y
CONFIG_TARGET_ROOTFS_EXT4FS=y
CONFIG_GRUB_IMAGES=y
targets/x86-xen_domu/config:
X86_XEN_MODULES :=
$(eval $(call GluonProfile,GENERIC,$(X86_XEN_MODULES)))
$(eval $(call GluonProfileFactorySuffix,GENERIC,-ext4,.img.gz))
$(eval $(call GluonProfileSysupgradeSuffix,GENERIC,-ext4,.img.gz))
$(eval $(call GluonModel,GENERIC,combined,x86-xen))
targets/x86-xen_domu/vermagic:
8e4fb34a527a3c654153a9a0eb1ebd9c
targets/targets.mk:
...
$(eval $(call GluonTarget,x86,xen_domu))
....
packages/gluon/libs/lua-platform-info/Makefile:
...
@(TARGET_ar71xx_generic||TARGET_ar71xx_nand||TARGET_mpc85xx_generic||TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu||TARGET_ramips_rt305x)
...
packages/gluon/libs/lua-platform-info/files/x86/xen_domu/platform_info.lua:
local model
for line in io.lines('/proc/cpuinfo') do
model = line:match('^model name%s*:%s*(.+)$')
if model then
break
end
end
module 'platform_info'
-- The OpenWrt target
function get_target()
return 'x86'
end
-- The OpenWrt subtarget or nil
function get_subtarget()
return 'xen_domu'
end
-- The board name
function get_board_name()
return nil
end
-- The model name
function get_model()
return model
end
-- The image name for sysupgrades
function get_image_name()
return 'x86-xen'
end
Und mal meine Xen-Config:
bootloader = '/usr/lib/xen-default/bin/pygrub'
vcpus = '1'
memory = '512'
root = '/dev/xvda2'
disk = [
'file:/srv2/xen/ffac-monty-va1416-xen/current.img,xvda,w'
]
name = 'ffac-monty-va1416-xen'
vif = [ 'mac=00:16:3E:BF:13:61, bridge=br-vlan4', 'mac=00:16:3E:BF:12:58, bridge=br-vlan8' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
extra = 'elevator=noop console=hvc0 xencons=tty clocksource=xen'