ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
gadget:atomcam2

client

iOS/Android/Windows(β)/macOS(β)がある.Win/MacはAtomCam初代のみの対応.

Android版はよく繋がらなくなる.アプリを強制終了して起動し直すと治る.

ip

$ sudo nmap -sP 192.168.68.1-
  :
Nmap scan report for 192.168.68.107
Host is up (0.068s latency).
MAC Address: 7C:DD:E9:FF:FF:FF (Atom Tech)

Androidアプリで録画

microSDを接続して無くても一応いくつかの機能は使える. Androidアプリから静止画や動画が撮影可能.ただし手元の環境では動画撮影で電源に繋いだAndroidスマホのバッテリーがどんどん減っていくのでスポットでの利用に.

microSD card

32GB迄.相性があるよう. 端子をレンズ側に向けて差し込む.プッシュロック式.差し込んだあとちゃんと蓋を閉じる.

1つ目のパーティションしか認識しない.アプリから初期化すると1つ目のパーティションだけがformatされた.

自転車や自動車で撮影

動きのある動画は無理がある.一時停止時はきれいだけど……

NAS転送機能

microSDが必要.
smb1を有効にしないといけないよう.
* NAS転送\(samba設定\) \- Tips \- ATOM コミュニティ

手元のsambaは認証に失敗してしまう?未解決

Scriptを動かす

を参考にこんな感じのファイル,ディレクトリを作成

$ tree -a
.
├── Test
│   ├── checksum
│   ├── factoryTestProcess
│   ├── singleBoadTest
│   └── test.sh
└── factory

1 directory, 5 files

Test/test.sh をこんな感じで書いて

$ cat Test/test.sh
#!/bin/sh

echo "========== It works! ==========="
/system/bin/hl_client &
/system/bin/iCamera_app &

#ここ以降に走らせせたい処理を書く

実行権をつけて

$ chmod +x Test/test.sh

Test.tar としてtarで固める

$ tar cfv Test.tar Test factory

この Test.tar をAtomCam2に差し込むmicroSD cardの1パーティション目の / にcpしてAtomCam2起動

:
:

echo "telnetd start."
/sbin/telnetd -l /bin/sh -p 8023 &

としてみたんだけどうまく動かない?

atomcam_toolを試すと動作する.このTest.tarを展開してTest/test.shを書き直してみるとやはり動かない?

debug printを入れてsdに書き出し( /media/mmc )してみるとscript自体は動いているが,telnetdがうまく行っていないよう. PATHをlsで確認して/sbin/telsetd としてみたりしたけどうまく行かない.

sleepを挟むとうまく行った.(Network接続後に叩かないといけない?)

Twitterで iCamera_app がtelnetd killしてると教えてもらいました.

$ sudo nmap -sP 192.168.68.1-
--snip--
Nmap scan report for 192.168.68.106
Host is up (0.0037s latency).
MAC Address: 7C:DD:E9:02:84:9E (Atom Tech)
--snip--
$ telnet 192.168.68.106 8023
Trying 192.168.68.106...
Connected to 192.168.68.106.
Escape character is '^]'.
/sys/devices/virtual/gpio/gpio77 # 
# uname -a
/bin/sh: uname: not found
# cat /proc/version 
Linux version 3.10.14__isvp_swan_1.0__ (xiaoyongjian@xiaoyongjian-virtual-machine) (gcc version 4.7.2 (Ingenic r2.3.3 2016.12) ) #4 PREEMPT Fri Jan 8 11:40:51 CST 2021
# cat /proc/cmdline 
console=ttyS1,115200n8 mem=80M@0x0 rmem=48M@0x5000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
# cat /proc/cpuinfo
system type             : Swan
machine                 : Unknown
processor               : 0
cpu model               : Ingenic Xburst V0.0  FPU V0.0
BogoMIPS                : 1391.00
wait instruction        : yes
microsecond timers      : no
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 1, address/irw mask: [0x0fff]
isa                     : mips32r1
ASEs implemented        :
shadow register sets    : 1
kscratch registers      : 7
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

Hardware                : isvp
Serial                  : 00000000 00000000 00000000 00000000
# free
             total         used         free       shared      buffers
