##< Extra logs, not a boot log! — Anyka AK3918EV300 dome > ===== cat /proc/cpuinfo Processor : ARM926EJ-S rev 5 (v5l) BogoMIPS : 199.06 Features : swp half fastmult edsp java CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 5 Hardware : Cloud39EV3_AK3918E80PIN_MNBD Revision : 0000 Serial : 0000000000000000 ===== cat /proc/mtd dev: size erasesize name mtd0: 00060000 00010000 "boot" mtd1: 00010000 00010000 "ENV" mtd2: 00010000 00010000 "MAC" mtd3: 00180000 00010000 "KERNEL" mtd4: 00100000 00010000 "ROOT" mtd5: 00480000 00010000 "USR.SQUASH" mtd6: 00080000 00010000 "USR.JFFS2" ===== cat /proc/meminfo MemTotal: 30356 kB MemFree: 24320 kB Buffers: 572 kB Cached: 1244 kB SwapCached: 0 kB Active: 900 kB Inactive: 1204 kB Active(anon): 288 kB Inactive(anon): 0 kB Active(file): 612 kB Inactive(file): 1204 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 312 kB Mapped: 468 kB Shmem: 0 kB Slab: 3048 kB SReclaimable: 496 kB SUnreclaim: 2552 kB KernelStack: 272 kB PageTables: 48 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 15176 kB Committed_AS: 1136 kB VmallocTotal: 991232 kB VmallocUsed: 33292 kB VmallocChunk: 745044 kB ===== cat /proc/interrupts CPU0 8: 1210 module-irq ak-spi 10: 1074 module-irq uart0 12: 0 module-irq l2 16: 1 module-irq eth0 23: 0 sysctrl-irq timer for ptz 24: 0 sysctrl-irq timer for ptz 25: 22456 sysctrl-irq timer tick 27: 25 sysctrl-irq 115: 0 gpio-irq boot0 Err: 0 # (counts drift with uptime; a later capture showed uart0 304, timer tick 45944, irq27 33 — same map.) ===== cat /proc/iomem (authoritative peripheral map) 08000000-0800ffff : akpcm_AnalogCtrlRegs # analog/sys-control block; holds the UART share-pin reg 0x08000074 and chip-id 0x08000000 20020000-2002ffff : video-base 20100000-20100043 : ak_mci.0 # SD/MMC controller present though no slot fitted 20110000-2011800f : akpcm_ADC2ModeCfgRegs 20120000-20120027 : ak-spi 20120000-20120027 : ak-spi 20150000-20150100 : i2c-ak39 20150000-20150100 : i2c-ak39 20180000-20180067 : ak-crypto 20200000-202003ff : usb-host 20300000-20301fff : ak_ethernet.0 # Ethernet MAC base = 0x20300000 (NOT 0x20230000) 20300000-20301fff : ak_ethernet 81e00000-83ffffff : System RAM 81e08000-821a1fff : Kernel code 821be000-82205593 : Kernel data ===== devmem 0x08000000 (SoC chip-id register) ===== GPIO / LED / I2C discovery (what IS and ISN'T exposed on this SoC) $ ls -la /sys/class/gpio/ ls: /sys/class/gpio/: No such file or directory $ cat /sys/kernel/debug/gpio # (debugfs mounted first) cat: can't open '/sys/kernel/debug/gpio': No such file or directory # => NO Linux gpiolib. Custom Anyka GPIO framework; there is no runtime GPIO map. # GPIO assignments therefore come from the stock kernel board table (see submission note). $ ls /sys/class/leds/ # (empty - no leds-class devices registered with the camera app disabled) $ ls /sys/bus/i2c/devices/ 0-0058 i2c-0 $ cat /sys/bus/i2c/devices/0-0058/name aw9523b $ cat /sys/bus/i2c/devices/i2c-0/name ak39-i2c # => aw9523b GPIO/LED expander live at I2C bus 0, address 0x58, on controller "ak39-i2c" (0x20150000). # The image sensor does not answer on I2C in a captured shell (ipctool -s => 0xffff). ===== ip addr sh 1: lo: mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether brd ff:ff:ff:ff:ff:ff inet 192.168.1.123/24 brd 192.168.1.255 scope global eth0 # eth0 is static 192.168.1.123 (set by rc.local); MAC is random each boot (MAC partition blank). ===== SoC share-pin / UART console note (why serial needed the patch/tweak + reflash) The stock kernel's early board-init de-muxes the UART pins at SYSCTRL 0x08000074 (U-Boot leaves it 0x0200040c; the kernel resets it to 1), which kills the serial console. Writing 0x0200040c back to 0x08000074 from userspace in rcS restores it. U-Boot's own console is unaffected.