Skip to content

Commit

Permalink
Merge pull request #6 from jrspruitt/master
Browse files Browse the repository at this point in the history
Add config for Mini2440/Wheezy
  • Loading branch information
jrspruitt authored Jun 24, 2016
2 parents aaaaafd + c4803b7 commit 07a28fb
Show file tree
Hide file tree
Showing 23 changed files with 128 additions and 0 deletions.
37 changes: 37 additions & 0 deletions targets/mini2440.conf
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
}
4 changes: 4 additions & 0 deletions targets/mini2440_overlay/etc/apt/apt.conf.d/02nocache
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dir::Cache {
srcpkgcache "";
pkgcache "";
}
13 changes: 13 additions & 0 deletions targets/mini2440_overlay/etc/dpkg/dpkg.cfg.d/01_smalldisk
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*
1 change: 1 addition & 0 deletions targets/mini2440_overlay/etc/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
devpts /dev/pts devpts gid=5,mode=620 0 0
18 changes: 18 additions & 0 deletions targets/mini2440_overlay/etc/init.d/fb_fix
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
22 changes: 22 additions & 0 deletions targets/mini2440_overlay/etc/init.d/tscal_check
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
6 changes: 6 additions & 0 deletions targets/mini2440_overlay/etc/profile.d/touchscreen.sh
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
5 changes: 5 additions & 0 deletions targets/mini2440_overlay/etc/ts.conf
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 added targets/mini2440_overlay/usr/bin/ts_calibrate
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/bin/ts_harvest
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/bin/ts_print
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/bin/ts_print_raw
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/bin/ts_test
Binary file not shown.
1 change: 1 addition & 0 deletions targets/mini2440_overlay/usr/lib/libts-1.0.so.0
Binary file not shown.
1 change: 1 addition & 0 deletions targets/mini2440_overlay/usr/lib/libts.so
10 changes: 10 additions & 0 deletions targets/mini2440_overlay/usr/lib/pkgconfig/tslib-1.0.pc
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}
10 changes: 10 additions & 0 deletions targets/mini2440_overlay/usr/lib/pkgconfig/tslib.pc
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 added targets/mini2440_overlay/usr/lib/ts/dejitter.so
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/lib/ts/input.so
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/lib/ts/linear.so
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/lib/ts/pthres.so
Binary file not shown.
Binary file added targets/mini2440_overlay/usr/lib/ts/variance.so
Binary file not shown.

0 comments on commit 07a28fb

Please sign in to comment.