Mem:         75084        43552        31532            0          424
-/+ buffers:              43128        31956
Swap:            0            0            0
# cat /proc/meminfo 
MemTotal:          75084 kB
MemFree:           32744 kB
Buffers:             424 kB
Cached:            13660 kB
SwapCached:            0 kB
Active:            23384 kB
Inactive:           7416 kB
Active(anon):      16796 kB
Inactive(anon):     5520 kB
Active(file):       6588 kB
Inactive(file):     1896 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         16780 kB
Mapped:            11056 kB
Shmem:              5548 kB
Slab:               5384 kB
SReclaimable:       1232 kB
SUnreclaim:         4152 kB
KernelStack:        1056 kB
PageTables:          604 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       37540 kB
Committed_AS:     718244 kB
VmallocTotal:    1048372 kB
VmallocUsed:        2540 kB
VmallocChunk:    1043252 kB
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 3712      3712         0 100% /
tmpfs                    37540         8     37532   0% /dev
tmpfs                    37540       912     36628   2% /tmp
tmpfs                    37540         4     37536   0% /run
media                    37540         0     37540   0% /media
/dev/mtdblock3            3712      3712         0 100% /system
/dev/mtdblock6             384       104       280  27% /configs
/dev/mmcblk0p1        15694864   9549616   6145248  61% /media/mmc
# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
media on /media type tmpfs (rw,relatime)
/dev/mtdblock3 on /system type squashfs (ro,relatime)
/dev/mtdblock6 on /configs type jffs2 (rw,relatime)
/dev/mmcblk0p1 on /media/mmc type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
# cat /proc/filesystems 
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   pipefs
nodev   anon_inodefs
nodev   rpc_pipefs
nodev   configfs
nodev   devpts
        squashfs
nodev   ramfs
        vfat
nodev   nfs
nodev   jffs2
nodev   mtd_inodefs
        exfat
# lsmod 
sensor_gc2053_t31 11972 0 - Live 0xc04cf000 (O)
atbm603x_wifi_sdio 607515 0 - Live 0xc0419000 (O)
speaker_ctl 3040 0 - Live 0xc034d000 (O)
mmc_detect_test 616 0 - Live 0xc0346000 (O)
sample_pwm_hal 3784 0 - Live 0xc0340000 (O)
sample_pwm_core 2856 1 - Live 0xc0339000 (O)
sinfo 16620 0 - Live 0xc032e000 (O)
avpu 14329 2 - Live 0xc031e000 (O)
audio 73342 2 - Live 0xc02fe000 (O)
exfat 106704 0 - Live 0xc02c1000 (O)
tx_isp_t31 914365 1 sensor_gc2053_t31, Live 0xc019b000 (O)
# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:8023            0.0.0.0:*               LISTEN      
tcp    53484      0 192.168.68.104:38221    s3-ap-northeast-1-r-w.amazonaws.com:443 ESTABLISHED 
tcp        0      0 192.168.68.104:48594    ec2-54-150-251-166.ap-northeast-1.compute.amazonaws.com:443 TIME_WAIT   
tcp        0      0 192.168.68.104:48596    ec2-54-150-251-166.ap-northeast-1.compute.amazonaws.com:443 TIME_WAIT   
tcp    53500      0 192.168.68.104:58633    s3-ap-northeast-1-r-w.amazonaws.com:443 ESTABLISHED 
tcp        0      0 192.168.68.104:48595    ec2-54-150-251-166.ap-northeast-1.compute.amazonaws.com:443 TIME_WAIT   
tcp        0    137 192.168.68.104:8023     192.168.68.105:45224    ESTABLISHED 
tcp        0      0 192.168.68.104:48597    ec2-54-150-251-166.ap-northeast-1.compute.amazonaws.com:443 TIME_WAIT   
tcp        0      0 192.168.68.104:36748    ec2-52-197-220-91.ap-northeast-1.compute.amazonaws.com:8883 ESTABLISHED 
tcp        0      0 192.168.68.104:48598    ec2-54-150-251-166.ap-northeast-1.compute.amazonaws.com:443 TIME_WAIT   
tcp        0      0 localhost:60080         localhost:9999          ESTABLISHED 
tcp        0      0 localhost:9999          localhost:60080         ESTABLISHED 
udp        0      0 0.0.0.0:43934           0.0.0.0:*                           
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                       680 /var/run/wpa_supplicant/wlan0

dmesg

