增加ota文件系统编译方法;(注意每次swupdate_make_recovery_img需要删除根目录和./lichee/linux下的.config和.config.old)

This commit is contained in:
lijunliang
2024-06-05 16:39:59 +08:00
parent 36028ad52e
commit 6d51adb4db
75 changed files with 11872 additions and 73 deletions

View File

@@ -0,0 +1,414 @@
hook_args.HookArgsDefault [
{
name "LINEOUT Switch"
preserve true
optional true
value 1
}
{
name "SPK Switch"
preserve true
optional true
value 1
}
{
name "LINEOUT Output Select"
preserve true
optional true
value "differ" #value=1, "single" value=0
}
# {
# name "LINEOUT volume"
# preserve true
# optional true
# value 31
# }
{
name "MIC1 Switch"
preserve true
optional true
value 1
}
{
name "MIC1 Input Select"
preserve true
optional true
value "differ" #value=0, "single" value=1
}
# {
# name "MIC1 gain volume"
# preserve true
# optional true
# value 31
# }
]
hook_args.HookArgsPlayback [
{
name "LINEOUT Switch"
preserve true
optional true
value 1
}
{
name "SPK Switch"
preserve true
optional true
value 1
}
{
name "LINEOUT Output Select"
preserve true
optional true
value "differ"
}
# {
# name "LINEOUT volume"
# preserve true
# optional true
# value 31
# }
]
hook_args.HookArgsCapture [
{
name "MIC1 Switch"
preserve true
optional true
value 1
}
{
name "MIC1 Input Select"
preserve true
optional true
value "differ"
}
# {
# name "MIC1 gain volume"
# preserve true
# optional true
# value 31
# }
]
pcm.!default {
type hooks
slave {
pcm {
type asym
playback.pcm "hw:{CARD=audiocodec, DEV=0}"
capture.pcm "hw:0,0"
}
}
hooks.0 {
type ctl_elems
hook_args HookArgsDefault
}
}
pcm.PlaybackRateDmix {
@args [ SAMPLERATE CHNNUM PERIODSIZE ]
@args.SAMPLERATE {
type integer
default 16000
}
@args.CHNNUM {
type integer
default 1
}
@args.PERIODSIZE {
type integer
default 960 #1024
}
type plug
slave.pcm {
type softvol
slave.pcm {
type hooks
slave.pcm {
type dmix
ipc_key 1111
ipc_perm 0666
slave {
pcm "hw:0,0"
format S16_LE
rate $SAMPLERATE
channels $CHNNUM
period_size $PERIODSIZE
periods 8
}
}
hooks.0 {
type ctl_elems
hook_args HookArgsPlayback
}
}
control {
name "Soft Volume Master"
card audiocodec
count 1
}
min_dB -26.0
max_dB 25.0
resolution 256
}
rate_converter "linear" #"speexrate"
}
#pcm.resample rely on alsa-plugin and libspeexdsp. Select them in menuconfig if we want to use plugin pcm.resample.
pcm.resample {
type plug
slave {
pcm "hw:0,0"
format S16_LE
rate 16000
channels 1
}
rate_converter "speexrate"
}
pcm.CaptureMic Capture1MicHard
# I2SRTX's I2S_SAMPLERATE and I2S_CHNNUM must be same to PlaybackRateDmix's SAMPLERATE and CHNNUM!
pcm.I2SRTX {
@args [ I2S_SAMPLERATE I2S_CHNNUM ]
@args.I2S_SAMPLERATE {
type integer
default 16000
}
@args.I2S_CHNNUM {
type integer
default 1
}
type hooks
slave.pcm {
type plug
slave {
pcm "hw:snddaudio0,0"
channels $I2S_CHNNUM
rate $I2S_SAMPLERATE
}
}
hooks.0 {
type ctl_elems
hook_args [
{
name "loopback debug"
preserve true
optional true
value 1
}
]
}
}
#pcm.CaptureI2SRX {
# type hooks
# slave.pcm "hw:snddaudio0,0"
# hooks.0 {
# type ctl_elems
# hook_args [
# {
# name "loopback debug"
# preserve true
# optional true
# value 1
# }
# ]
# }
#}
#pcm_slave.slaveCap {
# @args [ PCMID CHNNUM ]
# @args.PCMID {
# type string
# }
# @args.CHNNUM {
# type integer
# }
# pcm $PCMID
# channels $CHNNUM
#}
#pcm_slave.slaveMultiCapture {
# pcm {
# type multi
# slaves {
# a "slaveCap:CaptureMic,1"
# b "slaveCap:CaptureI2SRX,1"
# }
# bindings {
# 0 {slave a channel 0}
# 1 {slave b channel 0}
# }
# }
#}
#pcm.CaptureDouble {
# type plug
# slave slaveMultiCapture
# ttable.0.0 1
# ttable.1.1 1
#}
#we define pcm capture plugin naming convention:
#pcm.Capture<n>Mic:<SampleRate>, <n>: the number of MIC. It can auto convert to indicated channels. <SampleRate>: set sample rate to Hardware PCM.
#pcm.Capture<n>MicPlusAec, if enable aec, add PlusAec. It forbids to auto convert to multi channels because of aec.
# ref to GenerateCaptureIdentifier() in [audio_hw.c]
#e.g.:
#pcm.Capture1Mic:16000
#pcm.Capture1MicPlusAec
#pcm.Capture2Mic:16000
#pcm.Capture2MicPlusAec
pcm.Capture1Mic {
@args [ SAMPLERATE ]
@args.SAMPLERATE {
type integer
default 16000
}
type hooks
slave.pcm {
type plug
slave {
pcm "hw:0,0"
channels 1
rate $SAMPLERATE
}
}
hooks.0 {
type ctl_elems
hook_args HookArgsCapture
}
}
pcm.Capture1MicHard {
type hooks
slave.pcm "hw:0,0"
hooks.0 {
type ctl_elems
hook_args HookArgsCapture
}
}
pcm.Capture1MicPlusAec {
type route
slave.pcm {
type multi
slaves {
a {pcm Capture1MicHard channels 1}
b {pcm I2SRTX channels 1}
}
bindings {
0 {slave a channel 0}
1 {slave b channel 0}
}
}
ttable.0.0 1
ttable.1.1 1
}
pcm.Capture2Mic {
@args [ SAMPLERATE ]
@args.SAMPLERATE {
type integer
default 16000
}
type hooks
slave.pcm {
type plug
slave {
pcm "hw:0,0"
channels 2
rate $SAMPLERATE
}
}
hooks.0 {
type ctl_elems
hook_args [
{
name "MIC1 Switch"
preserve true
optional true
value 1
}
{
name "MIC1 Input Select"
preserve true
optional true
value "differ"
}
{
name "MIC2 Switch"
preserve true
optional true
value 1
}
{
name "MIC2 Input Select"
preserve true
optional true
value "differ"
}
]
}
}
pcm.Capture2MicHard {
type hooks
slave.pcm "hw:0,0"
hooks.0 {
type ctl_elems
hook_args [
{
name "MIC1 Switch"
preserve true
optional true
value 1
}
{
name "MIC1 Input Select"
preserve true
optional true
value "differ"
}
{
name "MIC2 Switch"
preserve true
optional true
value 1
}
{
name "MIC2 Input Select"
preserve true
optional true
value "differ"
}
]
}
}
pcm.Capture2MicPlusAec {
type route
slave.pcm {
type multi
slaves {
a {pcm Capture2MicHard channels 2}
b {pcm I2SRTX channels 1}
}
bindings {
0 {slave a channel 0}
1 {slave a channel 1}
2 {slave b channel 0}
}
}
ttable.0.0 1
ttable.1.1 1
ttable.2.2 1
}
pcm.eq {
type awequal
slave.pcm "hw:0,0"
config_file "/etc/awequal.conf"
tuning_support true
verbose true
}

