diff --git a/README.md b/README.md index 90b07aa519..a8e78e216f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ In a fresh minimal Debian Unstable install, % sudo apt-get install git build-essential zip gawk libtool gettext \ automake autoconf nasm unzip gettext flex bison libsdl-image1.2 \ liblzo2-2 lzma python openjdk-7-jre-headless \ - texinfo libxml-parser-perl wget pkg-config swig cpio zlib1g-dev + texinfo libxml-parser-perl wget pkg-config swig cpio zlib1g-dev \ + libgmp-dev libmpfr-dev ``` Note that as of current (2012-10-10) Debian Unstable, python defaults @@ -26,8 +27,44 @@ to python 2.7. Earlier pythons (or python3) will not work. ``` # Build +First configure the source tree for the device you want to compile the image for. +The following devices are supported at this moment; + + Pivos XIOS DS M1 == amlogic_xios-xbmc_defconfig + + Pivos XIOS DS M3 == amlogic_xios_m3-xbmc_defconfig + + Refee/OE Smart TV Box == amlogic_f16ref-xbmc_defconfig + + GBox Midnight == amlogic_f16ref-xbmc_defconfig + + Sumvision Nano M1 (non slim) == amlogic_stvmc-xbmc_defconfig (Actually the same as the xios M1) + + Sumvision Nano M3 (slim) == amlogic_stvmc-xbmc_defconfig + + Geniatech/MyGica Enjoy TV 510b == amlogic_stvmc-xbmc_defconfig ```shell % make amlogic_xios-xbmc_defconfig +``` +or +```shell +% make amlogic_xios_m3-xbmc_defconfig +``` +or +```shell +% make amlogic_f16ref-xbmc_defconfig +``` +or +```shell +% make amlogic_stvm3-xbmc_defconfig +``` +or +```shell +% make amlogic_stvmc-xbmc_defconfig +``` + +Then build the update file +```shell % make ``` diff --git a/board/amlogic/f16ref/busybox.config b/board/amlogic/f16ref/busybox.config new file mode 100644 index 0000000000..237338a317 --- /dev/null +++ b/board/amlogic/f16ref/busybox.config @@ -0,0 +1,970 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.17.4 +# Sun Jan 6 22:17:08 2013 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +# CONFIG_DESKTOP is not set +# CONFIG_EXTRA_COMPAT is not set +CONFIG_INCLUDE_SUSv2=y +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +CONFIG_FEATURE_VERBOSE_USAGE=y +CONFIG_FEATURE_COMPRESS_USAGE=y +CONFIG_FEATURE_INSTALLER=y +CONFIG_LOCALE_SUPPORT=y +CONFIG_UNICODE_SUPPORT=y +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=63 +CONFIG_LAST_SUPPORTED_WCHAR=767 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +CONFIG_FEATURE_WTMP=y +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +# CONFIG_STATIC is not set +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +# CONFIG_BUILD_LIBBUSYBOX is not set +# CONFIG_FEATURE_INDIVIDUAL is not set +# CONFIG_FEATURE_SHARED_BUSYBOX is not set +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="" +CONFIG_EXTRA_CFLAGS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options +# +# CONFIG_INSTALL_NO_USR is not set +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SIZE_VS_SPEED=2 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=15 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +CONFIG_FEATURE_TAB_COMPLETION=y +# CONFIG_FEATURE_USERNAME_COMPLETION is not set +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +# CONFIG_MONOTONIC_SYSCALL is not set +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +CONFIG_FEATURE_SEAMLESS_XZ=y +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +CONFIG_FEATURE_SEAMLESS_Z=y +CONFIG_AR=y +CONFIG_FEATURE_AR_LONG_FILENAMES=y +CONFIG_FEATURE_AR_CREATE=y +CONFIG_BUNZIP2=y +CONFIG_BZIP2=y +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +CONFIG_FEATURE_GZIP_LONG_OPTIONS=y +CONFIG_LZOP=y +# CONFIG_LZOP_COMPR_HIGH is not set +CONFIG_RPM2CPIO=y +CONFIG_RPM=y +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +CONFIG_FEATURE_TAR_LONG_OPTIONS=y +CONFIG_FEATURE_TAR_TO_COMMAND=y +CONFIG_FEATURE_TAR_UNAME_GNAME=y +CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y +# CONFIG_FEATURE_TAR_SELINUX is not set +CONFIG_UNCOMPRESS=y +CONFIG_UNLZMA=y +CONFIG_FEATURE_LZMA_FAST=y +CONFIG_LZMA=y +CONFIG_UNXZ=y +CONFIG_XZ=y +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +CONFIG_FEATURE_DATE_ISOFMT=y +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +CONFIG_FEATURE_TR_EQUIV=y +CONFIG_CAL=y +CONFIG_CATV=y +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y +CONFIG_CHROOT=y +CONFIG_CKSUM=y +CONFIG_COMM=y +CONFIG_CP=y +CONFIG_FEATURE_CP_LONG_OPTIONS=y +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y +CONFIG_FEATURE_DD_IBS_OBS=y +CONFIG_DF=y +CONFIG_FEATURE_DF_FANCY=y +CONFIG_DIRNAME=y +CONFIG_DOS2UNIX=y +CONFIG_UNIX2DOS=y +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +CONFIG_EXPAND=y +CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +CONFIG_FOLD=y +CONFIG_FSYNC=y +CONFIG_HEAD=y +CONFIG_FEATURE_FANCY_HEAD=y +CONFIG_HOSTID=y +CONFIG_ID=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y +CONFIG_LENGTH=y +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +CONFIG_FEATURE_MV_LONG_OPTIONS=y +CONFIG_NICE=y +CONFIG_NOHUP=y +CONFIG_OD=y +CONFIG_PRINTENV=y +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y +CONFIG_SEQ=y +CONFIG_SHA1SUM=y +CONFIG_SHA256SUM=y +CONFIG_SHA512SUM=y +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +CONFIG_FEATURE_FLOAT_SLEEP=y +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +CONFIG_SPLIT=y +CONFIG_FEATURE_SPLIT_FANCY=y +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +CONFIG_SUM=y +CONFIG_SYNC=y +CONFIG_TAC=y +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +CONFIG_FEATURE_TEE_USE_BLOCK_IO=y +CONFIG_TOUCH=y +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +CONFIG_UNEXPAND=y +CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y +CONFIG_UNIQ=y +CONFIG_USLEEP=y +CONFIG_UUDECODE=y +CONFIG_UUENCODE=y +CONFIG_WC=y +CONFIG_FEATURE_WC_LARGE=y +CONFIG_WHO=y +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +CONFIG_FEATURE_PRESERVE_HARDLINKS=y + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +CONFIG_FGCONSOLE=y +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +CONFIG_KBD_MODE=y +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +CONFIG_RESIZE=y +CONFIG_FEATURE_RESIZE_PRINT=y +CONFIG_SETCONSOLE=y +CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y +CONFIG_SETFONT=y +CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y +CONFIG_DEFAULT_SETFONT_DIR="" +CONFIG_SETKEYCODES=y +CONFIG_SETLOGCONS=y +CONFIG_SHOWKEY=y + +# +# Common options for loadfont and setfont +# +CONFIG_FEATURE_LOADFONT_PSF2=y +CONFIG_FEATURE_LOADFONT_RAW=y + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +CONFIG_PIPE_PROGRESS=y +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +CONFIG_FEATURE_RUN_PARTS_FANCY=y +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_AWK=y +CONFIG_FEATURE_AWK_LIBM=y +CONFIG_CMP=y +CONFIG_DIFF=y +CONFIG_FEATURE_DIFF_LONG_OPTIONS=y +CONFIG_FEATURE_DIFF_DIR=y +CONFIG_ED=y +CONFIG_PATCH=y +CONFIG_SED=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=4096 +# CONFIG_FEATURE_VI_8BIT is not set +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +CONFIG_FEATURE_VI_USE_SIGNALS=y +CONFIG_FEATURE_VI_DOT_CMD=y +CONFIG_FEATURE_VI_READONLY=y +CONFIG_FEATURE_VI_SETOPTS=y +CONFIG_FEATURE_VI_SET=y +CONFIG_FEATURE_VI_WIN_RESIZE=y +CONFIG_FEATURE_VI_ASK_TERMINAL=y +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +CONFIG_FEATURE_FIND_INUM=y +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +CONFIG_FEATURE_FIND_DELETE=y +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +CONFIG_FEATURE_FIND_LINKS=y +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y + +# +# Init Utilities +# +CONFIG_BOOTCHARTD=y +CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y +CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y +CONFIG_INIT=y +CONFIG_FEATURE_USE_INITTAB=y +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +CONFIG_FEATURE_INIT_SCTTY=y +CONFIG_FEATURE_INIT_SYSLOG=y +CONFIG_FEATURE_EXTRA_QUIET=y +CONFIG_FEATURE_INIT_COREDUMPS=y +CONFIG_FEATURE_INITRD=y +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +CONFIG_MESG=y + +# +# Login/Password Management Utilities +# +CONFIG_FEATURE_SHADOWPASSWDS=y +CONFIG_USE_BB_PWD_GRP=y +CONFIG_USE_BB_SHADOW=y +CONFIG_USE_BB_CRYPT=y +CONFIG_USE_BB_CRYPT_SHA=y +CONFIG_ADDGROUP=y +CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y +CONFIG_FEATURE_ADDUSER_TO_GROUP=y +CONFIG_DELGROUP=y +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_ADDUSER=y +CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y +CONFIG_FIRST_SYSTEM_ID=100 +CONFIG_LAST_SYSTEM_ID=999 +CONFIG_DELUSER=y +CONFIG_GETTY=y +CONFIG_LOGIN=y +# CONFIG_PAM is not set +CONFIG_LOGIN_SCRIPTS=y +CONFIG_FEATURE_NOLOGIN=y +CONFIG_FEATURE_SECURETTY=y +CONFIG_PASSWD=y +CONFIG_FEATURE_PASSWD_WEAK_CHECK=y +CONFIG_CRYPTPW=y +CONFIG_CHPASSWD=y +CONFIG_SU=y +CONFIG_FEATURE_SU_SYSLOG=y +CONFIG_FEATURE_SU_CHECKS_SHELLS=y +CONFIG_SULOGIN=y +CONFIG_VLOCK=y + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +CONFIG_LSATTR=y +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +CONFIG_MODINFO=y +# CONFIG_MODPROBE_SMALL is not set +# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set +# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set +CONFIG_INSMOD=y +CONFIG_RMMOD=y +CONFIG_LSMOD=y +CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=y +CONFIG_MODPROBE=y +CONFIG_FEATURE_MODPROBE_BLACKLIST=y +CONFIG_DEPMOD=y + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +CONFIG_FEATURE_CHECK_TAINTED_MODULE=y +CONFIG_FEATURE_MODUTILS_ALIAS=y +CONFIG_FEATURE_MODUTILS_SYMBOLS=y +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_REV=y +CONFIG_ACPID=y +CONFIG_FEATURE_ACPID_COMPAT=y +# CONFIG_BLKID is not set +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +CONFIG_FDFLUSH=y +CONFIG_FDFORMAT=y +CONFIG_FDISK=y +CONFIG_FDISK_SUPPORT_LARGE_DISKS=y +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +CONFIG_FEATURE_FDISK_ADVANCED=y +CONFIG_FINDFS=y +CONFIG_FLOCK=y +CONFIG_FREERAMDISK=y +CONFIG_FSCK_MINIX=y +CONFIG_MKFS_EXT2=y +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +CONFIG_MKFS_VFAT=y +CONFIG_GETOPT=y +CONFIG_FEATURE_GETOPT_LONG=y +CONFIG_HEXDUMP=y +CONFIG_FEATURE_HEXDUMP_REVERSE=y +CONFIG_HD=y +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y +CONFIG_IPCRM=y +CONFIG_IPCS=y +CONFIG_LOSETUP=y +CONFIG_LSPCI=y +CONFIG_LSUSB=y +# CONFIG_MDEV is not set +# CONFIG_FEATURE_MDEV_CONF is not set +# CONFIG_FEATURE_MDEV_RENAME is not set +# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set +# CONFIG_FEATURE_MDEV_EXEC is not set +# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set +CONFIG_MKSWAP=y +CONFIG_FEATURE_MKSWAP_UUID=y +CONFIG_MORE=y +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_MOUNT=y +CONFIG_FEATURE_MOUNT_FAKE=y +CONFIG_FEATURE_MOUNT_VERBOSE=y +CONFIG_FEATURE_MOUNT_HELPERS=y +CONFIG_FEATURE_MOUNT_LABEL=y +CONFIG_FEATURE_MOUNT_NFS=y +CONFIG_FEATURE_MOUNT_CIFS=y +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +CONFIG_RDEV=y +CONFIG_READPROFILE=y +CONFIG_RTCWAKE=y +CONFIG_SCRIPT=y +CONFIG_SCRIPTREPLAY=y +CONFIG_SETARCH=y +CONFIG_SWAPONOFF=y +CONFIG_FEATURE_SWAPON_PRI=y +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y + +# +# Filesystem/Volume identification +# +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_REISERFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_HFS=y +CONFIG_FEATURE_VOLUMEID_JFS=y +CONFIG_FEATURE_VOLUMEID_XFS=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LUKS=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y +CONFIG_FEATURE_VOLUMEID_LINUXRAID=y + +# +# Miscellaneous Utilities +# +# CONFIG_CONSPY is not set +# CONFIG_UBIATTACH is not set +# CONFIG_UBIDETACH is not set +CONFIG_ADJTIMEX=y +# CONFIG_BBCONFIG is not set +CONFIG_BEEP=y +CONFIG_FEATURE_BEEP_FREQ=4000 +CONFIG_FEATURE_BEEP_LENGTH_MS=30 +CONFIG_CHAT=y +CONFIG_FEATURE_CHAT_NOFAIL=y +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +CONFIG_FEATURE_CHAT_IMPLICIT_CR=y +CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y +CONFIG_FEATURE_CHAT_SEND_ESCAPES=y +CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y +CONFIG_FEATURE_CHAT_CLR_ABORT=y +CONFIG_CHRT=y +CONFIG_CROND=y +CONFIG_FEATURE_CROND_D=y +CONFIG_FEATURE_CROND_CALL_SENDMAIL=y +CONFIG_FEATURE_CROND_DIR="/var/spool/cron" +CONFIG_CRONTAB=y +CONFIG_DC=y +CONFIG_FEATURE_DC_LIBM=y +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +CONFIG_DEVMEM=y +CONFIG_EJECT=y +CONFIG_FEATURE_EJECT_SCSI=y +CONFIG_FBSPLASH=y +CONFIG_FLASHCP=y +CONFIG_FLASH_LOCK=y +CONFIG_FLASH_UNLOCK=y +CONFIG_FLASH_ERASEALL=y +CONFIG_IONICE=y +CONFIG_INOTIFYD=y +CONFIG_LAST=y +# CONFIG_FEATURE_LAST_SMALL is not set +CONFIG_FEATURE_LAST_FANCY=y +CONFIG_LESS=y +CONFIG_FEATURE_LESS_MAXLINES=9999999 +CONFIG_FEATURE_LESS_BRACKETS=y +CONFIG_FEATURE_LESS_FLAGS=y +CONFIG_FEATURE_LESS_MARKS=y +CONFIG_FEATURE_LESS_REGEXP=y +CONFIG_FEATURE_LESS_WINCH=y +CONFIG_FEATURE_LESS_DASHCMD=y +CONFIG_FEATURE_LESS_LINENUMS=y +CONFIG_HDPARM=y +CONFIG_FEATURE_HDPARM_GET_IDENTITY=y +CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y +CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y +# CONFIG_MAKEDEVS is not set +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +# CONFIG_FEATURE_MAKEDEVS_TABLE is not set +CONFIG_MAN=y +CONFIG_MICROCOM=y +CONFIG_MOUNTPOINT=y +CONFIG_MT=y +CONFIG_RAIDAUTORUN=y +CONFIG_READAHEAD=y +# CONFIG_RFKILL is not set +CONFIG_RUNLEVEL=y +CONFIG_RX=y +CONFIG_SETSID=y +CONFIG_STRINGS=y +CONFIG_TASKSET=y +CONFIG_FEATURE_TASKSET_FANCY=y +CONFIG_TIME=y +CONFIG_TIMEOUT=y +CONFIG_TTYSIZE=y +CONFIG_VOLNAME=y +CONFIG_WALL=y +CONFIG_WATCHDOG=y + +# +# Networking Utilities +# +CONFIG_NC=y +CONFIG_NC_SERVER=y +CONFIG_NC_EXTRA=y +# CONFIG_NC_110_COMPAT is not set +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +CONFIG_ARP=y +CONFIG_ARPING=y +CONFIG_BRCTL=y +CONFIG_FEATURE_BRCTL_FANCY=y +CONFIG_FEATURE_BRCTL_SHOW=y +CONFIG_DNSD=y +CONFIG_ETHER_WAKE=y +CONFIG_FAKEIDENTD=y +CONFIG_FTPD=y +CONFIG_FEATURE_FTP_WRITE=y +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y +CONFIG_FTPGET=y +CONFIG_FTPPUT=y +CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y +CONFIG_HOSTNAME=y +CONFIG_HTTPD=y +CONFIG_FEATURE_HTTPD_RANGES=y +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y +CONFIG_FEATURE_HTTPD_SETUID=y +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y +CONFIG_FEATURE_HTTPD_AUTH_MD5=y +CONFIG_FEATURE_HTTPD_CGI=y +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y +CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y +CONFIG_FEATURE_HTTPD_PROXY=y +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +CONFIG_FEATURE_IFCONFIG_SLIP=y +CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y +CONFIG_FEATURE_IFCONFIG_HW=y +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y +CONFIG_IFENSLAVE=y +CONFIG_IFPLUGD=y +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +CONFIG_FEATURE_IFUPDOWN_IP=y +CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +CONFIG_INETD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y +CONFIG_FEATURE_INETD_RPC=y +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +CONFIG_FEATURE_IP_RULE=y +CONFIG_FEATURE_IP_SHORT_FORMS=y +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +CONFIG_IPADDR=y +CONFIG_IPLINK=y +CONFIG_IPROUTE=y +CONFIG_IPTUNNEL=y +CONFIG_IPRULE=y +CONFIG_IPCALC=y +CONFIG_FEATURE_IPCALC_FANCY=y +CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y +CONFIG_NAMEIF=y +CONFIG_FEATURE_NAMEIF_EXTENDED=y +CONFIG_NETSTAT=y +CONFIG_FEATURE_NETSTAT_WIDE=y +CONFIG_FEATURE_NETSTAT_PRG=y +CONFIG_NSLOOKUP=y +# CONFIG_NTPD is not set +# CONFIG_FEATURE_NTPD_SERVER is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +CONFIG_PSCAN=y +CONFIG_ROUTE=y +CONFIG_SLATTACH=y +CONFIG_TCPSVD=y +CONFIG_TELNET=y +CONFIG_FEATURE_TELNET_TTYPE=y +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +CONFIG_TELNETD=y +CONFIG_FEATURE_TELNETD_STANDALONE=y +CONFIG_FEATURE_TELNETD_INETD_WAIT=y +CONFIG_TFTP=y +CONFIG_TFTPD=y + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +CONFIG_FEATURE_TFTP_BLOCKSIZE=y +CONFIG_FEATURE_TFTP_PROGRESS_BAR=y +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +CONFIG_TRACEROUTE6=y +CONFIG_FEATURE_TRACEROUTE_VERBOSE=y +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +CONFIG_TUNCTL=y +CONFIG_FEATURE_TUNCTL_UG=y +CONFIG_UDHCPD=y +CONFIG_DHCPRELAY=y +CONFIG_DUMPLEASES=y +CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +CONFIG_UDHCPC=y +CONFIG_FEATURE_UDHCPC_ARPING=y +CONFIG_FEATURE_UDHCP_PORT=y +CONFIG_UDHCP_DEBUG=9 +CONFIG_FEATURE_UDHCP_RFC3397=y +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" +CONFIG_UDPSVD=y +CONFIG_VCONFIG=y +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_ZCIP=y + +# +# Print Utilities +# +CONFIG_LPD=y +CONFIG_LPR=y +CONFIG_LPQ=y + +# +# Mail Utilities +# +CONFIG_MAKEMIME=y +CONFIG_FEATURE_MIME_CHARSET="us-ascii" +CONFIG_POPMAILDIR=y +CONFIG_FEATURE_POPMAILDIR_DELIVERY=y +CONFIG_REFORMIME=y +CONFIG_FEATURE_REFORMIME_COMPAT=y +CONFIG_SENDMAIL=y + +# +# Process Utilities +# +CONFIG_SMEMCAP=y +CONFIG_FREE=y +CONFIG_FUSER=y +CONFIG_KILL=y +CONFIG_KILLALL=y +CONFIG_KILLALL5=y +CONFIG_NMETER=y +CONFIG_PGREP=y +CONFIG_PIDOF=y +CONFIG_FEATURE_PIDOF_SINGLE=y +CONFIG_FEATURE_PIDOF_OMIT=y +CONFIG_PKILL=y +CONFIG_PS=y +CONFIG_FEATURE_PS_WIDE=y +# CONFIG_FEATURE_PS_TIME is not set +# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +CONFIG_BB_SYSCTL=y +CONFIG_TOP=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_DECIMALS=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_SHOW_THREADS=y +CONFIG_UPTIME=y +CONFIG_WATCH=y + +# +# Runit Utilities +# +CONFIG_RUNSV=y +CONFIG_RUNSVDIR=y +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +CONFIG_SV=y +CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" +CONFIG_SVLOGD=y +CONFIG_CHPST=y +CONFIG_SETUIDGID=y +CONFIG_ENVUIDGID=y +CONFIG_ENVDIR=y +CONFIG_SOFTLIMIT=y +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +CONFIG_ASH_CMDCMD=y +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +CONFIG_ASH_RANDOM_SUPPORT=y +CONFIG_ASH_EXPAND_PRMT=y +CONFIG_HUSH=y +CONFIG_HUSH_BASH_COMPAT=y +CONFIG_HUSH_HELP=y +CONFIG_HUSH_INTERACTIVE=y +CONFIG_HUSH_JOB=y +CONFIG_HUSH_TICK=y +CONFIG_HUSH_IF=y +CONFIG_HUSH_LOOPS=y +CONFIG_HUSH_CASE=y +CONFIG_HUSH_FUNCTIONS=y +CONFIG_HUSH_LOCAL=y +CONFIG_HUSH_EXPORT_N=y +CONFIG_HUSH_RANDOM_SUPPORT=y +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +# CONFIG_LASH is not set +CONFIG_MSH=y +CONFIG_SH_MATH_SUPPORT=y +CONFIG_SH_MATH_SUPPORT_64=y +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_CTTYHACK=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_LOGGER=y diff --git a/board/amlogic/f16ref/skeleton/dev/.empty b/board/amlogic/f16ref/skeleton/dev/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/etc/TZ b/board/amlogic/f16ref/skeleton/etc/TZ new file mode 100755 index 0000000000..9fcb2a3c56 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/TZ @@ -0,0 +1 @@ +MST7MDT diff --git a/board/amlogic/f16ref/skeleton/etc/default/hwclock b/board/amlogic/f16ref/skeleton/etc/default/hwclock new file mode 100644 index 0000000000..1aa0960074 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/default/hwclock @@ -0,0 +1,4 @@ +# use UTC +UTC=yes +# Can we use hwclock on this system? +HWCLOCKACCESS=yes diff --git a/board/amlogic/f16ref/skeleton/etc/fstab b/board/amlogic/f16ref/skeleton/etc/fstab new file mode 100644 index 0000000000..b6ed3fdb63 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/fstab @@ -0,0 +1,16 @@ +# /etc/fstab: static file system information. +# +# +/dev/root / ext2 ro,noauto 0 1 +proc /proc proc defaults 0 0 +devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 +tmpfs /dev/shm tmpfs mode=0777 0 0 +tmpfs /tmp tmpfs defaults,noatime 0 0 +sysfs /sys sysfs defaults 0 0 +tmpfs /var/log tmpfs defaults,noatime 0 0 +tmpfs /var/run tmpfs defaults,noatime 0 0 +tmpfs /var/tmp tmpfs defaults,noatime 0 0 +tmpfs /var/lock tmpfs defaults,noatime 0 0 +tmpfs /var/cache tmpfs defaults,noatime 0 0 +/usr.sqsh /usr squashfs ro,defaults,noatime 0 0 +/dev/mtdblock3 /recovery yaffs2 defaults 0 0 diff --git a/board/amlogic/f16ref/skeleton/etc/group b/board/amlogic/f16ref/skeleton/etc/group new file mode 100755 index 0000000000..0b32c23473 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/group @@ -0,0 +1,26 @@ +root:x:0: +daemon:x:1: +bin:x:2: +sys:x:3: +adm:x:4: +tty:x:5: +disk:x:6: +lp:x:7: +kmem:x:15: +wheel:x:10:root +dialout:x:20: +cdrom:x:24: +floppy:x:25: +tape:x:26: +audio:x:29: +utmp:x:43: +video:x:44: +staff:x:50: +haldaemon:x:68: +dbus:x:81: +netdev:x:82: +ftp:x:83 +nobody:x:99: +nogroup:x:99: +users:x:100: +default:x:1000: diff --git a/board/amlogic/f16ref/skeleton/etc/hostname b/board/amlogic/f16ref/skeleton/etc/hostname new file mode 100755 index 0000000000..ecef865001 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/hostname @@ -0,0 +1 @@ +amlogic diff --git a/board/amlogic/f16ref/skeleton/etc/hosts b/board/amlogic/f16ref/skeleton/etc/hosts new file mode 100755 index 0000000000..ba712fe033 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/hosts @@ -0,0 +1 @@ +127.0.0.1 localhost diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/S10setup b/board/amlogic/f16ref/skeleton/etc/init.d/S10setup new file mode 100755 index 0000000000..8cea46f39d --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/S10setup @@ -0,0 +1,73 @@ +#!/bin/sh + +if [ "X$1" = "Xstart" ]; then + echo "S10setup: init fb0, fb1" + # blank the fb's + echo 1 > /sys/class/graphics/fb0/blank + echo 1 > /sys/class/graphics/fb1/blank + # clear them + dd if=/dev/zero of=/dev/fb0 bs=1280 count=2880 + dd if=/dev/zero of=/dev/fb1 bs=1280 count=2880 + # bugfix for m3 kernel, init fb0 to 24 bpp first + # or the init to 32 bpp will not work + fbset -fb /dev/fb0 -g 1280 720 1280 1440 24 + # setup the default fb sizes, bbp and buffering + fbset -fb /dev/fb0 -g 1280 720 1280 1440 32 + fbset -fb /dev/fb1 -g 1280 720 1280 1440 32 + # + echo "S10setup: remount / rw" + mount -o remount,rw / + # + echo "S10setup: checking keys" + # Make sure dropbear directory exists + if [ ! -d /etc/dropbear ] ; then + mkdir -p /etc/dropbear + fi + # Check for the Dropbear RSA key + if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then + echo -n "generating rsa key... " + /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1 + fi + # Check for the Dropbear DSS key + if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then + echo -n "generating dsa key... " + /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1 + fi + # + echo "S10setup: moving /etc" + # /etc must be rw, move it to /tmp and bind + mkdir -p /tmp/etc + cp -a /etc /tmp/ + mount -o bind /tmp/etc /etc + # + echo "S10setup: moving /media" + # /media is where usb drives mount, move it to /tmp and bind + mkdir -p /tmp/media + cp -a /media /tmp/ + mount -o bind /tmp/media /media + # + echo "S10setup: mounting /tmp/userdata" + # find userdata via mtd partition name, mount it and bind to /root + for i in `ls /dev/mtd* | grep -o "mtd[0-9]$"`; do + if [[ "`cat /sys/devices/virtual/mtd/$i/name`" == "userdata" ]]; then + USERDATA="/dev/"`ls /sys/devices/virtual/mtd/$i | grep -o mtdblock[0-9]` + break + fi + done + + mkdir -p /tmp/userdata + mount -t yaffs2 $USERDATA /tmp/userdata + mkdir -p /tmp/userdata/xios/root + mount -o bind /tmp/userdata/xios/root /root + # + echo "S10setup: remount / ro" + mount -o remount,ro / + # + # we startup as performance, then switch to ondemand (kernel bug) and + # if m1 or m3, limit to 600Mhz to keep audio hw from stalling. + echo "S10setup: switching to ondemand" + echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + echo "600000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + # + echo "S10setup: done" +fi diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/S20urandom b/board/amlogic/f16ref/skeleton/etc/init.d/S20urandom new file mode 100755 index 0000000000..f73cea59ed --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/S20urandom @@ -0,0 +1,54 @@ +#! /bin/sh +# +# urandom This script saves the random seed between reboots. +# It is called from the boot, halt and reboot scripts. +# +# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl +# + +[ -c /dev/urandom ] || exit 0 +#. /etc/default/rcS + +case "$1" in + start|"") + if [ "$VERBOSE" != no ] + then + echo -n "Initializing random number generator... " + fi + # Load and then save 512 bytes, + # which is the size of the entropy pool + if [ -f /etc/random-seed ] + then + cat /etc/random-seed >/dev/urandom + fi + # check for read only file system + if ! touch /etc/random-seed 2>/dev/null + then + echo "read-only file system detected...done" + exit + fi + rm -f /etc/random-seed + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom start: failed." + umask 022 + [ "$VERBOSE" != no ] && echo "done." + ;; + stop) + if ! touch /etc/random-seed 2>/dev/null + then + exit + fi + # Carry a random seed from shut-down to start-up; + # see documentation in linux/drivers/char/random.c + [ "$VERBOSE" != no ] && echo -n "Saving random seed... " + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom stop: failed." + [ "$VERBOSE" != no ] && echo "done." + ;; + *) + echo "Usage: urandom {start|stop}" >&2 + exit 1 + ;; +esac diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/S21hwclock b/board/amlogic/f16ref/skeleton/etc/init.d/S21hwclock new file mode 100755 index 0000000000..78f404aff1 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/S21hwclock @@ -0,0 +1,83 @@ +#!/bin/sh +# hwclock.sh Set system clock to hardware clock, according to the UTC +# setting in /etc/default/rcS (see also rcS(5)). +# +# WARNING: If your hardware clock is not in UTC/GMT, this script +# must know the local time zone. This information is +# stored in /etc/localtime. This might be a problem if +# your /etc/localtime is a symlink to something in +# /usr/share/zoneinfo AND /usr isn't in the root +# partition! The workaround is to define TZ either +# in /etc/default/rcS, or in the proper place below. + +[ ! -x /sbin/hwclock ] && exit 0 + +#. /etc/default/rcS +. /etc/default/hwclock + +[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime + +if [ ! -z "$HWCLOCKDEVICE" ]; then + if [ -e $HWCLOCKDEVICE ]; then + DEVICE="--rtc $HWCLOCKDEVICE" + fi +fi + +case "$1" in + start) + if [ "$VERBOSE" != no ] + then + echo "System time was `date`." + echo "Setting the System Clock using the Hardware Clock as reference..." + fi + + if [ "$HWCLOCKACCESS" != no ] + then + if [ -z "$TZ" ] + then + hwclock --hctosys $UTC $DEVICE + else + TZ="$TZ" hwclock --hctosys $UTC $DEVICE + fi + fi + + if [ "$VERBOSE" != no ] + then + echo "System Clock set. System local time is now `date`." + fi + ;; + stop|restart|reload|force-reload) + # + # Updates the Hardware Clock with the System Clock time. + # This will *override* any changes made to the Hardware Clock. + # + # WARNING: If you disable this, any changes to the system + # clock will not be carried across reboots. + # + if [ "$VERBOSE" != no ] + then + echo "Saving the System Clock time to the Hardware Clock..." + fi + if [ "$HWCLOCKACCESS" != no ] + then + hwclock --systohc $UTC $DEVICE + fi + if [ "$VERBOSE" != no ] + then + echo "Hardware Clock updated to `date`." + fi + exit 0 + ;; + show) + if [ "$HWCLOCKACCESS" != no ] + then + hwclock --show $UTC $DEVICE + fi + ;; + *) + echo "Usage: hwclock.sh {start|stop|show|reload|restart}" >&2 + echo " start sets kernel (system) clock from hardware (RTC) clock" >&2 + echo " stop and reload set hardware (RTC) clock from kernel (system) clock" >&2 + exit 1 + ;; +esac diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/S40network b/board/amlogic/f16ref/skeleton/etc/init.d/S40network new file mode 100755 index 0000000000..bbeff84dae --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/S40network @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Start the network.... +# + +case "$1" in + start) + echo "Starting network..." + + # bump up the default udp/tcp buffersizes + sysctl -w net.core.rmem_max=33554432 + sysctl -w net.core.netdev_max_backlog=2000 + sysctl -w net.ipv4.udp_mem='262144 327680 393216' + sysctl -w net.ipv4.tcp_mem='262144 327680 393216' + + # make sure eth0 and wlan0 interfaces are up + # xbmc will take care of actually configuring them + # do it this way to keep from triggering + # a lengthy dhcp probe at boot. + ifconfig eth0 up + ifconfig wlan0 up + ;; + stop) + echo -n "Stopping network..." + ifconfig eth0 down + ifconfig wlan0 down + ;; + restart|reload) + "$0" stop + "$0" start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/S50mali b/board/amlogic/f16ref/skeleton/etc/init.d/S50mali new file mode 100755 index 0000000000..94cfc23515 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/S50mali @@ -0,0 +1,26 @@ +#! /bin/sh +# +case "$1" in + start) + echo "Starting mali..." + /bin/echo 0 > /sys/class/graphics/fb0/blank + #/sbin/modprobe ump + /sbin/modprobe mali + ;; + stop) + echo "Stopping mali..." + /sbin/modprobe -r mali + #/sbin/modprobe -r ump + ;; + restart|reload) + echo "Restarting mali..." + /sbin/modprobe -r mali + #/sbin/modprobe -r ump + #/sbin/modprobe ump + /sbin/modprobe mali + ;; + *) + ;; +esac + +exit $? diff --git a/board/amlogic/f16ref/skeleton/etc/init.d/rcS b/board/amlogic/f16ref/skeleton/etc/init.d/rcS new file mode 100755 index 0000000000..dbd4979562 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/init.d/rcS @@ -0,0 +1,28 @@ +#!/bin/sh + + +# Start all init scripts in /etc/init.d +# executing them in numerical order. +# +export HOME=/root +for i in /etc/init.d/S??* ;do + + # Ignore dangling symlinks (if any). + [ ! -f "$i" ] && continue + + case "$i" in + *.sh) + # Source shell script for speed. + ( + trap - INT QUIT TSTP + set start + . $i + ) + ;; + *) + # No sh extension, so fork subprocess. + $i start + ;; + esac +done + diff --git a/board/amlogic/f16ref/skeleton/etc/inittab b/board/amlogic/f16ref/skeleton/etc/inittab new file mode 100644 index 0000000000..a77911df79 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/inittab @@ -0,0 +1,57 @@ +# /etc/inittab +# +# Copyright (C) 2001 Erik Andersen +# +# Note: BusyBox init doesn't support runlevels. The runlevels field is +# completely ignored by BusyBox init. If you want runlevels, use +# sysvinit. +# +# Format for each entry: ::: +# +# id == tty to run on, or empty for /dev/console +# runlevels == ignored +# action == one of sysinit, respawn, askfirst, wait, and once +# process == program to run + +# Startup the system +::sysinit:/bin/mount -t proc none /proc +::sysinit:/bin/mount -o remount,rw / +::sysinit:/bin/mkdir -p /dev/pts +::sysinit:/bin/mkdir -p /dev/shm +::sysinit:/bin/ln -sf /proc/self/mounts /etc/mtab +::sysinit:/bin/mount -o remount,ro / +# root is ro from here on. see /etc/fstab +# +::sysinit:/bin/mount -a +::sysinit:/bin/hostname -F /etc/hostname +::sysinit:/sbin/ifconfig lo 127.0.0.1 up +::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo +# now run any rc scripts +::sysinit:/etc/init.d/rcS + +# Set up a couple of getty's +tty1::respawn:/sbin/getty 38400 tty1 +tty2::respawn:/sbin/getty 38400 tty2 + +# Put a getty on the serial port +#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # UNSUPPORT GENERIC_SERIAL +ttyS0::respawn:/bin/sh # AMLOGIC_GENERAL_SERIAL + +# Logging junk +null::sysinit:/bin/touch /var/log/messages +null::respawn:/sbin/syslogd -n +null::respawn:/sbin/klogd -n +tty3::respawn:/usr/bin/tail -f /var/log/messages + +# Stuff to do for the 3-finger salute +::ctrlaltdel:/sbin/reboot + +# Stuff to do when restarting the init process +::restart:/sbin/init + +# Stuff to do before rebooting +::shutdown:/etc/init.d/S21hwclock stop +::shutdown:/usr/bin/killall -q klogd +::shutdown:/usr/bin/killall -q syslogd +::shutdown:/bin/umount -a -r +::shutdown:/sbin/swapoff -a diff --git a/board/amlogic/f16ref/skeleton/etc/inputrc b/board/amlogic/f16ref/skeleton/etc/inputrc new file mode 100755 index 0000000000..2f1cb601a5 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/inputrc @@ -0,0 +1,44 @@ +# /etc/inputrc - global inputrc for libreadline +# See readline(3readline) and `info readline' for more information. + +# Be 8 bit clean. +set input-meta on +set output-meta on +set bell-style visible + +# To allow the use of 8bit-characters like the german umlauts, comment out +# the line below. However this makes the meta key not work as a meta key, +# which is annoying to those which don't need to type in 8-bit characters. + +# set convert-meta off + +"\e0d": backward-word +"\e0c": forward-word +"\e[h": beginning-of-line +"\e[f": end-of-line +"\e[1~": beginning-of-line +"\e[4~": end-of-line +#"\e[5~": beginning-of-history +#"\e[6~": end-of-history +"\e[3~": delete-char +"\e[2~": quoted-insert + +# Common standard keypad and cursor +# (codes courtsey Werner Fink, ) +#"\e[1~": history-search-backward +"\e[2~": yank +"\e[3~": delete-char +#"\e[4~": set-mark +"\e[5~": history-search-backward +"\e[6~": history-search-forward +# Normal keypad and cursor of xterm +"\e[F": end-of-line +"\e[H": beginning-of-line +# Application keypad and cursor of xterm +"\eOA": previous-history +"\eOC": forward-char +"\eOB": next-history +"\eOD": backward-char +"\eOF": end-of-line +"\eOH": beginning-of-line + diff --git a/board/amlogic/f16ref/skeleton/etc/irmap-amlogic b/board/amlogic/f16ref/skeleton/etc/irmap-amlogic new file mode 100644 index 0000000000..fe96b71457 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/irmap-amlogic @@ -0,0 +1,45 @@ +#amlogic NEC remote +factory_code = 0x40400001 +work_mode = 1 +repeat_enable = 0 +release_delay = 150 +debug_enable = 1 +reg_control = 0xfbe40 + +key_begin + 0x01 1 + 0x02 3 + 0x03 4 + 0x04 5 + 0x05 6 + 0x06 7 + 0x07 8 + 0x08 9 + 0x09 57 + 0x0A 116 + 0x0C 113 + 0x0B 103 + 0x0E 108 + 0x10 105 + 0x11 106 + 0x0D 28 + 0x16 102 + 0x1E 114 + 0x1F 115 + 0x40 119 + 0x41 128 + 0x15 104 + 0x1C 109 + 0x46 63 + 0x43 64 + 0x47 65 + 0x12 66 + 0x45 67 + 0x18 68 + 0x53 59 + 0x5B 60 + 0x57 61 + 0x54 62 + 0x1B 0x16C + 0x14 87 +key_end diff --git a/board/amlogic/f16ref/skeleton/etc/irmap.conf b/board/amlogic/f16ref/skeleton/etc/irmap.conf new file mode 100644 index 0000000000..b21b28e60b --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/irmap.conf @@ -0,0 +1,35 @@ +0x01 Qt::Key_Escape EXIT +0x02 Qt::Key_2 NUM2 +0x03 Qt::Key_3 NUM3 +0x04 Qt::Key_4 NUM4 +0x05 Qt::Key_5 NUM5 +0x06 Qt::Key_6 NUM6 +0x07 Qt::Key_7 NUM7 +0x08 Qt::Key_F2 NUM8 +0x09 Qt::Key_Menu NUM9 +0x0A Qt::Key_F1 POWER +0x0C Qt::Key_VolumeMute MUTE +0x0B Qt::Key_Up UP +0x0E Qt::Key_Down DOWN +0x10 Qt::Key_Left LEFT +0x11 Qt::Key_Right RIGHT +0x0D Qt::Key_Enter OK +0x16 Qt::Key_HomePage HOME +0x1e Qt::Key_VolumeDown VOL- +0x1f Qt::Key_VolumeUp VOL+ +0x40 Qt::Key_MediaPlay PLAY +0x41 Qt::Key_Pause STOP +0x15 Qt::Key_MediaPrevious PREV +0x1c Qt::Key_MediaNext NEXT +0x46 Qt::Key_F5 MUSIC +0x43 Qt::Key_F6 Picture +0x47 Qt::Key_F7 Video +0x12 Qt::Key_F8 TXT +0x45 Qt::Key_F9 Subtitle +0x18 Qt::Key_F10 NETWORK +0x53 Qt::Key_F11 F1 +0x5b Qt::Key_F12 F2 +0x57 Qt::Key_F3 F3 +0x54 Qt::Key_F4 F4 +0x1b Qt::Key_Favorites Folder +0x14 Qt::Key_F11 SORT \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/etc/issue b/board/amlogic/f16ref/skeleton/etc/issue new file mode 100755 index 0000000000..90f177983b --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/issue @@ -0,0 +1,3 @@ + +Welcome to Buildroot + diff --git a/board/amlogic/f16ref/skeleton/etc/network/if-down.d/wpasupplicant b/board/amlogic/f16ref/skeleton/etc/network/if-down.d/wpasupplicant new file mode 120000 index 0000000000..dd8edf7927 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/network/if-down.d/wpasupplicant @@ -0,0 +1 @@ +../../wpa_supplicant/ifupdown.sh \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/etc/network/if-post-down.d/wpasupplicant b/board/amlogic/f16ref/skeleton/etc/network/if-post-down.d/wpasupplicant new file mode 120000 index 0000000000..dd8edf7927 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/network/if-post-down.d/wpasupplicant @@ -0,0 +1 @@ +../../wpa_supplicant/ifupdown.sh \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/etc/network/if-pre-up.d/wpasupplicant b/board/amlogic/f16ref/skeleton/etc/network/if-pre-up.d/wpasupplicant new file mode 120000 index 0000000000..dd8edf7927 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/network/if-pre-up.d/wpasupplicant @@ -0,0 +1 @@ +../../wpa_supplicant/ifupdown.sh \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/etc/network/if-up.d/wpasupplicant b/board/amlogic/f16ref/skeleton/etc/network/if-up.d/wpasupplicant new file mode 120000 index 0000000000..dd8edf7927 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/network/if-up.d/wpasupplicant @@ -0,0 +1 @@ +../../wpa_supplicant/ifupdown.sh \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/etc/network/interfaces b/board/amlogic/f16ref/skeleton/etc/network/interfaces new file mode 100755 index 0000000000..89b4448658 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/network/interfaces @@ -0,0 +1,6 @@ +auto lo +iface lo inet loopback +# +iface eth0 inet manual +# +iface wlan0 inet manual diff --git a/board/amlogic/f16ref/skeleton/etc/passwd b/board/amlogic/f16ref/skeleton/etc/passwd new file mode 100644 index 0000000000..86d62269e0 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/passwd @@ -0,0 +1,14 @@ +root:x:0:0:root:/root:/bin/sh +daemon:x:1:1:daemon:/usr/sbin:/bin/sh +bin:x:2:2:bin:/bin:/bin/sh +sys:x:3:3:sys:/dev:/bin/sh +sync:x:4:100:sync:/bin:/bin/sync +mail:x:8:8:mail:/var/spool/mail:/bin/sh +proxy:x:13:13:proxy:/bin:/bin/sh +www-data:x:33:33:www-data:/var/www:/bin/sh +backup:x:34:34:backup:/var/backups:/bin/sh +operator:x:37:37:Operator:/var:/bin/sh +haldaemon:x:68:68:hald:/:/bin/sh +dbus:x:81:81:dbus:/var/run/dbus:/bin/sh +nobody:x:99:99:nobody:/home:/bin/sh +sshd:x:103:99:Operator:/var:/bin/sh diff --git a/board/amlogic/f16ref/skeleton/etc/passwd- b/board/amlogic/f16ref/skeleton/etc/passwd- new file mode 100644 index 0000000000..86d62269e0 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/passwd- @@ -0,0 +1,14 @@ +root:x:0:0:root:/root:/bin/sh +daemon:x:1:1:daemon:/usr/sbin:/bin/sh +bin:x:2:2:bin:/bin:/bin/sh +sys:x:3:3:sys:/dev:/bin/sh +sync:x:4:100:sync:/bin:/bin/sync +mail:x:8:8:mail:/var/spool/mail:/bin/sh +proxy:x:13:13:proxy:/bin:/bin/sh +www-data:x:33:33:www-data:/var/www:/bin/sh +backup:x:34:34:backup:/var/backups:/bin/sh +operator:x:37:37:Operator:/var:/bin/sh +haldaemon:x:68:68:hald:/:/bin/sh +dbus:x:81:81:dbus:/var/run/dbus:/bin/sh +nobody:x:99:99:nobody:/home:/bin/sh +sshd:x:103:99:Operator:/var:/bin/sh diff --git a/board/amlogic/f16ref/skeleton/etc/profile b/board/amlogic/f16ref/skeleton/etc/profile new file mode 100755 index 0000000000..02cf2cb9b4 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/profile @@ -0,0 +1,49 @@ +# ~/.bashrc: executed by bash(1) for non-login interactive shells. + +export PATH=\ +/bin:\ +/sbin:\ +/usr/bin:\ +/usr/sbin:\ +/usr/bin/X11:\ +/usr/local/bin + +# If running interactively, then: +if [ "$PS1" ]; then + + #if [ "$BASH" ]; then + if [ 1 ]; then #alway is + export PS1="[\u@\h \W]\\$ " + alias ll='/bin/ls --color=tty -laFh' + alias ls='/bin/ls --color=tty -F' + export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:'; + else + if [ "`id -u`" -eq 0 ]; then + export PS1='# ' + else + export PS1='$ ' + fi + fi + + export USER=`id -un` + export LOGNAME=$USER + export HOSTNAME=`/bin/hostname` + export HISTSIZE=1000 + export HISTFILESIZE=1000 + export PAGER='/bin/more ' + export EDITOR='/bin/vi' + export INPUTRC=/etc/inputrc + export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile + + ### Some aliases + alias ps2='ps facux ' + alias ps1='ps faxo "%U %t %p %a" ' + alias af='ps af' + alias cls='clear' + alias df='df -h' + alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 ' + #alias bc='bc -l' + alias minicom='minicom -c on' + alias calc='calc -Cd ' + alias bc='calc -Cd ' +fi; diff --git a/board/amlogic/f16ref/skeleton/etc/protocols b/board/amlogic/f16ref/skeleton/etc/protocols new file mode 100755 index 0000000000..1ac8a40967 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/protocols @@ -0,0 +1,31 @@ +# /etc/protocols: +# $Id: protocols,v 1.1 2004/10/09 02:49:18 andersen Exp $ +# +# Internet (IP) protocols +# +# from: @(#)protocols 5.1 (Berkeley) 4/17/89 +# +# Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992). + +ip 0 IP # internet protocol, pseudo protocol number +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # Internet Group Management +ggp 3 GGP # gateway-gateway protocol +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') +st 5 ST # ST datagram mode +tcp 6 TCP # transmission control protocol +egp 8 EGP # exterior gateway protocol +pup 12 PUP # PARC universal packet protocol +udp 17 UDP # user datagram protocol +hmp 20 HMP # host monitoring protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +rdp 27 RDP # "reliable datagram" protocol +iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4 +xtp 36 XTP # Xpress Tranfer Protocol +ddp 37 DDP # Datagram Delivery Protocol +idpr-cmtp 39 IDPR-CMTP # IDPR Control Message Transport +rspf 73 RSPF #Radio Shortest Path First. +vmtp 81 VMTP # Versatile Message Transport +ospf 89 OSPFIGP # Open Shortest Path First IGP +ipip 94 IPIP # Yet Another IP encapsulation +encap 98 ENCAP # Yet Another IP encapsulation diff --git a/board/amlogic/f16ref/skeleton/etc/random-seed b/board/amlogic/f16ref/skeleton/etc/random-seed new file mode 100755 index 0000000000..f26038adc5 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/etc/random-seed differ diff --git a/board/amlogic/f16ref/skeleton/etc/remote.conf b/board/amlogic/f16ref/skeleton/etc/remote.conf new file mode 100755 index 0000000000..75cd9970ad --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/remote.conf @@ -0,0 +1,59 @@ +#********************************************************************************************************* +#this file is configuration for each factory remote device +# work_mode 0 :software mode 1 :hardware mode +# repeat_enable 0 :disable repeat 1 :enable repeat +# +# factory_code each device has it's unique factory code. +# pattern:custom_code(16bit)+index_code(16bit) +# examble: 0xff000001 = 0xff00(custom cod) 0001 (index) +# +# release_delay unit:ms.release will report from kernel to user layer after this period of time +# from press or repeat triggered. +# +# debug_enable 0 :debug disable 1 :debug disable +# +# SW MODE: +# bit_count how many bits in each frame +# tw_leader_act time window for leader active +# tw_bit0 time window for bit0 time. +# tw_bit1 time window for bit1 time +# tw_repeat_leader time window for repeat leader +# REG +# reg_base_gen set value for PREG_IR_DEC_BASE_GEN +# reg_control set value for PREG_IR_DEC_CONTROL +# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE +# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE +# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE +# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME +#************************************************************************************************************* + +#small NEC remote + +factory_code =0xff000001 +work_mode =1 +repeat_enable =0 +release_delay =150 +debug_enable =0 +reg_control =0xfbe40 + +#amlogic NEC remote + +factory_code =0x40400001 +work_mode =1 +repeat_enable =0 +release_delay =150 +debug_enable =0 +reg_control =0xfbe40 + +#skyworth remote +factory_code =0x0e0e0001 +work_mode =0 #software mode +repeat_enable =0 #repeat disable +release_delay =100 +debug_enable =0 +tw_leader_act =0x02bc012c +tw_bit0 =0x00460028 +tw_bit1 =0x00ff0064 +tw_repeat_leader =0x02bc012c + +#add your own remote configure entry here diff --git a/board/amlogic/f16ref/skeleton/etc/securetty b/board/amlogic/f16ref/skeleton/etc/securetty new file mode 100755 index 0000000000..b25f4a5a9c --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/securetty @@ -0,0 +1,35 @@ +tty1 +tty2 +tty3 +tty4 +tty5 +tty6 +tty7 +tty8 +ttyS0 +ttyS1 +ttyS2 +ttyS3 +ttyAMA0 +ttyAMA1 +ttyAMA2 +ttyAMA3 +ttySAC0 +ttySAC1 +ttySAC2 +ttySAC3 +ttyUL0 +ttyUL1 +ttyUL2 +ttyUL3 +ttyPSC0 +ttyPSC1 +ttyPSC2 +ttyPSC3 +ttyCPM0 +ttyCPM1 +ttyCPM2 +ttyCPM3 +ttymxc0 +ttymxc1 +ttymxc2 diff --git a/board/amlogic/f16ref/skeleton/etc/services b/board/amlogic/f16ref/skeleton/etc/services new file mode 100755 index 0000000000..b287b63ea0 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/services @@ -0,0 +1,302 @@ +# /etc/services: +# $Id: services,v 1.1 2004/10/09 02:49:18 andersen Exp $ +# +# Network services, Internet style +# +# Note that it is presently the policy of IANA to assign a single well-known +# port number for both TCP and UDP; hence, most entries here have two entries +# even if the protocol doesn't support UDP operations. +# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports +# are included, only the more common ones. + +tcpmux 1/tcp # TCP port service multiplexer +echo 7/tcp +echo 7/udp +discard 9/tcp sink null +discard 9/udp sink null +systat 11/tcp users +daytime 13/tcp +daytime 13/udp +netstat 15/tcp +qotd 17/tcp quote +msp 18/tcp # message send protocol +msp 18/udp # message send protocol +chargen 19/tcp ttytst source +chargen 19/udp ttytst source +ftp-data 20/tcp +ftp 21/tcp +fsp 21/udp fspd +ssh 22/tcp # SSH Remote Login Protocol +ssh 22/udp # SSH Remote Login Protocol +telnet 23/tcp +# 24 - private +smtp 25/tcp mail +# 26 - unassigned +time 37/tcp timserver +time 37/udp timserver +rlp 39/udp resource # resource location +nameserver 42/tcp name # IEN 116 +whois 43/tcp nicname +re-mail-ck 50/tcp # Remote Mail Checking Protocol +re-mail-ck 50/udp # Remote Mail Checking Protocol +domain 53/tcp nameserver # name-domain server +domain 53/udp nameserver +mtp 57/tcp # deprecated +bootps 67/tcp # BOOTP server +bootps 67/udp +bootpc 68/tcp # BOOTP client +bootpc 68/udp +tftp 69/udp +gopher 70/tcp # Internet Gopher +gopher 70/udp +rje 77/tcp netrjs +finger 79/tcp +www 80/tcp http # WorldWideWeb HTTP +www 80/udp # HyperText Transfer Protocol +link 87/tcp ttylink +kerberos 88/tcp kerberos5 krb5 # Kerberos v5 +kerberos 88/udp kerberos5 krb5 # Kerberos v5 +supdup 95/tcp +# 100 - reserved +hostnames 101/tcp hostname # usually from sri-nic +iso-tsap 102/tcp tsap # part of ISODE. +csnet-ns 105/tcp cso-ns # also used by CSO name server +csnet-ns 105/udp cso-ns +# unfortunately the poppassd (Eudora) uses a port which has already +# been assigned to a different service. We list the poppassd as an +# alias here. This should work for programs asking for this service. +# (due to a bug in inetd the 3com-tsmux line is disabled) +#3com-tsmux 106/tcp poppassd +#3com-tsmux 106/udp poppassd +rtelnet 107/tcp # Remote Telnet +rtelnet 107/udp +pop-2 109/tcp postoffice # POP version 2 +pop-2 109/udp +pop-3 110/tcp # POP version 3 +pop-3 110/udp +sunrpc 111/tcp portmapper # RPC 4.0 portmapper TCP +sunrpc 111/udp portmapper # RPC 4.0 portmapper UDP +auth 113/tcp authentication tap ident +sftp 115/tcp +uucp-path 117/tcp +nntp 119/tcp readnews untp # USENET News Transfer Protocol +ntp 123/tcp +ntp 123/udp # Network Time Protocol +netbios-ns 137/tcp # NETBIOS Name Service +netbios-ns 137/udp +netbios-dgm 138/tcp # NETBIOS Datagram Service +netbios-dgm 138/udp +netbios-ssn 139/tcp # NETBIOS session service +netbios-ssn 139/udp +imap2 143/tcp # Interim Mail Access Proto v2 +imap2 143/udp +snmp 161/udp # Simple Net Mgmt Proto +snmp-trap 162/udp snmptrap # Traps for SNMP +cmip-man 163/tcp # ISO mgmt over IP (CMOT) +cmip-man 163/udp +cmip-agent 164/tcp +cmip-agent 164/udp +xdmcp 177/tcp # X Display Mgr. Control Proto +xdmcp 177/udp +nextstep 178/tcp NeXTStep NextStep # NeXTStep window +nextstep 178/udp NeXTStep NextStep # server +bgp 179/tcp # Border Gateway Proto. +bgp 179/udp +prospero 191/tcp # Cliff Neuman's Prospero +prospero 191/udp +irc 194/tcp # Internet Relay Chat +irc 194/udp +smux 199/tcp # SNMP Unix Multiplexer +smux 199/udp +at-rtmp 201/tcp # AppleTalk routing +at-rtmp 201/udp +at-nbp 202/tcp # AppleTalk name binding +at-nbp 202/udp +at-echo 204/tcp # AppleTalk echo +at-echo 204/udp +at-zis 206/tcp # AppleTalk zone information +at-zis 206/udp +qmtp 209/tcp # The Quick Mail Transfer Protocol +qmtp 209/udp # The Quick Mail Transfer Protocol +z3950 210/tcp wais # NISO Z39.50 database +z3950 210/udp wais +ipx 213/tcp # IPX +ipx 213/udp +imap3 220/tcp # Interactive Mail Access +imap3 220/udp # Protocol v3 +ulistserv 372/tcp # UNIX Listserv +ulistserv 372/udp +https 443/tcp # MCom +https 443/udp # MCom +snpp 444/tcp # Simple Network Paging Protocol +snpp 444/udp # Simple Network Paging Protocol +saft 487/tcp # Simple Asynchronous File Transfer +saft 487/udp # Simple Asynchronous File Transfer +npmp-local 610/tcp dqs313_qmaster # npmp-local / DQS +npmp-local 610/udp dqs313_qmaster # npmp-local / DQS +npmp-gui 611/tcp dqs313_execd # npmp-gui / DQS +npmp-gui 611/udp dqs313_execd # npmp-gui / DQS +hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS +hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS +# +# UNIX specific services +# +exec 512/tcp +biff 512/udp comsat +login 513/tcp +who 513/udp whod +shell 514/tcp cmd # no passwords used +syslog 514/udp +printer 515/tcp spooler # line printer spooler +talk 517/udp +ntalk 518/udp +route 520/udp router routed # RIP +timed 525/udp timeserver +tempo 526/tcp newdate +courier 530/tcp rpc +conference 531/tcp chat +netnews 532/tcp readnews +netwall 533/udp # -for emergency broadcasts +uucp 540/tcp uucpd # uucp daemon +afpovertcp 548/tcp # AFP over TCP +afpovertcp 548/udp # AFP over TCP +remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem +klogin 543/tcp # Kerberized `rlogin' (v5) +kshell 544/tcp krcmd # Kerberized `rsh' (v5) +kerberos-adm 749/tcp # Kerberos `kadmin' (v5) +# +webster 765/tcp # Network dictionary +webster 765/udp +# +# From ``Assigned Numbers'': +# +#> The Registered Ports are not controlled by the IANA and on most systems +#> can be used by ordinary user processes or programs executed by ordinary +#> users. +# +#> Ports are used in the TCP [45,106] to name the ends of logical +#> connections which carry long term conversations. For the purpose of +#> providing services to unknown callers, a service contact port is +#> defined. This list specifies the port used by the server process as its +#> contact port. While the IANA can not control uses of these ports it +#> does register or list uses of these ports as a convienence to the +#> community. +# +nfsdstatus 1110/tcp +nfsd-keepalive 1110/udp + +ingreslock 1524/tcp +ingreslock 1524/udp +prospero-np 1525/tcp # Prospero non-privileged +prospero-np 1525/udp +datametrics 1645/tcp old-radius # datametrics / old radius entry +datametrics 1645/udp old-radius # datametrics / old radius entry +sa-msg-port 1646/tcp old-radacct # sa-msg-port / old radacct entry +sa-msg-port 1646/udp old-radacct # sa-msg-port / old radacct entry +radius 1812/tcp # Radius +radius 1812/udp # Radius +radacct 1813/tcp # Radius Accounting +radacct 1813/udp # Radius Accounting +nfsd 2049/tcp nfs +nfsd 2049/udp nfs +cvspserver 2401/tcp # CVS client/server operations +cvspserver 2401/udp # CVS client/server operations +mysql 3306/tcp # MySQL +mysql 3306/udp # MySQL +rfe 5002/tcp # Radio Free Ethernet +rfe 5002/udp # Actually uses UDP only +cfengine 5308/tcp # CFengine +cfengine 5308/udp # CFengine +bbs 7000/tcp # BBS service +# +# +# Kerberos (Project Athena/MIT) services +# Note that these are for Kerberos v4, and are unofficial. Sites running +# v4 should uncomment these and comment out the v5 entries above. +# +kerberos4 750/udp kerberos-iv kdc # Kerberos (server) udp +kerberos4 750/tcp kerberos-iv kdc # Kerberos (server) tcp +kerberos_master 751/udp # Kerberos authentication +kerberos_master 751/tcp # Kerberos authentication +passwd_server 752/udp # Kerberos passwd server +krb_prop 754/tcp # Kerberos slave propagation +krbupdate 760/tcp kreg # Kerberos registration +kpasswd 761/tcp kpwd # Kerberos "passwd" +kpop 1109/tcp # Pop with Kerberos +knetd 2053/tcp # Kerberos de-multiplexor +zephyr-srv 2102/udp # Zephyr server +zephyr-clt 2103/udp # Zephyr serv-hm connection +zephyr-hm 2104/udp # Zephyr hostmanager +eklogin 2105/tcp # Kerberos encrypted rlogin +# +# Unofficial but necessary (for NetBSD) services +# +supfilesrv 871/tcp # SUP server +supfiledbg 1127/tcp # SUP debugging +# +# Datagram Delivery Protocol services +# +rtmp 1/ddp # Routing Table Maintenance Protocol +nbp 2/ddp # Name Binding Protocol +echo 4/ddp # AppleTalk Echo Protocol +zip 6/ddp # Zone Information Protocol +# +# Services added for the Debian GNU/Linux distribution +poppassd 106/tcp # Eudora +poppassd 106/udp # Eudora +mailq 174/tcp # Mailer transport queue for Zmailer +mailq 174/tcp # Mailer transport queue for Zmailer +omirr 808/tcp omirrd # online mirror +omirr 808/udp omirrd # online mirror +rmtcfg 1236/tcp # Gracilis Packeten remote config server +xtel 1313/tcp # french minitel +coda_opcons 1355/udp # Coda opcons (Coda fs) +coda_venus 1363/udp # Coda venus (Coda fs) +coda_auth 1357/udp # Coda auth (Coda fs) +coda_udpsrv 1359/udp # Coda udpsrv (Coda fs) +coda_filesrv 1361/udp # Coda filesrv (Coda fs) +codacon 1423/tcp venus.cmu # Coda Console (Coda fs) +coda_aux1 1431/tcp # coda auxiliary service (Coda fs) +coda_aux1 1431/udp # coda auxiliary service (Coda fs) +coda_aux2 1433/tcp # coda auxiliary service (Coda fs) +coda_aux2 1433/udp # coda auxiliary service (Coda fs) +coda_aux3 1435/tcp # coda auxiliary service (Coda fs) +coda_aux3 1435/udp # coda auxiliary service (Coda fs) +cfinger 2003/tcp # GNU Finger +afbackup 2988/tcp # Afbackup system +afbackup 2988/udp # Afbackup system +icp 3130/tcp # Internet Cache Protocol (Squid) +icp 3130/udp # Internet Cache Protocol (Squid) +postgres 5432/tcp # POSTGRES +postgres 5432/udp # POSTGRES +fax 4557/tcp # FAX transmission service (old) +hylafax 4559/tcp # HylaFAX client-server protocol (new) +noclog 5354/tcp # noclogd with TCP (nocol) +noclog 5354/udp # noclogd with UDP (nocol) +hostmon 5355/tcp # hostmon uses TCP (nocol) +hostmon 5355/udp # hostmon uses TCP (nocol) +ircd 6667/tcp # Internet Relay Chat +ircd 6667/udp # Internet Relay Chat +webcache 8080/tcp # WWW caching service +webcache 8080/udp # WWW caching service +tproxy 8081/tcp # Transparent Proxy +tproxy 8081/udp # Transparent Proxy +mandelspawn 9359/udp mandelbrot # network mandelbrot +amanda 10080/udp # amanda backup services +amandaidx 10082/tcp # amanda backup services +amidxtape 10083/tcp # amanda backup services +isdnlog 20011/tcp # isdn logging system +isdnlog 20011/udp # isdn logging system +vboxd 20012/tcp # voice box system +vboxd 20012/udp # voice box system +binkp 24554/tcp # Binkley +binkp 24554/udp # Binkley +asp 27374/tcp # Address Search Protocol +asp 27374/udp # Address Search Protocol +tfido 60177/tcp # Ifmail +tfido 60177/udp # Ifmail +fido 60179/tcp # Ifmail +fido 60179/udp # Ifmail + +# Local services + diff --git a/board/amlogic/f16ref/skeleton/etc/shadow b/board/amlogic/f16ref/skeleton/etc/shadow new file mode 100644 index 0000000000..1db54568eb --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/shadow @@ -0,0 +1,12 @@ +root:$1$C0786MXO$qNkHWlSs49I0CJ94OYfcs0:15393:0:99999:7::: +bin:*:10933:0:99999:7::: +daemon:*:10933:0:99999:7::: +adm:*:10933:0:99999:7::: +lp:*:10933:0:99999:7::: +sync:*:10933:0:99999:7::: +shutdown:*:10933:0:99999:7::: +halt:*:10933:0:99999:7::: +uucp:*:10933:0:99999:7::: +operator:*:10933:0:99999:7::: +nobody:*:10933:0:99999:7::: + diff --git a/board/amlogic/f16ref/skeleton/etc/shadow- b/board/amlogic/f16ref/skeleton/etc/shadow- new file mode 100644 index 0000000000..23d27f9ef7 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/shadow- @@ -0,0 +1,12 @@ +root::10933:0:99999:7::: +bin:*:10933:0:99999:7::: +daemon:*:10933:0:99999:7::: +adm:*:10933:0:99999:7::: +lp:*:10933:0:99999:7::: +sync:*:10933:0:99999:7::: +shutdown:*:10933:0:99999:7::: +halt:*:10933:0:99999:7::: +uucp:*:10933:0:99999:7::: +operator:*:10933:0:99999:7::: +nobody:*:10933:0:99999:7::: + diff --git a/board/amlogic/f16ref/skeleton/etc/shawd b/board/amlogic/f16ref/skeleton/etc/shawd new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/action_wpa.sh b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/action_wpa.sh new file mode 100755 index 0000000000..7fb40adf43 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/action_wpa.sh @@ -0,0 +1,50 @@ +#!/bin/sh + +# Action script to enable/disable wpa-roam interfaces in reaction to +# ifplugd events. +# +# Copyright: Copyright (c) 2008-2010, Kel Modderman +# License: GPL-2 +# + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +if [ ! -x /sbin/wpa_action ]; then + exit 0 +fi + +# ifplugd(8) - +# +# If an ifplugd managed interface is brought up, disconnect any +# wpa-roam managed interfaces so that only one "roaming" interface +# remains active on the system. + +IFPLUGD_IFACE="${1}" + +case "${2}" in + up) + COMMAND=disconnect + ;; + down) + COMMAND=reconnect + ;; + *) + echo "$0: unknown arguments: ${@}" >&2 + exit 1 + ;; +esac + +for CTRL in /var/run/wpa_supplicant/*; do + [ -S "${CTRL}" ] || continue + + IFACE="${CTRL#/var/run/wpa_supplicant/}" + + # skip if ifplugd is managing this interface + if [ "${IFPLUGD_IFACE}" = "${IFACE}" ]; then + continue + fi + + if wpa_action "${IFACE}" check; then + wpa_cli -i "${IFACE}" "${COMMAND}" + fi +done diff --git a/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/functions.sh b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/functions.sh new file mode 100755 index 0000000000..56cf2e2af5 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/functions.sh @@ -0,0 +1,979 @@ +#!/bin/sh + +##################################################################### +## Purpose +# This file contains common shell functions used by scripts of the +# wpasupplicant package to allow ifupdown to manage wpa_supplicant. +# It also contains some functions used by wpa_action(8) that allow +# ifupdown to be managed by wpa_cli(8) action events. +# +# This file is provided by the wpasupplicant package. + +##################################################################### +# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# On Debian GNU/Linux systems, the text of the GPL license, +# version 2, can be found in /usr/share/common-licenses/GPL-2. + +##################################################################### +## global variables +# wpa_supplicant variables +WPA_SUP_BIN="/sbin/wpa_supplicant" +WPA_SUP_PNAME="wpa_supplicant" +WPA_SUP_PIDFILE="/var/run/wpa_supplicant.${WPA_IFACE}.pid" + +# wpa_cli variables +WPA_CLI_BIN="/sbin/wpa_cli" +WPA_CLI_PNAME="wpa_cli" +WPA_CLI_PIDFILE="/var/run/wpa_action.${WPA_IFACE}.pid" +WPA_CLI_TIMESTAMP="/var/run/wpa_action.${WPA_IFACE}.timestamp" +WPA_CLI_IFUPDOWN="/var/run/wpa_action.${WPA_IFACE}.ifupdown" + +# sendsigs omission interface, present in initscripts (>= 2.86.ds1-48) +if [ -d /lib/init/rw/sendsigs.omit.d/ ]; then + # Debian + WPA_SUP_OMIT_PIDFILE="/lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" +elif [ -d /var/run/sendsigs.omit.d/ ]; then + # Ubuntu, see https://launchpad.net/bugs/181541 for status + WPA_SUP_OMIT_PIDFILE="/var/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.${WPA_IFACE}.pid" +else + WPA_SUP_OMIT_PIDFILE= +fi + +# default ctrl_interface socket directory +if [ -z "$WPA_CTRL_DIR" ]; then + WPA_CTRL_DIR="/var/run/wpa_supplicant" +fi + +# verbosity variables +if [ -n "$IF_WPA_VERBOSITY" ] || [ "$VERBOSITY" = "1" ]; then + TO_NULL="/dev/stdout" + DAEMON_VERBOSITY="--verbose" +else + TO_NULL="/dev/null" + DAEMON_VERBOSITY="--quiet" +fi + +##################################################################### +## wpa_cli wrapper +# Path to common ctrl_interface socket and iface supplied. +# NB: WPA_CTRL_DIR cannot be used for interactive commands, it is +# set only in the environment that wpa_cli provides when processing +# action events. +# +wpa_cli () { + "$WPA_CLI_BIN" -p "$WPA_CTRL_DIR" -i "$WPA_IFACE" "$@" + + return "$?" +} + +##################################################################### +## verbose and stderr message wrapper +# Ensures a standard and easily identifiable message is printed by +# scripts using this function library. +# +# log Log a message to syslog when called non-interactively +# by wpa_action +# +# verbose To stdout when IF_WPA_VERBOSITY or VERBOSITY is true +# +# action Same as verbose but without newline +# Useful for allowing wpa_cli commands to echo result +# value of 'OK' or 'FAILED' +# +# stderr Echo warning or error messages to stderr +# +# NB: when called by wpa_action, there is no redirection (verbose) +# +wpa_msg () { + if [ "$1" = "log" ]; then + shift + case "$WPA_ACTION" in + "CONNECTED"|"DISCONNECTED") + [ -x /usr/bin/logger ] || return + if [ "$#" -gt 0 ]; then + logger -t "wpa_action" "$@" + else + logger -t "wpa_action" + fi + ;; + *) + [ "$#" -gt 0 ] && echo "wpa_action: $@" + ;; + esac + return + fi + + case "$1" in + "verbose") + shift + echo "$WPA_SUP_PNAME: $@" >$TO_NULL + ;; + "action") + shift + echo -n "$WPA_SUP_PNAME: $@ -- " >$TO_NULL + ;; + "stderr") + shift + echo "$WPA_SUP_PNAME: $@" >/dev/stderr + ;; + *) + ;; + esac +} + +##################################################################### +## validate daemon pid files +# Test daemon process ID files via start-stop-daemon with a signal 0 +# given the exec binary and pidfile location. +# +# $1 daemon +# $2 pidfile +# +# Returns true when pidfile exists, the process ID exists _and_ was +# created by the exec binary. +# +# If the test fails, but the pidfile exists, it is stale +# +test_daemon_pidfile () { + local DAEMON + local PIDFILE + + if [ -n "$1" ]; then + DAEMON="$1" + fi + + if [ -f "$2" ]; then + PIDFILE="$2" + fi + + if [ -n "$DAEMON" ] && [ -f "$PIDFILE" ]; then + if start-stop-daemon --stop --quiet --signal 0 \ + --exec "$DAEMON" --pidfile "$PIDFILE"; then + return 0 + else + rm -f "$PIDFILE" + return 1 + fi + else + return 1 + fi +} + +# validate wpa_supplicant pidfile +test_wpa_supplicant () { + test_daemon_pidfile "$WPA_SUP_BIN" "$WPA_SUP_PIDFILE" +} + +# validate wpa_cli pidfile +test_wpa_cli () { + test_daemon_pidfile "$WPA_CLI_BIN" "$WPA_CLI_PIDFILE" +} + +##################################################################### +## daemonize wpa_supplicant +# Start wpa_supplicant via start-stop-dameon with all required +# options. Will start if environment variable WPA_SUP_CONF is present +# +# Default options: +# -B dameonize/background process +# -D driver backend ('wext' if none given) +# -P process ID file +# -C path to ctrl_interface socket directory +# -s log to syslog +# +# Conditional options: +# -c configuration file +# -W wait for wpa_cli to attach to ctrl_interface socket +# -b bridge interface name +# -f path to log file +# +init_wpa_supplicant () { + [ -n "$WPA_SUP_CONF" ] || return 0 + + local WPA_SUP_OPTIONS + WPA_SUP_OPTIONS="-B -P $WPA_SUP_PIDFILE -i $WPA_IFACE" + + if [ -n "$WPA_ACTION_SCRIPT" ]; then + if [ -x "$WPA_ACTION_SCRIPT" ]; then + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -W" + wpa_msg verbose "wait for wpa_cli to attach" + else + wpa_msg stderr "action script \"$WPA_ACTION_SCRIPT\" not executable" + return 1 + fi + fi + + if [ -n "$IF_WPA_BRIDGE" ]; then + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -b $IF_WPA_BRIDGE" + wpa_msg verbose "wpa-bridge $IF_WPA_BRIDGE" + fi + + if [ -n "$IF_WPA_DRIVER" ]; then + wpa_msg verbose "wpa-driver $IF_WPA_DRIVER" + case "$IF_WPA_DRIVER" in + hostap|ipw|madwifi|ndiswrapper) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D nl80211,wext" + wpa_msg stderr "\"$IF_WPA_DRIVER\" wpa-driver is unsupported" + wpa_msg stderr "using \"nl80211,wext\" wpa-driver instead ..." + ;; + *) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D $IF_WPA_DRIVER" + ;; + esac + else + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -D wext" + wpa_msg verbose "wpa-driver wext (default)" + fi + + if [ -n "$IF_WPA_DEBUG_LEVEL" ]; then + case "$IF_WPA_DEBUG_LEVEL" in + 3) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -ddd" + ;; + 2) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -dd" + ;; + 1) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -t -d" + ;; + 0) + # wpa_supplicant default verbosity + ;; + -1) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -q" + ;; + -2) + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -qq" + ;; + esac + wpa_msg verbose "using debug level: $IF_WPA_DEBUG_LEVEL" + fi + + if [ -n "$IF_WPA_LOGFILE" ]; then + # custom log file + WPA_SUP_OPTIONS="$WPA_SUP_OPTIONS -f $IF_WPA_LOGFILE" + WPA_SUP_LOGFILE="$IF_WPA_LOGFILE" + wpa_msg verbose "logging to $IF_WPA_LOGFILE" + fi + + wpa_msg verbose "$WPA_SUP_BIN $WPA_SUP_OPTIONS $WPA_SUP_CONF" + + start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ + --name $WPA_SUP_PNAME --startas $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE \ + -- $WPA_SUP_OPTIONS $WPA_SUP_CONF + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPA_SUP_BIN daemon failed to start" + return 1 + fi + + if [ -n "$WPA_SUP_OMIT_PIDFILE" ]; then + wpa_msg verbose "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" + fi +} + +##################################################################### +## stop wpa_supplicant process +# Kill wpa_supplicant via start-stop-daemon, given the location of +# the pidfile or ctrl_interface socket path and interface name +# +kill_wpa_supplicant () { + test_wpa_supplicant || return 0 + + wpa_msg verbose "terminating $WPA_SUP_PNAME daemon via pidfile $WPA_SUP_PIDFILE" + + start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ + --exec $WPA_SUP_BIN --pidfile $WPA_SUP_PIDFILE + + if [ -f "$WPA_SUP_PIDFILE" ]; then + rm -f "$WPA_SUP_PIDFILE" + fi + + if [ -f "$WPA_SUP_OMIT_PIDFILE" ]; then + wpa_msg verbose "removing $WPA_SUP_OMIT_PIDFILE" + rm -f "$WPA_SUP_OMIT_PIDFILE" + fi +} + +##################################################################### +## reload wpa_supplicant process +# Sending a HUP signal causes wpa_supplicant to reparse its +# configuration file +# +reload_wpa_supplicant () { + if test_wpa_supplicant; then + wpa_msg verbose "reloading wpa_supplicant configuration file via HUP signal" + start-stop-daemon --stop --signal HUP \ + --name "$WPA_SUP_PNAME" --pidfile "$WPA_SUP_PIDFILE" + else + wpa_msg verbose "cannot $WPA_ACTION, $WPA_SUP_PIDFILE does not exist" + fi +} + +##################################################################### +## daemonize wpa_cli and action script +# If environment variable WPA_ACTION_SCRIPT is present, wpa_cli will +# be spawned via start-stop-daemon +# +# Required options: +# -a action script => wpa_action +# -P process ID file +# -B background process +# +init_wpa_cli () { + HACK_WPA_ACTION_SCRIPT="/sbin/wpa_action" + [ -n "$HACK_WPA_ACTION_SCRIPT" ] || return 0 + + local WPA_CLI_OPTIONS + WPA_CLI_OPTIONS="-B -P $WPA_CLI_PIDFILE -i $WPA_IFACE" + + wpa_msg verbose "$WPA_CLI_BIN $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $HACK_WPA_ACTION_SCRIPT" + + start-stop-daemon --start --oknodo $DAEMON_VERBOSITY \ + --name $WPA_CLI_PNAME --startas $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE \ + -- $WPA_CLI_OPTIONS -p $WPA_CTRL_DIR -a $HACK_WPA_ACTION_SCRIPT + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPA_CLI_BIN daemon failed to start" + return 1 + fi +} + +##################################################################### +## stop wpa_cli process +# Kill wpa_cli via start-stop-daemon, given the location of the +# pidfile +# +kill_wpa_cli () { + test_wpa_cli || return 0 + + wpa_msg verbose "terminating $WPA_CLI_PNAME daemon via pidfile $WPA_CLI_PIDFILE" + + start-stop-daemon --stop --oknodo $DAEMON_VERBOSITY \ + --exec $WPA_CLI_BIN --pidfile $WPA_CLI_PIDFILE + + if [ -f "$WPA_CLI_PIDFILE" ]; then + rm -f "$WPA_CLI_PIDFILE" + fi + + if [ -f "$WPA_CLI_TIMESTAMP" ]; then + rm -f "$WPA_CLI_TIMESTAMP" + fi + + if [ -L "$WPA_CLI_IFUPDOWN" ]; then + rm -f "$WPA_CLI_IFUPDOWN" + fi +} + +##################################################################### +## higher level wpa_cli wrapper for variable and set_network commands +# wpa_cli_do [set_network variable] +# +# $1 envorinment variable +# $2 data type of variable {raw|ascii} +# $3 wpa_cli variable, if $3 is set_network, shift and take +# set_network subvariable +# $4 wpa-* string as it would appear in interfaces file, enhances +# verbose messages +# +wpa_cli_do () { + if [ -z "$1" ]; then + return 0 + fi + + local WPACLISET_VALUE + local WPACLISET_VARIABLE + local WPACLISET_DESC + + case "$2" in + ascii) + # Double quote + WPACLISET_VALUE="\"$1\"" + ;; + raw|*) + # Provide raw value + WPACLISET_VALUE="$1" + ;; + esac + + case "$3" in + set_network) + if [ -z "$WPA_ID" ]; then + return 1 + fi + shift + WPACLISET_VARIABLE="set_network $WPA_ID $3" + ;; + *) + WPACLISET_VARIABLE="$3" + ;; + esac + + case "$4" in + *-psk|*-passphrase|*-passwd*|*-wep-key*) + WPACLISET_DESC="$4 *****" + ;; + *) + WPACLISET_DESC="$4 $WPACLISET_VALUE" + ;; + esac + + wpa_msg action "$WPACLISET_DESC" + + wpa_cli $WPACLISET_VARIABLE "$WPACLISET_VALUE" >$TO_NULL + + if [ "$?" -ne 0 ]; then + wpa_msg stderr "$WPACLISET_DESC failed!" + fi +} + +##################################################################### +## check value data type in plaintext or hex +# returns 0 if input consists of hexadecimal digits only, 1 otherwise +# +ishex () { + if [ -z "$1" ]; then + return 0 + fi + + case "$1" in + *[!0-9a-fA-F]*) + # plaintext + return 1 + ;; + *) + # hexadecimal + return 0 + ;; + esac +} + +##################################################################### +## sanity check and set psk|passphrase +# Warn about strange psk|passphrase values +# +# $1 psk or passphrase value +# +# If psk is surrounded by quotes strip them. +# +# If psk contains all hexadecimal characters and string length is 64: +# is 256bit hexadecimal +# else: +# is plaintext +# +# plaintext passphrases must be 8 - 63 characters in length +# 256-bit hexadecimal key must be 64 characters in length +# +wpa_key_check_and_set () { + if [ "$#" -ne 3 ]; then + return 0 + fi + + local KEY + local KEY_LEN + local KEY_TYPE + local ENC_TYPE + + case "$1" in + '"'*'"') + # Strip surrounding quotation marks + KEY=$(echo -n "$1" | sed 's/^"//;s/"$//') + ;; + *) + KEY="$1" + ;; + esac + + KEY_LEN="${#KEY}" + + case "$2" in + wep_key*) + ENC_TYPE="WEP" + ;; + psk) + ENC_TYPE="WPA" + ;; + *) + return 0 + ;; + esac + + if [ "$ENC_TYPE" = "WEP" ]; then + if ishex "$KEY"; then + case "$KEY_LEN" in + 10|26|32|58) + # 64/128/152/256-bit WEP + KEY_TYPE="raw" + ;; + *) + KEY_TYPE="ascii" + ;; + esac + else + KEY_TYPE="ascii" + fi + + if [ "$KEY_TYPE" = "ascii" ]; then + if [ "$KEY_LEN" -lt "5" ]; then + wpa_msg stderr "WARNING: plaintext or ascii WEP key has $KEY_LEN characters," + wpa_msg stderr "it must have at least 5 to be valid." + fi + fi + elif [ "$ENC_TYPE" = "WPA" ]; then + if ishex "$KEY"; then + case "$KEY_LEN" in + 64) + # 256-bit WPA + KEY_TYPE="raw" + ;; + *) + KEY_TYPE="ascii" + ;; + esac + else + KEY_TYPE="ascii" + fi + + if [ "$KEY_TYPE" = "ascii" ]; then + if [ "$KEY_LEN" -lt "8" ] || [ "$KEY_LEN" -gt "63" ]; then + wpa_msg stderr "WARNING: plaintext or ascii WPA key has $KEY_LEN characters," + wpa_msg stderr "it must have between 8 and 63 to be valid." + wpa_msg stderr "If the WPA key is a 256-bit hexadecimal key, it must have" + wpa_msg stderr "exactly 64 characters." + fi + fi + fi + + wpa_cli_do "$KEY" "$KEY_TYPE" set_network "$2" "$3" +} + +##################################################################### +## formulate a usable configuration from interfaces(5) wpa- lines +# A series of wpa_cli commands corresponding to environment variables +# created as a result of wpa- lines in an interfaces stanza. +# +# NB: no-act when roaming daemon is used (to avoid prematurely +# attaching to ctrl_interface socket) +# +conf_wpa_supplicant () { + if [ -n "$WPA_ACTION_SCRIPT" ]; then + return 0 + fi + + if [ "$IF_WPA_DRIVER" = "wired" ]; then + IF_WPA_AP_SCAN="0" + wpa_msg verbose "forcing ap_scan=0 (required for wired IEEE8021X auth)" + fi + + if [ -n "$IF_WPA_ESSID" ]; then + # #403316, be similar to wireless tools + IF_WPA_SSID="$IF_WPA_ESSID" + fi + + wpa_cli_do "$IF_WPA_AP_SCAN" raw \ + ap_scan wpa-ap-scan + + wpa_cli_do "$IF_WPA_PREAUTHENTICATE" raw \ + preauthenticate wpa-preauthenticate + + if [ -n "$IF_WPA_SSID" ] || [ "$IF_WPA_DRIVER" = "wired" ] || \ + [ -n "$IF_WPA_KEY_MGMT" ]; then + + case "$IF_WPA_SSID" in + '"'*'"') + IF_WPA_SSID=$(echo -n "$IF_WPA_SSID" | sed 's/^"//;s/"$//') + ;; + *) + ;; + esac + + WPA_ID=$(wpa_cli add_network) + + wpa_msg verbose "configuring network block -- $WPA_ID" + + wpa_cli_do "$IF_WPA_SSID" ascii \ + set_network ssid wpa-ssid + + wpa_cli_do "$IF_WPA_PRIORITY" raw \ + set_network priority wpa-priority + + wpa_cli_do "$IF_WPA_BSSID" raw \ + set_network bssid wpa-bssid + + if [ -s "$IF_WPA_PSK_FILE" ]; then + IF_WPA_PSK=$(cat "$IF_WPA_PSK_FILE") + fi + + # remain compat with wpa-passphrase-file + if [ -s "$IF_WPA_PASSPHRASE_FILE" ]; then + IF_WPA_PSK=$(cat "$IF_WPA_PASSPHRASE_FILE") + fi + + # remain compat with wpa-passphrase + if [ -n "$IF_WPA_PASSPHRASE" ]; then + IF_WPA_PSK="$IF_WPA_PASSPHRASE" + fi + + if [ -n "$IF_WPA_PSK" ]; then + wpa_key_check_and_set "$IF_WPA_PSK" \ + psk wpa-psk + fi + + wpa_cli_do "$IF_WPA_PAIRWISE" raw \ + set_network pairwise wpa-pairwise + + wpa_cli_do "$IF_WPA_GROUP" raw \ + set_network group wpa-group + + wpa_cli_do "$IF_WPA_MODE" raw \ + set_network mode wpa-mode + + wpa_cli_do "$IF_WPA_FREQUENCY" raw \ + set_network frequency wpa-frequency + + wpa_cli_do "$IF_WPA_SCAN_FREQ" raw \ + set_network scan_freq wpa-scan-freq + + wpa_cli_do "$IF_WPA_FREQ_LIST" raw \ + set_network freq_list wpa-freq-list + + wpa_cli_do "$IF_WPA_KEY_MGMT" raw \ + set_network key_mgmt wpa-key-mgmt + + wpa_cli_do "$IF_WPA_PROTO" raw \ + set_network proto wpa-proto + + wpa_cli_do "$IF_WPA_AUTH_ALG" raw \ + set_network auth_alg wpa-auth-alg + + wpa_cli_do "$IF_WPA_SCAN_SSID" raw \ + set_network scan_ssid wpa-scan-ssid + + wpa_cli_do "$IF_WPA_IDENTITY" ascii \ + set_network identity wpa-identity + + wpa_cli_do "$IF_WPA_ANONYMOUS_IDENTITY" ascii \ + set_network anonymous_identity wpa-anonymous-identity + + wpa_cli_do "$IF_WPA_EAP" raw \ + set_network eap wpa-eap + + wpa_cli_do "$IF_WPA_EAPPSK" raw \ + set_network eappsk wpa-eappsk + + wpa_cli_do "$IF_WPA_NAI" ascii \ + set_network nai wpa-nai + + wpa_cli_do "$IF_WPA_PASSWORD" ascii \ + set_network password wpa-password + + wpa_cli_do "$IF_WPA_CA_CERT" ascii \ + set_network ca_cert wpa-ca-cert + + wpa_cli_do "$IF_WPA_CA_PATH" ascii \ + set_network ca_path wpa-ca-path + + wpa_cli_do "$IF_WPA_CLIENT_CERT" ascii \ + set_network client_cert wpa-client-cert + + wpa_cli_do "$IF_WPA_PRIVATE_KEY" ascii \ + set_network private_key wpa-private-key + + wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD" ascii \ + set_network private_key_passwd wpa-private-key-passwd + + wpa_cli_do "$IF_WPA_DH_FILE" ascii \ + set_network dh_file wpa-dh-file + + wpa_cli_do "$IF_WPA_SUBJECT_MATCH" ascii \ + set_network subject_match wpa-subject-match + + wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH" ascii \ + set_network altsubject_match wpa-altsubject-match + + wpa_cli_do "$IF_WPA_CA_CERT2" ascii \ + set_network ca_cert2 wpa-ca-cert2 + + wpa_cli_do "$IF_WPA_CA_PATH2" ascii \ + set_network ca_path2 wpa-ca-path2 + + wpa_cli_do "$IF_WPA_CLIENT_CERT2" ascii \ + set_network client_cert2 wpa-client-cert2 + + wpa_cli_do "$IF_WPA_PRIVATE_KEY2" ascii \ + set_network private_key2 wpa-private-key2 + + wpa_cli_do "$IF_WPA_PRIVATE_KEY_PASSWD2" ascii \ + set_network private_key_passwd2 wpa-private-key-passwd2 + + wpa_cli_do "$IF_WPA_DH_FILE2" ascii \ + set_network dh_file2 wpa-dh-file2 + + wpa_cli_do "$IF_WPA_SUBJECT_MATCH2" ascii \ + set_network subject_match2 wpa-subject-match2 + + wpa_cli_do "$IF_WPA_ALTSUBJECT_MATCH2" ascii \ + set_network altsubject_match2 wpa-altsubject-match2 + + wpa_cli_do "$IF_WPA_EAP_METHODS" raw \ + set_network eap_methods wpa-eap-methods + + wpa_cli_do "$IF_WPA_PHASE1" ascii \ + set_network phase1 wpa-phase1 + + wpa_cli_do "$IF_WPA_PHASE2" ascii \ + set_network phase2 wpa-phase2 + + wpa_cli_do "$IF_WPA_PCSC" raw \ + set_network pcsc wpa-pcsc + + wpa_cli_do "$IF_WPA_PIN" ascii \ + set_network pin wpa-pin + + wpa_cli_do "$IF_WPA_ENGINE" raw \ + set_network engine wpa-engine + + wpa_cli_do "$IF_WPA_ENGINE_ID" ascii \ + set_network engine_id wpa-engine-id + + wpa_cli_do "$IF_WPA_KEY_ID" ascii \ + set_network key_id wpa-key-id + + wpa_cli_do "$IF_WPA_EAPOL_FLAGS" raw \ + set_network eapol_flags wpa-eapol-flags + + if [ -n "$IF_WPA_WEP_KEY0" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY0" \ + wep_key0 wpa-wep-key0 + fi + + if [ -n "$IF_WPA_WEP_KEY1" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY1" \ + wep_key1 wpa-wep-key1 + fi + + if [ -n "$IF_WPA_WEP_KEY2" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY2" \ + wep_key2 wpa-wep-key2 + fi + + if [ -n "$IF_WPA_WEP_KEY3" ]; then + wpa_key_check_and_set "$IF_WPA_WEP_KEY3" \ + wep_key3 wpa-wep-key3 + fi + + wpa_cli_do "$IF_WPA_WEP_TX_KEYIDX" raw \ + set_network wep_tx_keyidx wpa-wep-tx-keyidx + + wpa_cli_do "$IF_WPA_PROACTIVE_KEY_CACHING" raw \ + set_network proactive_key_caching wpa-proactive-key-caching + + wpa_cli_do "$IF_WPA_PAC_FILE" ascii \ + set_network pac_file wpa-pac-file + + wpa_cli_do "$IF_WPA_PEERKEY" raw \ + set_network peerkey wpa-peerkey + + wpa_cli_do "$IF_FRAGMENT_SIZE" raw \ + set_network fragment_size wpa-fragment-size + + wpa_cli_do "$IF_WPA_ID_STR" ascii \ + set_network id_str wpa-id-str + + wpa_cli_do "$WPA_ID" raw \ + enable_network "enabling network block" + fi +} + +##################################################################### +## Log wpa_cli environment variables +wpa_log_env () { + wpa_msg log "WPA_IFACE=$WPA_IFACE WPA_ACTION=$WPA_ACTION" + wpa_msg log "WPA_ID=$WPA_ID WPA_ID_STR=$WPA_ID_STR WPA_CTRL_DIR=$WPA_CTRL_DIR" +} + +##################################################################### +## hysteresis checking +# Networking tools such as dhcp clients used with ifupdown can +# synthesize artificial ACTION events, particuarly just after a +# DISCONNECTED/CONNECTED events are experienced in quick succession. +# This can lead to infinite event loops, and in extreme cases has the +# potential to cause system instability. +# +wpa_hysteresis_event () { + echo "$(date +%s)" > "$WPA_CLI_TIMESTAMP" 2>/dev/null +} + +wpa_hysteresis_check () { + if [ -f "$WPA_CLI_TIMESTAMP" ]; then + local TIME + local TIMESTAMP + local TIMEWAIT + TIME=$(date +%s) + # current time minus 4 second event buffer + TIMEWAIT=$(($TIME-4)) + # get time of last event + TIMESTAMP=$(cat $WPA_CLI_TIMESTAMP) + # compare values, allowing new action to be processed + # only if last action was more than 4 seconds ago + if [ "$TIMEWAIT" -le "$TIMESTAMP" ]; then + wpa_msg log "$WPA_ACTION event blocked by hysteresis check" + return 1 + fi + fi + + return 0 +} + +##################################################################### +## ifupdown locking functions +# A collection of rudimentary locking functions to lock ifup/ifdown +# actions. +# + +ifupdown_lock () { + ln -s lock "$WPA_CLI_IFUPDOWN" +} + +ifupdown_locked () { + [ -L "$WPA_CLI_IFUPDOWN" ] && return 0 + + return 1 +} + +ifupdown_unlock () { + rm -f "$WPA_CLI_IFUPDOWN" +} + +##################################################################### +## apply mapping logic and ifup logical interface +# Apply mapping logic via id_str or external mapping script, check +# state of IFACE with respect to ifupdown and ifup logical interaface +# +ifup () { + local INTERFACES_FILE + local IFSTATE_FILE + local IFUP_RETVAL + local WPA_LOGICAL_IFACE + + if [ -e /etc/network/interfaces ]; then + INTERFACES_FILE="/etc/network/interfaces" + else + wpa_msg log "/etc/network/interfaces does not exist, $WPA_IFACE will not be configured" + return 1 + fi + + if [ -e /etc/network/run/ifstate ]; then + # debian's ifupdown + IFSTATE_FILE="/etc/network/run/ifstate" + elif [ -e /var/run/network/ifstate ]; then + # ubuntu's + IFSTATE_FILE="/var/run/network/ifstate" + else + unset IFSTATE_FILE + fi + + if [ -z "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -n "$WPA_ID_STR" ]; then + WPA_LOGICAL_IFACE="$WPA_ID_STR" + fi + + if [ -z "$WPA_LOGICAL_IFACE" ] && [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then + local WPA_MAP_STDIN + + WPA_MAP_STDIN=$(set | sed -n 's/^\(IF_WPA_MAP[0-9]*\)=.*/echo \$\1/p') + + if [ -n "$WPA_MAP_STDIN" ]; then + WPA_LOGICAL_IFACE=$(eval "$WPA_MAP_STDIN" | "$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") + else + WPA_LOGICAL_IFACE=$("$IF_WPA_MAPPING_SCRIPT" "$WPA_IFACE") + fi + + if [ -n "$WPA_LOGICAL_IFACE" ]; then + wpa_msg log "mapping script result: $WPA_LOGICAL_IFACE" + else + wpa_msg log "mapping script failed." + fi + fi + + if [ -z "$WPA_LOGICAL_IFACE" ]; then + if [ -n "$IF_WPA_ROAM_DEFAULT_IFACE" ]; then + WPA_LOGICAL_IFACE="$IF_WPA_ROAM_DEFAULT_IFACE" + else + WPA_LOGICAL_IFACE="default" + fi + fi + + if [ -n "$WPA_LOGICAL_IFACE" ]; then + if egrep -q "^iface[[:space:]]+${WPA_LOGICAL_IFACE}[[:space:]]+inet" "$INTERFACES_FILE"; then + : # logical network is defined + else + wpa_msg log "network settings not defined for $WPA_LOGICAL_IFACE in $INTERFACES_FILE" + WPA_LOGICAL_IFACE="default" + fi + + wpa_msg log "ifup $WPA_IFACE=$WPA_LOGICAL_IFACE" + + ifupdown_lock + + if [ -n "$IFSTATE_FILE" ] && grep -q "^$WPA_IFACE=$WPA_IFACE" "$IFSTATE_FILE"; then + # Force settings over the unconfigured "master" IFACE + /sbin/ifup -v --force "$WPA_IFACE=$WPA_LOGICAL_IFACE" + else + /sbin/ifup -v "$WPA_IFACE=$WPA_LOGICAL_IFACE" + fi + IFUP_RETVAL="$?" + + ifupdown_unlock + fi + + wpa_msg log "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE" + + return "$IFUP_RETVAL" +} + +##################################################################### +## ifdown IFACE +# Check IFACE state and ifdown as requested. +# +ifdown () { + wpa_msg log "ifdown $WPA_IFACE" + + ifupdown_lock + + /sbin/ifdown -v "$WPA_IFACE" + + ifupdown_unlock + + wpa_msg log "removing sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE" + rm -f "$WPA_SUP_OMIT_PIDFILE" +} + +##################################################################### +## keep IFACE scanning +# After ifdown, the IFACE may be left "down", and inhibits +# wpa_supplicant's ability to continue roaming. +# +# NB: use iproute if present, flushing the IFACE first +# +if_post_down_up () { + if [ -x /bin/ip ]; then + ip addr flush dev "$WPA_IFACE" 2>/dev/null + ip link set "$WPA_IFACE" up + else + ifconfig "$WPA_IFACE" up + fi +} diff --git a/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/ifupdown.sh b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/ifupdown.sh new file mode 100755 index 0000000000..6c751b2997 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/etc/wpa_supplicant/ifupdown.sh @@ -0,0 +1,175 @@ +#!/bin/sh + +##################################################################### +## Purpose +# This file is executed by ifupdown in pre-up, post-up, pre-down and +# post-down phases of network interface configuration. It allows +# ifup(8), and ifdown(8) to manage wpa_supplicant(8) and wpa_cli(8) +# processes running in daemon mode. +# +# /etc/wpa_supplicant/functions.sh is sourced by this file. +# +# This file is provided by the wpasupplicant package. + +##################################################################### +# Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers +# +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# On Debian GNU/Linux systems, the text of the GPL license, +# version 2, can be found in /usr/share/common-licenses/GPL-2. + +case $0 in + *if-up.d*) PHASE="up";; + *if-down.d*) PHASE="down";; + *if-pre-up.d*) PHASE="pre-up";; + *if-post-down.d*) PHASE="post-down";; +esac + +if [ -n "$IF_WPA_MAINT_DEBUG" ]; then + set -x +fi + +# quit if we're called for the loopback +if [ "$IFACE" = lo ]; then + exit 0 +fi + +# allow wpa_supplicant interface to be specified via wpa-iface +# useful for starting wpa_supplicant on one interface of a bridge +if [ -n "$IF_WPA_IFACE" ]; then + WPA_IFACE="$IF_WPA_IFACE" +else + WPA_IFACE="$IFACE" +fi + +# source functions +if [ -f /etc/wpa_supplicant/functions.sh ]; then + . /etc/wpa_supplicant/functions.sh +else + exit 0 +fi + +# quit if executables are not installed +if [ ! -x "$WPA_SUP_BIN" ] || [ ! -x "$WPA_CLI_BIN" ]; then + exit 0 +fi + +do_start () { + if test_wpa_cli; then + # if wpa_action is active for this IFACE, do nothing + ifupdown_locked && exit 0 + + # if the administrator is calling ifup, say something useful + if [ "$PHASE" = "pre-up" ]; then + wpa_msg stderr "wpa_action is managing ifup/ifdown state of $WPA_IFACE" + wpa_msg stderr "execute \`ifdown --force $WPA_IFACE' to stop wpa_action" + fi + exit 1 + elif ! set | grep -q "^IF_WPA"; then + # no wpa- option defined for IFACE, do nothing + exit 0 + fi + + # ensure stale ifupdown_lock marker is purged + ifupdown_unlock + + # preliminary sanity checks for roaming daemon + if [ -n "$IF_WPA_ROAM" ]; then + if [ "$METHOD" != "manual" ]; then + wpa_msg stderr "wpa-roam can only be used with the \"manual\" inet METHOD" + exit 1 + fi + if [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then + if ! type "$IF_WPA_MAPPING_SCRIPT" >/dev/null; then + wpa_msg stderr "wpa-mapping-script \"$IF_WPA_MAPPING_SCRIPT\" is not valid" + exit 1 + fi + fi + if [ -n "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -z "$IF_WPA_MAPPING_SCRIPT" ]; then + wpa_msg stderr "\"wpa-mapping-script-priority 1\" is invalid without a wpa-mapping-script" + exit 1 + fi + IF_WPA_CONF="$IF_WPA_ROAM" + WPA_ACTION_SCRIPT="/sbin/wpa_action" + fi + + # master function; determines if ifupdown.sh should do something or not + if [ -n "$IF_WPA_CONF" ] && [ "$IF_WPA_CONF" != "managed" ]; then + if [ ! -s "$IF_WPA_CONF" ]; then + wpa_msg stderr "cannot read contents of $IF_WPA_CONF" + exit 1 + fi + WPA_SUP_CONF_CTRL_DIR=$(sed -n -e 's/[[:space:]]*#.*//g' -e 's/[[:space:]]\+.*$//g' \ + -e 's/^ctrl_interface=\(DIR=\)\?\(.*\)/\2/p' "$IF_WPA_CONF") + if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then + WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR" + WPA_SUP_CONF="-c $IF_WPA_CONF" + else + # specify the default ctrl_interface since none was defined in + # the given IF_WPA_CONF + WPA_SUP_CONF="-c $IF_WPA_CONF -C $WPA_CTRL_DIR" + fi + else + # specify the default ctrl_interface + WPA_SUP_CONF="-C $WPA_CTRL_DIR" + fi +} + +do_stop () { + if test_wpa_cli; then + # if wpa_action is active for this IFACE and calling ifdown, + # do nothing + ifupdown_locked && exit 0 + elif test_wpa_supplicant; then + # wpa_supplicant process exists for this IFACE, but wpa_cli + # process does not. Allow stop mode to kill this process. + : + else + exit 0 + fi +} + +case "$MODE" in + start) + do_start + case "$PHASE" in + pre-up) + kill_wpa_supplicant + init_wpa_supplicant || exit 1 + conf_wpa_supplicant || { kill_wpa_supplicant; exit 1; } + ;; + up) + init_wpa_cli || { kill_wpa_supplicant; exit 1; } + ;; + esac + ;; + + stop) + do_stop + case "$PHASE" in + down) + kill_wpa_cli + ;; + post-down) + kill_wpa_supplicant + ;; + esac + ;; + + *) + wpa_msg stderr "unknown mode: \"$MODE\"" + exit 1 + ;; +esac + +exit 0 diff --git a/board/amlogic/f16ref/skeleton/lib/.empty b/board/amlogic/f16ref/skeleton/lib/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/proc/.empty b/board/amlogic/f16ref/skeleton/proc/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/recovery/.empty b/board/amlogic/f16ref/skeleton/recovery/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/root/.empty b/board/amlogic/f16ref/skeleton/root/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/sbin/wpa_action b/board/amlogic/f16ref/skeleton/sbin/wpa_action new file mode 100755 index 0000000000..038d6eea06 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/sbin/wpa_action @@ -0,0 +1,35 @@ +#!/bin/sh + +# network interface +WPA_IFACE="$1" +# [CONNECTED|DISCONNECTED] +WPA_ACTION="$2" + +if [ -f /etc/wpa_supplicant/functions.sh ]; then + . /etc/wpa_supplicant/functions.sh +else + exit 0 +fi + +case "$WPA_ACTION" in + "CONNECTED") + wpa_log_env + wpa_hysteresis_check || exit 1 + wpa_hysteresis_event + [ -f /var/run/udhcpc.$WPA_IFACE.pid] && killall udhcpc + /sbin/udhcpc -b -i $WPA_IFACE -p /var/run/udhcpc.$WPA_IFACE.pid + ;; + + "DISCONNECTED") + wpa_log_env + wpa_hysteresis_check || exit 1 + /sbin/udhcpc -b -i $WPA_IFACE -p /var/run/udhcpc.$WPA_IFACE.pid + ;; + + *) + echo "Unknown action: \"$WPA_ACTION\"" + exit 1 + ;; +esac + +exit 0 diff --git a/board/amlogic/f16ref/skeleton/sys/.empty b/board/amlogic/f16ref/skeleton/sys/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/tmp/.empty b/board/amlogic/f16ref/skeleton/tmp/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/.empty b/board/amlogic/f16ref/skeleton/usr/sbin/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/REAMDME.txt b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/REAMDME.txt new file mode 100644 index 0000000000..57028df9fa --- /dev/null +++ b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/REAMDME.txt @@ -0,0 +1,6 @@ +flash_erase 只擦写某一区间的部分地址 +flash_eraseall 擦写某一区间的全部 +但他们不支持大于4GB的区间 +所以增加了另外后缀为64bit的flash_erase_64bit工具; +如果要全部擦写即完成flash_eraseall的功能,现在的格式是flash_eraseall_64bit /dev/mtdx 0 0 +nandwrite_lp是增加了对micron芯片的支持,他的命令行参数必须加-a; \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall new file mode 100644 index 0000000000..0b8a8ad5a0 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall_64bit b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall_64bit new file mode 100644 index 0000000000..f8d5d8d92a Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/flash_eraseall_64bit differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/nandwrite_lp b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/nandwrite_lp new file mode 100644 index 0000000000..1c6fa98171 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/MID_andorid/nandwrite_lp differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/REAMDME.txt b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/REAMDME.txt new file mode 100644 index 0000000000..2a83b29b40 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/REAMDME.txt @@ -0,0 +1,8 @@ +flash_erase 只擦写某一区间的部分地址 +flash_eraseall 擦写某一区间的全部 +但他们不支持大于4GB的区间 +所以增加了另外后缀为64bit的flash_erase_64bit工具; +如果要全部擦写即完成flash_eraseall的功能,现在的格式是flash_erase_64bit /dev/mtdx 0 0 +注意flash_eraseall_64bit只是一个说明脚本; + +nandwrite_lp是增加了对micron芯片的支持,他的命令行参数必须加-a; \ No newline at end of file diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase new file mode 100644 index 0000000000..66647418a0 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase_64bit b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase_64bit new file mode 100644 index 0000000000..70417614c4 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_erase_64bit differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall new file mode 100644 index 0000000000..31a9844176 Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall differ diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall_64bit b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall_64bit new file mode 100644 index 0000000000..e95f63afca --- /dev/null +++ b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/flash_eraseall_64bit @@ -0,0 +1,4 @@ +#!/bin/sh +echo "${0##*/} has been replaced by \`flash_erase_64bit 0 0\`; please use it" 1>&2 +[ $# -ne 0 ] && set -- "$@" 0 0 +exec flash_erase "$@" diff --git a/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/nandwrite_lp b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/nandwrite_lp new file mode 100644 index 0000000000..a691150f9c Binary files /dev/null and b/board/amlogic/f16ref/skeleton/usr/sbin/arm_linux_64bitflasheraseall/nandwrite_lp differ diff --git a/board/amlogic/f16ref/skeleton/usr/share/udhcpc/default.script b/board/amlogic/f16ref/skeleton/usr/share/udhcpc/default.script new file mode 100755 index 0000000000..a52a7f8122 --- /dev/null +++ b/board/amlogic/f16ref/skeleton/usr/share/udhcpc/default.script @@ -0,0 +1,39 @@ +#!/bin/sh + +# udhcpc script edited by Tim Riker + +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 + +RESOLV_CONF="/etc/resolv.conf" +[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" +[ -n "$subnet" ] && NETMASK="netmask $subnet" + +case "$1" in + deconfig) + /sbin/ifconfig $interface 0.0.0.0 + ;; + + renew|bound) + /sbin/ifconfig $interface $ip $BROADCAST $NETMASK + + if [ -n "$router" ] ; then + echo "deleting routers" + while route del default gw 0.0.0.0 dev $interface ; do + : + done + + for i in $router ; do + route add default gw $i dev $interface + done + fi + + echo -n > $RESOLV_CONF + [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF + for i in $dns ; do + echo adding dns $i + echo nameserver $i >> $RESOLV_CONF + done + ;; +esac + +exit 0 diff --git a/board/amlogic/f16ref/skeleton/var/cache/.empty b/board/amlogic/f16ref/skeleton/var/cache/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/lib/pcmcia/.empty b/board/amlogic/f16ref/skeleton/var/lib/pcmcia/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/lock/.empty b/board/amlogic/f16ref/skeleton/var/lock/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/log/.empty b/board/amlogic/f16ref/skeleton/var/log/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/pcmcia/.empty b/board/amlogic/f16ref/skeleton/var/pcmcia/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/run/.empty b/board/amlogic/f16ref/skeleton/var/run/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/spool/.empty b/board/amlogic/f16ref/skeleton/var/spool/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/board/amlogic/f16ref/skeleton/var/tmp/.empty b/board/amlogic/f16ref/skeleton/var/tmp/.empty new file mode 100755 index 0000000000..e69de29bb2 diff --git a/configs/amlogic_f16ref-xbmc_defconfig b/configs/amlogic_f16ref-xbmc_defconfig new file mode 100644 index 0000000000..1a9322ed4f --- /dev/null +++ b/configs/amlogic_f16ref-xbmc_defconfig @@ -0,0 +1,54 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_KERNEL_MIRROR="git://github.com/j1nx/buildroot-linux-kernel-m3.git" +BR2_OPTIMIZE_3=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM2010Q1=y +BR2_PACKAGE_GDB=y +BR2_PACKAGE_GDB_SERVER=y +BR2_GDB_VERSION_7_1=y +BR2_ENABLE_LOCALE_PURGE=y +BR2_ENABLE_LOCALE_WHITELIST="" +BR2_EXT_TOOL_DIRS_EXTRA="/usr/lib/gconv /usr/share/zoneinfo" +# BR2_SOFT_FLOAT is not set +BR2_TARGET_OPTIMIZATION="-pipe -mfloat-abi=softfp -mfpu=neon" +BR2_TARGET_GENERIC_GETTY=y +BR2_BUSYBOX_VERSION_1_17_X=y +BR2_PACKAGE_BUSYBOX_CONFIG="board/amlogic/f16ref/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_UBOOTAML=y +BR2_PACKAGE_LIRC=y +BR2_PACKAGE_XBMC=y +BR2_PACKAGE_DOSFSTOOLS=y +BR2_PACKAGE_DOSFSTOOLS_MKDOSFS=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSCK=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL=y +BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_UTILS=y +BR2_PACKAGE_MTD=y +BR2_PACKAGE_NTFS_3G=y +BR2_PACKAGE_NTFSPROGS=y +# BR2_PACKAGE_UDEV_MTD_PROBE is not set +BR2_PACKAGE_USBMOUNT=y +BR2_PACKAGE_MYSQL_CLIENT_LIB_ONLY=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_IPROUTE2=y +BR2_PACKAGE_NTP=y +BR2_PACKAGE_NTP_NTPDATE=y +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WIRELESS_TOOLS_LIB=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_WPA_SUPPLICANT_WPS=y +BR2_PACKAGE_NANO=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y +BR2_ROOTFS_SKELETON_CUSTOM=y +BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/amlogic/f16ref/skeleton" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_RECOVERY_AML=y +BR2_TARGET_ROOTFS_RECOVERY_AML_BOARDNAME="f16ref" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5f436be7fca90ca996070163c1beb817266e2535" +BR2_LINUX_KERNEL_DEFCONFIG="meson_reff16_gbox" diff --git a/configs/amlogic_f16ref_BlueM3-xbmc_defconfig b/configs/amlogic_f16ref_BlueM3-xbmc_defconfig new file mode 100644 index 0000000000..2d8028c137 --- /dev/null +++ b/configs/amlogic_f16ref_BlueM3-xbmc_defconfig @@ -0,0 +1,54 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_KERNEL_MIRROR="git://github.com/j1nx/buildroot-linux-kernel-m3.git" +BR2_OPTIMIZE_3=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM2010Q1=y +BR2_PACKAGE_GDB=y +BR2_PACKAGE_GDB_SERVER=y +BR2_GDB_VERSION_7_1=y +BR2_ENABLE_LOCALE_PURGE=y +BR2_ENABLE_LOCALE_WHITELIST="" +BR2_EXT_TOOL_DIRS_EXTRA="/usr/lib/gconv /usr/share/zoneinfo" +# BR2_SOFT_FLOAT is not set +BR2_TARGET_OPTIMIZATION="-pipe -mfloat-abi=softfp -mfpu=neon" +BR2_TARGET_GENERIC_GETTY=y +BR2_BUSYBOX_VERSION_1_17_X=y +BR2_PACKAGE_BUSYBOX_CONFIG="board/amlogic/f16ref/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_UBOOTAML=y +BR2_PACKAGE_LIRC=y +BR2_PACKAGE_XBMC=y +BR2_PACKAGE_DOSFSTOOLS=y +BR2_PACKAGE_DOSFSTOOLS_MKDOSFS=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSCK=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL=y +BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_UTILS=y +BR2_PACKAGE_MTD=y +BR2_PACKAGE_NTFS_3G=y +BR2_PACKAGE_NTFSPROGS=y +# BR2_PACKAGE_UDEV_MTD_PROBE is not set +BR2_PACKAGE_USBMOUNT=y +BR2_PACKAGE_MYSQL_CLIENT_LIB_ONLY=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_IPROUTE2=y +BR2_PACKAGE_NTP=y +BR2_PACKAGE_NTP_NTPDATE=y +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WIRELESS_TOOLS_LIB=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_WPA_SUPPLICANT_WPS=y +BR2_PACKAGE_NANO=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y +BR2_ROOTFS_SKELETON_CUSTOM=y +BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/amlogic/f16ref/skeleton" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_RECOVERY_AML=y +BR2_TARGET_ROOTFS_RECOVERY_AML_BOARDNAME="f16ref" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="db251f3c10367a26cc629b579270dac7b46da6a0" +BR2_LINUX_KERNEL_DEFCONFIG="meson_reff16_bluem3" diff --git a/configs/amlogic_f16ref_gbox-xbmc_defconfig b/configs/amlogic_f16ref_gbox-xbmc_defconfig new file mode 100644 index 0000000000..7c2a93eb42 --- /dev/null +++ b/configs/amlogic_f16ref_gbox-xbmc_defconfig @@ -0,0 +1,54 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_KERNEL_MIRROR="git://github.com/j1nx/buildroot-linux-kernel-m3.git" +BR2_OPTIMIZE_3=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM2010Q1=y +BR2_PACKAGE_GDB=y +BR2_PACKAGE_GDB_SERVER=y +BR2_GDB_VERSION_7_1=y +BR2_ENABLE_LOCALE_PURGE=y +BR2_ENABLE_LOCALE_WHITELIST="" +BR2_EXT_TOOL_DIRS_EXTRA="/usr/lib/gconv /usr/share/zoneinfo" +# BR2_SOFT_FLOAT is not set +BR2_TARGET_OPTIMIZATION="-pipe -mfloat-abi=softfp -mfpu=neon" +BR2_TARGET_GENERIC_GETTY=y +BR2_BUSYBOX_VERSION_1_17_X=y +BR2_PACKAGE_BUSYBOX_CONFIG="board/amlogic/f16ref/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_UBOOTAML=y +BR2_PACKAGE_LIRC=y +BR2_PACKAGE_XBMC=y +BR2_PACKAGE_DOSFSTOOLS=y +BR2_PACKAGE_DOSFSTOOLS_MKDOSFS=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSCK=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL=y +BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_UTILS=y +BR2_PACKAGE_MTD=y +BR2_PACKAGE_NTFS_3G=y +BR2_PACKAGE_NTFSPROGS=y +# BR2_PACKAGE_UDEV_MTD_PROBE is not set +BR2_PACKAGE_USBMOUNT=y +BR2_PACKAGE_MYSQL_CLIENT_LIB_ONLY=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_IPROUTE2=y +BR2_PACKAGE_NTP=y +BR2_PACKAGE_NTP_NTPDATE=y +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WIRELESS_TOOLS_LIB=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_WPA_SUPPLICANT_WPS=y +BR2_PACKAGE_NANO=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y +BR2_ROOTFS_SKELETON_CUSTOM=y +BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/amlogic/f16ref/skeleton" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_RECOVERY_AML=y +BR2_TARGET_ROOTFS_RECOVERY_AML_BOARDNAME="f16ref" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="db251f3c10367a26cc629b579270dac7b46da6a0" +BR2_LINUX_KERNEL_DEFCONFIG="meson_reff16_gbox" diff --git a/configs/amlogic_stvm3-xbmc_defconfig b/configs/amlogic_stvm3-xbmc_defconfig new file mode 100644 index 0000000000..5cac79ece8 --- /dev/null +++ b/configs/amlogic_stvm3-xbmc_defconfig @@ -0,0 +1,55 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_KERNEL_MIRROR="git://github.com/Pivosgroup/buildroot-linux-kernel.git" +BR2_OPTIMIZE_3=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM2010Q1=y +BR2_PACKAGE_GDB=y +BR2_PACKAGE_GDB_SERVER=y +BR2_GDB_VERSION_7_1=y +BR2_ENABLE_LOCALE_PURGE=y +BR2_ENABLE_LOCALE_WHITELIST="" +BR2_EXT_TOOL_DIRS_EXTRA="/usr/lib/gconv /usr/share/zoneinfo" +# BR2_SOFT_FLOAT is not set +BR2_TARGET_OPTIMIZATION="-pipe -mfloat-abi=softfp -mfpu=neon" +BR2_BOARD_TYPE_AMLOGIC_M1=y +BR2_TARGET_GENERIC_GETTY=y +BR2_BUSYBOX_VERSION_1_17_X=y +BR2_PACKAGE_BUSYBOX_CONFIG="board/amlogic/xios/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_UBOOTAML=y +BR2_PACKAGE_LIRC=y +BR2_PACKAGE_XBMC=y +BR2_PACKAGE_DOSFSTOOLS=y +BR2_PACKAGE_DOSFSTOOLS_MKDOSFS=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSCK=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL=y +BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_UTILS=y +BR2_PACKAGE_MTD=y +BR2_PACKAGE_NTFS_3G=y +BR2_PACKAGE_NTFSPROGS=y +# BR2_PACKAGE_UDEV_MTD_PROBE is not set +BR2_PACKAGE_USBMOUNT=y +BR2_PACKAGE_MYSQL_CLIENT_LIB_ONLY=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_IPROUTE2=y +BR2_PACKAGE_NTP=y +BR2_PACKAGE_NTP_NTPDATE=y +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WIRELESS_TOOLS_LIB=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_WPA_SUPPLICANT_WPS=y +BR2_PACKAGE_NANO=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y +BR2_ROOTFS_SKELETON_CUSTOM=y +BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/amlogic/xios/skeleton" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_RECOVERY_AML=y +BR2_TARGET_ROOTFS_RECOVERY_AML_BOARDNAME="stvm3" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="d4457bd8c540721f3e0601f44159db30d25e02a" +BR2_LINUX_KERNEL_DEFCONFIG="meson_xios" diff --git a/configs/amlogic_stvmc-xbmc_defconfig b/configs/amlogic_stvmc-xbmc_defconfig new file mode 100644 index 0000000000..d4b0638642 --- /dev/null +++ b/configs/amlogic_stvmc-xbmc_defconfig @@ -0,0 +1,54 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_KERNEL_MIRROR="git://github.com/Pivosgroup/buildroot-linux-kernel-m3.git" +BR2_OPTIMIZE_3=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM2010Q1=y +BR2_PACKAGE_GDB=y +BR2_PACKAGE_GDB_SERVER=y +BR2_GDB_VERSION_7_1=y +BR2_ENABLE_LOCALE_PURGE=y +BR2_ENABLE_LOCALE_WHITELIST="" +BR2_EXT_TOOL_DIRS_EXTRA="/usr/lib/gconv /usr/share/zoneinfo" +# BR2_SOFT_FLOAT is not set +BR2_TARGET_OPTIMIZATION="-pipe -mfloat-abi=softfp -mfpu=neon" +BR2_TARGET_GENERIC_GETTY=y +BR2_BUSYBOX_VERSION_1_17_X=y +BR2_PACKAGE_BUSYBOX_CONFIG="board/amlogic/xios/busybox.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_UBOOTAML=y +BR2_PACKAGE_LIRC=y +BR2_PACKAGE_XBMC=y +BR2_PACKAGE_DOSFSTOOLS=y +BR2_PACKAGE_DOSFSTOOLS_MKDOSFS=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSCK=y +BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL=y +BR2_PACKAGE_E2FSPROGS=y +BR2_PACKAGE_E2FSPROGS_UTILS=y +BR2_PACKAGE_MTD=y +BR2_PACKAGE_NTFS_3G=y +BR2_PACKAGE_NTFSPROGS=y +# BR2_PACKAGE_UDEV_MTD_PROBE is not set +BR2_PACKAGE_USBMOUNT=y +BR2_PACKAGE_MYSQL_CLIENT_LIB_ONLY=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_IPROUTE2=y +BR2_PACKAGE_NTP=y +BR2_PACKAGE_NTP_NTPDATE=y +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WIRELESS_TOOLS_LIB=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_WPA_SUPPLICANT_WPS=y +BR2_PACKAGE_NANO=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV=y +BR2_ROOTFS_SKELETON_CUSTOM=y +BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/amlogic/xios/skeleton" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_RECOVERY_AML=y +BR2_TARGET_ROOTFS_RECOVERY_AML_BOARDNAME="stvmc" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2b653283b2e828243a5e084822799156cbc44e79" +BR2_LINUX_KERNEL_DEFCONFIG="meson_xios_m3" diff --git a/fs/recovery_aml/aml_logo.img b/fs/recovery_aml/aml_logo.img new file mode 100644 index 0000000000..c7d393106b Binary files /dev/null and b/fs/recovery_aml/aml_logo.img differ diff --git a/fs/recovery_aml/android_scriptgen b/fs/recovery_aml/android_scriptgen index 5aba0bbe24..4423bc4d75 100755 --- a/fs/recovery_aml/android_scriptgen +++ b/fs/recovery_aml/android_scriptgen @@ -228,16 +228,19 @@ def main(): f.write('ui_print("Copying Files");\n') f.write('package_extract_dir("system", "/system");\n') f.write("\n".join(script.script) + "\n") - f.write('assert(package_extract_file("logo.img", "/tmp/logo.img"),\n') - f.write(' write_raw_image("/tmp/logo.img", "logo"),\n') - f.write(' delete("/tmp/logo.img"));\n') + f.write('assert(package_extract_file("aml_logo.img", "/tmp/aml_logo.img"),\n') + if options.boardname == "f16ref": + f.write(' write_raw_image("/tmp/aml_logo.img", "aml_logo"),\n') + else: + f.write(' write_raw_image("/tmp/aml_logo.img", "logo"),\n') + f.write(' delete("/tmp/aml_logo.img"));\n') f.write('show_progress(0.180000, 20);\n') f.write('assert(package_extract_file("uImage-2.6.34", "/tmp/boot.img"),\n') f.write(' write_raw_image("/tmp/boot.img", "boot"),\n') f.write(' delete("/tmp/boot.img"));\n') f.write('show_progress(0.020000, 0);\n') f.write('unmount("/system");\n') - if options.boardname == "xiosm3": + if options.boardname == "xiosm3" or options.boardname == "stvmc" or options.boardname == "f16ref": f.write('ifelse\n') f.write('(\n') f.write(' mount("vfat","none","/dev/block/avnftl4p1","/data"),\n') diff --git a/fs/recovery_aml/recovery_aml.mk b/fs/recovery_aml/recovery_aml.mk old mode 100755 new mode 100644 index d2d8feadeb..48ad03ea3a --- a/fs/recovery_aml/recovery_aml.mk +++ b/fs/recovery_aml/recovery_aml.mk @@ -21,12 +21,12 @@ define ROOTFS_RECOVERY_AML_CMD PYTHONDONTWRITEBYTECODE=1 $(HOST_DIR)/usr/bin/python fs/recovery_aml/android_scriptgen $(RECOVERY_AML_ARGS) -i -p $(BINARIES_DIR)/aml_recovery/system -o \ $(BINARIES_DIR)/aml_recovery/META-INF/com/google/android/updater-script && \ cp -f fs/recovery_aml/update-binary $(BINARIES_DIR)/aml_recovery/META-INF/com/google/android/ && \ - cp -f fs/recovery_aml/logo.img $(BINARIES_DIR)/aml_recovery/ && \ + cp -f fs/recovery_aml/aml_logo.img $(BINARIES_DIR)/aml_recovery/ && \ cp -f $(BINARIES_DIR)/uImage-* $(BINARIES_DIR)/aml_recovery/ && \ find $(BINARIES_DIR)/aml_recovery/system/ -type l -delete && \ find $(BINARIES_DIR)/aml_recovery/system/ -type d -empty -exec sh -c 'echo "dummy" > "{}"/.empty' \; && \ pushd $(BINARIES_DIR)/aml_recovery/ >/dev/null && \ - zip -m -q -r -y $(BINARIES_DIR)/aml_recovery/update-unsigned.img logo.img uImage-2.6.34 META-INF system && \ + zip -m -q -r -y $(BINARIES_DIR)/aml_recovery/update-unsigned.img aml_logo.img uImage-2.6.34 META-INF system && \ popd >/dev/null && \ echo "Signing update.img..." && \ pushd fs/recovery_aml/ >/dev/null; java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 $(BINARIES_DIR)/aml_recovery/update-unsigned.img $(BINARIES_DIR)/update.img && \ diff --git a/fs/recovery_aml/signapk.jar b/fs/recovery_aml/signapk.jar old mode 100644 new mode 100755 diff --git a/linux/linux.mk b/linux/linux.mk index 505a0ea8db..4c61148e08 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -37,7 +37,11 @@ LINUX26_IMAGE_NAME=vmImage else LINUX26_IMAGE_NAME=uImage endif +ifeq ($(BR2_PACKAGE_UBOOTF16REF),y) +LINUX26_DEPENDENCIES+=ubootf16ref +else LINUX26_DEPENDENCIES+=ubootaml +endif else ifeq ($(BR2_LINUX_KERNEL_BZIMAGE),y) LINUX26_IMAGE_NAME=bzImage else ifeq ($(BR2_LINUX_KERNEL_ZIMAGE),y) diff --git a/package/amlogic/Config.in b/package/amlogic/Config.in index 48cdf4416e..0f199827b1 100644 --- a/package/amlogic/Config.in +++ b/package/amlogic/Config.in @@ -2,6 +2,7 @@ menu "AMLogic libraries and programs" source "package/amlogic/cmem/Config.in" source "package/amlogic/opengl/Config.in" source "package/amlogic/ubootaml/Config.in" +source "package/amlogic/ubootf16ref/Config.in" source "package/amlogic/libamplayerm1/Config.in" source "package/amlogic/libamplayerm3/Config.in" source "package/amlogic/amremote_config/Config.in" diff --git a/package/amlogic/ubootarctoolchain/ubootarctoolchain.mk b/package/amlogic/ubootarctoolchain/ubootarctoolchain.mk new file mode 100644 index 0000000000..f41b77a7a8 --- /dev/null +++ b/package/amlogic/ubootarctoolchain/ubootarctoolchain.mk @@ -0,0 +1,13 @@ +UBOOTARCTOOLCHAIN_SITE=http://www.codesourcery.com/sgpp/lite/arm/portal/package6493/public/arm-none-eabi/ +UBOOTARCTOOLCHAIN_VERSION:=arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu +UBOOTARCTOOLCHAIN_SOURCE:=$(UBOOTARCTOOLCHAIN_VERSION).tar.bz2 + +define UBOOTARCTOOLCHAIN_BUILD_CMDS + cp -rf $(@D)/arm-none-eabi $(TOOLCHAIN_EXTERNAL_DIR) + cp -rf $(@D)/bin $(TOOLCHAIN_EXTERNAL_DIR) + cp -rf $(@D)/lib $(TOOLCHAIN_EXTERNAL_DIR) + cp -rf $(@D)/libexec $(TOOLCHAIN_EXTERNAL_DIR) + cp -rf $(@D)/share $(TOOLCHAIN_EXTERNAL_DIR) +endef + +$(eval $(call GENTARGETS,package/amlogic,ubootarctoolchain)) diff --git a/package/amlogic/ubootf16ref/Config.in b/package/amlogic/ubootf16ref/Config.in new file mode 100644 index 0000000000..9d1810753d --- /dev/null +++ b/package/amlogic/ubootf16ref/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_UBOOTF16REF + bool "ubootf16ref" + help + uBoot from AMLogic's latest repo + + http://openlinux.amlogic.com + + diff --git a/package/amlogic/ubootf16ref/ubootf16ref.mk b/package/amlogic/ubootf16ref/ubootf16ref.mk new file mode 100644 index 0000000000..590a994b22 --- /dev/null +++ b/package/amlogic/ubootf16ref/ubootf16ref.mk @@ -0,0 +1,18 @@ +UBOOTF16REF_VERSION:=03f6b6659603eec35d62cd8e46d3036faff65641 +UBOOTF16REF_SITE=git://github.com/j1nx/Amlogic-reff16-uboot.git +UBOOTF16REF_SITE_METHOD=git +UBOOTF16REF_INSTALL_STAGING=YES +UBOOTF16REF_DEPENDENCIES=ubootamltoolchain + +define UBOOTF16REF_BUILD_CMDS + $(MAKE) -C $(@D) m3_mbox_config + PATH="$(TOOLCHAIN_EXTERNAL_DIR)/bin:$(TARGET_PATH)" $(MAKE) -C $(@D) +endef + +define UBOOTF16REF_INSTALL_STAGING_CMDS + cp -f $(@D)/build/u-boot-aml-ucl.bin $(BINARIES_DIR)/u-boot-aml-ucl.bin + mkdir -p $(HOST_DIR)/usr/bin + install $(@D)/build/tools/mkimage $(HOST_DIR)/usr/bin/mkimage +endef + +$(eval $(call GENTARGETS,package/amlogic,ubootf16ref)) diff --git a/package/thirdparty/xbmc/etc/xbmc/remote-lirc.conf b/package/thirdparty/xbmc/etc/xbmc/remote-lirc.conf index 840ab6b49b..76218f4fc8 100644 --- a/package/thirdparty/xbmc/etc/xbmc/remote-lirc.conf +++ b/package/thirdparty/xbmc/etc/xbmc/remote-lirc.conf @@ -26,71 +26,63 @@ # reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE # reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME #************************************************************************************************************* -# MYGICA NEC remote -factory_code = 0xBD020001 -work_mode = 1 -repeat_enable = 1 -release_delay = 150 +#amlogic NEC remote +fn_key_scancode = 0x00 +left_key_scancode = 0x51 +right_key_scancode = 0x50 +up_key_scancode = 0x16 +down_key_scancode = 0x1a +ok_key_scancode = 0x13 +pageup_key_scancode = 0x55 +pagedown_key_scancode = 0x54 + +factory_code = 0xfe010001 +work_mode = 1 +repeat_enable = 1 +release_delay = 150 debug_enable = 1 reg_control = 0xfbe40 key_begin - 0xd8 0 ;BROWER - 0xd4 0 ;SYM - 0x80 66 ;MUTE - 0xc6 0 ;PHOTO - 0xd5 0 ;MUSIC - 0xd1 0 ;MEDIA_RECORD - 0x86 0 ;BROWER - 0x90 111 ;DEL - 0x83 0 ;SYM - 0x92 2 ;NUM1 - 0x93 3 ;NUM2 - 0xcc 4 ;NUM3 - 0x8e 5 ;NUM4 - 0x8f 6 ;NUM5 - 0xc8 7 ;NUM6 - 0x8a 8 ;NUM7 - 0x8b 9 ;NUM8 - 0xc4 10 ;NUM9 - 0xd9 24 ;AT - 0x87 11 ;NUM0 - 0x82 46 ;COM - - 0xdd 115 ;VOL+ - 0x8c 114 ;VOL- - 0x9c 0 ;ZOOM_IN - 0x89 0 ;ZOOM_OUT - 0x9a 104 ;PAGE_UP - 0xcd 109 ;PAGE_DOWN - - 0x95 1 ;HOME - 0xc5 358 ;NOTIFICATION - - 0x99 105 ;LEFT - 0xca 103 ;UP - 0xc1 106 ;RIGHT - 0xd2 108 ;DOWN - 0xce 352 ;OK - 0xd6 369 ;MENU - 0xd0 158 ;BACK - 0x96 51 ;PAGELEFT - 0xc2 52 ;PAGERIGHT - 0xc3 19 ;DEL - 0x84 33 ;MEDIA_FAST_FORWARD - 0xda 51 ;MEDIA_REWIND - 0x88 25 ;MEDIA_STOP - 0xc7 52 ;MEDIA_FAST_FORWARD - 0x55 45 ;EXIT - 0x45 116 ;POWER -# 0x86 0x110 ;mouse left click -# 0x83 0x111 ;mouse right click. + 0x01 11 ;NUM0 + 0x4e 2 ;NUM1 + 0x0d 3 ;NUM2 + 0x0c 4 ;NUM3 + 0x4a 5 ;NUM4 + 0x09 6 ;NUM5 + 0x08 7 ;NUM6 + 0x46 8 ;NUM7 + 0x05 9 ;NUM8 + 0x04 10 ;NUM9 + 0x13 97 ;OK + 0x19 15 ;EXIT + 0x42 14 ;DEL + 0x16 103 ;UP + 0x1a 108 ;DOWN + 0x51 105 ;LEFT + 0x50 106 ;RIGHT + 0x11 102 ;HOME + 0x18 104 ;VOL+ + 0x10 109 ;VOL- + 0x4c 125 ;MENU + 0x5a 119 ;MEDIA_PLAY_PAUSE + 0x59 122 ;MEDIA_PREVIOUS + 0x52 128 ;MEDIA_STOP + 0x58 123 ;MEDIA_NEXT + 0x54 120 ;MEDIA_FAST_FORWARD + 0x55 121 ;MEDIA_REWIND + 0x40 116 ;POWER + 0x41 113 ;MUTE + 0x45 130 ;ZOOM_IN_OUT + 0x49 134 ;PHOTO + 0x0a 133 ;MUSIC + 0x48 138 ;FILE + 0x4d 137 ;VIDEO + 0x0e 136 ;NETWORK + 0x0f 135 ;ANDROID + 0x43 132 ;SETTINGS + 0x03 127 ;SEARCH + 0x06 139 ;SUBTITLE + 0x44 140 ;AUDIO + 0x00 63 key_end - -mouse_begin - 0x00 0xc6 ;mouse move up - 0x01 0xd1 ;mouse move down - 0x02 0xd5 ;mouse move left - 0x03 0x90 ;mouse move right -mouse_end - diff --git a/package/thirdparty/xbmc/etc/xbmc/remote.conf b/package/thirdparty/xbmc/etc/xbmc/remote.conf index 322307d216..61b8725809 100644 --- a/package/thirdparty/xbmc/etc/xbmc/remote.conf +++ b/package/thirdparty/xbmc/etc/xbmc/remote.conf @@ -26,71 +26,63 @@ # reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE # reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME #************************************************************************************************************* -# MYGICA NEC remote -factory_code = 0xBD020001 -work_mode = 1 -repeat_enable = 1 -release_delay = 150 +#amlogic NEC remote +fn_key_scancode = 0x00 +left_key_scancode = 0x51 +right_key_scancode = 0x50 +up_key_scancode = 0x16 +down_key_scancode = 0x1a +ok_key_scancode = 0x13 +pageup_key_scancode = 0x55 +pagedown_key_scancode = 0x54 + +factory_code = 0xfe010001 +work_mode = 1 +repeat_enable = 1 +release_delay = 150 debug_enable = 1 reg_control = 0xfbe40 key_begin - 0xd8 0 ;BROWER - 0xd4 0 ;SYM - 0x80 66 ;MUTE - 0xc6 0 ;PHOTO - 0xd5 0 ;MUSIC - 0xd1 0 ;MEDIA_RECORD - 0x86 0 ;BROWER - 0x90 111 ;DEL - 0x83 0 ;SYM - 0x92 2 ;NUM1 - 0x93 3 ;NUM2 - 0xcc 4 ;NUM3 - 0x8e 5 ;NUM4 - 0x8f 6 ;NUM5 - 0xc8 7 ;NUM6 - 0x8a 8 ;NUM7 - 0x8b 9 ;NUM8 - 0xc4 10 ;NUM9 - 0xd9 24 ;AT - 0x87 11 ;NUM0 - 0x82 46 ;COM - - 0xdd 13 ;VOL+ - 0x8c 12 ;VOL- - 0x9c 0 ;ZOOM_IN - 0x89 0 ;ZOOM_OUT - 0x9a 104 ;PAGE_UP - 0xcd 109 ;PAGE_DOWN - - 0x95 1 ;HOME - 0xc5 23 ;NOTIFICATION - - 0x99 105 ;LEFT - 0xca 103 ;UP - 0xc1 106 ;RIGHT - 0xd2 108 ;DOWN - 0xce 28 ;OK - 0xd6 46 ;MENU - 0xd0 14 ;EXIT - 0x96 51 ;PAGELEFT - 0xc2 52 ;PAGERIGHT - 0xc3 19 ;DEL - 0x84 33 ;MEDIA_FAST_FORWARD - 0xda 51 ;MEDIA_REWIND - 0x88 25 ;MEDIA_STOP - 0xc7 52 ;MEDIA_FAST_FORWARD - 0x55 45 ;EXIT - 0x45 31 ;POWER -# 0x86 0x110 ;mouse left click -# 0x83 0x111 ;mouse right click. + 0x01 11 + 0x4e 2 + 0x0d 3 + 0x0c 4 + 0x4a 5 + 0x09 6 + 0x08 7 + 0x46 8 + 0x05 9 + 0x04 10 + 0x13 97 + 0x19 15 + 0x42 14 + 0x16 103 + 0x1a 108 + 0x51 105 + 0x50 106 + 0x11 102 + 0x18 104 + 0x10 109 + 0x4c 125 + 0x5a 119 + 0x59 122 + 0x52 128 + 0x58 123 + 0x54 120 + 0x55 121 + 0x40 116 + 0x41 113 + 0x45 130 + 0x49 134 + 0x0a 133 + 0x48 138 + 0x4d 137 + 0x0e 136 + 0x0f 135 + 0x43 132 + 0x03 127 + 0x06 139 + 0x44 140 + 0x00 63 key_end - -mouse_begin - 0x00 0xc6 ;mouse move up - 0x01 0xd1 ;mouse move down - 0x02 0xd5 ;mouse move left - 0x03 0x90 ;mouse move right -mouse_end - diff --git a/package/thirdparty/xbmc/xbmc.mk b/package/thirdparty/xbmc/xbmc.mk index bce19a9a9f..53fed67e0b 100644 --- a/package/thirdparty/xbmc/xbmc.mk +++ b/package/thirdparty/xbmc/xbmc.mk @@ -55,10 +55,6 @@ define XBMC_INSTALL_ETC endef -define XBMC_INSTALL_SPLASH - cp -f package/thirdparty/xbmc/xios_splash.png $(TARGET_DIR)/usr/share/xbmc/media/Splash.png -endef - define XBMC_CLEAN_UNUSED_ADDONS rm -rf $(TARGET_DIR)/usr/share/xbmc/addons/screensaver.rsxs.plasma rm -rf $(TARGET_DIR)/usr/share/xbmc/addons/visualization.milkdrop @@ -78,7 +74,6 @@ endef XBMC_PRE_CONFIGURE_HOOKS += XBMC_BOOTSTRAP XBMC_POST_INSTALL_TARGET_HOOKS += XBMC_INSTALL_ETC -XBMC_POST_INSTALL_TARGET_HOOKS += XBMC_INSTALL_SPLASH XBMC_POST_INSTALL_TARGET_HOOKS += XBMC_CLEAN_UNUSED_ADDONS XBMC_POST_INSTALL_TARGET_HOOKS += XBMC_CLEAN_CONFLUENCE_SKIN ifneq ($(BR2_ENABLE_DEBUG),y)