[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.14__isvp_swan_1.0__ (xiaoyongjian@xiaoyongjian-virtual-machine) (gcc version 4.7.2 (Ingenic r2.3.3 2016.12) ) #4 PREEMPT Fri Jan 8 11:40:51 CST 2021
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 RESET ERROR PC:801C7B44
[    0.000000] [<801c7b44>] __delay+0x4/0x10
[    0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[    0.000000] FPU revision is: 00b70000
[    0.000000] cgu_get_rate, parent = 1392000000, rate = 0, m = 0, n = 0, reg val = 0x081000ff
[    0.000000] cgu_get_rate, parent = 1392000000, rate = 0, m = 0, n = 0, reg val = 0x081000ff
[    0.000000] CCLK:1392MHz L2CLK:696Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 00516000 @ 00010000 (usable)
[    0.000000]  memory: 0003a000 @ 00526000 (usable after init)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 05000000 @ 00000000 (usable)
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x04ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x04ffffff]
[    0.000000] On node 0 totalpages: 20480
[    0.000000] free_area_init_node: node 0, pgdat 80523590, node_mem_map 81000000
[    0.000000]   Normal zone: 160 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 20480 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[    0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 20320
[    0.000000] Kernel command line: console=ttyS1,115200n8 mem=80M@0x0 rmem=48M@0x5000000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256K(boot),1984K(kernel),3904K(rootfs),3904K(app),1984K(kback),3904K(aback),384K(cfg),64K(para)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 74852k/81920k available (3944k kernel code, 7068k reserved, 1263k data, 232k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:358
[    0.000000] clockevents_config_and_register success.
[    0.000015] Calibrating delay loop... 1391.00 BogoMIPS (lpj=6955008)
[    0.087833] pid_max: default: 32768 minimum: 301
[    0.092688] Mount-cache hash table entries: 512
[    0.097594] Initializing cgroup subsys debug
[    0.101850] Initializing cgroup subsys freezer
[    0.108015] regulator-dummy: no parameters
[    0.112204] NET: Registered protocol family 16
[    0.126872] bio: create slab <bio-0> at 0
[    0.132326] jz-dma jz-dma: JZ SoC DMA initialized
[    0.137398] SCSI subsystem initialized
[    0.141252] usbcore: registered new interface driver usbfs
[    0.146797] usbcore: registered new interface driver hub
[    0.152211] usbcore: registered new device driver usb
[    0.157396]  (null): set:249  hold:250 dev=100000000 h=500 l=500
[    0.163474] media: Linux media interface: v0.10
[    0.168058] Linux video capture interface: v2.00
[    0.174070] Switching to clocksource jz_clocksource
[    0.179000] cfg80211: Calling CRDA to update world regulatory domain
[    0.185844] dwc2 otg probe start
[    0.185871] jz-dwc2 jz-dwc2: cgu clk gate get error
[    0.190752] DWC IN OTG MODE
[    0.194180] dwc2 dwc2: Keep PHY ON
[    0.197586] dwc2 dwc2: Using Buffer DMA mode
[    0.201873] dwc2 dwc2: Core Release: 3.00a
[    0.206067] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[    0.212393] dwc2 dwc2: new USB bus registered, assigned bus number 1
[    0.219449] hub 1-0:1.0: USB hub found
[    0.223182] hub 1-0:1.0: 1 port detected
[    0.227264] dwc2 dwc2: DWC2 Host Initialized
[    0.231551] dwc2 otg probe success
[    0.231681] NET: Registered protocol family 2
[    0.236447] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.243456] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.249930] TCP: Hash tables configured (established 1024 bind 1024)
[    0.256378] TCP: reno registered
[    0.259596] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.265537] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.272050] NET: Registered protocol family 1
[    0.276657] RPC: Registered named UNIX socket transport module.
[    0.282585] RPC: Registered udp transport module.
[    0.287402] RPC: Registered tcp transport module.
[    0.292120] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.298984] freq_udelay_jiffys[0].max_num = 10
[    0.303408] cpufreq 	udelay 	loops_per_jiffy	
[    0.307865] dwc2 dwc2: ID PIN CHANGED!
[    0.311668] 12000	 59956	 59956	
[    0.314887] 24000	 119913	 119913	
[    0.318343] 60000	 299784	 299784	
[    0.321774] 120000	 599569	 599569	
[    0.325305] 200000	 999282	 999282	
[    0.328923] 300000	 1498924	 1498924	
[    0.332552] 600000	 2997848	 2997848	
[    0.336335] 792000	 3957159	 3957159	
[    0.339968] 1008000	 5036385	 5036385	
[    0.343764] 1200000	 5995696	 5995696	
[    0.351299] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.357850] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[    0.363576] msgmni has been set to 146
[    0.368302] io scheduler noop registered
[    0.372224] io scheduler cfq registered (default)
[    0.378132] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[    0.385732] console [ttyS1] enabled, bootconsole disabled
[    0.399388] brd: module loaded
[    0.403880] loop: module loaded
[    0.407671] zram: Created 2 device(s) ...
[    0.411856] logger: created 256K log 'log_main'
[    0.417089] jz TCU driver register completed
[    0.421882] the id code = 1c7018, the flash name is EN25QH128A
[    0.427962] JZ SFC Controller for SFC channel 0 driver register
[    0.434088] 8 cmdlinepart partitions found on MTD device jz_sfc
[    0.440220] Creating 8 MTD partitions on "jz_sfc":
[    0.445166] 0x000000000000-0x000000040000 : "boot"
[    0.450510] 0x000000040000-0x000000230000 : "kernel"
[    0.456011] 0x000000230000-0x000000600000 : "rootfs"
[    0.461467] 0x000000600000-0x0000009d0000 : "app"
[    0.466718] 0x0000009d0000-0x000000bc0000 : "kback"
[    0.472110] 0x000000bc0000-0x000000f90000 : "aback"
[    0.477549] 0x000000f90000-0x000000ff0000 : "cfg"
[    0.482750] 0x000000ff0000-0x000001000000 : "para"
[    0.488090] SPI NOR MTD LOAD OK
[    0.491381] tun: Universal TUN/TAP device driver, 1.6
[    0.496620] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.503087] usbcore: registered new interface driver zd1201
[    0.508883] usbcore: registered new interface driver r8152
[    0.514576] usbcore: registered new interface driver asix
[    0.520244] usbcore: registered new interface driver usb-storage
[    0.526546] usbcore: registered new interface driver usbserial
[    0.532617] usbcore: registered new interface driver usb_ch34x
[    0.538654] ch34x: USB to serial driver for USB to serial chip ch340, ch341, etc.
[    0.546380] ch34x: V1.16 On 2020.12.23
[    0.550268] usbcore: registered new interface driver ch37x
[    0.555960] usbcore: registered new interface driver pl2303
[    0.561730] usbserial: USB Serial support registered for pl2303
[    0.568088] wait stable.[289][cgu_msc0]
[    0.572047] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[    0.578110] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[    0.583451] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[    0.589456] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[    0.594861] hidraw: raw HID events driver (C) Jiri Kosina
[    0.600648] usbcore: registered new interface driver usbhid
[    0.606448] usbhid: USB HID core driver
[    0.610583] TCP: cubic registered
[    0.613996] NET: Registered protocol family 17
[    0.619224] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    0.626365] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.636854] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.644434] Freeing unused kernel memory: 232K (80526000 - 80560000)
[    1.075449] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
[    1.651086] @@@@ tx-isp-probe ok(version H20200506a), compiler date=May  6 2020 @@@@@
[    1.690581] exFAT: Version 1.2.9
[    1.716372] jz_codec_register: probe() successful!
[    1.722709] cgu_set_rate, parent = 1392000000, rate = 2048000, n = 10875, reg val = 0x01002a7b
[    1.722722] cgu_enable,cgu_i2s_spk reg val = 0x21002a7b
[    1.722742] cgu_set_rate, parent = 1392000000, rate = 2048000, n = 10875, reg val = 0x01002a7b
[    1.722750] cgu_enable,cgu_i2s_mic reg val = 0x21002a7b
[    2.125740] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a0759000)
[    2.134837] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a07bb000)
[    2.144041] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a0713000)
[    2.205309] jz_pwm_probe[212] d_name = tcu_chn0
[    2.211642] The version of PWM driver is H20180309a
[    2.222199] request pwm channel 0 successfully
[    2.228519] pwm-jz pwm-jz: jz_pwm_probe register ok !
[    2.261714] __init
[    2.310015] mmc1: new SDIO card at address 0001
[    2.435523] mmc0: new high speed SDHC card at address 59b4
[    2.453445] mmcblk0: mmc0:59b4 USDU1 14.9 GiB 
[    2.460077]  mmcblk0: p1
[    2.558983] [atbm_log]:SVN_VER=18363,DPLL_CLOCK=24,BUILD_TIME=[===== =====]
[    2.567545] [atbm_log]:----drvier RATEPOLCIY=OLD
[    2.572400] [atbm_log]:Probe called
[    2.576092] [atbm_log]:atbm_sdio_probe:v12
[    2.580337] [atbm_log]:Allocated hw_priv @ 82046d20
[    2.585553] [atbm_log]:[BH] register.
[    2.589415] [atbm_log]:atbmwifi INIT_WORK enable
[    2.594233] [atbm_log]:atbmwifi INIT_WORK enable
[    2.599129] [atbm_log]:atbm_before_load_firmware++
[    2.604161] [atbm_log]:atbm_before_load_firmware:0xab0016c = [34800000]
[    2.611020] [atbm_log]:atbm_sdio_rx_thread
[    2.615387] [atbm_log]:atbm_before_load_firmware:0xab0016c = [34800000]
[    2.622317] [atbm_log]:atbm_before_load_firmware:do not set config to smu
[    2.635443] [atbm_log]:rx timeout
[    2.732993] [atbm_log]:atbm_before_load_firmware:read [0x16100074]=[0],ret(0)
[    2.740418] [atbm_log]:atbm_before_load_firmware:write [0x16100074]=[1],ret(0)
[    2.847954] [atbm_log]:atbm_start_load_firmware++
[    2.852797] [atbm_log]:used firmware.h=
[    2.856760] [atbm_log]:START DOWNLOAD ICCM=========
[    2.861792] [atbm_log]:atbm_load_firmware_generic: addr 10000: len 22000
[    2.913077] [atbm_log]:START DOWNLOAD DCCM=========
[    2.918130] [atbm_log]:atbm_load_firmware_generic: addr 800000: len 9000
[    2.936146] [atbm_log]:atbm_after_load_firmware++
[    2.954299] [atbm_log]:firmwareCap f5af
[    2.958270] [atbm_log]:firmwareCap2 5184
[    2.962312] [atbm_log]:wsm_caps.firmwareCap 5184f5af
[    2.967276] [atbm_log]:apollo wifi WSM init done.
[    2.967276]    Input buffers: 42 x 1728 bytes
[    2.967276]    Hardware: 7.1280
[    2.967276]    WSM firmware [=MODEM=RF=Ares_AX  2GHZ Apr  9 2021 16:47:02NOTXConfrim], ver: 11896, build: 2756, api: 1060, cap: 0x5184F5AF Config[30008]  expection 900b80c, ep0 cmd addr 901d3f8 NumOfStations[8] NumOfInterfaces[3]
[    3.001038] [atbm_log]:EFUSE(8)				[0]
[    3.004897] [atbm_log]:EFUSE(I)					[1]
[    3.008852] [atbm_log]:EFUSE(B)			[0]
[    3.012622] [atbm_log]:CAPABILITIES_ATBM_PRIVATE_IE      [1]
[    3.018468] [atbm_log]:CAPABILITIES_NVR_IPC              [1]
[    3.024302] [atbm_log]:CAPABILITIES_NO_CONFIRM           [1]
[    3.030149] [atbm_log]:CAPABILITIES_SDIO_PATCH           [0]
[    3.035991] [atbm_log]:CAPABILITIES_NO_BACKOFF           [1]
[    3.041830] [atbm_log]:CAPABILITIES_CFO                  [0]
[    3.047666] [atbm_log]:CAPABILITIES_AGC                  [1]
[    3.053507] [atbm_log]:CAPABILITIES_TXCAL                [1]
[    3.059342] [atbm_log]:CAPABILITIES_MONITOR              [0]
[    3.065173] [atbm_log]:CAPABILITIES_CUSTOM               [1]
[    3.071022] [atbm_log]:CAPABILITIES_SMARTCONFIG          [0]
[    3.076867] [atbm_log]:CAPABILITIES_ETF                  [1]
[    3.082706] [atbm_log]:CAPABILITIES_LMAC_RATECTL         [1]
[    3.088555] [atbm_log]:CAPABILITIES_LMAC_TPC             [1]
[    3.094392] [atbm_log]:CAPABILITIES_LMAC_TEMPC           [1]
[    3.100228] [atbm_log]:CAPABILITIES_CTS_BUG              [0]
[    3.106076] [atbm_log]:CAPABILITIES_USB_RECOVERY_BUG     [0]
[    3.111907] [atbm_log]:CAPABILITIES_USE_IPC              [0]
[    3.117758] [atbm_log]:CAPABILITIES_OUTER_PA             [0]
[    3.123590] [atbm_log]:CAPABILITIES_POWER_CONSUMPTION    [0]
[    3.129438] [atbm_log]:CAPABILITIES_RSSI_DECIDE_TXPOWER  [0]
[    3.135274] [atbm_log]:CAPABILITIES_RTS_LONG_DURATION    [1]
[    3.141120] [atbm_log]:CAPABILITIES_TX_CFO_PPM_CORRECTION[1]
[    3.146966] [atbm_log]:CAPABILITIES_SHARE_CRYSTAL       [0]
[    3.152714] [atbm_log]:CAPABILITIES_HW_CHECKSUM          [0]
[    3.158550] [atbm_log]:CAPABILITIES_SINGLE_CHANNEL_MULRX [0]
[    3.164380] [atbm_log]:CAPABILITIES_CFO_DCXO_CORRECTION  [1]
[    3.170227] [atbm_log]:CONFIG_PRODUCT_TEST_USE_FEATURE_ID [1]
[    3.176155] [atbm_log]:CONFIG_PRODUCT_TEST_USE_GOLDEN_LED [1]
[    3.189504] [atbm_log]:set_block_size=256
[    3.193643] [atbm_log]:mdelay wait wsm_startup_done  !!
[    3.199075] [atbm_log]:atbm_sdio_tx_thread
[    3.203620] [atbm_log]:wsm_generic_confirm:status(2)
[    3.208804] [atbm_log]:<WARNING> wsm_write_mib fail !!! mibId=4132
[    3.215392] [atbm_log]:apollo wifi : can't open /data/.mac.info
[    3.221836] [atbm_log]:efuse data is [0x1,0x3c,0x1c,0x1d,0x0,0x8,0x0,0x0,0x84:0x7a:0xb6:0x51:0x9e:0xcd]
[    3.231576] [atbm_log]:apollo wifi : can't open /tmp/atbm_txpwer_dcxo_cfg.txt
[    3.238974] [atbm_log]:apollo wifi : can't open /tmp/set_rate_power.txt
[    3.246451] [atbm_log]:enable sg
[    3.258112] [atbm_log]:enable sg
[    3.269725] [atbm_log]:[atbm_wtd]:set wtd_probe = 1
[    3.585729] [atbm_log]:mmc0 has been attached
[    5.425448] jzmmc_v1.2 jzmmc_v1.2.0: card removed, state=0
[    5.431167] mmc0: card 59b4 removed
[    5.935448] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
[    7.295508] mmc0: new high speed SDHC card at address 59b4
[    7.302986] mmcblk0: mmc0:59b4 USDU1 14.9 GiB 
[    7.308934]  mmcblk0: p1
[   10.320225] name : i2c0 nr : 0
[   10.415644] i2c i2c-0: i2c_jz_irq 441, I2C transfer error, ABORT interrupt
[   10.427854] i2c i2c-0: --I2C txabrt:
[   10.436973] i2c i2c-0: --I2C TXABRT[0]=I2C_TXABRT_ABRT_7B_ADDR_NOACK
[   10.449167] error: sensor_read,285 ret = -5
[   10.458973]  sensor_read: addr=0x3107 value = 0x0
[   10.469361] err sensor read addr = 0x3107, value = 0x0
[   10.565963]  sensor_read: addr=0xf0 value = 0x20
[   10.571214]  sensor_read: addr=0xf1 value = 0x53
[   10.576000] info: success sensor find : gc2053
[   10.580641] misc sinfo_release
[   10.681007] set sensor gpio as PA-low-10bit
[   10.686836] probe ok ------->gc2053
[   10.765946] -----gc2053_detect: 832 ret = 0, v = 0x20
[   10.766438] -----gc2053_detect: 838 ret = 0, v = 0x53
[   10.766446] gc2053 chip found @ 0x37 (i2c0)
[   10.983382] gc2053 stream on
[   11.512882] codec_codec_ctl: set sample rate...
[   11.513386] codec_codec_ctl: set device...
[   11.965487] codec_set_device: set device: MIC...
[   12.178979] codec_codec_ctl: set repaly channel...
[   12.178997] codec_codec_ctl: set sample rate...
[   12.179239] codec_codec_ctl: set device...
[   12.415518] codec_set_device: set device: speaker...
[   12.422755] SPEAKER CTL MODE0 !
[   12.955235] [atbm_log]:[wlan0] change mac[7c:dd:e9:02:84:9e]
[   12.962714] [atbm_log]:[p2p0] change mac[7e:dd:e9:02:84:9e]
[   14.453373] [atbm_log]:wlan0:free authen bss ++
[   14.475493] [atbm_log]:wlan0:free authen bss ++
[   16.475884] [atbm_log]:atbm_hw_scan:if_id(0)
[   16.480862] [atbm_log]:atbm_hw_scan:scan, delay suspend
[   16.491596] [atbm_log]:scan start band(0),(14)
[   17.805606] [atbm_log]:hw_priv->scan.status 0
[   17.810300] [atbm_log]:atbm_scan_work:end(0)
[   17.820776] [atbm_log]:wlan0:free authen bss ++
[   17.865570] [atbm_log]:authen:(90:9a:4a:ff:ff:ff),ssid(SSID)
[   17.893978] [atbm_log]:wlan0: authenticated
[   17.898846] [atbm_log]:wlan0:free authen bss ++
[   17.915539] [atbm_log]:wlan0:free authen bss --
[   17.924792] [atbm_log]:wlan0: associated
[   17.932710] [atbm_log]:[90:9a:4a:ec:0f:ae]:40M channel
[   18.270112] [atbm_log]:ieee80211_process_addba_request:mac[90:9a:4a:ff:ff:ff],tid[0]
[   19.083082] [atbm_log]:[PM]:rev ind
[   19.086892] [atbm_log]:[PM]:up pm lock
[   24.724603] <WIFI> rx ampdu ++ 
[   55.305535] [atbm_log]:atbm_sdio_irq_period:Miss
[  151.095689] [atbm_log]:atbm_sdio_irq_period:Miss

