Mailman scrubbed the last patches, going to try again
Index: target/linux/x86/image/Config.in =================================================================== --- target/linux/x86/image/Config.in (revision 26871) +++ target/linux/x86/image/Config.in (working copy) @@ -1,3 +1,18 @@ +config X86_ETHERBOOT_IMAGES + bool "Build Etherboot image" + depends TARGET_x86 && TARGET_x86_thincan_DBE61 + default y + help + Builds network bootable image for ThinCan DBE61 (Etherboot BIOS) + +config X86_ETHERBOOT_BOOTOPTS + string "Extra kernel boot options" + depends X86_ETHERBOOT_IMAGES + default "ip=dhcp nbdport=2000 " if TARGET_ROOTFS_SQUASHFS + default "ip=dhcp root=/dev/nfs nfsroot=192.168.0.1:/srv/dbe61" + help + Kernel arguments to pass to the kernel eg. NFS root location etc. + config X86_GRUB_IMAGES bool "Build GRUB images (Linux x86 or x86_64 host only)" depends TARGET_x86 && !TARGET_x86_olpc Index: target/linux/x86/image/Makefile =================================================================== --- target/linux/x86/image/Makefile (revision 26871) +++ target/linux/x86/image/Makefile (working copy) @@ -166,6 +166,13 @@ define Image/BuildKernel $(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-vmlinuz + ifneq ($(CONFIG_X86_ETHERBOOT_IMAGES),) + rm -f $(BIN_DIR)/$(IMG_PREFIX)-etherboot + $(STAGING_DIR_HOST)/bin/mkelfImage \ + --append=$(CONFIG_X86_ETHERBOOT_BOOTOPTS) \ + $(KDIR)/bzImage \ + $(BIN_DIR)/$(IMG_PREFIX)-etherboot + endif endef define Image/Prepare Index: target/linux/x86/thincan/profiles/dbe61.mk =================================================================== --- target/linux/x86/thincan/profiles/dbe61.mk (revision 0) +++ target/linux/x86/thincan/profiles/dbe61.mk (revision 0) @@ -0,0 +1,25 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/DBE61 + NAME:=DBE61 +endef + +define Profile/DBE61/Description + Compile OpenWrt for Artec ThinCan DBE61 + + ThinCan DBE61 is a thin-client featuring: + * AMD Geode LX700 + * AMD CS5535 companion device + * 64MB or 256MB NAND Flash or none + * 128MB or 256MB DDR SDRAM + * Realtek RTL8139 + + http://wiki.thincan.org/DBE61 +endef + +$(eval $(call Profile,DBE61)) Index: target/linux/x86/thincan/config-default =================================================================== --- target/linux/x86/thincan/config-default (revision 0) +++ target/linux/x86/thincan/config-default (revision 0) @@ -0,0 +1,26 @@ + +# Fix freeze-on-boot issue +CONFIG_EMBEDDED=n + +# Enable in-kernel NFS client +CONFIG_NETWORK_FILESYSTEMS=y +CONFIG_NFS_FS=y +CONFIG_NFS_V3=y +CONFIG_ROOT_NFS=y + +# Enable NBD +CONFIG_BLK_DEV_NBD=y + +# Enable Realtek 8139 +CONFIG_8139TOO=y +CONFIG_8139TOO_PIO=n +CONFIG_8139TOO_TUNE_TWISTER=n +CONFIG_8139TOO_8129=n +CONFIG_8139_OLD_RX_RESET=n + +# Enable in-kernel IP autoconfiguration +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=n +CONFIG_IP_PNP_RARP=n + Index: target/linux/x86/thincan/base-files/etc/init.d/alsa =================================================================== --- target/linux/x86/thincan/base-files/etc/init.d/alsa (revision 0) +++ target/linux/x86/thincan/base-files/etc/init.d/alsa (revision 0) @@ -0,0 +1,9 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2011 OpenWrt.org +START=50 + +start() { + amixer set PCM 50% unmute + amixer set Headphone 100% unmute +} + Index: target/linux/x86/thincan/target.mk =================================================================== --- target/linux/x86/thincan/target.mk (revision 0) +++ target/linux/x86/thincan/target.mk (revision 0) @@ -0,0 +1,38 @@ +DEVICE_TYPE:=terminal +BOARDNAME:=Artec ThinCan + +CFLAGS := -O3 -pipe -march=geode -mtune=geode -funit-at-a-time + +DEFAULT_PACKAGES:=\ + base-files \ + busybox \ + hotplug2 \ + libc \ + libgcc \ + opkg \ + uci \ + udevtrigger \ + kmod-fs-msdos \ + kmod-fs-vfat \ + kmod-fs-ext2 \ + kmod-fs-ext3 \ + kmod-fs-ext4 \ + kmod-usb-core \ + kmod-usb-ohci \ + kmod-usb-uhci \ + kmod-usb-hid \ + kmod-usb-storage \ + kmod-usb2 \ + kmod-sound-core \ + kmod-sound-cs5535audio \ + kmod-crypto-core \ + kmod-crypto-hw-geode \ + kmod-crypto-ocf \ + kmod-crypto-aes + +define Target/Description + Build firmware images for Artec ThinCan. Don't forget to use GCC 4.3.x or later! + + Note that NBD, NFS, DHCP and ethernet module are built into kernel +endef + Index: target/linux/x86/Makefile =================================================================== --- target/linux/x86/Makefile (revision 26871) +++ target/linux/x86/Makefile (working copy) @@ -10,7 +10,7 @@ BOARD:=x86 BOARDNAME:=x86 FEATURES:=squashfs jffs2 ext4 vdi vmdk pcmcia targz -SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos +SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos thincan LINUX_VERSION:=2.6.37.6
Index: tools/mkelfimage/patches/no-stack-protector.patch =================================================================== --- tools/mkelfimage/patches/no-stack-protector.patch (revision 0) +++ tools/mkelfimage/patches/no-stack-protector.patch (revision 0) @@ -0,0 +1,11 @@ +--- mkelfimage-2.7.old//Makefile 2006-03-28 02:44:59.000000000 +0300 ++++ mkelfimage-2.7/Makefile 2011-01-17 14:15:13.000000000 +0200 +@@ -14,7 +14,7 @@ + pkglibdir = $(libdir)/$(PACKAGE) + pkgincludedir = $(includedir)/$(PACKAGE) + +-CPPFLAGS=-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(RELEASE_DATE)"' -I include ++CPPFLAGS=-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(RELEASE_DATE)"' -I include -fno-stack-protector + HOST_CPPFLAGS=$(CPPFLAGS) + I386_CPPFLAGS=$(CPPFLAGS) -I arch/i386/include + IA64_CPPFLAGS=$(CPPFLAGS) -I arch/ia64/include Index: tools/mkelfimage/Makefile =================================================================== --- tools/mkelfimage/Makefile (revision 0) +++ tools/mkelfimage/Makefile (revision 0) @@ -0,0 +1,23 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=mkelfimage +PKG_VERSION:=2.7 + +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/m/mkelfimage/ +PKG_MD5SUM:=e505cb87e9c0cdc44cf03d2c4ea8c74b + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin + $(INSTALL_BIN) $(HOST_BUILD_DIR)/objdir/sbin/mkelfImage $(STAGING_DIR_HOST)/bin +endef + +$(eval $(call HostBuild)) Index: tools/Makefile =================================================================== --- tools/Makefile (revision 26871) +++ tools/Makefile (working copy) @@ -18,6 +18,7 @@ tools-y += sstrip ipkg-utils genext2fs e2fsprogs mtd-utils mkimage tools-y += firmware-utils patch-cmdline quilt yaffs2 flock tools-y += mm-macros xorg-macros xfce-macros missing-macros xz cmake +tools-y += mkelfimage wraplinux tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2 tools-$(CONFIG_TARGET_x86) += qemu ifneq ($(CONFIG_TARGET_ar71xx),) Index: tools/wraplinux/Makefile =================================================================== --- tools/wraplinux/Makefile (revision 0) +++ tools/wraplinux/Makefile (revision 0) @@ -0,0 +1,24 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=wraplinux +PKG_VERSION:=1.7 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/utils/boot/wraplinux/ +PKG_MD5SUM:=bd53eaf1172f894d3d3569291bffaf1b + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin + $(INSTALL_BIN) $(HOST_BUILD_DIR)/wraplinux $(STAGING_DIR_HOST)/bin +endef + +$(eval $(call HostBuild))
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel