slitaz-arm rev 44
Add TazBerry, kernel config patch and some fixes to spi
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 10:14:01 2014 +0100 (2014-03-09) |
parents | 0141346ab5ec |
children | 5d870dbf2641 |
files | Makefile rpi/linux-rpi.patch rpi/tazberry spi |
line diff
1.1 --- a/Makefile Sat Mar 08 23:50:08 2014 +0000 1.2 +++ b/Makefile Sun Mar 09 10:14:01 2014 +0100 1.3 @@ -10,7 +10,9 @@ 1.4 #install -m 0755 -d $(DESTDIR)$(PREFIX)/share/slitaz-arm 1.5 install -m 0755 sat $(DESTDIR)$(PREFIX)/bin 1.6 install -m 0755 spi $(DESTDIR)$(PREFIX)/bin 1.7 + install -m 0755 rpi/tazberry $(DESTDIR)$(PREFIX)/bin 1.8 1.9 uninstall: 1.10 rm -f $(DESTDIR)$(PREFIX)/bin/sat 1.11 rm -f $(DESTDIR)$(PREFIX)/bin/spi 1.12 + rm -f $(DESTDIR)$(PREFIX)/bin/tazberry
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/rpi/linux-rpi.patch Sun Mar 09 10:14:01 2014 +0100 2.3 @@ -0,0 +1,373 @@ 2.4 +--- .config 2.5 ++++ .config 2.6 +@@ -31,7 +31,7 @@ 2.7 + CONFIG_BROKEN_ON_SMP=y 2.8 + CONFIG_INIT_ENV_ARG_LIMIT=32 2.9 + CONFIG_CROSS_COMPILE="" 2.10 +-CONFIG_LOCALVERSION="" 2.11 ++CONFIG_LOCALVERSION="-slitaz-rpi" 2.12 + # CONFIG_LOCALVERSION_AUTO is not set 2.13 + CONFIG_HAVE_KERNEL_GZIP=y 2.14 + CONFIG_HAVE_KERNEL_LZMA=y 2.15 +@@ -60,7 +60,6 @@ 2.16 + CONFIG_GENERIC_IRQ_SHOW=y 2.17 + CONFIG_HARDIRQS_SW_RESEND=y 2.18 + CONFIG_IRQ_DOMAIN=y 2.19 +-# CONFIG_IRQ_DOMAIN_DEBUG is not set 2.20 + CONFIG_KTIME_SCALAR=y 2.21 + CONFIG_GENERIC_CLOCKEVENTS=y 2.22 + CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 2.23 +@@ -124,8 +123,11 @@ 2.24 + CONFIG_NAMESPACES=y 2.25 + CONFIG_UTS_NS=y 2.26 + CONFIG_IPC_NS=y 2.27 ++# CONFIG_USER_NS is not set 2.28 + CONFIG_PID_NS=y 2.29 + CONFIG_NET_NS=y 2.30 ++CONFIG_UIDGID_CONVERTED=y 2.31 ++# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set 2.32 + CONFIG_SCHED_AUTOGROUP=y 2.33 + CONFIG_MM_OWNER=y 2.34 + # CONFIG_SYSFS_DEPRECATED is not set 2.35 +@@ -206,7 +208,6 @@ 2.36 + # 2.37 + # GCOV-based kernel profiling 2.38 + # 2.39 +-# CONFIG_GCOV_KERNEL is not set 2.40 + CONFIG_HAVE_GENERIC_DMA_COHERENT=y 2.41 + CONFIG_SLABINFO=y 2.42 + CONFIG_RT_MUTEXES=y 2.43 +@@ -853,7 +854,6 @@ 2.44 + # CONFIG_TIPC is not set 2.45 + # CONFIG_ATM is not set 2.46 + CONFIG_L2TP=m 2.47 +-# CONFIG_L2TP_DEBUGFS is not set 2.48 + # CONFIG_L2TP_V3 is not set 2.49 + CONFIG_STP=m 2.50 + CONFIG_GARP=m 2.51 +@@ -1053,7 +1053,6 @@ 2.52 + # CONFIG_CFG80211_REG_DEBUG is not set 2.53 + # CONFIG_CFG80211_CERTIFICATION_ONUS is not set 2.54 + CONFIG_CFG80211_DEFAULT_PS=y 2.55 +-# CONFIG_CFG80211_DEBUGFS is not set 2.56 + # CONFIG_CFG80211_INTERNAL_REGDB is not set 2.57 + CONFIG_CFG80211_WEXT=y 2.58 + CONFIG_LIB80211=m 2.59 +@@ -1071,7 +1070,6 @@ 2.60 + CONFIG_MAC80211_RC_DEFAULT="minstrel_ht" 2.61 + CONFIG_MAC80211_MESH=y 2.62 + CONFIG_MAC80211_LEDS=y 2.63 +-# CONFIG_MAC80211_DEBUGFS is not set 2.64 + # CONFIG_MAC80211_MESSAGE_TRACING is not set 2.65 + # CONFIG_MAC80211_DEBUG_MENU is not set 2.66 + CONFIG_WIMAX=m 2.67 +@@ -1454,7 +1452,6 @@ 2.68 + # CONFIG_ATH9K_DEBUGFS is not set 2.69 + # CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set 2.70 + CONFIG_ATH9K_HTC=m 2.71 +-# CONFIG_ATH9K_HTC_DEBUGFS is not set 2.72 + CONFIG_CARL9170=m 2.73 + CONFIG_CARL9170_LEDS=y 2.74 + CONFIG_CARL9170_WPC=y 2.75 +@@ -1651,12 +1648,10 @@ 2.76 + # CONFIG_SERIAL_AMBA_PL010 is not set 2.77 + CONFIG_SERIAL_AMBA_PL011=y 2.78 + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y 2.79 +-# CONFIG_SERIAL_KGDB_NMI is not set 2.80 + # CONFIG_SERIAL_MAX3100 is not set 2.81 + # CONFIG_SERIAL_MAX310X is not set 2.82 + CONFIG_SERIAL_CORE=y 2.83 + CONFIG_SERIAL_CORE_CONSOLE=y 2.84 +-CONFIG_CONSOLE_POLL=y 2.85 + # CONFIG_SERIAL_SCCNXP is not set 2.86 + # CONFIG_SERIAL_TIMBERDALE is not set 2.87 + # CONFIG_SERIAL_ALTERA_JTAGUART is not set 2.88 +@@ -2226,7 +2221,6 @@ 2.89 + CONFIG_DVB_B2C2_FLEXCOP=m 2.90 + CONFIG_SMS_SIANO_MDTV=m 2.91 + CONFIG_SMS_SIANO_RC=y 2.92 +-# CONFIG_SMS_SIANO_DEBUGFS is not set 2.93 + 2.94 + # 2.95 + # Media ancillary drivers (tuners, sensors, i2c, frontends) 2.96 +@@ -2837,7 +2831,7 @@ 2.97 + CONFIG_USB_ISIGHTFW=m 2.98 + CONFIG_USB_YUREX=m 2.99 + CONFIG_USB_EZUSB_FX2=m 2.100 +-# CONFIG_USB_HSIC_USB3503 is not set 2.101 ++CONFIG_USB_HSIC_USB3503=y 2.102 + # CONFIG_USB_PHY is not set 2.103 + # CONFIG_USB_GADGET is not set 2.104 + CONFIG_MMC=y 2.105 +@@ -3129,34 +3123,18 @@ 2.106 + CONFIG_EXT4_FS_SECURITY=y 2.107 + # CONFIG_EXT4_DEBUG is not set 2.108 + CONFIG_JBD2=y 2.109 +-# CONFIG_JBD2_DEBUG is not set 2.110 + CONFIG_FS_MBCACHE=y 2.111 +-CONFIG_REISERFS_FS=m 2.112 +-# CONFIG_REISERFS_CHECK is not set 2.113 +-# CONFIG_REISERFS_PROC_INFO is not set 2.114 +-CONFIG_REISERFS_FS_XATTR=y 2.115 +-CONFIG_REISERFS_FS_POSIX_ACL=y 2.116 +-CONFIG_REISERFS_FS_SECURITY=y 2.117 +-CONFIG_JFS_FS=m 2.118 +-CONFIG_JFS_POSIX_ACL=y 2.119 +-CONFIG_JFS_SECURITY=y 2.120 +-# CONFIG_JFS_DEBUG is not set 2.121 +-CONFIG_JFS_STATISTICS=y 2.122 +-CONFIG_XFS_FS=m 2.123 +-CONFIG_XFS_QUOTA=y 2.124 +-CONFIG_XFS_POSIX_ACL=y 2.125 +-CONFIG_XFS_RT=y 2.126 +-# CONFIG_XFS_WARN is not set 2.127 +-# CONFIG_XFS_DEBUG is not set 2.128 ++# CONFIG_REISERFS_FS is not set 2.129 ++# CONFIG_JFS_FS is not set 2.130 ++# CONFIG_XFS_FS is not set 2.131 + CONFIG_GFS2_FS=m 2.132 + # CONFIG_GFS2_FS_LOCKING_DLM is not set 2.133 + CONFIG_OCFS2_FS=m 2.134 + CONFIG_OCFS2_FS_O2CB=m 2.135 + CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m 2.136 +-CONFIG_OCFS2_FS_STATS=y 2.137 + CONFIG_OCFS2_DEBUG_MASKLOG=y 2.138 + # CONFIG_OCFS2_DEBUG_FS is not set 2.139 +-CONFIG_BTRFS_FS=m 2.140 ++CONFIG_BTRFS_FS=y 2.141 + CONFIG_BTRFS_FS_POSIX_ACL=y 2.142 + # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set 2.143 + # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set 2.144 +@@ -3171,10 +3149,10 @@ 2.145 + CONFIG_FANOTIFY=y 2.146 + CONFIG_QUOTA=y 2.147 + # CONFIG_QUOTA_NETLINK_INTERFACE is not set 2.148 +-CONFIG_PRINT_QUOTA_WARNING=y 2.149 ++# CONFIG_PRINT_QUOTA_WARNING is not set 2.150 + # CONFIG_QUOTA_DEBUG is not set 2.151 + CONFIG_QUOTA_TREE=m 2.152 +-CONFIG_QFMT_V1=m 2.153 ++# CONFIG_QFMT_V1 is not set 2.154 + CONFIG_QFMT_V2=m 2.155 + CONFIG_QUOTACTL=y 2.156 + CONFIG_AUTOFS4_FS=y 2.157 +@@ -3258,7 +3236,6 @@ 2.158 + # CONFIG_SYSV_FS is not set 2.159 + # CONFIG_UFS_FS is not set 2.160 + CONFIG_F2FS_FS=y 2.161 +-CONFIG_F2FS_STAT_FS=y 2.162 + CONFIG_F2FS_FS_XATTR=y 2.163 + CONFIG_F2FS_FS_POSIX_ACL=y 2.164 + CONFIG_NETWORK_FILESYSTEMS=y 2.165 +@@ -3307,40 +3284,40 @@ 2.166 + CONFIG_9P_FS_POSIX_ACL=y 2.167 + CONFIG_NLS=y 2.168 + CONFIG_NLS_DEFAULT="utf8" 2.169 +-CONFIG_NLS_CODEPAGE_437=y 2.170 +-CONFIG_NLS_CODEPAGE_737=m 2.171 +-CONFIG_NLS_CODEPAGE_775=m 2.172 +-CONFIG_NLS_CODEPAGE_850=m 2.173 +-CONFIG_NLS_CODEPAGE_852=m 2.174 +-CONFIG_NLS_CODEPAGE_855=m 2.175 +-CONFIG_NLS_CODEPAGE_857=m 2.176 +-CONFIG_NLS_CODEPAGE_860=m 2.177 +-CONFIG_NLS_CODEPAGE_861=m 2.178 +-CONFIG_NLS_CODEPAGE_862=m 2.179 +-CONFIG_NLS_CODEPAGE_863=m 2.180 +-CONFIG_NLS_CODEPAGE_864=m 2.181 +-CONFIG_NLS_CODEPAGE_865=m 2.182 +-CONFIG_NLS_CODEPAGE_866=m 2.183 +-CONFIG_NLS_CODEPAGE_869=m 2.184 +-CONFIG_NLS_CODEPAGE_936=m 2.185 +-CONFIG_NLS_CODEPAGE_950=m 2.186 +-CONFIG_NLS_CODEPAGE_932=m 2.187 +-CONFIG_NLS_CODEPAGE_949=m 2.188 +-CONFIG_NLS_CODEPAGE_874=m 2.189 +-CONFIG_NLS_ISO8859_8=m 2.190 +-CONFIG_NLS_CODEPAGE_1250=m 2.191 +-CONFIG_NLS_CODEPAGE_1251=m 2.192 ++# CONFIG_NLS_CODEPAGE_437 is not set 2.193 ++# CONFIG_NLS_CODEPAGE_737 is not set 2.194 ++# CONFIG_NLS_CODEPAGE_775 is not set 2.195 ++# CONFIG_NLS_CODEPAGE_850 is not set 2.196 ++# CONFIG_NLS_CODEPAGE_852 is not set 2.197 ++# CONFIG_NLS_CODEPAGE_855 is not set 2.198 ++# CONFIG_NLS_CODEPAGE_857 is not set 2.199 ++# CONFIG_NLS_CODEPAGE_860 is not set 2.200 ++# CONFIG_NLS_CODEPAGE_861 is not set 2.201 ++# CONFIG_NLS_CODEPAGE_862 is not set 2.202 ++# CONFIG_NLS_CODEPAGE_863 is not set 2.203 ++# CONFIG_NLS_CODEPAGE_864 is not set 2.204 ++# CONFIG_NLS_CODEPAGE_865 is not set 2.205 ++# CONFIG_NLS_CODEPAGE_866 is not set 2.206 ++# CONFIG_NLS_CODEPAGE_869 is not set 2.207 ++# CONFIG_NLS_CODEPAGE_936 is not set 2.208 ++# CONFIG_NLS_CODEPAGE_950 is not set 2.209 ++# CONFIG_NLS_CODEPAGE_932 is not set 2.210 ++# CONFIG_NLS_CODEPAGE_949 is not set 2.211 ++# CONFIG_NLS_CODEPAGE_874 is not set 2.212 ++# CONFIG_NLS_ISO8859_8 is not set 2.213 ++# CONFIG_NLS_CODEPAGE_1250 is not set 2.214 ++# CONFIG_NLS_CODEPAGE_1251 is not set 2.215 + CONFIG_NLS_ASCII=y 2.216 + CONFIG_NLS_ISO8859_1=m 2.217 +-CONFIG_NLS_ISO8859_2=m 2.218 +-CONFIG_NLS_ISO8859_3=m 2.219 +-CONFIG_NLS_ISO8859_4=m 2.220 +-CONFIG_NLS_ISO8859_5=m 2.221 +-CONFIG_NLS_ISO8859_6=m 2.222 +-CONFIG_NLS_ISO8859_7=m 2.223 +-CONFIG_NLS_ISO8859_9=m 2.224 +-CONFIG_NLS_ISO8859_13=m 2.225 +-CONFIG_NLS_ISO8859_14=m 2.226 ++# CONFIG_NLS_ISO8859_2 is not set 2.227 ++# CONFIG_NLS_ISO8859_3 is not set 2.228 ++# CONFIG_NLS_ISO8859_4 is not set 2.229 ++# CONFIG_NLS_ISO8859_5 is not set 2.230 ++# CONFIG_NLS_ISO8859_6 is not set 2.231 ++# CONFIG_NLS_ISO8859_7 is not set 2.232 ++# CONFIG_NLS_ISO8859_9 is not set 2.233 ++# CONFIG_NLS_ISO8859_13 is not set 2.234 ++# CONFIG_NLS_ISO8859_14 is not set 2.235 + CONFIG_NLS_ISO8859_15=m 2.236 + CONFIG_NLS_KOI8_R=m 2.237 + CONFIG_NLS_KOI8_U=m 2.238 +@@ -3362,7 +3339,7 @@ 2.239 + # 2.240 + # Kernel hacking 2.241 + # 2.242 +-CONFIG_PRINTK_TIME=y 2.243 ++# CONFIG_PRINTK_TIME is not set 2.244 + CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 2.245 + CONFIG_ENABLE_WARN_DEPRECATED=y 2.246 + CONFIG_ENABLE_MUST_CHECK=y 2.247 +@@ -3371,7 +3348,7 @@ 2.248 + # CONFIG_STRIP_ASM_SYMS is not set 2.249 + # CONFIG_READABLE_ASM is not set 2.250 + # CONFIG_UNUSED_SYMBOLS is not set 2.251 +-CONFIG_DEBUG_FS=y 2.252 ++# CONFIG_DEBUG_FS is not set 2.253 + # CONFIG_HEADERS_CHECK is not set 2.254 + # CONFIG_DEBUG_SECTION_MISMATCH is not set 2.255 + CONFIG_DEBUG_KERNEL=y 2.256 +@@ -3379,13 +3356,10 @@ 2.257 + # CONFIG_LOCKUP_DETECTOR is not set 2.258 + # CONFIG_PANIC_ON_OOPS is not set 2.259 + CONFIG_PANIC_ON_OOPS_VALUE=0 2.260 +-CONFIG_DETECT_HUNG_TASK=y 2.261 +-CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 2.262 +-# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set 2.263 +-CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 2.264 +-CONFIG_SCHED_DEBUG=y 2.265 +-CONFIG_SCHEDSTATS=y 2.266 +-CONFIG_TIMER_STATS=y 2.267 ++# CONFIG_DETECT_HUNG_TASK is not set 2.268 ++# CONFIG_SCHED_DEBUG is not set 2.269 ++# CONFIG_SCHEDSTATS is not set 2.270 ++# CONFIG_TIMER_STATS is not set 2.271 + # CONFIG_DEBUG_OBJECTS is not set 2.272 + # CONFIG_SLUB_DEBUG_ON is not set 2.273 + # CONFIG_SLUB_STATS is not set 2.274 +@@ -3401,20 +3375,19 @@ 2.275 + # CONFIG_LOCK_STAT is not set 2.276 + # CONFIG_DEBUG_ATOMIC_SLEEP is not set 2.277 + # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set 2.278 +-CONFIG_STACKTRACE=y 2.279 + # CONFIG_DEBUG_STACK_USAGE is not set 2.280 + # CONFIG_DEBUG_KOBJECT is not set 2.281 +-CONFIG_DEBUG_BUGVERBOSE=y 2.282 ++# CONFIG_DEBUG_BUGVERBOSE is not set 2.283 + # CONFIG_DEBUG_INFO is not set 2.284 + # CONFIG_DEBUG_VM is not set 2.285 + # CONFIG_DEBUG_WRITECOUNT is not set 2.286 +-CONFIG_DEBUG_MEMORY_INIT=y 2.287 ++# CONFIG_DEBUG_MEMORY_INIT is not set 2.288 + # CONFIG_DEBUG_LIST is not set 2.289 + # CONFIG_TEST_LIST_SORT is not set 2.290 + # CONFIG_DEBUG_SG is not set 2.291 + # CONFIG_DEBUG_NOTIFIERS is not set 2.292 + # CONFIG_DEBUG_CREDENTIALS is not set 2.293 +-CONFIG_BOOT_PRINTK_DELAY=y 2.294 ++# CONFIG_BOOT_PRINTK_DELAY is not set 2.295 + 2.296 + # 2.297 + # RCU Debugging 2.298 +@@ -3430,10 +3403,9 @@ 2.299 + # CONFIG_BACKTRACE_SELF_TEST is not set 2.300 + # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set 2.301 + # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set 2.302 +-# CONFIG_LKDTM is not set 2.303 + # CONFIG_NOTIFIER_ERROR_INJECTION is not set 2.304 + # CONFIG_FAULT_INJECTION is not set 2.305 +-CONFIG_LATENCYTOP=y 2.306 ++# CONFIG_LATENCYTOP is not set 2.307 + # CONFIG_DEBUG_PAGEALLOC is not set 2.308 + CONFIG_HAVE_FUNCTION_TRACER=y 2.309 + CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y 2.310 +@@ -3445,37 +3417,15 @@ 2.311 + CONFIG_RING_BUFFER=y 2.312 + CONFIG_RING_BUFFER_ALLOW_SWAP=y 2.313 + CONFIG_TRACING_SUPPORT=y 2.314 +-CONFIG_FTRACE=y 2.315 +-# CONFIG_FUNCTION_TRACER is not set 2.316 +-# CONFIG_IRQSOFF_TRACER is not set 2.317 +-# CONFIG_PREEMPT_TRACER is not set 2.318 +-# CONFIG_SCHED_TRACER is not set 2.319 +-# CONFIG_ENABLE_DEFAULT_TRACERS is not set 2.320 +-# CONFIG_FTRACE_SYSCALLS is not set 2.321 +-# CONFIG_TRACER_SNAPSHOT is not set 2.322 +-CONFIG_BRANCH_PROFILE_NONE=y 2.323 +-# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set 2.324 +-# CONFIG_PROFILE_ALL_BRANCHES is not set 2.325 +-# CONFIG_STACK_TRACER is not set 2.326 +-# CONFIG_BLK_DEV_IO_TRACE is not set 2.327 +-# CONFIG_KPROBE_EVENT is not set 2.328 +-# CONFIG_PROBE_EVENTS is not set 2.329 +-# CONFIG_RING_BUFFER_BENCHMARK is not set 2.330 +-# CONFIG_RING_BUFFER_STARTUP_TEST is not set 2.331 ++# CONFIG_FTRACE is not set 2.332 + # CONFIG_RBTREE_TEST is not set 2.333 + # CONFIG_INTERVAL_TREE_TEST is not set 2.334 +-# CONFIG_DYNAMIC_DEBUG is not set 2.335 + # CONFIG_DMA_API_DEBUG is not set 2.336 + # CONFIG_ATOMIC64_SELFTEST is not set 2.337 + # CONFIG_ASYNC_RAID6_TEST is not set 2.338 + # CONFIG_SAMPLES is not set 2.339 + CONFIG_HAVE_ARCH_KGDB=y 2.340 +-CONFIG_KGDB=y 2.341 +-CONFIG_KGDB_SERIAL_CONSOLE=y 2.342 +-# CONFIG_KGDB_TESTS is not set 2.343 +-CONFIG_KGDB_KDB=y 2.344 +-CONFIG_KDB_KEYBOARD=y 2.345 +-CONFIG_KDB_CONTINUE_CATASTROPHIC=0 2.346 ++# CONFIG_KGDB is not set 2.347 + # CONFIG_TEST_STRING_HELPERS is not set 2.348 + # CONFIG_TEST_KSTRTOX is not set 2.349 + CONFIG_STRICT_DEVMEM=y 2.350 +@@ -3499,7 +3449,7 @@ 2.351 + # CONFIG_SECURITYFS is not set 2.352 + CONFIG_DEFAULT_SECURITY_DAC=y 2.353 + CONFIG_DEFAULT_SECURITY="" 2.354 +-CONFIG_XOR_BLOCKS=m 2.355 ++CONFIG_XOR_BLOCKS=y 2.356 + CONFIG_ASYNC_CORE=m 2.357 + CONFIG_ASYNC_MEMCPY=m 2.358 + CONFIG_ASYNC_XOR=m 2.359 +@@ -3619,7 +3569,7 @@ 2.360 + # 2.361 + # Library routines 2.362 + # 2.363 +-CONFIG_RAID6_PQ=m 2.364 ++CONFIG_RAID6_PQ=y 2.365 + CONFIG_BITREVERSE=y 2.366 + CONFIG_GENERIC_STRNCPY_FROM_USER=y 2.367 + CONFIG_GENERIC_STRNLEN_USER=y 2.368 +@@ -3640,7 +3590,7 @@ 2.369 + # CONFIG_CRC8 is not set 2.370 + CONFIG_AUDIT_GENERIC=y 2.371 + CONFIG_ZLIB_INFLATE=y 2.372 +-CONFIG_ZLIB_DEFLATE=m 2.373 ++CONFIG_ZLIB_DEFLATE=y 2.374 + CONFIG_LZO_COMPRESS=y 2.375 + CONFIG_LZO_DECOMPRESS=y 2.376 + CONFIG_XZ_DEC=m
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/rpi/tazberry Sun Mar 09 10:14:01 2014 +0100 3.3 @@ -0,0 +1,244 @@ 3.4 +#!/bin/sh 3.5 +# 3.6 +# TazBerry - SliTaz Raspberry Pi Config Tool 3.7 +# 3.8 +# Copyright (C) 2014 SliTaz ARM - BSD License 3.9 +# Author: Christophe Lincoln <pankso@slitaz.org> 3.10 +# 3.11 +. /lib/libtaz.sh 3.12 + 3.13 +title="{ TazBerry }" 3.14 +config="/boot/config.txt" 3.15 +tmpdir="/tmp/tazberry" 3.16 +tmp="$tmpdir/$$" 3.17 +height="20" 3.18 +width="72" 3.19 + 3.20 +# Use a tmp directory 3.21 +mkdir -p ${tmpdir} 3.22 + 3.23 +# Small built-in help 3.24 +help() { 3.25 + cat << EOT 3.26 + 3.27 +$(boldify "$(gettext 'Usage:')") $(basename $0) [command|rpi_function] 3.28 + 3.29 +$(boldify "$(gettext 'Commands:')") 3.30 + oclock $(gettext 'Display overclocking information') 3.31 + ls-functions $(gettext 'List TazBerry functions') 3.32 + testsuite $(gettext 'Run TazBerry testsuite') 3.33 + 3.34 +EOT 3.35 +} 3.36 + 3.37 +# 3.38 +# RPi functions 3.39 +# 3.40 + 3.41 +rpi_stats() { 3.42 + cat << EOT 3.43 +$(gettext 'Kernel') : $(uname -snrm) 3.44 +$(gettext 'Uptime') :$(uptime | cut -d "," -f 1,2) 3.45 +$(gettext 'CPU heat') : $(awk '{printf "%3.1f C\n", $1/1000}' \ 3.46 + /sys/class/thermal/thermal_zone0/temp) 3.47 +EOT 3.48 +} 3.49 + 3.50 +rpi_turbo() { 3.51 + if ! fgrep -q 'force_turbo=1' ${config}; then 3.52 + gettext "Enabling Raspberry Pi force turbo..." 3.53 + echo "force_turbo=1" >> ${config}; status 3.54 + else 3.55 + gettext "Disabling Raspberry Pi force turbo..." 3.56 + sed -i '/force_turbo=1/'d ${config}; status 3.57 + fi 3.58 +} 3.59 + 3.60 +# RPi Overclocking 3.61 +rpi_oclock() { 3.62 + cat << EOT 3.63 +none 700MHz ARM 250MHz core 400MHz SDRAM 0 overvolt 3.64 +modest 800MHz ARM 300MHz core 400MHz SDRAM 0 overvolt 3.65 +medium 900MHz ARM 333MHz core 450MHz SDRAM 2 overvolt 3.66 +high 950MHz ARM 450MHz core 450MHz SDRAM 6 overvolt 3.67 +turbo 1000MHz ARM 500MHz core 500MHz SDRAM 6 overvolt 3.68 +EOT 3.69 +} 3.70 + 3.71 +# 3.72 +# GUI Functions 3.73 +# 3.74 + 3.75 +# Usage: msg_box "title" "message" 3.76 +msg_box() { 3.77 + dialog --title "{ $1 }" --cr-wrap \ 3.78 + --ok-label "TazBerry" --msgbox "\n$2" ${height} ${width} 3.79 +} 3.80 + 3.81 +# Usage: text_box "file" 3.82 +text_box() { 3.83 + local file="$1" 3.84 + if [ -f "$file" ]; then 3.85 + dialog --cr-wrap \ 3.86 + --title " $(gettext 'Viewing file:') $file " \ 3.87 + --extra-button \ 3.88 + --extra-label "Edit file" \ 3.89 + --ok-label "TazBerry" \ 3.90 + --textbox ${file} ${height} ${width} 3.91 + else 3.92 + dialog --title "$title" \ 3.93 + --msgbox "\nERROR: $file does not exist" 10 ${width} 3.94 + fi 3.95 + # Handle options 3.96 + case "$?" in 3.97 + 3) nano ${file} ;; 3.98 + esac 3.99 +} 3.100 + 3.101 +# Usage: tail_box "file" 3.102 +tail_box() { 3.103 + dialog --title " $(gettext 'Watching file:') $2 " \ 3.104 + --tailbox "$1" ${height} ${width} 3.105 +} 3.106 + 3.107 +# Packages info and spk-up button 3.108 +pkgs_box() { 3.109 + out="$tmpdir/spk-info.txt" 3.110 + spk info --output=raw > ${out} 3.111 + dialog --cr-wrap \ 3.112 + --title "{ $(gettext 'Packages') }" \ 3.113 + --extra-button \ 3.114 + --extra-label "$(gettext 'Upgrade')" \ 3.115 + --ok-label "TazBerry" \ 3.116 + --textbox "$out" ${height} ${width} 3.117 + # Handle options 3.118 + case "$?" in 3.119 + 3) spk-up && gettext "Press ENTER to go back to TazBerry"; read ;; 3.120 + esac 3.121 +} 3.122 + 3.123 +oclock_box() { 3.124 + out="$tmpdir/overclocking.txt" 3.125 + cat > ${out} << EOT 3.126 + 3.127 +Overclocking modes: 3.128 +------------------- 3.129 +$(rpi_oclock) 3.130 + 3.131 +Current /boot/config.txt 3.132 +------------------------ 3.133 +$(cat $config) 3.134 + 3.135 +EOT 3.136 + dialog --cr-wrap \ 3.137 + --title "$title" \ 3.138 + --ok-label "TazBerry" \ 3.139 + --textbox "$out" ${height} ${width} 3.140 +} 3.141 + 3.142 +# Main Dialog menu 3.143 +main_box() { 3.144 + dialog \ 3.145 + --clear \ 3.146 + --title "$title" \ 3.147 + --ok-label "Exec" \ 3.148 + --cancel-label "Quit" \ 3.149 + --menu "" ${height} ${width} 14 \ 3.150 +"rpi-stats" "$(gettext 'Show some RPi system stats')" \ 3.151 +"cmdline.txt" "$(gettext 'View boot args /boot/cmdline.txt')" \ 3.152 +"config.txt" "$(gettext 'View config file /boot/config.txt')" \ 3.153 +"rpi-turbo" "$(gettext 'Enable or disable RPi turbo on next boot')" \ 3.154 +"oclock" "$(gettext 'Overclocking information and config')" \ 3.155 +"packages" "$(gettext 'Packages info and upgrade (spk)')" \ 3.156 +"keyboard" "$(gettext 'System keyboard setting')" \ 3.157 +"reboot" "$(gettext 'Reboot SliTaz')" \ 3.158 +"halt" "$(gettext 'Halt the Raspberry Pi')" \ 3.159 +"quit" "$(gettext 'Exit from TazBerry tool')" 2>${tmp} 3.160 + 3.161 + # Handle options 3.162 + opt=${?} 3.163 + case "$opt" in 3.164 + 1|255) rm ${tmpdir} && exit 0 ;; 3.165 + esac 3.166 + 3.167 + # Handle actions 3.168 + action=$(cat $tmp) 3.169 + case "$action" in 3.170 + rpi-stats) 3.171 + msg_box "RPi Stats" "$(rpi_stats)" ;; 3.172 + cmdline.txt) 3.173 + text_box /boot/cmdline.txt ;; 3.174 + config.txt) 3.175 + text_box ${config} ;; 3.176 + rpi-turbo) 3.177 + rpi_turbo && newline 3.178 + gettext "Press ENTER to go back to TazBerry"; read ;; 3.179 + oclock) 3.180 + oclock_box ;; 3.181 + packages) 3.182 + pkgs_box ;; 3.183 + keyboard) 3.184 + tazkeymap ;; 3.185 + reboot) 3.186 + reboot ;; 3.187 + halt) 3.188 + halt ;; 3.189 + quit) 3.190 + rm -rf ${tmpdir} && exit 0 ;; 3.191 + esac 3.192 +} 3.193 + 3.194 +# Progress bar testsuite 3.195 +gauge_box() { 3.196 + { for i in $(seq 1 100); do 3.197 + echo $i 3.198 + sleep 0.01 3.199 + done 3.200 + echo 100; } | dialog --title "{ TazBerry }" \ 3.201 + --gauge "Work in progress..." 6 ${width} 0 3.202 +} 3.203 + 3.204 +# 3.205 +# Handle commands 3.206 +# 3.207 + 3.208 +case "$1" in 3.209 + oclock) 3.210 + newline 3.211 + boldify "Overclocking modes:" 3.212 + rpi_oclock 3.213 + boldify "Current config.txt:" 3.214 + cat ${config} 3.215 + newline ;; 3.216 + 3.217 + ls-functions) 3.218 + newline 3.219 + boldify "$(gettext 'TazBerry functions list')" 3.220 + separator 3.221 + grep "^rpi_*" $0 | awk '{print " ", $1}' 3.222 + newline ;; 3.223 + 3.224 + testsuite) 3.225 + gauge_box 3.226 + msg_box "Testsuite" "Test message" 3.227 + rpi_stats 3.228 + newline ;; 3.229 + 3.230 + rpi_*) 3.231 + # Execute functions 3.232 + $@ ;; 3.233 + 3.234 + "") 3.235 + # No args: display Ncurses dialog 3.236 + while true; do 3.237 + main_box 3.238 + done ;; 3.239 + 3.240 + *|*help|-h) 3.241 + # Display help 3.242 + help ;; 3.243 +esac 3.244 + 3.245 +# Clean exit 3.246 +rm -rf ${tmpdir} 3.247 +exit 0
4.1 --- a/spi Sat Mar 08 23:50:08 2014 +0000 4.2 +++ b/spi Sun Mar 09 10:14:01 2014 +0100 4.3 @@ -1,6 +1,6 @@ 4.4 #!/bin/sh 4.5 # 4.6 -# Spi - SliTaz Raspberry Pi Tool 4.7 +# Spi - SliTaz Raspberry Pi Build Tool 4.8 # 4.9 # Copyright (C) 2012-2014 SliTaz ARM - BSD License 4.10 # Author: Christophe Lincoln <pankso@slitaz.org> 4.11 @@ -54,7 +54,7 @@ 4.12 clone-fw Clone the RPi firmware repository 4.13 get-tools Download or update RPi Tools (mkimage) 4.14 get-prebuilt Get a prebuilt SliTaz ARM toolchain 4.15 - oclock Display overclocking information 4.16 + clean Clean the current work directory 4.17 4.18 $(boldify "Options:") 4.19 --up Update for commands: firmware, tools, kernel 4.20 @@ -62,6 +62,7 @@ 4.21 --oclock= Set the RPi overclocking mode in config.txt 4.22 --vc Install the RPi VC libraries in /opt/vc 4.23 --nosat Don't regenerate the distro with sat 4.24 + --git Remove RPi git files on clean up 4.25 4.26 EOT 4.27 } 4.28 @@ -111,20 +112,7 @@ 4.29 done 4.30 } 4.31 4.32 -# RPi Overclocking 4.33 -show_oclock() { 4.34 - cat << EOT 4.35 - 4.36 -$(boldify "Overclocking modes:") 4.37 -none 700MHz ARM 250MHz core 400MHz SDRAM 0 overvolt 4.38 -modest 800MHz ARM 300MHz core 400MHz SDRAM 0 overvolt 4.39 -medium 900MHz ARM 333MHz core 450MHz SDRAM 2 overvolt 4.40 -high 950MHz ARM 450MHz core 450MHz SDRAM 6 overvolt 4.41 -turbo 1000MHz ARM 500MHz core 500MHz SDRAM 6 overvolt 4.42 - 4.43 -EOT 4.44 -} 4.45 - 4.46 +# --> will move to tazberry 4.47 set_oclock() { 4.48 case "$oclock" in 4.49 none) 4.50 @@ -272,18 +260,26 @@ 4.51 status 4.52 fi 4.53 4.54 + # TazBerry 4.55 + echo -n "Installing TazBerry..." 4.56 + cp -f ${rpi}/tazberry ${rootfs}/usr/bin 4.57 + status 4.58 + 4.59 # Overclocking 4.60 echo -n "Setting: Overclocking..." 4.61 set_oclock; status 4.62 4.63 # Force turbo 4.64 if [ "$turbo" ]; then 4.65 - echo -n "Config: force_turbo=1" 4.66 - echo "force_turbo=1" >> ${boot}/config.txt; status 4.67 + if ! fgrep 'force_turbo=1' ${boot}/config.txt; then 4.68 + echo -n "Config: force_turbo=1" 4.69 + echo "force_turbo=1" >> ${boot}/config.txt; status 4.70 + fi 4.71 fi 4.72 4.73 # Kernel 4.74 kvers=$(ls $data/linux-*/fs/lib/modules) 4.75 + kvers=${kvers%-slitaz-rpi} 4.76 kpkg="$rootfs/var/lib/tazpkg/installed/linux" 4.77 fs="$data/linux-$kvers/fs" 4.78 ksize=$(du -sh $fs | awk '{print $1}') 4.79 @@ -313,9 +309,9 @@ 4.80 chown -R root.root ${rootfs}/opt 4.81 status 4.82 echo -n "Cleaning: VC libraries devel files" 4.83 - cross_tools="/cross/arm/tools/bin" 4.84 + cross_tools="/cross/${arch}/tools/bin" 4.85 rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a 4.86 - ${cross_tools}/arm-slitaz-linux-gnueabi-strip -s ${vc}/lib/*.so 4.87 + ${cross_tools}/${arch}-slitaz-linux-gnueabi-strip -s ${vc}/lib/*.so 4.88 status 4.89 fi 4.90 4.91 @@ -342,7 +338,10 @@ 4.92 cd ${kernel} 4.93 export PATH=$PATH:/cross/${arch}/tools/bin 4.94 export HOST_SYSTEM=${arch}-slitaz-linux-gnueabi 4.95 - make ARCH=arm bcmrpi_defconfig && 4.96 + make mrproper && 4.97 + make ARCH=arm bcmrpi_defconfig 4.98 + echo "Patching SliTaz RPi Linux .config" 4.99 + patch -p1 -i ${rpi}/linux-rpi.config || exit 1 4.100 make ARCH=arm CROSS_COMPILE=${HOST_SYSTEM}- zImage && 4.101 make ARCH=arm CROSS_COMPILE=${HOST_SYSTEM}- modules && 4.102 make ARCH=arm CROSS_COMPILE=${HOST_SYSTEM}- \ 4.103 @@ -359,8 +358,9 @@ 4.104 #find . -name "*.ko" -exec gz '{}' \; 2> /dev/null 4.105 4.106 # Pack 4.107 + kvers=$(ls ${install}/lib/modules) 4.108 + kvers=${kvers%-slitaz-rpi} 4.109 fs="$data/linux-$kvers/fs" 4.110 - kvers=$(ls ${install}/lib/modules) 4.111 newline 4.112 echo "Kernel version: $kvers" 4.113 if [ -d "$install" ]; then 4.114 @@ -396,9 +396,9 @@ 4.115 get-linux) 4.116 # Precook RPi kernel 4.117 mkdir -p ${data} 4.118 - rm -f ${data}/linux-version.txt 4.119 4.120 # Last version 4.121 + rm -f ${data}/linux-version.txt 4.122 if busybox wget -q -s ${rpi_mirror}/last-linux.txt; then 4.123 echo -n "Fetching latest Kernel string..." 4.124 wget -q ${rpi_mirror}/last-linux.txt \ 4.125 @@ -452,13 +452,10 @@ 4.126 clone-fw) 4.127 clone_fw ;; 4.128 4.129 - oclock) 4.130 - show_oclock 4.131 - if [ -f "$boot/config.txt" ]; then 4.132 - boldify "Current config.txt:" 4.133 - cat ${boot}/config.txt 4.134 - newline 4.135 - fi ;; 4.136 + clean) 4.137 + echo "Cleaning: $rpi" 4.138 + rm -rf ${data} 4.139 + [ "$git" ] && rm -rf ${rpi_git} ;; 4.140 *) usage ;; 4.141 esac 4.142 exit 0