timawesomeness / foscam-r2-fw

Firmware dump of Foscam R2, plus extracted content via binwalk. (All Foscam cameras appear to share [at least some] firmware for what it's worth)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Root access to the camera is easy - hit enter at the Ambarella bootloader, password is ipc.fos~, then you can run boot console=ttyS0 ubi.mtd=lnx root=ubi0:rootfs rw rootfstype=ubifs init=/bin/sh to boot to a root shell. Environment is a moderately-featured busybox with a few extra utilities.

Serial is 3.3V UART next to ethernet jack - with the top side up, ethernet rotated towards you, from left to right: [TX, GND, RX, VCC]. 115200 baud, 8N1. Hardware flow control might have to be off?

Most foscam stuff appears to be in /mnt/mtd [in mtd5]. Otherwise an apparently reference design Ambarella IP cam.

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00020000 "bst"   # ??
mtd1: 00140000 00020000 "bld"   # bootloader?
mtd2: 00140000 00020000 "ptb"   # device tree
mtd3: 01000000 00020000 "pba"   # rootfs
mtd4: 00800000 00020000 "pri"   # ? fw update?
mtd5: 03000000 00020000 "lnx"   # primary filesystem, UBI
mtd6: 00600000 00020000 "add"   # config, UBI
mtd7: 02c00000 00020000 "adc"   # backup of mtd5?

Most info here is relevant to this camera as well: https://github.com/santeri3700/opticam_o8_hacking

About

Firmware dump of Foscam R2, plus extracted content via binwalk. (All Foscam cameras appear to share [at least some] firmware for what it's worth)


Languages

Language:JavaScript 69.8%Language:Shell 24.0%Language:C 4.6%Language:HTML 1.6%