chrootdebinのユーザランドを使う

$ curl -sS http://archive.debian.org/debian/dists/jessie/main/binary-mips/Packages.xz | xzcat | grep main/l/linux/linux-image
Filename: pool/main/l/linux/linux-image-3.16.0-6-4kc-malta_3.16.56-1+deb8u1_mips.deb
Filename: pool/main/l/linux/linux-image-3.16.0-6-5kc-malta_3.16.56-1+deb8u1_mips.deb
Filename: pool/main/l/linux/linux-image-3.16.0-6-octeon_3.16.56-1+deb8u1_mips.deb
Filename: pool/main/l/linux/linux-image-3.16.0-6-r4k-ip22_3.16.56-1+deb8u1_mips.deb
Filename: pool/main/l/linux/linux-image-3.16.0-6-r5k-ip32_3.16.56-1+deb8u1_mips.deb
Filename: pool/main/l/linux/linux-image-3.16.0-6-sb1-bcm91250a_3.16.56-1+deb8u1_mips.deb
$ curl -sS http://ftp.jp.debian.org/debian/dists/buster/main/binary-mips/Packages.xz | xzcat | grep main/l/linux/linux-image
Filename: pool/main/l/linux/linux-image-4.19.0-17-4kc-malta_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-17-4kc-malta-dbg_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-17-5kc-malta_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-17-5kc-malta-dbg_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-17-octeon_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-17-octeon-dbg_4.19.194-3_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-4kc-malta_4.19.208-1_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-4kc-malta-dbg_4.19.208-1_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-5kc-malta_4.19.208-1_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-5kc-malta-dbg_4.19.208-1_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-octeon_4.19.208-1_mips.deb
Filename: pool/main/l/linux/linux-image-4.19.0-18-octeon-dbg_4.19.208-1_mips.deb
$ mkdir debian_bullseye_mipsel
$ fakeroot
# /usr/sbin/debootstrap --foreign --arch=mipsel bullseye debian_bullseye_mipsel
$ mkdir debian_buster_mipsel
$ fakeroot
# /usr/sbin/debootstrap --foreign --arch=mipsel buster debian_buster_mipsel
$ mkdir debian_jessie_mipsel
$ fakeroot
# /usr/sbin/debootstrap --foreign --arch=mipsel jessie debian_jessie_mipsel
I: Retrieving InRelease  
I: Checking Release signature   
E: Release signed by unknown key (key id CBF8D6FD518E17E1)  
   The specified keyring /usr/share/keyrings/debian-archive-keyring.gpg may be incorrect or out of date.
   You can find the latest Debian release key at https://ftp-master.debian.org/keys.html
