Камеры на процессоре Ingenic T10

Заказал и получил новое устройство? Напиши обзор!
Ответить
Paul_B
Новичок
Сообщения: 27
Зарегистрирован: 28 июн 2017, 11:09

Re: Камеры на процессоре Ingenic T10

Сообщение Paul_B » 01 июл 2017, 01:47

Все 4 камеры восстановлены. Спасибо ВАМ огромное!!!
Ссылку затер, делимся результатами здесь. Это как минимум неиуважительно к тем кто помогал. Мод..

Paul_B
Новичок
Сообщения: 27
Зарегистрирован: 28 июн 2017, 11:09

Re: Камеры на процессоре Ingenic T10

Сообщение Paul_B » 01 июл 2017, 10:25

Paul_B писал(а):Все 4 камеры восстановлены. Спасибо ВАМ огромное!!!
Ссылку затер, делимся результатами здесь. Это как минимум неиуважительно к тем кто помогал. Мод..
Качаем файл с прошивкой (Отсюда: https://yadi.sk/d/97TnRZXN3Keani" onclick="window.open(this.href);return false; ).
Вот как я его загружал при помощи Tera Term https://yadi.sk/d/y7ef7s_E3KeGct" onclick="window.open(this.href);return false;

Код: Выделить всё

isvp# sf probe
the manufacturer c2
SF: Detected MX25L64**E
isvp# sf erase 0x040000 0x7c0000
SF: 8126464 bytes @ 0x40000 Erased: OK
isvp# loadb
## Ready for binary (kermit) download to 0x82000000 at 115200 bps...
## Total Size      = 0x007c0000 = 8126464 Bytes
## Start Addr      = 0x82000000
isvp# sf write 0x82000000 0x040000 0x7c0000
SF: 8126464 bytes @ 0x40000 Written: OK
isvp# env default -f -a
## Resetting to default environment
isvp# setenv bootargs console=ttyS1,115200n8 mem=39M@0x0 ispmem=5M@0x2700000 rmem=20M@0x2C00000 init/linuxrc rootfstype=squashfs init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256k(boot),2176k(kernel),3584k(rootfs),2176k(system) quiet
isvp# saveenv

Номер камеры будет XWL-031737-ENJDF
Надо его поменять на свой.

После прошивки желательно сменить DID и МАС, для этого следуем инструкции:
1.1. Заходим Intenet Explorer (и только им) по адресу http://your_camera_ip:81/" onclick="window.open(this.href);return false;
1.2. Выбираем livestream mode (for Explorer) и заходим в настройки камеры
1.3. Выбираем Alarm Service Setting, затем Ftp service settings.
1.4. В поле «FTP Server» вводим: $(killall telnetd)
1.5. В поле «FTP User» вводим: $(telnetd -l /bin/sh)
1.6. Нажимаем «set up», затем нажимаем «test»
1.7. Вылезет всплывающее окно с сообщением об ошибке теста. Это значит, что все прошло нормально и у нас есть доступ к Telnet без пароля.

2. Получаем файлы
2.1. Ставим карту памяти в камеру и запускаем PuTTY. вводим IP камеры.
2.2. В терминале, после успешного соединения, вводим по очереди:
mkdir /mnt/tmp1/
mount 1t jffs2 /dev/mtdblock3 /mnt/tmp1
cp /mnt/tmp1/www/system.ini /mnt
cp /mnt/tmp1/param/factory.ini /mnt
umount /mnt/tmp1
rmdir /mnt/tmp1

3. Вынимаем карту памяти из камеры, на ней в корне должны лежать два файла: system.ini и factory.ini Файлы БИНАРНЫЕ, не текстовые, поэтому правим любым HEX-редактором. Вписываем свой номер с наклейки в соответствующее место файла (вместо XWL-031737-ENJDF). Если ваш ID короче, то остаток добиваем нулями.
В файле factory.ini также есть MAC-адреса проводного и беспроводного интерфейса. Сохраняем оба файла с новым ID на карте. Ставим карту обратно в камеру.

4. В терминале вводим:
mkdir /mnt/tmp1/
mount -t jffs2 /dev/mtdblock3 /mnt/tmp1
cp /mnt/system.ini /mnt/tmp1/www
cp /mnt/factory.ini /mnt/tmp1/param
umount /mnt/tmp1
rmdir /mnt/tmp1
reboot

После перезагрузки камеры у вас должен везде появляться ваш родной ID камеры.


Оказывается есть еще очень большой нюанс относительно того, что factory.ini надо заливать два раза. Первый раз - в нем прописать номер камеры (под которым она будет визуально выступать для наблюдателя, т.к. все подключения идут относительно номера, который есть в system.ini, а потом прописать пустой factory.ini, только после этого камера становится как новая). Вот файл, в котором надо менять номер: https://yadi.sk/i/ciYs46pE3KeSdp" onclick="window.open(this.href);return false; и сначала закачивать в камеру вместе с исправленным system.ini, который берется по методу из шапки, а потом можно удалить все из factory.ini (чтоб его длина была 0) и еще раз закачать в камеру.

Итак фиксим эту уязвимость:
файл /system/init/ipcam.sh

В самый конец добавляем (после /system/system/bin/wifidaemon &)

sleep 30
rm -f /tmp/web/network.ini
rm -f /tmp/web/network-b.ini
rm -f /tmp/web/system.ini
rm -f /tmp/web/system-b.ini
rm -f /tmp/web/factory.ini
rm -f /tmp/web/factoryparam.ini

И перезагружаем чебурашку,
[/quote]

Достаем файл ipcam.sh так:

mkdir /mnt/tmp1/
mount -t jffs2 /dev/mtdblock3 /mnt/tmp1
cp /mnt/tmp1/init/ipcam.sh /mnt
umount /mnt/tmp1
rmdir /mnt/tmp1

Сохраняем так:

mkdir /mnt/tmp1/
mount -t jffs2 /dev/mtdblock3 /mnt/tmp1
cp /mnt/ipcam.sh /mnt/tmp1/init
umount /mnt/tmp1
rmdir /mnt/tmp1
reboot

Аватара пользователя
NeiroN
Специалист
Сообщения: 475
Зарегистрирован: 15 фев 2017, 21:59
Контактная информация:

Дампим at24 установленный в камере

Сообщение NeiroN » 17 июл 2017, 16:42

Вроде сдампил у себя там стоит at24c16
инфа дублируется с шагом 0x0100 и закодирована в base64
и остальное пусто (заполнено 0xFF)

Код: Выделить всё

unzip -d /tmp /system/system/lib/drivers.zip drivers/eeprom_at24.ko
insmod /tmp/drivers/eeprom_at24.ko
lsmod

hexdump -C /sys/class/i2c-adapter/i2c-1/1-0050/eeprom

Аватара пользователя
NeiroN
Специалист
Сообщения: 475
Зарегистрирован: 15 фев 2017, 21:59
Контактная информация:

Re: Камеры на процессоре Ingenic T10

Сообщение NeiroN » 17 июл 2017, 17:17

Обьем at24c16 256 байт читается и пишется через dd
но записаны только первые 32:
dd if=/sys/class/i2c-adapter/i2c-1/1-0050/eeprom of=/tmp/web/id bs=1 count=32

декодируем их base64
XWL-111111-EEEEE,YBSRHI
(сам ид замылил, но что за буквы после запятой - неясно)

Prosha
Новичок
Сообщения: 19
Зарегистрирован: 09 июн 2017, 12:00

Re: Камеры на процессоре Ingenic T10

Сообщение Prosha » 22 июл 2017, 19:42

NeiroN писал(а):...
(сам ид замылил, но что за буквы после запятой - неясно)
с этим как раз всё ясно - это код лицензии

miky_boy
Новичок
Сообщения: 12
Зарегистрирован: 24 июл 2017, 00:13

Re: Камеры на процессоре Ingenic T10

Сообщение miky_boy » 27 июл 2017, 02:16

Hi guys,

Searching over your forum i find this thread regarding my issue that i talked also on this link: viewtopic.php?f=24&t=10424&start=12" onclick="window.open(this.href);return false;

Because i don't understand Russian (sorry for that.. my bad) i used the google translator but some parts isn't impossible to understand, so i have also an Ingenic T10 IP camera and trying to recover from a firmware error i errased all the flash

I see a lot of files but i don't understand who is the correct one to using by a SPI Flash programmer. Anyone could help me please?

Other question, anyone has recovered the IP cam using the SD Card to load the u-boot and load the new firmware like my problem?

Thanks and regards

Аватара пользователя
NeiroN
Специалист
Сообщения: 475
Зарегистрирован: 15 фев 2017, 21:59
Контактная информация:

Re: Камеры на процессоре Ingenic T10

Сообщение NeiroN » 27 июл 2017, 07:45

First you need boot.img and write it from 0x00000 on SPI flash - desolder it and connect to programmer. Second when uboot is start - you can flash other img with uboot using sd card or terminal.

Or you can use other way - write full dump. That is full dump file 8mb size: https://yadi.sk/d/F5YTC_wh3Jzd6P/dump/IPcam25x64.bin" onclick="window.open(this.href);return false; but "system" partition from that dump is incorrect amd you still need update it for you camera.

miky_boy
Новичок
Сообщения: 12
Зарегистрирован: 24 июл 2017, 00:13

Re: Камеры на процессоре Ingenic T10

Сообщение miky_boy » 27 июл 2017, 18:08

Hi NeiroN,

Thanks to your support i will do that. Any update i will be back here :)

