-
Notifications
You must be signed in to change notification settings - Fork 190
Add Sannce I21AG #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Sannce I21AG #216
Conversation
728e5c2 to
1469b21
Compare
3b04d8e to
bed59ab
Compare
|
@diadatp what happened to this? I'm thinking about opening a issue on the https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks repository to let more people know about Thingino but we don't have T10 support yet. |
|
We support T10 just fine! I have a few =D |
|
Aha, then it's not mentioned on the website! cc @themactep |
|
T10 is well outdated and the boards we have are noname. If you have an identifiable camera model using t10 soc we can make a profile and add it to the supported list. |
|
for future reference this is a raw list of hardware we support: |
Hi, I have this camera with original firmware (from 2017...) Could you try to create a profile for testing? Do you need something? I can try and disassembly the camera. Here EliasKotlyar/Xiaomi-Dafang-Hacks#625 a lot of info, (board photos, debug, dumps, etc) from previous testing. Thank you. |
|
Have successfully been using this camera config for a few months now. It works well enough for my needs (live view and occasional recorded view) and is much nicer than the original firmware. PTZ and the typical features you'd expect to work do. Audio out had some sample rate issues that might have been fixed since I last checked. I believe merging to main was stalled by the unusual alignment (ALIGN_BLOCK = 32K) requirements of my flash chip that goes against the established convention for the other much more recent SoCs. My recollection is fuzzy on this. In addition the erase size set for the flash chip in the kernel was wrong (gtxaspec/thingino-linux#11) which manifested in a difficult to track down bug (filesystem corruption after first boot). If there is still interest in this device config, I can pull it together, test against the latest upstream and make pull requests to other related utilities. |
|
@gtxaspec Thank you! I was doing replacing manually "sed -i '355s/32/64/' repo/thingino-linux-3-10-14-t31/arch/mips/xburst/soc-t10/chip-t10/isvp/common/spi_bus.c" in LXC container, so no more. @diadatp This monday I was able to compile the firmware for the camera and it is working good! (some background noise in rtsp as you said but ok) To compile, I had to make adjustments to some variables that had been changed their names; so yesterday I forked the main repo with your settings for the 21AG Take a look if you want to update your branch and merge to the main repo as gtxaspec said. I am totally a newbie in Github 😐 https://github.com/kalasy/thingino-firmware/blob/master/environment/sannce_i21ag.uenv.txt Also for the PTZ I had to change some values in order to be able to pan and tilt correctly I think this can be done also trough webgui and even with |
|
@kalasy, could you share your latest working build's bin? Looks like you've permuted gpio_motor_* to get the ptz motors moving in the right direction. Perhaps there was a change since I last forked that altered the sense of the rotation and pin ordering. I rebased my commits onto master to build against the latest revision but my 64k ALIGN_BLOCK is causing issues. The alignment is seen as improper and partitions are marked read only. Will debug this over on the discord server when I get the time. |
|
Sure, autoupdate-full.zip Copy it to a SD card and it will install if inserted when the boot up. Yes, I had invert gpio_motor_h, gpio_motor_x and also motor_maxstep_h=motor_maxstep_h=3600 in order to be able to complete a "360" movement. Regarding the issue 64k ALIGN_BLOCK As I wrote above, in LXC container I just edited the file repo/thingino-linux-3-10-14-t31/arch/mips/xburst/soc-t10/chip-t10/isvp/common/spi_bus.c replacing Hope this helps |
|
Mmm ,I compiled twice the binary (ALIGN_BLOCK := $(SIZE_32/64K)) with all changes from master and yes, there is a problem now. Just for the record: . |
|
U-Boot's CONFIG_SFC_MIN_ALIGN is set to 32K. This passes the wrong size via mtdparts to the kernel that prevents a clean mount of rootfs and rootfs_data. The fixed size partitions (specifically config) are not 64K aligned which prevents a clean mount. Lines 145 to 150 in 47fca50
The above two are causing the read only mount failures. |
|
Set the chip to use 4k sector erase rather than 64k block erase. |

WIP PR to add support for Sannce I21AG.
SOC: T10
Sensor: JXH62
WiFi: MT7601
Flash: 8MB
Will squash commits before taking out of draft.