# /usr//sbin/debootstrap --foreign --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg --arch=mipsel jessie debian_jessie_mipsel http://archive.debian.org/debian/
I: Retrieving InRelease  
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 75DDC3C4A499F1A18CB5F3C8CBF8D6FD518E17E1)
I: Retrieving Packages  
I: Validating Packages   
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://archive.debian.org/debian...
I: Retrieving acl 2.2.52-2  
I: Validating acl 2.2.52-2  
I: Retrieving libacl1 2.2.52-2   
I: Validating libacl1 2.2.52-2
  :
$ du -hs debian_*_mipsel
217M    debian_bullseye_mipsel
200M    debian_buster_mipsel
195M    debian_jessie_mipsel
$ dd if=/dev/zero of=./debian_jessie_mipsel.img bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 0.294319 s, 1.8 GB/s
$ /sbin/fdisk ./debian_jessie_mipsel.img                                                              [418/612]
                                                                                                                                           
Welcome to fdisk (util-linux 2.37.2).                                                                                                      
Changes will remain in memory only, until you decide to write them.                                                                        
Be careful before using the write command.                                                                                                 
                                                                                                                                           
Device does not contain a recognized partition table.                                                                                      
Created a new DOS disklabel with disk identifier 0x5ddc3a90.                                                                               
                                                                                                                                           