View File

@@ -0,0 +1,46 @@
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
# Futhermore, if the Flash sector size is omitted, this value is assumed to
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
# NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors
# /dev/mtd1 0x0000 0x4000 0x4000
# /dev/mtd2 0x0000 0x4000 0x4000
# MTD SPI-dataflash example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd5 0x4200 0x4200
#/dev/mtd6 0x4200 0x4200
# NAND example
#/dev/mtd0 0x4000 0x4000 0x20000 2
# On a block device a negative offset is treated as a backwards offset from the
# end of the device/partition, rather than a forwards offset from the start.
# Block device example
#/dev/mmcblk0 0xc0000 0x20000
#/dev/mmcblk0 -0x20000 0x20000
# VFAT example
#/boot/uboot.env 0x0000 0x4000
# UBI volume
#/dev/ubi0_0 0x0 0x1f000 0x1f000
#/dev/ubi0_1 0x0 0x1f000 0x1f000
# UBI volume by name
#/dev/ubi0:env 0x0 0x1f000 0x1f000
#/dev/ubi0:env-redund 0x0 0x1f000 0x1f000
# Allwinner Tina
/dev/by-name/env 0x0000 0x1000
/dev/by-name/env-redund 0x0000 0x1000
# Allwinner Tina UBI volume
# /dev/ubi0:env 0x0 0x20000 0x20000
# /dev/ubi0:env-redund 0x0 0x20000 0x20000