Other question, you know any other software to programm the 25Q64 flash memory using the serial port or only by usb?

Thanks and regards

Prosha
Новичок
Сообщения: 19
Зарегистрирован: 09 июн 2017, 12:00

Re: Камеры на процессоре Ingenic T10

Сообщение Prosha » 28 июл 2017, 22:17

miky_boy писал(а): Other question, you know any other software to programm the 25Q64 flash memory using the serial port or only by usb?
ic-prog, willem ets - any SPI programmer for COM-port

miky_boy
Новичок
Сообщения: 12
Зарегистрирован: 24 июл 2017, 00:13

Re: Камеры на процессоре Ingenic T10

Сообщение miky_boy » 29 июл 2017, 19:00

Hi guys,

I'm very very close to fix it :)

I used a Raspberry PI 3 to flash the 25Q64 memory with sucess. It wasn't very easy.. but i do it without dissoldering the memory.

I flashed with the file "IPcam25x64.bin" from the link above indicated by NeiroN. Now when the camera starts i see on serial interface loading severam things but now how i can make it work?

If i try to access the command, it prompts by a user/pass that i don't know.

Anyone can help me please?

Thanks and regards :)

miky_boy
Новичок
Сообщения: 12
Зарегистрирован: 24 июл 2017, 00:13