Command (m for help): n                                                                                                                    
Partition type                                                                                                                             
   p   primary (0 primary, 0 extended, 4 free)                                                                                             
   e   extended (container for logical partitions)                                                                                         
Select (default p):                                                                                                                        
                                                                                                                                           
Using default response p.                                                                                                                  
Partition number (1-4, default 1):                                                                                                         
First sector (2048-1048575, default 2048):                                                                                                 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1048575, default 1048575):                                                             
                                                                                                                                           
Created a new partition 1 of type 'Linux' and of size 511 MiB.                                                                             
                                                                                                                                           
Command (m for help): w                                                                                                                    
The partition table has been altered.                                                                                                      
Syncing disks.

$ sudo kpartx -av ./debian_jessie_mipsel.img                                                                   
add map loop32p1 (253:3): 0 1046528 linear 7:32 2048
$ mkfs.jffs2 -r ./debian_jessie_mipsel -p -e 0x2000 -o ./debian_jessie_mipsel.img

GPIOでLED制御

gpiodirectionvalue
—-————–
38 out 1
39 out 0
47 out 0
48 - 0
50 in 0
51 in 1
52 out 0
53 out 0
77 out 1

47⇒1 : 前面左右LEDx4が赤
38⇒0 : 前面中央LEDが黄色
39⇒0 : 前面中央LEDが青色
(38, 39は同時に図らせることが出来る

/sys/class/gpio # echo 1 > gpio47/value 
/sys/class/gpio # echo 0 > gpio38/value 
/sys/class/gpio # echo 0 > gpio39/value

ir LED制御もありそうだけどよくわからない(47の赤と一緒?)

アプリからカメラの電源を切断したが、再度ONができない ※黄色LED点灯後、消灯

2度起こった.FAQにある.リセットボタンをして設定し直し.

“アプリからカメラの電源を切断したが、再度ONができない ※黄色LED点灯後、消灯 | ATOM Tech(アトムテック)” https://info.atomtech.co.jp/support/faq/550/

コメント

コメントを入力. Wiki文法が有効です:
  ____   _____     __ __  __   __ 
 / __ \ / ___/ __ / / \ \/ /  / / 
/ /_/ // /__  / // /   \  /  / /__
\___\_\\___/  \___/    /_/  /____/
 
gadget/atomcam2.txt · 最終更新: 2021/12/19 11:59 by matoken