From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/x86/xen_domu/base-files/etc/inittab | 5 ++ .../xen_domu/base-files/lib/preinit/45_mount_xenfs | 11 ++++ target/linux/x86/xen_domu/config-3.3 | 77 ++++++++++++++++++++++ target/linux/x86/xen_domu/target.mk | 3 + 4 files changed, 96 insertions(+) create mode 100644 target/linux/x86/xen_domu/base-files/etc/inittab create mode 100644 target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs create mode 100644 target/linux/x86/xen_domu/config-3.3 create mode 100644 target/linux/x86/xen_domu/target.mk (limited to 'target/linux/x86/xen_domu') diff --git a/target/linux/x86/xen_domu/base-files/etc/inittab b/target/linux/x86/xen_domu/base-files/etc/inittab new file mode 100644 index 000000000..469b8a9a9 --- /dev/null +++ b/target/linux/x86/xen_domu/base-files/etc/inittab @@ -0,0 +1,5 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K stop +tts/0::askfirst:/bin/ash --login +hvc0::askfirst:/bin/ash --login +tty1::askfirst:/bin/ash --login diff --git a/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs b/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs new file mode 100644 index 000000000..7eb8bf795 --- /dev/null +++ b/target/linux/x86/xen_domu/base-files/lib/preinit/45_mount_xenfs @@ -0,0 +1,11 @@ +#!/bin/sh +# Copyright (C) 2010 OpenWrt.org + +do_mount_xenfs() { + [ -f /etc/modules.d/??-xenfs ] && { + insmod $(cat /etc/modules.d/??-xenfs) + mount none /proc/xen -t xenfs + } +} + +boot_hook_add preinit_mount_root do_mount_xenfs diff --git a/target/linux/x86/xen_domu/config-3.3 b/target/linux/x86/xen_domu/config-3.3 new file mode 100644 index 000000000..c34df71ad --- /dev/null +++ b/target/linux/x86/xen_domu/config-3.3 @@ -0,0 +1,77 @@ +# CONFIG_APM is not set +CONFIG_ARCH_CPU_PROBE_RELEASE=y +CONFIG_ARCH_PHYS_ADDR_T_64BIT=y +# CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set +CONFIG_CPU_RMAP=y +CONFIG_FREEZER=y +CONFIG_GENERIC_PENDING_IRQ=y +CONFIG_HIBERNATE_CALLBACKS=y +# CONFIG_HIGHMEM64G is not set +CONFIG_HOTPLUG_CPU=y +CONFIG_HVC_DRIVER=y +CONFIG_HVC_IRQ=y +CONFIG_HVC_XEN=y +CONFIG_IOMMU_HELPER=y +CONFIG_KERNEL_GZIP=y +# CONFIG_KERNEL_XZ is not set +# CONFIG_KVM_CLOCK is not set +# CONFIG_LGUEST_GUEST is not set +# CONFIG_M486 is not set +CONFIG_MMU_NOTIFIER=y +CONFIG_MPENTIUM4=y +CONFIG_MUTEX_SPIN_ON_OWNER=y +CONFIG_NR_CPUS=4 +CONFIG_PARAVIRT=y +CONFIG_PARAVIRT_CLOCK=y +# CONFIG_PARAVIRT_DEBUG is not set +CONFIG_PARAVIRT_GUEST=y +CONFIG_PARAVIRT_SPINLOCKS=y +# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set +CONFIG_PCI_XEN=y +CONFIG_PHYS_ADDR_T_64BIT=y +CONFIG_PM=y +# CONFIG_PM_DEBUG is not set +CONFIG_PM_SLEEP=y +CONFIG_PM_SLEEP_SMP=y +CONFIG_RFS_ACCEL=y +CONFIG_RPS=y +CONFIG_SCHED_MC=y +CONFIG_SMP=y +CONFIG_STOP_MACHINE=y +CONFIG_SWIOTLB=y +CONFIG_SWIOTLB_XEN=y +CONFIG_SYS_HYPERVISOR=y +CONFIG_TREE_RCU=y +CONFIG_USE_GENERIC_SMP_HELPERS=y +CONFIG_X86_32_SMP=y +# CONFIG_X86_BIGSMP is not set +CONFIG_X86_CMOV=y +CONFIG_X86_CMPXCHG64=y +CONFIG_X86_DEBUGCTLMSR=y +CONFIG_X86_HT=y +CONFIG_X86_INTERNODE_CACHE_SHIFT=7 +CONFIG_X86_L1_CACHE_SHIFT=7 +CONFIG_X86_MINIMUM_CPU_FAMILY=5 +CONFIG_X86_PAE=y +CONFIG_X86_TSC=y +CONFIG_X86_USE_PPRO_CHECKSUM=y +CONFIG_XEN=y +# CONFIG_XENFS is not set +CONFIG_XEN_BALLOON=y +CONFIG_XEN_BLKDEV_FRONTEND=y +CONFIG_XEN_DEBUG_FS=y +# CONFIG_XEN_DEV_EVTCHN is not set +CONFIG_XEN_GNTDEV=m +CONFIG_XEN_GRANT_DEV_ALLOC=m +CONFIG_XEN_MAX_DOMAIN_MEMORY=64 +# CONFIG_XEN_NETDEV_FRONTEND is not set +CONFIG_XEN_PCIDEV_FRONTEND=y +CONFIG_XEN_PRIVCMD=m +# CONFIG_XEN_PRIVILEGED_GUEST is not set +CONFIG_XEN_PVHVM=y +CONFIG_XEN_SAVE_RESTORE=y +CONFIG_XEN_SCRUB_PAGES=y +CONFIG_XEN_SYS_HYPERVISOR=y +# CONFIG_XEN_WDT is not set +CONFIG_XEN_XENBUS_FRONTEND=y +CONFIG_XPS=y diff --git a/target/linux/x86/xen_domu/target.mk b/target/linux/x86/xen_domu/target.mk new file mode 100644 index 000000000..75f6e571c --- /dev/null +++ b/target/linux/x86/xen_domu/target.mk @@ -0,0 +1,3 @@ +BOARDNAME:=Xen Paravirt Guest +DEFAULT_PACKAGES += kmod-xen-fs kmod-xen-evtchn kmod-xen-netdev kmod-xen-kbddev +FEATURES:==display -- cgit v1.2.3