Giter VIP home page Giter VIP logo

xiaomixiaofangfirmware's Introduction

XiaomiXiaofangFirmware

Files for building your own custom firmware for the Xiaomi Xiaofang IP Camera.

!! Many issues, bugs, troubles, errors, warnings and disasters will happen when using this firmware at this moment. !! !! I cannot guarantee that you can reflash your device back to the original Xiaomi firmware. !!

Introduction

This repository will host files to build a custom firmware for the Xiaomi Xiaofang IP Camera. This repository will extend the generic Sonix SDK version 1.60.

It also will host a script to modify the original Xiaomi firmware and rebuild a customized firmware.

HowTo flash and use a prebuilt firmware

  1. After booting the device it will host an AP with the name "SNIP39_xxxxxxx" (xxx=mac). The passphrase is 8x8, thus: "88888888".
  2. After connecting to the SNIP AP. You can access the WebAdmin interface by browsing to: https://10.42.0.1 You can login using "root", pw: ismart12

First test release.

You can flash this version with placing the firmware (FIRMWARE660R.bin) in the root of your SDCard and powering-on the device holding the setup button for a few seconds.

Notes:

  • make kernelmenuconfig: deselect: "Device Drivers" > "Network device support" > "Ethernet (10/100 mbit)". The SNX MAC Ethernet device hangs during boot.
  • Version number of Realtek RTL8188 drivers can be found in include/rtw_version.h

xiaomixiaofangfirmware's People

Contributors

grumpymeow avatar

Stargazers

tylinux avatar Eric SHI avatar Artifex Maximus avatar  avatar Stefan de Konink avatar  avatar rchk avatar andreichernov avatar  avatar  avatar  avatar Sri Gogineni avatar  avatar jante avatar  avatar Hung Le  avatar  avatar  avatar Brian Boucheron avatar waspinator avatar  avatar Nguyen Sy Thanh Son avatar Chris avatar Gergely Sipos avatar CCF avatar gipsh avatar icyleaf avatar FHA avatar Mikhail Gozhev avatar Fred avatar  avatar Roger D avatar Loki Coyote avatar kuanYuChan avatar David Beitey avatar Peter Mukhortov avatar Xavi Torelló avatar Charles Regan avatar  avatar  avatar Benji avatar

Watchers

CCF avatar  avatar James Cloos avatar iLwave avatar PatrickM avatar  avatar  avatar Bryan Cramer avatar  avatar  avatar kk573 avatar Matt avatar

xiaomixiaofangfirmware's Issues

wpa_supplicant cannot connect

Hi, I'm trying to use wpa_supplicant to connect to my wifi but I get the following error:

Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
ioctl[SIOCSIWMODE]: Operation not supported
ioctl[SIOCGIWRANGE]: Operation not supported
ioctl[SIOCGIWMODE]: Operation not supported
ioctl[SIOCSIWAP]: Operation not supported
ioctl[SIOCSIWESSID]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported

This version (0.7) does not have the nl80211 driver so I compiled the last version of wpa_supplicant. Now the error is:

Successfully initialized wpa_supplicant
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface

So I guess that the problem is not wpa_supplicant but the 8188eu driver

Netdetect uses eth0

starting pid 793, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'

sonix-5CFFFF9E97FE login: [net_detect:37] IOCTL error.
Maybe ethernet interface eth0 is not valid.

Probably it is better to not have eth0 at all.

/bin/wsdd not found

During boot an error is displayed that /bin/wsdd can't be found: /etc/init.d/rc.local: line 50: /bin/wsdd: not found.
This executable is not present in the SDK. It seems that this is present in: the firmware of AXIS camera's.

Maybe this feature gets solved by SnOnvif. For now, this executable will not be started from init.d

Maybe we can retrieve this executable from an AXIS M1054 camera firmware.

Maybe even the discovery.xml sonix config file is sufficient.

Kernel BUG when loading module snx_nvram

