-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from jrspruitt/master
Add config for Mini2440/Wheezy
- Loading branch information
Showing
23 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
IMAGE_MB=512 | ||
MIRROR=http://mirrors.kernel.org/debian | ||
SYSTEM=debian | ||
ARCH=armel | ||
SUITE=wheezy | ||
|
||
read -r -d '' EXTRA_PACKAGES << EOF | ||
dosfstools | ||
kmod | ||
less | ||
locales | ||
parted | ||
vim-tiny | ||
EOF | ||
|
||
HOSTNAME=mini2440 | ||
LOCALE=en_US.UTF-8 | ||
|
||
post_install() { | ||
find "${ROOTFS}/usr/share/doc" ! -name copyright -type f -delete | ||
find "${ROOTFS}/usr/share/doc" -type d -delete > /dev/null 2>&1 | ||
rm -rf "${ROOTFS}/usr/share/man/"* | ||
rm -rf "${ROOTFS}/usr/share/info/"* | ||
rm -rf "${ROOTFS}/usr/share/lintian/"* | ||
|
||
cat >> "${ROOTFS}/etc/securetty" << EOF | ||
s3c2410_serial0 | ||
EOF | ||
sed -i 's/1:2345/# 1:2345/' "${ROOTFS}/etc/inittab" | ||
echo "T1:23:respawn:/sbin/getty -L s3c2410_serial0 115200 vt100" >> "${ROOTFS}/etc/inittab" | ||
cp -r "${DIBS}/targets/mini2440_overlay/"* "${ROOTFS}" | ||
run_target /usr/sbin/update-rc.d tscal_check defaults | ||
run_target /usr/sbin/update-rc.d fb_fix defaults | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Dir::Cache { | ||
srcpkgcache ""; | ||
pkgcache ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# block documentation | ||
path-exclude /usr/share/doc/* | ||
# keep copyright files for legal reasons | ||
path-include /usr/share/doc/*/copyright | ||
path-exclude /usr/share/man/* | ||
path-exclude /usr/share/groff/* | ||
path-exclude /usr/share/info/* | ||
# lintian stuff is small, but really unnecessary | ||
path-exclude /usr/share/lintian/* | ||
path-exclude /usr/share/linda/* | ||
# block non-us locales | ||
path-exclude /usr/share/locale/* | ||
path-include /usr/share/locale/en* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
devpts /dev/pts devpts gid=5,mode=620 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
### BEGIN INIT INFO | ||
# Provides: fb_fix | ||
# Required-Start: $all | ||
# Required-Stop: | ||
# X-Start-Before: | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Disable cursor, screen saver and clear screen. | ||
### END INIT INFO | ||
|
||
case "$1" in | ||
start) | ||
echo -ne '\033[?17;0;0c' > /dev/tty1 | ||
echo -ne "\033[9;0]\033[14;0]" > /dev/tty1 | ||
echo -ne '\033[2J' > /dev/tty1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
### BEGIN INIT INFO | ||
# Provides: tscal_check | ||
# Required-Start: $all | ||
# Required-Stop: | ||
# X-Start-Before: | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: Check for TSLib calibration. | ||
### END INIT INFO | ||
|
||
PTRCAL=/etc/pointercal | ||
|
||
case "$1" in | ||
start) | ||
if [ ! -f $PTRCAL ]; then | ||
echo "No pointercal file, starting touchscreen calibration..." | ||
. /etc/profile | ||
/usr/bin/ts_calibrate > /dev/null 2>&1 & | ||
fi | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export TSLIB_CALIBFILE=/etc/pointercal | ||
export TSLIB_CONFFILE=/etc/ts.conf | ||
export TSLIB_TSDEVICE=/dev/input/event1 | ||
export TSLIB_FBDEVICE=/dev/fb0 | ||
export TSLIB_CONSOLEDEVICE=/dev/tty1 | ||
export TSLIB_PLUGINDIR=/usr/lib/ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module_raw input | ||
module pthres pmin=1 | ||
module variance delta=30 | ||
module dejitter delta=100 | ||
module linear |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libts-1.0.so.0.0.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libts-1.0.so.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prefix=/opt/tslib/install | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: tslib | ||
Description: Touchscreen Access Library | ||
Version: 1.1.0 | ||
Libs: -L${libdir} -lts | ||
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prefix=/opt/tslib/install | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: tslib | ||
Description: Touchscreen Access Library | ||
Version: 1.1.0 | ||
Libs: -L${libdir} -lts | ||
Cflags: -I${includedir} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.