Repository navigation
Description
./ipctool
ipctool: SoC not recognised, no hardware report possible.
no UART0 entry in /proc/iomem
no vendor matches /proc/cpuinfo: Faraday
Run it as root on the camera. If this is an IP camera or DVR,
please report the SoC with the output of
'cat /proc/cpuinfo; cat /proc/iomem; dmesg | head -40' at
https://github.com/OpenIPC/ipctool/issues
cat /proc/cpuinfo
Processor : FA626TE rev 1 (v5l)
BogoMIPS : 587.77
Features : swp half thumb
CPU implementer : 0x66
CPU architecture: 5TE
CPU variant : 0x0
CPU part : 0x626
CPU revision : 1
Hardware : Faraday GM8126
Revision : 0000
Serial : 0000000000000000
[root@A320D]# cat /proc/iomem
00000000-07ffffff : System RAM
00c6e8e0-00ff7fff : Kernel text
00ff8000-01048457 : Kernel data
90b00000-90b00fff : vcap200_lli.0
90c00000-90c00fff : vcap200_lli.1
91400000-91400fff : FTDI210.0
92200000-92200fff : fotg210.0
92300000-923fffff : ftisp210.0
92400000-92400fff : fscaler0
92800000-92800fff : ftsdc010
92800000-92800fff : ftsdc010
94000000-940fffff : favce
94100000-94100fff : favce
94200000-94200fff : ftmcp100
94300000-943fffff : ftmcp100
98200000-98200fff : ftssp010_spi.0
98700000-9870cfff : flcd200
98a00000-98a00fff : ftssp010.2
98a00000-98a00fff : ftssp010.2
99400000-99400fff : ftgpio010.0
99400000-99400fff : ftgpio010.0
99600000-99600fff : ftiic010.0
99600000-99600ffe : ftiic010.0
99700000-99700fff : ftgpio010.1
99700000-99700fff : ftgpio010.1
99800000-99800fff : ftgpio010.2
99800000-99800fff : ftgpio010.2
f9220000-f9220fff : ehci_hcd
[root@A320D]# dmesg | head -40
Linux version 2.6.28 (root@ubuntu) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #78 PREEMPT Fri Nov 2 01:51:26 PDT 2012
CPU: FA626TE [66056261] revision 1 (ARMv5TE), cr=0000797f
CPU: VIPT aliasing data cache, VIPT aliasing instruction cache
Machine: Faraday GM8126
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c0ffcf04, node_mem_map c104a000
Normal zone: 256 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 32512 pages, LIFO batch:7
Movable zone: 0 pages used for memmap
On node 1 totalpages: 0
free_area_init_node: node 1, pgdat c0ffd584, node_mem_map 00000000
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
On node 2 totalpages: 0
free_area_init_node: node 2, pgdat c0ffdc04, node_mem_map 00000000
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
On node 3 totalpages: 0
free_area_init_node: node 3, pgdat c0ffe284, node_mem_map 00000000
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=uart,shift,2,io,0xF9830000,38400
Early serial console at I/O port 0xf9830000 (options '38400', shift 2)
console [uart0] enabled
PID hash table entries: 512 (order: 9, 2048 bytes)
IC: GM8128 MP
GM Clock: CPU = 594 MHz, AHBCLK = 297 MHz, PLL1CLK = 900 MHz, PLL2CLK = 594 MHz
console handover: boot [uart0] -> real [ttyS0]
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 113108KB available (3621K code, 321K data, 12692K init)
Calibrating delay loop... 587.77 BogoMIPS (lpj=293888)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 636 bytes
Activity
openipc-ai commentedon Dec 3, 2026
Thanks for the report. This is fixed in #306, and the
latestbuild has it: https://github.com/OpenIPC/ipctool/releases/download/latest/ipctoolYour kernel says
Faraday GM8126in/proc/cpuinfoon every chip of this generation, and ipctool didn't recognise that line. ipctool now reads the same chip ID the kernel uses for itsIC: GM8128 MPboot line (pmuverin/proc/pmu/attribute) and reports GM8128.I tested it in an emulator, on a GM8126 camera's stock firmware set to your chip ID. It hasn't run on a real GM8128 yet. Could you run the new build on your camera and post the output of:
The full report is what I'd like to see, sensor included.
/proc/pmu/attributeshows the raw chip ID if something doesn't match.sansarus commentedon Dec 3, 2026
./ipctool
chip:
vendor: GrainMedia
model: GM812x
ethernet:
mac: "ec:49:93:##:##:##"
rom:
block: 4K
partitions:
size: 0x501000
sha1: 9b104bc9
size: 0xa38000
path: /mnt/mtd,jffs2,rw
size: 0x5000
sha1: fb5a4a27
size: 0x60000
sha1: c10a103f
size: 0x60000
path: /mnt/mmc1,jffs2,rw
size: 15M
ram:
total: 128M
firmware:
kernel: "2.6.28 (PREEMPT Fri Nov 2 01:51:26 PDT 2012)"
toolchain: gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67)
main-app: /mnt/mtd/main
[root@A320D]# cat /proc/pmu/attribute
Attribute name : hclk
Attribute type : 4
Attribute value: 297000000
Attribute name : pclk
Attribute type : 5
Attribute value: 148500000
Attribute name : pll1
Attribute type : 1
Attribute value: 900000000
Attribute name : pll2
Attribute type : 2
Attribute value: 594000000
Attribute name : cpuclk
Attribute type : 6
Attribute value: 600000000
Attribute name : pmuver
Attribute type : 7
Attribute value: 8463906
gm: the GM8126 and GM8128 on the vendor 2.6.28 kernel (OpenIPC#306)
gm: the GM8128 that reads 0x812622 (#305) (#307)
sansarus commentedon Dec 3, 2026
./ipctool
chip:
vendor: GrainMedia
model: GM8128
ethernet:
mac: "ec:49:93:10:1a:b1"
rom:
block: 4K
partitions:
size: 0x501000
sha1: 9b104bc9
size: 0xa38000
path: /mnt/mtd,jffs2,rw
size: 0x5000
sha1: fb5a4a27
size: 0x60000
sha1: c10a103f
size: 0x60000
path: /mnt/mmc1,jffs2,rw
size: 15M
ram:
total: 128M
firmware:
kernel: "2.6.28 (PREEMPT Fri Nov 2 01:51:26 PDT 2012)"
toolchain: gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67)
main-app: /mnt/mtd/main
[root@A320D]# ./ipctool i2cdetect
0 1 2 3 4 5 6 7 8 9 a b c d e f
: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
10: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
20: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
30: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
40: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
50: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
60: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
70: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
80: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
90: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
a0: xx xx a2 a3 xx xx xx xx xx xx xx xx xx xx xx xx |
b0: xx xx xx xx xx xx xx xx xx xx ba bb xx xx xx xx |
c0: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
d0: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
e0: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
f0: xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx |
[root@A320D]# ./ipctool i2cget 0xba 0x00
0x18
[root@A320D]# ./ipctool i2cdump 0xba 0x00 0x01
0 1 2 3 4 5 6 7 8 9 A B C D E F
: 18 01 | ..
[root@A320D]# ./ipctool -s
No sensor detected
must be sensor mt9p006
gm8128+mt9p006_bootlog.txt
gm: the Aptina MT9P006 at 0xBA (#305) (#308)
openipc-ai commentedon Dec 3, 2026
Thanks for testing, and for finding the sensor yourself. Both are fixed in the current
latestbuild (same link as before):0x812622. The kernel I tested with only knew0x812621, which is why you sawGM812x. Grain Media's own kernel source lists both as GM8128, and you've confirmed the fix on your camera.0xBAfor the Aptina MT9P0xx family. It reads register0x00, the0x1801you found. The MT9P001, MT9P031 and MT9P006 all return that same ID, so ipctool reports the name your firmware uses, MT9P006.I tested the sensor probe in an emulator with a stand-in that returns your bytes (
18 01), but not on real hardware. Could you run./ipctoolonce more and check that the report now has asensors:entry forMT9P006at0xba?One thing that's still off:
rom: size: 15Mon a 16 MiB flash. Your partitions add up to 8 KiB less than the chip, and ipctool rounds the total down.sansarus commentedon Dec 3, 2026
./ipctool
chip:
vendor: GrainMedia
model: GM8128
ethernet:
mac: "ec:49:93:10:1a:b1"
rom:
block: 4K
partitions:
size: 0x501000
sha1: 9b104bc9
size: 0xa38000
path: /mnt/mtd,jffs2,rw
size: 0x5000
sha1: fb5a4a27
size: 0x60000
sha1: c10a103f
size: 0x60000
path: /mnt/mmc1,jffs2,rw
size: 15M
ram:
total: 128M
firmware:
kernel: "2.6.28 (PREEMPT Fri Nov 2 01:51:26 PDT 2012)"
toolchain: gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67)
main-app: /mnt/mtd/main
sensors:
model: MT9P006
control:
bus: 0
type: i2c
addr: 0xba
cat /proc/mtd
dev: size erasesize name
mtd0: 00501000 00001000 "Linux Section"
mtd1: 00a38000 00001000 "User Section"
mtd2: 00005000 00001000 "Loader Section"
mtd3: 00060000 00001000 "BurnIn Section"
mtd4: 00060000 00001000 "Param Section"
[root@A320D]# cat /proc/partitions
major minor #blocks name
31 0 5124 mtdblock0
31 1 10464 mtdblock1
31 2 20 mtdblock2
31 3 384 mtdblock3
31 4 384 mtdblock4
from dmesg
Creating 5 MTD partitions on "wb_spi_flash":
0x00067000-0x00568000 : "Linux Section"
0x00568000-0x00fa0000 : "User Section"
0x00001000-0x00006000 : "Loader Section"
0x00006000-0x00066000 : "BurnIn Section"
0x00fa0000-0x01000000 : "Param Section"
mtd: the report's flash size is as far as the partitions reach (#309)
openipc-ai commentedon Dec 3, 2026
Thanks for confirming the MT9P006, and for the partition lines from
dmesg.They explain the
15M. No partition holds the 4 KiB boot header at0x0or the 4 KiB block at0x66000, so the partitions add up to 16 MiB − 8 KiB, and ipctool rounded that down. Since #309, when the kernel gives partition offsets (on your kernel it logs them at boot), the size in the report is how far the last partition reaches:0x1000000, so16M. Your partition table is now in the unit tests, and the GM8126 image I test with in the emulator now shows16Minstead of15M. Backups are unchanged.It's in the current
latestbuild. With that, the chip, the sensor and the flash size in your report should all be right. Thanks for the quick testing throughout.