View File

@@ -0,0 +1,50 @@
#!/bin/sh
#
# udev This is a minimal non-LSB version of a UDEV startup script. It
# was derived by stripping down the udev-058 LSB version for use
# with buildroot on embedded hardware using Linux 2.6.34+ kernels.
#
# You may need to customize this for your system's resource limits
# (including startup time!) and administration. For example, if
# your early userspace has a custom initramfs or initrd you might
# need /dev much earlier; or without hotpluggable busses (like USB,
# PCMCIA, MMC/SD, and so on) your /dev might be static after boot.
#
# This script assumes your system boots right into the eventual root
# filesystem, and that init runs this udev script before any programs
# needing more device nodes than the bare-bones set -- /dev/console,
# /dev/zero, /dev/null -- that's needed to boot and run this script.
#
# Check for missing binaries
UDEV_BIN=/sbin/udevd
test -x $UDEV_BIN || exit 5
# Check for config file and read it
UDEV_CONFIG=/etc/udev/udev.conf
test -r $UDEV_CONFIG || exit 6
. $UDEV_CONFIG
case "$1" in
start)
printf "Populating ${udev_root:-/dev} using udev: "
printf '\000\000\000\000' > /proc/sys/kernel/hotplug
$UDEV_BIN -d || (echo "FAIL" && exit 1)
udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
udevadm settle --timeout=30 || echo "udevadm settle failed"
echo "done"
;;
stop)
# Stop execution of events
udevadm control --stop-exec-queue
killall udevd
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0

View File

