From 0f0ba0d97bd80196c1372de8a41fcab2b7f216a6 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 3 Jun 2007 22:29:32 +0000 Subject: [PATCH] several changes to the basefiles for cris target SVN-Revision: 7484 --- target/linux/etrax-2.6/Makefile | 2 ++ target/linux/etrax-2.6/base-files.mk | 5 +++++ .../etrax-2.6/base-files/default/etc/config/network | 13 +++++++++++++ .../linux/etrax-2.6/base-files/default/etc/inittab | 5 ----- .../linux/etrax-2.6/base-files/default/etc/passwd | 2 ++ target/linux/etrax-2.6/config/default | 9 ++++++++- 6 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 target/linux/etrax-2.6/base-files.mk create mode 100644 target/linux/etrax-2.6/base-files/default/etc/config/network delete mode 100644 target/linux/etrax-2.6/base-files/default/etc/inittab create mode 100644 target/linux/etrax-2.6/base-files/default/etc/passwd diff --git a/target/linux/etrax-2.6/Makefile b/target/linux/etrax-2.6/Makefile index ab63ff619f1d..7c9b76fa65a3 100644 --- a/target/linux/etrax-2.6/Makefile +++ b/target/linux/etrax-2.6/Makefile @@ -31,6 +31,8 @@ define Kernel/Prepare $(call Kernel/Prepare/Fox) endef +DEFAULT_PACKAGES += foxboard-utils + $(eval $(call RequireCommand,/usr/local/cris/gcc-cris, \ Please install the binary cris toolchain. \ )) diff --git a/target/linux/etrax-2.6/base-files.mk b/target/linux/etrax-2.6/base-files.mk new file mode 100644 index 000000000000..de72e4dd67eb --- /dev/null +++ b/target/linux/etrax-2.6/base-files.mk @@ -0,0 +1,5 @@ +define Package/base-files/install-target + mkdir $(1)/root +endef + + diff --git a/target/linux/etrax-2.6/base-files/default/etc/config/network b/target/linux/etrax-2.6/base-files/default/etc/config/network new file mode 100644 index 000000000000..50daf5c3fe06 --- /dev/null +++ b/target/linux/etrax-2.6/base-files/default/etc/config/network @@ -0,0 +1,13 @@ +# Copyright (C) 2006 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface lan + option ifname eth0 + option proto static + option ipaddr 192.168.0.90 + option netmask 255.255.255.0 diff --git a/target/linux/etrax-2.6/base-files/default/etc/inittab b/target/linux/etrax-2.6/base-files/default/etc/inittab deleted file mode 100644 index dfcf1de05da5..000000000000 --- a/target/linux/etrax-2.6/base-files/default/etc/inittab +++ /dev/null @@ -1,5 +0,0 @@ -::sysinit:/etc/init.d/rcS S boot -::shutdown:/etc/init.d/rcS K stop -console::askfirst:/bin/ash --login -tts/0::askfirst:/bin/ash --login -tty1::askfirst:/bin/ash --login diff --git a/target/linux/etrax-2.6/base-files/default/etc/passwd b/target/linux/etrax-2.6/base-files/default/etc/passwd new file mode 100644 index 000000000000..c5c9e46cc069 --- /dev/null +++ b/target/linux/etrax-2.6/base-files/default/etc/passwd @@ -0,0 +1,2 @@ +root:$1$6upaSrHM$W/0IQ8kf7IYxCxEkJQ2D60:0:0:root:/root:/bin/ash +nobody:*:65534:65534:nobody:/var:/bin/false diff --git a/target/linux/etrax-2.6/config/default b/target/linux/etrax-2.6/config/default index 39e4572b544c..29f18d67838a 100644 --- a/target/linux/etrax-2.6/config/default +++ b/target/linux/etrax-2.6/config/default @@ -1,5 +1,6 @@ CONFIG_BASE_SMALL=0 # CONFIG_BLK_DEV_INITRD is not set +CONFIG_BLK_DEV_SD=y CONFIG_CRIS=y # CONFIG_ETRAX100LX is not set CONFIG_ETRAX100LX_V2=y @@ -143,6 +144,7 @@ CONFIG_GENERIC_IOMAP=y CONFIG_INITRAMFS_SOURCE="" CONFIG_IRQ_PER_CPU=y CONFIG_JFFS2_FS_DEBUG=0 +CONFIG_MSDOS_FS=y CONFIG_MTD=y CONFIG_MTDRAM_ABS_POS=0x0 CONFIG_MTDRAM_ERASE_SIZE=128 @@ -192,10 +194,13 @@ CONFIG_MTD_PARTITIONS=y # CONFIG_MTD_REDBOOT_PARTS is not set # CONFIG_MTD_ROM is not set # CONFIG_MTD_SLRAM is not set +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=y # CONFIG_OOM_REBOOT is not set # CONFIG_OVERRIDE_SCHED_STARVATION_LIMIT is not set # CONFIG_RTC is not set CONFIG_RWSEM_GENERIC_SPINLOCK=y +CONFIG_SCSI=y # CONFIG_SERIAL_8250 is not set # CONFIG_SMP is not set # CONFIG_SOFT_WATCHDOG is not set @@ -211,4 +216,6 @@ CONFIG_USB=y # CONFIG_USB_ARCH_HAS_HCD is not set # CONFIG_USB_ARCH_HAS_OHCI is not set # CONFIG_USB_SERIAL_IR is not set -# CONFIG_BLK_DEV_INITRD is not set +CONFIG_USB_STORAGE=y +CONFIG_VFAT_FS=y +# CONFIG_VLAN_8021Q is not set -- 2.30.2