/media/mmcblk1p1 # insmod snx_nvram.ko
sonix_nvram_init
kernel BUG at /home/dev/pwnhack/SN986_1.60_QR_Scan_019a_20160606_0951/snx_sdk/kernel/linux-2.6.35.12/src/arch/arm/mm/dma-mapping.c:415!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
fcse pid: 7, 0x0e000000
pgd = c3f44000
[00000000] *pgd=03ddf031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
last sysfs file: /sys/devices/platform/snx_sd/mmc_host/mmc0/mmc0:0007/block/mmcblk1/dev
Modules linked in: snx_nvram(+) snx_dhid snx_udc snx_wdt snx_sd snx_vc snx_vb2 snx111 snx_isp sc2135 snx_aud_r2r snx_aud_sigma snx_aud_core 8188eu snx_pwm snx_gpio snx_crypto [last unloaded: snx_dmsc]
CPU: 0 Tainted: G W (2.6.35.12 #5)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [] lr : [] psr: 60000013
sp : c3e27e90 ip : 00000007 fp : c3cade50
r10: c3e27f1c r9 : c051a32c r8 : 00000000
r7 : 00000300 r6 : c4af4000 r5 : c3cadc00 r4 : 000003d0
r3 : 00000000 r2 : 60000013 r1 : 000046cf r0 : 0000008e
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005717f Table: 03f44000 DAC: 00000015
Process insmod (pid: 885, stack limit = 0xc3e26270)
Stack: (0xc3e27e90 to 0xc3e28000)
7e80: f0900000 c002afa0 000003d0 c01ebdc0
7ea0: c4802000 c0519f30 00fc0004 00000000 c0007128 c3cade54 22222222 c3d73000
7ec0: 00000000 00000000 000003d0 00fc0000 00000000 bf1c6000 00000000 c01de130
7ee0: 000003d0 c3e27f1c c4af4000 bf1c2ab8 00000004 00000000 c3d73000 00000000
7f00: c3e26000 bf1c2398 000003d0 c3e27f1c c4af4000 c052e000 c3e26000 00000000
7f20: bf1c6000 bf1c308c 00000000 c052e000 c3e26000 bf1c60c0 000003d0 c4af4000
7f40: bf1c2be8 000003d0 00000000 bf1c2f44 00000000 c0024440 c337a780 00000000
7f60: 00000000 bf1c2f44 00000000 bf1c2f44 00000000 0007423f 00002578 c00252e8
7f80: 00000000 c0061084 0000000f 00000001 01929f50 01929dc0 01929e64 00000069
7fa0: 00000080 c0025140 01929dc0 01929e64 0007f040 00002578 0007423f 00000000
7fc0: 01929dc0 01929e64 00000069 00000080 01929e68 0007423f 01929e68 00000000
7fe0: 008368fc 01929a94 00015044 0083690c 20000010 0007f040 e59f3494 e58dc000
[] (__bug+0x1c/0x28) from [] (___dma_single_cpu_to_dev+0x48/0x54)
[] (___dma_single_cpu_to_dev+0x48/0x54) from [] (snx_sf_read_dma+0xec/0x4a8)
[] (snx_sf_read_dma+0xec/0x4a8) from [] (part_read+0x60/0xe4)
[] (part_read+0x60/0xe4) from [] (sn_mtd_read_nm+0x4c/0x8c [snx_nvram])
[] (sn_mtd_read_nm+0x4c/0x8c [snx_nvram]) from [] (init_module+0xc0/0x1f0 [snx_nvram])
[] (init_module+0xc0/0x1f0 [snx_nvram]) from [] (do_one_initcall+0x30/0x1b0)
[] (do_one_initcall+0x30/0x1b0) from [] (sys_init_module+0xa8/0x1c0)
[] (sys_init_module+0xa8/0x1c0) from [] (ret_fast_syscall+0x0/0x2c)
Code: e59f0010 e1a01003 eb0e2724 e3a03000 (e5833000)
---[ end trace 10f067f53ebc636b ]---
Segmentation fault

fps=30 is out of range(0~20)!

isp init ok============
snx_vc snx_vc: snx_vc_open: Created instance c329a000, m2m_ctx: c28ea800
snx_vc snx_vc: snx_vidioc_s_parm: snx_vidioc_s_parm: OUTPUT fps == 30
fps=30 is out of range(0~20)!
ubIdx = 11, fps = 20
priv->uwMaxExpL = 1800, info->frame_rate = 20
snx_vc snx_vc: snx_vidioc_s_parm: snx_vidioc_s_parm: CAPTURE fps == 25
(ISP)fps modify == 8 --> 30

Illegal instruction during boot.

snx_init_snapshot ok
sonix_proj handler cgi thread created
Starts upnpd ...
Illegal instruction
modprobe: module 'snx_vo' not found

Start net_detect ...

Hangs from time to time

Although on the whole the fw works wonders, I have the following issue:

  1. at random times the camera will stop providing a stream.
  2. a reboot fixes this, but also requires wifi to be enabled again (as a reboot reverts SSID back to fangwifi)
  3. Enabling wifi in webui (ie one button) makes everything work again, so wifi settings are being persisted.

I'd like to set up a daily script to a) reboot and then b) activate wifi as per the webgui.

Can you please help me with the above, in particular the wifi activation? What would the relevant cli command be?

Thanks

Can't connect to local wifi

Hi,

I have problems getting the cam to connect to local wifi after changing using Sonix GUI @ 192.168.1.1.... How is that done?
I can see and connect to FangWifi, but when changed to local wifi the cam doesn't connect or get an IP....

Any suggestions?

I can re-flash image and get back to FangWifi AP, but that is not really usable....

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.