mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:48:26 +02:00
[realview] add qemu target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23921 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
71eb884cf8
commit
80d29f765e
25
target/linux/realview/Makefile
Normal file
25
target/linux/realview/Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2010 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
ARCH:=arm
|
||||||
|
BOARD:=realview
|
||||||
|
BOARDNAME:=ARM Ltd Realview
|
||||||
|
FEATURES:=squashfs jffs2 fpu
|
||||||
|
CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp -funit-at-a-time
|
||||||
|
|
||||||
|
LINUX_VERSION:=2.6.36
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/target.mk
|
||||||
|
|
||||||
|
define Target/Description
|
||||||
|
Build images for ARM Ltd Realview boards to be run with qemu
|
||||||
|
endef
|
||||||
|
|
||||||
|
KERNELNAME:="zImage"
|
||||||
|
|
||||||
|
$(eval $(call BuildTarget))
|
5
target/linux/realview/base-files/etc/inittab
Normal file
5
target/linux/realview/base-files/etc/inittab
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
::sysinit:/etc/init.d/rcS S boot
|
||||||
|
::shutdown:/etc/init.d/rcS K stop
|
||||||
|
tts/0::askfirst:/bin/ash --login
|
||||||
|
ttyAMA0::askfirst:/bin/ash --login
|
||||||
|
tty1::askfirst:/bin/ash --login
|
199
target/linux/realview/config-default
Normal file
199
target/linux/realview/config-default
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
CONFIG_AEABI=y
|
||||||
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
CONFIG_ARCH_HAS_BARRIERS=y
|
||||||
|
CONFIG_ARCH_REALVIEW=y
|
||||||
|
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
|
||||||
|
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
|
||||||
|
CONFIG_ARCH_SPARSEMEM_ENABLE=y
|
||||||
|
# CONFIG_ARCH_SUPPORTS_MSI is not set
|
||||||
|
CONFIG_ARCH_SUSPEND_POSSIBLE=y
|
||||||
|
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
|
||||||
|
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_ARM_AMBA=y
|
||||||
|
# CONFIG_ARM_CHARLCD is not set
|
||||||
|
# CONFIG_ARM_ERRATA_430973 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_458693 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_460075 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_720789 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_742230 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_742231 is not set
|
||||||
|
# CONFIG_ARM_ERRATA_743622 is not set
|
||||||
|
CONFIG_ARM_GIC=y
|
||||||
|
CONFIG_ARM_L1_CACHE_SHIFT=5
|
||||||
|
# CONFIG_ARM_SP805_WATCHDOG is not set
|
||||||
|
CONFIG_ARM_THUMB=y
|
||||||
|
# CONFIG_ARM_THUMBEE is not set
|
||||||
|
CONFIG_ARM_TIMER_SP804=y
|
||||||
|
CONFIG_ATAGS_PROC=y
|
||||||
|
CONFIG_AUTO_ZRELADDR=y
|
||||||
|
CONFIG_BLK_DEV_RAM=y
|
||||||
|
CONFIG_BLK_DEV_RAM_COUNT=16
|
||||||
|
CONFIG_BLK_DEV_RAM_SIZE=4096
|
||||||
|
CONFIG_BOUNCE=y
|
||||||
|
CONFIG_CACHE_L2X0=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
CONFIG_CMDLINE="console=ttyAMA0 mem=128M"
|
||||||
|
CONFIG_COMMON_CLKDEV=y
|
||||||
|
CONFIG_CPU_32v6=y
|
||||||
|
CONFIG_CPU_32v6K=y
|
||||||
|
CONFIG_CPU_32v7=y
|
||||||
|
CONFIG_CPU_ABRT_EV6=y
|
||||||
|
CONFIG_CPU_ABRT_EV7=y
|
||||||
|
# CONFIG_CPU_ARM926T is not set
|
||||||
|
# CONFIG_CPU_BPREDICT_DISABLE is not set
|
||||||
|
CONFIG_CPU_CACHE_V6=y
|
||||||
|
CONFIG_CPU_CACHE_V7=y
|
||||||
|
CONFIG_CPU_CACHE_VIPT=y
|
||||||
|
CONFIG_CPU_COPY_V6=y
|
||||||
|
CONFIG_CPU_CP15=y
|
||||||
|
CONFIG_CPU_CP15_MMU=y
|
||||||
|
CONFIG_CPU_HAS_ASID=y
|
||||||
|
CONFIG_CPU_HAS_PMU=y
|
||||||
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set
|
||||||
|
CONFIG_CPU_PABRT_V6=y
|
||||||
|
CONFIG_CPU_PABRT_V7=y
|
||||||
|
CONFIG_CPU_TLB_V6=y
|
||||||
|
CONFIG_CPU_TLB_V7=y
|
||||||
|
CONFIG_CPU_V6=y
|
||||||
|
CONFIG_CPU_V7=y
|
||||||
|
CONFIG_DEBUG_ERRORS=y
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
CONFIG_DEBUG_USER=y
|
||||||
|
CONFIG_DECOMPRESS_LZMA=y
|
||||||
|
CONFIG_DMA_CACHE_RWFO=y
|
||||||
|
CONFIG_DNOTIFY=y
|
||||||
|
CONFIG_FB=y
|
||||||
|
CONFIG_FB_ARMCLCD=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
# CONFIG_FB_SM7XX is not set
|
||||||
|
# CONFIG_FIRMWARE_EDID is not set
|
||||||
|
CONFIG_FORCE_MAX_ZONEORDER=11
|
||||||
|
# CONFIG_FPE_FASTFPE is not set
|
||||||
|
CONFIG_FPE_NWFPE=y
|
||||||
|
# CONFIG_FPE_NWFPE_XP is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
|
CONFIG_GENERIC_CLOCKEVENTS=y
|
||||||
|
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
|
||||||
|
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
|
||||||
|
CONFIG_GENERIC_FIND_LAST_BIT=y
|
||||||
|
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
|
||||||
|
CONFIG_HARDIRQS_SW_RESEND=y
|
||||||
|
CONFIG_HAS_DMA=y
|
||||||
|
CONFIG_HAS_IOMEM=y
|
||||||
|
CONFIG_HAS_IOPORT=y
|
||||||
|
CONFIG_HAVE_AOUT=y
|
||||||
|
CONFIG_HAVE_ARCH_KGDB=y
|
||||||
|
CONFIG_HAVE_ARM_SCU=y
|
||||||
|
CONFIG_HAVE_ARM_TWD=y
|
||||||
|
CONFIG_HAVE_CLK=y
|
||||||
|
CONFIG_HAVE_FUNCTION_TRACER=y
|
||||||
|
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
|
||||||
|
CONFIG_HAVE_IDE=y
|
||||||
|
CONFIG_HAVE_KERNEL_GZIP=y
|
||||||
|
CONFIG_HAVE_KERNEL_LZMA=y
|
||||||
|
CONFIG_HAVE_KERNEL_LZO=y
|
||||||
|
CONFIG_HAVE_MEMBLOCK=y
|
||||||
|
CONFIG_HAVE_MEMORY_PRESENT=y
|
||||||
|
CONFIG_HAVE_OPROFILE=y
|
||||||
|
CONFIG_HAVE_PATA_PLATFORM=y
|
||||||
|
CONFIG_HAVE_PERF_EVENTS=y
|
||||||
|
CONFIG_HAVE_PROC_CPU=y
|
||||||
|
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
|
||||||
|
CONFIG_HOTPLUG_CPU=y
|
||||||
|
CONFIG_ICST=y
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
CONFIG_IP_PNP_BOOTP=y
|
||||||
|
CONFIG_IP_PNP_DHCP=y
|
||||||
|
# CONFIG_IP_PNP_RARP is not set
|
||||||
|
CONFIG_JFFS2_LZO=y
|
||||||
|
CONFIG_JFFS2_RUBIN=y
|
||||||
|
CONFIG_JFFS2_ZLIB=y
|
||||||
|
CONFIG_KEXEC=y
|
||||||
|
# CONFIG_LEDS is not set
|
||||||
|
CONFIG_LOCAL_TIMERS=y
|
||||||
|
CONFIG_LOCK_KERNEL=y
|
||||||
|
CONFIG_LOGO=y
|
||||||
|
CONFIG_LOGO_LINUX_CLUT224=y
|
||||||
|
# CONFIG_LOGO_LINUX_MONO is not set
|
||||||
|
# CONFIG_LOGO_LINUX_VGA16 is not set
|
||||||
|
CONFIG_LZO_COMPRESS=y
|
||||||
|
CONFIG_LZO_DECOMPRESS=y
|
||||||
|
CONFIG_MACH_REALVIEW_EB=y
|
||||||
|
CONFIG_MACH_REALVIEW_PB1176=y
|
||||||
|
CONFIG_MACH_REALVIEW_PB11MP=y
|
||||||
|
CONFIG_MACH_REALVIEW_PBA8=y
|
||||||
|
CONFIG_MACH_REALVIEW_PBX=y
|
||||||
|
CONFIG_MAGIC_SYSRQ=y
|
||||||
|
# CONFIG_MFD_T7L66XB is not set
|
||||||
|
CONFIG_MMC=y
|
||||||
|
CONFIG_MMC_ARMMMCI=y
|
||||||
|
# CONFIG_MPCORE_WATCHDOG is not set
|
||||||
|
CONFIG_MTD_ARM_INTEGRATOR=y
|
||||||
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
|
CONFIG_MTD_CONCAT=y
|
||||||
|
CONFIG_MUTEX_SPIN_ON_OWNER=y
|
||||||
|
CONFIG_NEED_DMA_MAP_STATE=y
|
||||||
|
# CONFIG_NEON is not set
|
||||||
|
# CONFIG_NETDEV_1000 is not set
|
||||||
|
CONFIG_NLS=y
|
||||||
|
CONFIG_NR_CPUS=4
|
||||||
|
CONFIG_OABI_COMPAT=y
|
||||||
|
CONFIG_OUTER_CACHE=y
|
||||||
|
CONFIG_OUTER_CACHE_SYNC=y
|
||||||
|
CONFIG_PAGE_OFFSET=0xC0000000
|
||||||
|
# CONFIG_PCI_SYSCALL is not set
|
||||||
|
CONFIG_PERF_USE_VMALLOC=y
|
||||||
|
CONFIG_PHYLIB=y
|
||||||
|
CONFIG_PLAT_VERSATILE=y
|
||||||
|
# CONFIG_RD_LZMA is not set
|
||||||
|
# CONFIG_REALVIEW_EB_A9MP is not set
|
||||||
|
CONFIG_REALVIEW_EB_ARM11MP=y
|
||||||
|
CONFIG_REALVIEW_EB_ARM11MP_REVB=y
|
||||||
|
CONFIG_REALVIEW_PB1176_SECURE_FLASH=y
|
||||||
|
CONFIG_RPS=y
|
||||||
|
# CONFIG_SCSI_DMA is not set
|
||||||
|
# CONFIG_SDIO_UART is not set
|
||||||
|
# CONFIG_SERIAL_8250 is not set
|
||||||
|
# CONFIG_SERIAL_AMBA_PL010 is not set
|
||||||
|
CONFIG_SERIAL_AMBA_PL011=y
|
||||||
|
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
|
||||||
|
CONFIG_SMC91X=y
|
||||||
|
CONFIG_SMP=y
|
||||||
|
CONFIG_SMSC911X=y
|
||||||
|
CONFIG_SMSC_PHY=y
|
||||||
|
CONFIG_SND=y
|
||||||
|
# CONFIG_SND_DRIVERS is not set
|
||||||
|
# CONFIG_SND_EMU10K1_SEQ is not set
|
||||||
|
CONFIG_SND_MIXER_OSS=y
|
||||||
|
# CONFIG_SND_OPL3_LIB_SEQ is not set
|
||||||
|
# CONFIG_SND_OPL4_LIB_SEQ is not set
|
||||||
|
CONFIG_SND_PCM=y
|
||||||
|
CONFIG_SND_PCM_OSS=y
|
||||||
|
# CONFIG_SND_RAWMIDI_SEQ is not set
|
||||||
|
# CONFIG_SND_SBAWE_SEQ is not set
|
||||||
|
CONFIG_SND_TIMER=y
|
||||||
|
CONFIG_SOUND=y
|
||||||
|
CONFIG_SOUND_OSS_CORE=y
|
||||||
|
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
|
||||||
|
CONFIG_SPARSEMEM=y
|
||||||
|
CONFIG_SPARSEMEM_EXTREME=y
|
||||||
|
CONFIG_SPARSEMEM_MANUAL=y
|
||||||
|
CONFIG_STOP_MACHINE=y
|
||||||
|
# CONFIG_SWAP is not set
|
||||||
|
CONFIG_SYSFS_DEPRECATED=y
|
||||||
|
CONFIG_SYSFS_DEPRECATED_V2=y
|
||||||
|
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
|
||||||
|
# CONFIG_THUMB2_KERNEL is not set
|
||||||
|
CONFIG_TREE_RCU=y
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_USE_GENERIC_SMP_HELPERS=y
|
||||||
|
CONFIG_VECTORS_BASE=0xffff0000
|
||||||
|
CONFIG_VFP=y
|
||||||
|
CONFIG_VFPv3=y
|
||||||
|
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||||
|
CONFIG_ZBOOT_ROM_TEXT=0x0
|
23
target/linux/realview/image/Makefile
Normal file
23
target/linux/realview/image/Makefile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2010 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
|
define Image/BuildKernel
|
||||||
|
cp $(LINUX_DIR)/arch/$(ARCH)/boot/$(subst ",,$(KERNELNAME)) $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Image/Build/squashfs
|
||||||
|
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Image/Build
|
||||||
|
$(call Image/Build/$(1))
|
||||||
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildImage))
|
Loading…
Reference in New Issue
Block a user