OpenIPC / firmware

Alternative IP Camera firmware from an open community
https://openipc.org
MIT License
1.16k stars 226 forks source link

Other interesting board GK7205v300 but need some workaround to flash #993

Open Nuts-Underline opened 10 months ago

Nuts-Underline commented 10 months ago

My board teken here https://aliexpress.com/item/1005005471371172.html Looking good: GK7205V300+IMX335 +MicroSD slot + place for soldering WiFi (usb, WiFi module is option) + UART on pins, as fact 16MB SPI and 2 UARTs (one prepared for RS485 PTZ but not ADM485 not soldered, direct wired to connector) Problems: 1) Non standart firmware named p2p (camhipro), and it even can load XiongMai's OpenIPC frimwares .bin and to show like its flashing, but no any change at end 2) Unknown root password 3) Uboot non standart and having password ### Please input uboot password: ###

WORKAROUND, found here (SPI reader + decompiling) this human known here as @libc0607 He used camera on T31 but same result 1) geting connection to onboard UART (connector 1,25 or just wiring) Hint: TX, GND, RX, +3.3V 2) having ### Please input uboot password: ### - ubootpwd answer -> HI2105CHIP <--- 3) sf lock 0 for flashing not working, need sf unlock 0x0 0x1000000 for it

this way i can backup oringinal firmware and restore it witjout problem

Pimmetje commented 8 months ago

Here a similar camera https://aliexpress.com/item/1005003340814126.html Ill try if the sensor chip will work in a few days.

Pimmetje commented 8 months ago

I also have the uboot password but i am unable to access it given password ubootpwd. @Nuts-Underline What did u use for password?

Nuts-Underline commented 7 months ago

answer
HI2105CHIP

Pimmetje commented 7 months ago

I tried that one i think. How did u get the password from the binary?

Nuts-Underline commented 7 months ago

I tried that one i think. How did u get the password from the binary?

all i know - in my 1st post here

Pimmetje commented 6 months ago

At the end i used burn

csvke commented 3 months ago

Anyone here got this board working with a WiFi module? I was told by a seller in taobao to use this module https://item.taobao.com/item.htm?id=744788471484 which is a altobeam atbm6032ls

I have gone as far as building openipc firmware with the driver as .ko so I can ismod or modprobe but someone on the telegram channel mentioned the need of toggling a GPIO pin. Any info is appreciated

Nuts-Underline commented 3 months ago

@csvke there can be a tons of problem 1) AltoBeam atbm603x need special driver, its included to only 2 configs of OpenIPC (_BR2_PACKAGEATBM603X=Y) for other boad, not for our board 2)3.3V power to module can be measured with some kind of multimeter. If no voltage - need to dig ito original firmware for GPIOs nubmers

taobao asking for login and not showing any picture. Better to add some pics directrly here

csvke commented 3 months ago

@csvke there can be a tons of problem

  1. AltoBeam atbm603x need special driver, its included to only 2 configs of OpenIPC (_BR2_PACKAGEATBM603X=Y) for other boad, not for our board 2)3.3V power to module can be measured with some kind of multimeter. If no voltage - need to dig ito original firmware for GPIOs nubmers

taobao asking for login and not showing any picture. Better to add some pics directrly here

image

I have this which is a JFTech IVG-6GS that has a Goke GK7205v300 SoC and the USB are exposed with a 12-pin flex cable connector. Taobao is selling a WiFi+SD card extension board which uses Altobeam atbm6032ls WiFi chip. I cannot get the usb working as it seems to need a trigger to pull the pin 7 of the flex cable connector to pass power through to the WiFi chip. I have observed that pin 7 at low until Openipc boots into loading the kernel. Like what you said, I have tried to pull all the GPIO from 1-79 and it still does not work. My educated guess is that the memory register that control the WIFI_PDN pin that wasn’t registered in Openipc but I carelessly didn’t backup the original firmware to investigate… if someone has the original firmware I maybe able to use ipctool to possibly investigate the GPIO registers.

image

One interesting thing is that when I put this WiFi board to a GK7205v210 board, ‘lsusb’ did recognise the usb device without the need to trigger any GPIO / memory register. But it only proves the WiFi board is functioning, as I cannot get the driver into a Openipc build, not too mention Openipc do not have a GK7205v210 ultimate firmware (despite the camera board comes with 16mb NOR) and the GK7205v210 has been identified as a GK7205v200 so I have to build a GK7205v200 firmware to load into a GK7205v210 (but still cannot get ATBM603X driver into the firmware)