@@ -0,0 +1,34 @@
#!/bin/sh
#
# Start wifi_deamon....
#
start() {
printf "Starting wifi_deamon....: "
#wifi_daemon
#sleep 0.2
#wifi -o sta
#wifi -a enable
}
stop() {
printf "Stopping wifi_deamon: "
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@@ -0,0 +1,36 @@
#!/bin/sh
#
# Load fat modules....
#
MODULES_DIR="/lib/modules/`uname -r`"
start() {
printf "Load fat modules\n"
insmod $MODULES_DIR/fat.ko
insmod $MODULES_DIR/vfat.ko
}
stop() {
printf "Unload fat modules\n"
rmmod $MODULES_DIR/fat.ko
rmmod $MODULES_DIR/vfat.ko
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@@ -0,0 +1,38 @@
#!/bin/sh
#
# Load mmc modules....
#
MODULES_DIR="/lib/modules/`uname -r`"
start() {
printf "Load mmc modules\n"
#insmod $MODULES_DIR/mmc_core.ko
#insmod $MODULES_DIR/mmc_block.ko
#insmod $MODULES_DIR/sunxi_mmc_host.ko
}
stop() {
printf "Unload mmc modules\n"
#rmmod $MODULES_DIR/mmc_core.ko
#rmmod $MODULES_DIR/block.ko
#rmmod $MODULES_DIR/sunxi_mmc_host.ko
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@@ -0,0 +1,117 @@
#!/bin/sh
echo "------run rc.final file-----"
#echo "insmod wifi modules"
#insmod /lib/modules/3.4.39/8723ds.ko
#insmod /lib/modules/3.4.39/bcmdhd.ko
#insmod /lib/modules/3.4.39/xradio_mac.ko
#insmod /lib/modules/3.4.39/xradio_core.ko
#insmod /lib/modules/3.4.39/xradio_wlan.ko
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
ulimit -c unlimited
echo /mnt/extsd/coredump-%e-%p-%s-%t > /proc/sys/kernel/core_pattern
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
LOOP_CNT=0
SD_DEV=
while [ 1 ];do
if [ $LOOP_CNT -eq 3 ];then
echo wait SD Card ready timeout
break;
fi
if [ -b /dev/mmcblk1p1 ];then
SD_DEV=/dev/mmcblk1p1
break;
elif [ -b /dev/mmcblk1 ];then
SD_DEV=/dev/mmcblk1
break;
elif [ -b /dev/mmcblk0p1 ];then
SD_DEV=/dev/mmcblk0p1
break;
elif [ -b /dev/mmcblk0 ];then
SD_DEV=/dev/mmcblk0
break;
else
echo SD Card not ready, wait
fi
LOOP_CNT=$(($LOOP_CNT+1))
sleep 1
done
# repair sd card file
if [ "x$SD_DEV" != "x" ]; then
echo SD Card is ready
if [ -f /usr/bin/fsck_msdos ]; then
/usr/bin/fsck_msdos -pfS $SD_DEV
fi
fi
if [ -z "$(grep '\<vfat\>' /proc/mounts)" ]; then
! /bin/mount -t vfat /dev/mmcblk0 /mnt/extsd 2>/dev/null &&
/bin/mount -t vfat /dev/mmcblk0p1 /mnt/extsd
fi
sleep 1
if [ -n "$(grep '/mnt/extsd' /proc/mounts)" ]; then
echo "start mv stream..."
ls /tmp/
rm -rf /mnt/extsd/stream*.h264
rm -rf /mnt/extsd/data*.jpg
mv /tmp/stream*.h264 /mnt/extsd/
mv /tmp/data*.jpg /mnt/extsd/
echo "---/mnt/extsd/---"
ls /mnt/extsd/
fi
echo "run_usb_adb start!"
run_usb_adb
#echo "sample_virvi2vo start!"
#/usr/bin/sample_virvi2vo -path /usr/bin/sample_virvi2vo_v851s_sc1721v_dual.conf &
#catch jpg 0
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -trd 1 -snd 1 -s1 800x608 -f1 0 -pf1 4 -vn1 1
#catch jpg 1
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -snd 1 -s1 800x608 -f1 0 -pf1 4 -trd 1 -vn1 1 -vn2 5
#set ir
echo 6 > /sys/class/pwm/pwmchip0/export
echo 50000 > /sys/class/pwm/pwmchip0/pwm6/period
echo 30000 > /sys/class/pwm/pwmchip0/pwm6/duty_cycle
#disable ir
echo 0 > /sys/class/pwm/pwmchip0/pwm6/enable
#enable ir
#echo 1 > /sys/class/pwm/pwmchip0/pwm6/enable
#/usr/bin/rt_media-uvc -D 0 -b 0 -d 2 &
#run_otg
#sleep 2
#/usr/bin/rt_media-uvc -D 0 -d 2 &

View File

@@ -0,0 +1,105 @@
#!/bin/sh
echo "------run rc.final file-----"
#echo "insmod wifi modules"
#insmod /lib/modules/3.4.39/8723ds.ko
#insmod /lib/modules/3.4.39/bcmdhd.ko
#insmod /lib/modules/3.4.39/xradio_mac.ko
#insmod /lib/modules/3.4.39/xradio_core.ko
#insmod /lib/modules/3.4.39/xradio_wlan.ko
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
ulimit -c unlimited
echo /mnt/extsd/coredump-%e-%p-%s-%t > /proc/sys/kernel/core_pattern
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
#LOOP_CNT=0
#SD_DEV=
#while [ 1 ];do
# if [ $LOOP_CNT -eq 3 ];then
# echo wait SD Card ready timeout
# break;
# fi
# if [ -b /dev/mmcblk1p1 ];then
# SD_DEV=/dev/mmcblk1p1
# break;
# elif [ -b /dev/mmcblk1 ];then
# SD_DEV=/dev/mmcblk1
# break;
# elif [ -b /dev/mmcblk0p1 ];then
# SD_DEV=/dev/mmcblk0p1
# break;
# elif [ -b /dev/mmcblk0 ];then
# SD_DEV=/dev/mmcblk0
# break;
# else
# echo SD Card not ready, wait
# fi
# LOOP_CNT=$(($LOOP_CNT+1))
# sleep 1
#done
#
# repair sd card file
#if [ "x$SD_DEV" != "x" ]; then
# echo SD Card is ready
#
# if [ -f /usr/bin/fsck_msdos ]; then
# /usr/bin/fsck_msdos -pfS $SD_DEV
# fi
#fi
#if [ -z "$(grep '\<vfat\>' /proc/mounts)" ]; then
# ! /bin/mount -t vfat /dev/mmcblk0 /mnt/extsd 2>/dev/null &&
# /bin/mount -t vfat /dev/mmcblk0p1 /mnt/extsd
#fi
#sleep 1
#echo "start mv stream..."
#ls /tmp/
#rm -rf /mnt/extsd/stream*.h264
#rm -rf /mnt/extsd/data*.jpg
#mv /tmp/stream*.h264 /mnt/extsd/
#mv /tmp/data*.jpg /mnt/extsd/
#echo "---/mnt/extsd/---"
#ls /mnt/extsd/
echo 160 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio160/direction
echo 0 > /sys/class/gpio/gpio160/value
echo 0 > /sys/class/pwm/pwmchip0/export
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 40000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
echo 1 > /sys/class/gpio/gpio160/value
run_usb_adb
setusbconfig rndis
ifconfig usb0 up
ifconfig usb0 192.168.2.100
# /mnt/UDISK/rt_media-uvc &

View File

@@ -0,0 +1,43 @@
#!/bin/sh
echo "------run rc.modules file-----"
MODULES_DIR="/lib/modules/`uname -r`"
#disp
#echo "------insmod display modules start-----"
#insmod /lib/modules/4.9.191/fb.ko
#insmod /lib/modules/4.9.191/disp.ko
#wifi
#echo "------insmod wifi modules xr806 start-----"
#insmod /lib/modules/4.9.191/xr806.ko
#insmod /lib/modules/4.9.191/vipcore.ko
#input
#echo "------insmod input modules start-----"
#insmod /lib/modules/4.9.191/input-core.ko
#insmod /lib/modules/4.9.191/evdev.ko
#audio
echo "------insmod audio modules start-----"
insmod $MODULES_DIR/soundcore.ko
insmod $MODULES_DIR/snd.ko
insmod $MODULES_DIR/snd-timer.ko
insmod $MODULES_DIR/snd-pcm.ko
insmod $MODULES_DIR/snd-pcm-dmaengine.ko
insmod $MODULES_DIR/snd-soc-core.ko
insmod $MODULES_DIR/snd_soc_sunxi_pcm.ko
insmod $MODULES_DIR/snd_soc_sunxi_component_rxsync.ko
insmod $MODULES_DIR/snd_soc_sunxi_aaudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_daudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
insmod $MODULES_DIR/snd_soc_sunxi_machine.ko
echo "------insmod audio modules end-----"
insmod $MODULES_DIR/rt-media.ko
insmod $MODULES_DIR/cst9220.ko
#ctp
#echo "------insmod ctp modules gslx680 start-----"
#insmod /lib/modules/4.9.191/gslX680new.ko
#l-sen
#echo "------insmod l-sen modules gpadc start-----"
#insmod /lib/modules/4.9.191/sunxi_gpadc.ko

View File

@@ -0,0 +1,4 @@
#!/bin/sh
echo "------run rc.preboot file-----"

View File

@@ -0,0 +1,28 @@
#!/bin/sh
# Stop all init scripts in /etc/init.d
# executing them in reversed numerical order.
#
for i in $(ls -r /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 stop
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i stop
;;
esac
done

View File

@@ -0,0 +1,39 @@
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# 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>:<runlevels>:<action>:<process>
#
# 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:/etc/preinit
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -t tmpfs tmpfs /run
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
#::sysinit:/etc/init.d/rcS
::sysinit:/etc/init.d/rcS boot
# Put a getty on the serial port
/dev/console::respawn:-/bin/sh
#ttyS0::respawn:/sbin/getty -n -L ttyS0 115200 vt100 -n -l /bin/sh # GENERIC_SERIAL
# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r

View File

@@ -0,0 +1,45 @@
#!/bin/sh
echo "------run profile file-----"
[ -f /etc/banner ] && cat /etc/banner
[ -e /tmp/.failsafe ] && cat /etc/banner.failsafe
fgrep -sq '/ overlay ro,' /proc/mounts && {
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
echo 'Please try to remove files from /overlay/upper/... and reboot!'
}
export PATH="%PATH%"
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w\$ '
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
ulimit -c unlimited
mount -t debugfs none /sys/kernel/debug
[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
[ -n "$FAILSAFE" ] || {
for FILE in /etc/profile.d/*.sh; do
[ -e "$FILE" ] && . "$FILE"
done
unset FILE
}
[ -x /bin/ll ] || alias ll='ls -al'
#export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_TSEVENTTYPE=input
export TSLIB_CONFFILE=/mnt/ts.conf
#export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
#export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CALIBFILE=/mnt/pointercal
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0

View File

@@ -0,0 +1,3 @@
KERNEL=="mmcblk[0-9]p[0-9]", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"
ACTION=="add", KERNEL=="mmc0:*", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"
ACTION=="remove", KERNEL=="mmc0:*", RUN+="/etc/udev/hotplug-tf.sh %k $env{ACTION}"

View File

@@ -0,0 +1,3 @@
KERNEL=="sda[0-9]", SUBSYSTEM=="block", SUBSYSTEM=="usb", RUN+="/etc/udev/usb_handle %k $env{ACTION}"
ACTION=="add|change", KERNEL=="sd*", RUN+="/etc/udev/usb_handle %k $env{ACTION}"
ACTION=="remove", KERNEL=="sd*", RUN+="/etc/udev/usb_handle %k $env{ACTION}"

View File

@@ -0,0 +1,18 @@
#!/bin/sh
echo "hotplug usb $(date)"#>>/run/udev.log
echo "[$#] $0, $1, $2"#>>/run/udev.log
if [ "$#" != "2" ];then
echo " !! param err." #>> /run/udev.log
exit 1
fi
if [ "$2" == "remove" ];then
echo " <==umount"#>> /run/udev.log
umount /mnt/exUDISK
fi
if [ "$2" == "add" ];then
echo " <==mount"#>> /run/udev.log
mount -t vfat /dev/sda1 /mnt/exUDISK
fi

View File

@@ -0,0 +1,105 @@
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# Values shown are defaults
# The start and end of the IP lease block
start 172.168.10.100
end 172.168.10.254
# The interface that udhcpd will use
#interface wlan0
interface usb0
# The maximum number of leases (includes addresses reserved
# by OFFER's, DECLINE's, and ARP conflicts). Will be corrected
# if it's bigger than IP lease block, but it ok to make it
# smaller than lease block.
#max_leases 254
# The time period at which udhcpd will write out a dhcpd.leases
# file. If this is 0, udhcpd will never automatically write a
# lease file. Specified in seconds.
#auto_time 7200
# The amount of time that an IP will be reserved (leased to nobody)
# if a DHCP decline message is received (seconds)
#decline_time 3600
# The amount of time that an IP will be reserved
# if an ARP conflict occurs (seconds)
#conflict_time 3600
# How long an offered address is reserved (seconds)
#offer_time 60
# If client asks for lease below this value, it will be rounded up
# to this value (seconds)
#min_lease 60
# The location of the leases file
#lease_file /var/lib/misc/udhcpd.leases
# The location of the pid file
#pidfile /var/run/udhcpd.pid
# Every time udhcpd writes a leases file, the below script will be called
#notify_file # default: no script
#notify_file dumpleases # useful for debugging
# The following are bootp specific options
# next server to use in bootstrap
#siaddr 192.168.0.22 # default: 0.0.0.0 (none)
# tftp server name
#sname zorak # default: none
# tftp file to download (e.g. kernel image)
#boot_file /var/nfs_root # default: none
# Static leases map
#static_lease 00:60:08:11:CE:4E 192.168.0.54
#static_lease 00:60:08:11:CE:3E 192.168.0.44
# The remainder of options are DHCP options and can be specified with the
# keyword 'opt' or 'option'. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines.
# Examples:
opt dns 172.168.10.2 172.168.10.10
option subnet 255.255.255.0
opt router 172.168.10.1
opt wins 172.168.10.1
option dns 129.219.13.81 # appended to above DNS servers for a total of 3
option domain local
option lease 864000 # default: 10 days
# Arbitrary option in hex form:
option 0x08 01020304 # option 8: "cookie server IP addr: 1.2.3.4"
# Currently supported options (for more info, see options.c):
#opt lease NUM
#opt subnet IP
#opt broadcast IP
#opt router IP_LIST
#opt ipttl NUM
#opt mtu NUM
#opt hostname STRING # client's hostname
#opt domain STRING # client's domain suffix
#opt search STRING_LIST # search domains
#opt nisdomain STRING
#opt timezone NUM # (localtime - UTC_time) in seconds. signed
#opt tftp STRING # tftp server name
#opt bootfile STRING # tftp file to download (e.g. kernel image)
#opt bootsize NUM # size of that file
#opt rootpath STRING # (NFS) path to mount as root fs
#opt wpad STRING
#opt serverid IP # default: server's IP
#opt message STRING # error message (udhcpd sends it on success too)
# Options specifying server(s)
#opt dns IP_LIST
#opt wins IP_LIST
#opt nissrv IP_LIST
#opt ntpsrv IP_LIST
#opt lprsrv IP_LIST
#opt swapsrv IP
# Obsolete options, no longer supported
#opt logsrv IP_LIST # 704/UDP log server (not syslog!)
#opt namesrv IP_LIST # IEN 116 name server, obsolete (August 1979!!!)
#opt cookiesrv IP_LIST # RFC 865 "quote of the day" server, rarely (never?) used
#opt timesrv IP_LIST # RFC 868 time server, rarely (never?) used

View File

@@ -0,0 +1,7 @@
ctrl_interface=/var/log/wpa_supplicant
update_config=1
network={
ssid="AWTest"
psk="1qaz@WSX"
}