Skip to content

Commit b5688ff

Browse files
committed
Merge branch 'ssh-support'
* ssh-support: atomcam_toolsのverもwebUIに表示するよう修正 rc scriptの下記問題の修正 - ntpd: 起動に失敗する。DNSが引けるようになる前にntpdを起動してエラーで落ちる - ntspserver: onにしていない時にエラー表示(表示だけの問題) - samba: offの時にshutdownでエラー表示(表示だけの問題) - mmc_detect_test.koが存在していないとエラー表示(表示だけの問題) kernel exception対応 原因:起動後60秒くらいのタイミングでSD-Cardのcd-pin detect interruptが発生して、jzmmc driverが再初期化することがある そのため、swap,rootfsがr/w不可になりExceptionが発生している 多分、タイミング的にwifiの接続完了くらいなのでmmc1の方のdriverがGPIOの設定等で悪さしてるのかも 暫定対応:初回以降のcd-pin detectを無視する 恒久対応:暇があったら
2 parents 2723159 + 03c2f16 commit b5688ff

File tree

13 files changed

+66
-366
lines changed

13 files changed

+66
-366
lines changed

atomcam_configs/atomhack.ver

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.6

atomcam_configs/overlay_rootfs/etc/init.d/S45ntpd

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55

66
case "$1" in
77
start)
8-
logger -s "Starting ntpd: "
98
(
10-
while ! ifconfig wlan0 | grep 'inet addr'
9+
while ! pidof udhcpc > /dev/null 2>&1
1110
do
1211
sleep 1
1312
done
13+
while ! ping -c 1 time.google.com > /dev/null 2>&1
14+
do
15+
sleep 1
16+
done
17+
logger -s "Starting ntpd: "
1418
/usr/sbin/ntpd
1519
[ $? == 0 ] && logger -s "OK" || logger -s "FAIL"
1620
) &

atomcam_configs/overlay_rootfs/etc/init.d/S58rtspserver

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RTSPSERVER=$(awk -F "=" '/RTSPSERVER *=/ {print $2}' $HACK_INI)
99
case "$1" in
1010
start)
1111
echo "setup atomcam environment"
12-
if [ $RTSPSERVER = "on" ]; then
12+
if [ "$RTSPSERVER" = "on" ]; then
1313
/scripts/rtspserver.sh on
1414
fi
1515
;;

atomcam_configs/overlay_rootfs/etc/init.d/S91smb

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ start() {
2121

2222
stop() {
2323
printf "Shutting down SMB services: "
24-
kill -9 `pidof smbd`
24+
[ pidof smbd ] && kill -9 `pidof smbd`
2525
[ $? = 0 ] && echo "OK" || echo "FAIL"
2626

2727
printf "Shutting down NMB services: "
28-
kill -9 `pidof nmbd`
28+
[ pidof nmbd ] && kill -9 `pidof nmbd`
2929
[ $? = 0 ] && echo "OK" || echo "FAIL"
3030
}
3131

atomcam_configs/overlay_rootfs/scripts/atom_init.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22

33
export PATH=/tmp/system/bin:/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
44
export LD_LIBRARY_PATH=/thirdlib:/system/lib:/tmp
5+
6+
sleep 1
57
insmod /system/driver/tx-isp-t31.ko isp_clk=100000000
68
insmod /system/driver/exfat.ko
79
insmod /system/driver/audio.ko spk_gpio=-1
810
insmod /system/driver/avpu.ko
911
insmod /system/driver/sinfo.ko
1012
insmod /system/driver/sample_pwm_core.ko
1113
insmod /system/driver/sample_pwm_hal.ko
12-
insmod /system/driver/mmc_detect_test.ko || VENDERID="0x024c"
1314
insmod /system/driver/speaker_ctl.ko
1415

15-
if [ "$VENDERID" = "" ]; then
16+
VENDERID="0x024c"
17+
if [ -f /system/driver/mmc_detect_test.ko ]; then
18+
insmod /system/driver/mmc_detect_test.ko
1619
while [ ! -f /sys/bus/mmc/devices/mmc1\:0001/mmc1\:0001\:1/vendor ]; do
1720
sleep 0.1
1821
done

atomcam_configs/overlay_rootfs/var/www/cgi-bin/hack_ini.cgi

+1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ awk '/appver/ { print }' /atom/configs/app.ver
3939
awk '/PRODUCT_MODEL/ { print }' /atom/configs/.product_config
4040
echo "HOSTNAME=`hostname`"
4141
echo "KERNELVER=`uname -a`"
42+
echo "ATOMHACKVER=`cat /etc/atomhack.ver`"
4243
cat /media/mmc/hack.ini

0 commit comments

Comments
 (0)