And the second point is that no matter what I do I can’t build the BR2_PACKAGE_ATBM603X=Y into the actual firmware like you said.

I guess it’s too much hurdles to get this WiFi board working, I may settle with buying a different WiFi chip such as a MT7601 and a RTL8188EU to test.

at least I tried.

Nuts-Underline commented 3 months ago

I carelessly didn’t backup the original firmware to investigate

Its most problem, i thinking it can be better to open special issue for (owners of) this board

roootfs.jffs2 of my board have no relation to drivers, specially ATBM or gpio, but having some strings like 7601 so there need to unpack kernel

funkypozzy commented 3 weeks ago

@csvke there can be a tons of problem

  1. AltoBeam atbm603x need special driver, its included to only 2 configs of OpenIPC (_BR2_PACKAGEATBM603X=Y) for other boad, not for our board 2)3.3V power to module can be measured with some kind of multimeter. If no voltage - need to dig ito original firmware for GPIOs nubmers

taobao asking for login and not showing any picture. Better to add some pics directrly here

image

I have this which is a JFTech IVG-6GS that has a Goke GK7205v300 SoC and the USB are exposed with a 12-pin flex cable connector. Taobao is selling a WiFi+SD card extension board which uses Altobeam atbm6032ls WiFi chip. I cannot get the usb working as it seems to need a trigger to pull the pin 7 of the flex cable connector to pass power through to the WiFi chip. I have observed that pin 7 at low until Openipc boots into loading the kernel. Like what you said, I have tried to pull all the GPIO from 1-79 and it still does not work. My educated guess is that the memory register that control the WIFI_PDN pin that wasn’t registered in Openipc but I carelessly didn’t backup the original firmware to investigate… if someone has the original firmware I maybe able to use ipctool to possibly investigate the GPIO registers.

image

One interesting thing is that when I put this WiFi board to a GK7205v210 board, ‘lsusb’ did recognise the usb device without the need to trigger any GPIO / memory register. But it only proves the WiFi board is functioning, as I cannot get the driver into a Openipc build, not too mention Openipc do not have a GK7205v210 ultimate firmware (despite the camera board comes with 16mb NOR) and the GK7205v210 has been identified as a GK7205v200 so I have to build a GK7205v200 firmware to load into a GK7205v210 (but still cannot get ATBM603X driver into the firmware)

And the second point is that no matter what I do I can’t build the BR2_PACKAGE_ATBM603X=Y into the actual firmware like you said.

I guess it’s too much hurdles to get this WiFi board working, I may settle with buying a different WiFi chip such as a MT7601 and a RTL8188EU to test.

at least I tried.

I have the same camera GK7205V300+IMX335 +MicroSD slot and Wifi Module and I'm not able to enable the wifi. Here the link the original firmware backup: https://drive.google.com/file/d/1LBMsVoHrfXAH2sqlfecHysbKXadlIioG/view?usp=drive_link. Hope this can help. Let me know...

thedeadliestcatch commented 3 weeks ago

backup-gk7205v300-nor16m.bin.gz

I have attached a dump of the same module. The Wifi-SD card module @funkypozzy and @csvke are talking about I suppose is the one witht he silkscreen markings IF-SD-WIFI (mine says IPC_38x38-WIFI-if v1.02 on the bottom silkscreen), with Altobeam 60321s (USB variant of the IC).

Some of the known GPIO numbers are listed here: https://github.com/OpenIPC/firmware/blob/master/general/overlay/etc/wireless/usb

# Generic ATBM603x
if [ "$1" = "atbm603x-generic-usb" ]; then
    modprobe atbm603x_wifi_usb
    exit 0
fi

(...)

# T31 ZTE K540
if [ "$1" = "atbm603x-t31-zte-k540" ]; then
    set_gpio 51 0
    modprobe atbm603x_wifi_usb
    exit 0
fi

I will be creating a proper issue to track this.

thedeadliestcatch commented 3 weeks ago

Tracking this here https://github.com/OpenIPC/firmware/issues/1486 @csvke @Nuts-Underline

thedeadliestcatch commented 3 weeks ago

@funkypozzy Your firmware backup contains the WLAN functionality (mine did not), thank you for that! Please move tot he issue I opened for this specific board.

thedeadliestcatch commented 3 weeks ago

Solved in the dedicated issue.