Skip to content

Commit

Permalink
Merge branch 'ssh-support'
Browse files Browse the repository at this point in the history
* 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を無視する 恒久対応:暇があったら
  • Loading branch information
mnakada committed Nov 17, 2021
2 parents 2723159 + 03c2f16 commit b5688ff
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 366 deletions.
1 change: 1 addition & 0 deletions atomcam_configs/atomhack.ver
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.6
8 changes: 6 additions & 2 deletions atomcam_configs/overlay_rootfs/etc/init.d/S45ntpd
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@

case "$1" in
start)
logger -s "Starting ntpd: "
(
while ! ifconfig wlan0 | grep 'inet addr'
while ! pidof udhcpc > /dev/null 2>&1
do
sleep 1
done
while ! ping -c 1 time.google.com > /dev/null 2>&1
do
sleep 1
done
logger -s "Starting ntpd: "
/usr/sbin/ntpd
[ $? == 0 ] && logger -s "OK" || logger -s "FAIL"
) &
Expand Down
2 changes: 1 addition & 1 deletion atomcam_configs/overlay_rootfs/etc/init.d/S58rtspserver
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RTSPSERVER=$(awk -F "=" '/RTSPSERVER *=/ {print $2}' $HACK_INI)
case "$1" in
start)
echo "setup atomcam environment"
if [ $RTSPSERVER = "on" ]; then
if [ "$RTSPSERVER" = "on" ]; then
/scripts/rtspserver.sh on
fi
;;
Expand Down
4 changes: 2 additions & 2 deletions atomcam_configs/overlay_rootfs/etc/init.d/S91smb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ start() {

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

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

Expand Down
7 changes: 5 additions & 2 deletions atomcam_configs/overlay_rootfs/scripts/atom_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

export PATH=/tmp/system/bin:/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
export LD_LIBRARY_PATH=/thirdlib:/system/lib:/tmp

sleep 1
insmod /system/driver/tx-isp-t31.ko isp_clk=100000000
insmod /system/driver/exfat.ko
insmod /system/driver/audio.ko spk_gpio=-1
insmod /system/driver/avpu.ko
insmod /system/driver/sinfo.ko
insmod /system/driver/sample_pwm_core.ko
insmod /system/driver/sample_pwm_hal.ko
insmod /system/driver/mmc_detect_test.ko || VENDERID="0x024c"
insmod /system/driver/speaker_ctl.ko

if [ "$VENDERID" = "" ]; then
VENDERID="0x024c"
if [ -f /system/driver/mmc_detect_test.ko ]; then
insmod /system/driver/mmc_detect_test.ko
while [ ! -f /sys/bus/mmc/devices/mmc1\:0001/mmc1\:0001\:1/vendor ]; do
sleep 0.1
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ awk '/appver/ { print }' /atom/configs/app.ver
awk '/PRODUCT_MODEL/ { print }' /atom/configs/.product_config
echo "HOSTNAME=`hostname`"
echo "KERNELVER=`uname -a`"
echo "ATOMHACKVER=`cat /etc/atomhack.ver`"
cat /media/mmc/hack.ini
Loading

0 comments on commit b5688ff

Please sign in to comment.