Re: Камеры на процессоре Ingenic T10

Сообщение miky_boy » 31 июл 2017, 02:14

Hi Guys,

Good news, and i have to thank you all. You are amazing and with your support i recovered the Camera.

Like i said when i tried to flash the first time i erased all memory, so the camera don't boot up. Searching online i understand that i have to program the SPI Flash Memory. Online i only found a Parallel Port Programmers to this SPI Flash. Because the new laptops doesn't have the Parallel Port, i found a schematic to use a Raspberry Pi 3 to program it...

So, hands on Work and i used a old adapter made by me to connect the GPI ports from the RPI to a breadboard. On my breadboard i connect to my SPI Flash connected on the IP Camera Mainbord. I doesn't de-solder the SPI Flash, some people say to de-solder but i tried anyway.

I lost some hours to trying to connect the RPI to the Flash because wiring problems... the breadboards are good to make this tests, but sometimes the connection is to loose or the wires doesn't make so good contact.. so after some hours i make all connections from the scratch and with all patience.

After that, oh yeahh.. the RPI detects the SPI Flash and i could finally program a bin that i found in Internet to this Camera (IPcam25x64.bin). It takes around thirty minutes to Read, Erase, Program and Verify but at the end the camera boots up again.

I disconnected the RPI connection and use again the Serial do see what happens but the camera doesn't fully work, only boots up and try to connect to Wifi but the motors doesn't rotate and nothing..

So with more search i found the "Noboot.bin" from this forum and yesss finally the camera starts to work, and moving and connecting to wifi and finally to transmit image :)

I have to thanks to all of you, and sorry to don't speak Russian :)

Now, my only question is how i can make a full dump? I used this commands below that someone said in this forum, but it gives me only the separated "Image files", but how i can get the full .bin dump?

If anyone know please tell me :)

The commands that i used are:
mkdir /mnt/dump
cat /dev/mtd0 > /mnt/dump/boot.img
cat /dev/mtd1 > /mnt/dump/kernel.img
cat /dev/mtd2 > /mnt/dump/rootfs.img
cat /dev/mtd3 > /mnt/dump/system.img
tar -zcvf /mnt/dump/system.tar.gz /system

Best Regards to all from Portugal :beer:

Аватара пользователя
NeiroN
Специалист
Сообщения: 475
Зарегистрирован: 15 фев 2017, 21:59
Контактная информация:

Re: Камеры на процессоре Ingenic T10

Сообщение NeiroN » 31 июл 2017, 22:07

mkdir /mnt/dump
cat /dev/mtd0 > /mnt/dump/fulldump.img
cat /dev/mtd1 >> /mnt/dump/fulldump.img
cat /dev/mtd2 >> /mnt/dump/fulldump.img
cat /dev/mtd3 >> /mnt/dump/fulldump.img

Ответить

Вернуться в «Обзоры оборудования»