FH8626V100 is it worth it?

Hi there

i have DS-3E1318P-EI Hikvision switch with castrated / very limited FW :frowning:

device is
64MB RAM
16MB flash
PoE 16 port + 2 combo
switch chip is IC+ IP1819

but ... SOC is Fh8626V100

quick google for soc+openwrt gives nothing :frowning:
so if i get it right, it will be a hard way to use OWRT on this device?
any similar OWRT project?

bootlog:

ROM:    Init DDR..Training done.
ROM:    Ok


U-Boot 2010.06 (Jan 08 2021 - 12:35:13)

DRAM:  64 MiB
master [ctl : mem] = [0 : 0]
SF: Got idcode ef 40 18 00 00
status register1: 0x0, status register2: 0x2
spi_flash_probe_winbond multi wire open flag is 103
found speed : delay = 50000000 ;1
spic use FH_SPIC_DUAL_READ && 3bytes mode
In:    serial
Out:   serial
Err:   serial
MMC:   FH_MMC: 0
No EMMC device found!!!
Net:   FH EMAC
FH8626 GPIO MUX set in uboot
Hit ctrl+u to stop autoboot:  0
master [ctl : mem] = [0 : 0]
SF: Got idcode ef 40 18 00 00
status register1: 0x0, status register2: 0x2
spi_flash_probe_winbond multi wire open flag is 103
found speed : delay = 50000000 ;1
16384 KiB W25Q128 at 0:0 is now current device
spic use FH_SPIC_DUAL_READ && 3bytes mode
spic use FH_SPIC_DUAL_READ && 3bytes mode
## Booting kernel from Legacy Image at a0300000 ...
   Image Name:   Linux-3.0.8
   Created:      2021-01-05   8:25:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3060804 Bytes = 2.9 MiB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
board_type is 0x0
prepare atags

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.0.8 (xuhuipeng@Cpl-Trans-General-13-126) (gcc version 5.5.0 (b220190606) ) #9 Tue Jan 5 16:25:35 CST 2021
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: FH8626V100
[    0.000000] Ignoring unrecognised tag 0x41000601
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram0 mem=64M  root=/dev/ram initrd=0xa1000000,0x1f6bba mtdparts=spi_flash:256K(bootstrap),64K(uboot-env),512K(uboot),3M(kernel),3M(rootfs),6336K(app),1M(config),2M(log)
[    0.000000]  ipaddr=192.0.0.64 serverip=192.0.0.128 gatewayip=192.0.0.1 netmask=255.255.255.0 board_type=0x0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 64MB = 64MB total
[    0.000000] Memory: 57700k/57700k available, 7836k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc4800000 - 0xfe000000   ( 920 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc010e000   (1048 kB)
[    0.000000]       .text : 0xc010e000 - 0xc04cc000   (3832 kB)
[    0.000000]       .data : 0xc04cc000 - 0xc04f23e0   ( 153 kB)
[    0.000000]        .bss : 0xc04f2404 - 0xc0518678   ( 153 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] timer mult: 0xc8000000, timer shift: 0x19
[    0.000000] sched_clock: 32 bits at 10MHz, resolution 100ns, wraps every 429496ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.198193] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.261239] pid_max: default: 32768 minimum: 301
[    0.266030] Mount-cache hash table entries: 512
[    0.270845] CPU: Testing write buffer coherency: ok
[    0.276011] devtmpfs: initialized
[    0.281427] NET: Registered protocol family 16
[    0.287646] FH8626V100 board init
[    0.366585] bio: create slab <bio-0> at 0
[    0.372677] fh_dmac fh_dmac.0: FH DMA Controller, 6 channels
[    0.379361] usbcore: registered new interface driver usbfs
[    0.384338] usbcore: registered new interface driver hub
[    0.389104] usbcore: registered new device driver usb
[    0.397732] cfg80211: Calling CRDA to update world regulatory domain
[    0.404890] Switching to clocksource fh_clocksource
[    0.449791] NET: Registered protocol family 2
[    0.452891] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.459950] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.466633] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.472879] TCP: Hash tables configured (established 2048 bind 2048)
[    0.479115] TCP reno registered
[    0.482254] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.488043] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.494645] NET: Registered protocol family 1
[    0.499134] RPC: Registered named UNIX socket transport module.
[    0.504479] RPC: Registered udp transport module.
[    0.509095] RPC: Registered tcp transport module.
[    0.513785] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.685585] Trying to unpack rootfs image as initramfs...
[    1.032307] Freeing initrd memory: 2008K
[    1.336083] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.350846] msgmni has been set to 116
[    1.365100] NET: Registered protocol family 38
[    1.368124] io scheduler noop registered (default)
[    1.384210] fh_pwm_probe: clk_rate: 25000000
[    1.390604] PWM driver, Number: 12, IO base addr: 0xc4878000
[    1.407149] ttyS.0: ttyS0 at MMIO 0xf0700000 (irq = 18) is a ttyS
[    1.417724] ttyS.1: ttyS1 at MMIO 0xf0800000 (irq = 19) is a ttyS
[    1.432826] ttyS.2: ttyS2 at MMIO 0xf1300000 (irq = 20) is a ttyS
[    1.454798] brd: module loaded
[    1.498467] CLK misc driver init successfully
[    1.547516] m25p80 spi0.0: found w25q128, expected m25p80
[    1.556570] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    1.560167] DEBUG-CMDLINE-PART: parsing <256K(bootstrap),64K(uboot-env),512K(uboot),3M(kernel),3M(rootfs),6336K(app),1M(config),2M(log)>
[    1.573555] DEBUG-CMDLINE-PART: partition 7: name <log>, offset ffffffff, size 200000, mask flags 0
[    1.583420] DEBUG-CMDLINE-PART: partition 6: name <config>, offset ffffffff, size 100000, mask flags 0
[    1.593586] DEBUG-CMDLINE-PART: partition 5: name <app>, offset ffffffff, size 630000, mask flags 0
[    1.603468] DEBUG-CMDLINE-PART: partition 4: name <rootfs>, offset ffffffff, size 300000, mask flags 0
[    1.613636] DEBUG-CMDLINE-PART: partition 3: name <kernel>, offset ffffffff, size 300000, mask flags 0
[    1.623806] DEBUG-CMDLINE-PART: partition 2: name <uboot>, offset ffffffff, size 80000, mask flags 0
[    1.633785] DEBUG-CMDLINE-PART: partition 1: name <uboot-env>, offset ffffffff, size 10000, mask flags 0
[    1.644144] DEBUG-CMDLINE-PART: partition 0: name <bootstrap>, offset ffffffff, size 40000, mask flags 0
[    1.654503] DEBUG-CMDLINE-PART: mtdid=<spi_flash> num_parts=<8>
[    1.660975] 8 cmdlinepart partitions found on MTD device spi_flash
[    1.667708] Creating 8 MTD partitions on "spi_flash":
[    1.673242] 0x000000000000-0x000000040000 : "bootstrap"
[    1.695969] 0x000000040000-0x000000050000 : "uboot-env"
[    1.720767] 0x000000050000-0x0000000d0000 : "uboot"
[    1.747027] 0x0000000d0000-0x0000003d0000 : "kernel"
[    1.770809] 0x0000003d0000-0x0000006d0000 : "rootfs"
[    1.797991] 0x0000006d0000-0x000000d00000 : "app"
[    1.820809] 0x000000d00000-0x000000e00000 : "config"
[    1.848547] 0x000000e00000-0x000001000000 : "log"
[    1.899434] console [netcon0] enabled
[    1.901889] netconsole: network logging started
[    1.942089] resource: start=e0700000, len=00100000
[    1.945802] base=0xc4a00000 (after adjust)
[    1.950343] fh_otg_driver_probe: mapped PA 0xe0700000 to VA 0xc4a00000
[    2.057272] Core Release: 3.30a
[    2.059116] Setting default values for core params
[    2.263798] dma_enable :1
[    2.265063] dma_desc_enable :1
[    2.467861] Using Descriptor DMA mode
[    2.470287] Periodic Transfer Interrupt Enhancement - disabled
[    2.476636] Multiprocessor Interrupt Enhancement - disabled
[    2.482739] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.487475] FH OTG HCD INIT (c3334000)
[    2.491583] hcd regs before base(c4a00000)
[    2.496101] fh_otg fh_otg: FH OTG Controller
[    2.500879] fh_otg fh_otg: new USB bus registered, assigned bus number 1
[    2.508062] fh_otg fh_otg: irq 27, io mem 0x00000000
[    2.513488] Init: Power Port (0)
[    2.517093] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.524391] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.532258] usb usb1: Product: FH OTG Controller
[    2.537275] usb usb1: Manufacturer: Linux 3.0.8 fh_otg_hcd
[    2.543278] usb usb1: SerialNumber: fh_otg
[    2.554420] hub 1-0:1.0: USB hub found
[    2.556952] hub 1-0:1.0: 1 port detected
[    2.595761] fh_rtc fh_rtc.0: rtc core: registered rtc as rtc0
[    2.641402] i2c /dev entries driver
[    2.644361] I2C driver:
[    2.644376]  platform registration...
[    2.650291]  Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[    2.656836]  tx fifo depth: 16, rx fifo depth: 16
[    2.672723]  I2C - (dev. name: fh_i2c - id: 0, IRQ #9
[    2.672737]          IO base addr: 0xc48b0000)
[    2.680928] I2C driver:
[    2.680940]  platform registration...
[    2.687462]  Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[    2.694090]  tx fifo depth: 16, rx fifo depth: 16
[    2.720007]  I2C - (dev. name: fh_i2c - id: 1, IRQ #10
[    2.720022]          IO base addr: 0xc48b8000)
[    2.728317] I2C driver:
[    2.728330]  platform registration...
[    2.734870]  Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[    2.741462]  tx fifo depth: 16, rx fifo depth: 16
[    2.757139]  I2C - (dev. name: fh_i2c - id: 2, IRQ #11
[    2.757153]          IO base addr: 0xc48c0000)
[    2.800950] TCP cubic registered
[    2.802895] NET: Registered protocol family 17
[    2.807809] lib80211: common routines for IEEE802.11 drivers
[    2.813990] Registering the dns_resolver key type
[    2.819090] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.885064] fh_rtc fh_rtc.0: setting system clock to 1970-01-01 00:02:13 UTC (133)
[    2.937049] aes driver registered
[    2.942495] Freeing init memory: 1048K
starting pid 498, tty '': '/etc/init.d/rcS'

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __x  /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

********rootfs.img switch_rootfs_v1.0
21-11-19 12:24:13********
[RCS]: /etc/init.d/S01udev
Starting udev:      [ OK ]
[RCS]: /etc/init.d/S02init_rootfs
[RCS]: /etc/init.d/S03network
[    4.288531] COMMON GPL drv init ok!
[    4.288546]
[    4.292075] gpl_common @V1.0 (built Nov 24 2020 18:46:18)
[    4.336833] hikio_drv: module license 'HIKVISION' taints kernel.
[    4.341417] Disabling lock debugging due to kernel taint
[    4.347699] hikio_module init
[    4.349601] V1.0 @hikio (built Nov 24 2020 18:47:33)
[    4.354939] watchdog driver init success!
switch board hik pin mux......
write: 0xf000017c, 0x1001040
write: 0xf0000128, 0x1011000
write: 0xf0000138, 0x1011000
write: 0xf0000154, 0x1001000
write: 0xf0000150, 0x1001000
write: 0xf0000174, 0x1001000
write: 0xf0000180, 0x1001000
write: 0xf0000184, 0x1001000
write: 0xf0000188, 0x1011040
write: 0xf000018c, 0x2011000
write: 0xf0000190, 0x2011000
write: 0xf000013c, 0x11040
write: 0xf0000140, 0x11000
write: 0xf0000194, 0x1001000
write: 0xf0000198, 0x1001000
set group1 IO 3.3V
write: 0xf0000074, 0x0
set I2C1 SDA_HOLD 200ns
write: 0xf0b0007c, 0xa
set I2C1 fast mode I2C CLOCK High count bigger
write: 0xf0b0001c, 0x3e
1) IP1819A and RTL8201FS RESET
write: 0xf00000e8, 0x101000
write: 0xf00000e8, 0x11000
2) RTL8211*2  RESET
[   13.148671] V1.0 @rtl8306m_net_mdio (built Jan 15 2021 10:24:56)
[   13.153405] Register chrdev net_mdio major:231,minor:0 success!
get board_type 0x0
[   13.219838] fh_gmac (built Apr 10 2021 15:21:26)
[   13.223039] g_switch is 0x0
[   13.225819] GMAC driver:
[   13.225831]  platform registration...
[   13.231942]  using random MAC address: 72:37:80:2c:67:df
[   13.237697] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[   13.243854] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.
[   13.251202]  eth0 - (dev. name: fh_gmac - id: 0, IRQ #13
[   13.251217]          IO base addr: 0xc48f8000)
[   13.260343] flag :ON
[   13.896611] gmac_rmii: probed
[   13.898123] eth0: PHY ID 001cc816 at 0 IRQ -1 (0:00) active
[   13.904715] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[   13.910252] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.
[   13.947770] V1.0 @hi3518ev200 poe_led (built Nov 19 2020 14:09:40)
[   13.952650] Register chrdev poe_led major:220,minor:0 success!
[   14.008011] switch_event_module init
[   14.010120] V1.0 @switch_event (built Nov 19 2021 11:40:03)
[   14.059592] gpio key module init
[   14.061402] V1.0 @gpio_key (built Jan  5 2021 16:56:58)
init SZ18201 success
init SZ18201 success
sw_init IPD1829A success!
ICplus switch all inner port link down success!
reg val is 0xc0
[   14.901002] PHY: 0:00 - Link is Up - 100/Full
[   17.150279] card0 disconnected!
rtl8201F_init RTL8211FS_0 success!
reg val is 0xc0
rtl8201F_init RTL8211FS_1 success!
get device:0x4 phyid failed!
mkdir: can't create directory '/var/run': File exists
[RCS]: /etc/init.d/S80network
      IP: 192.0.0.64
   BOOTP:
 GATEWAY: 192.0.0.1
 NETMASK: 255.255.255.0
HOSTNAME:
  NETDEV: eth0
AUTOCONF:
[   26.040706] g_mtd is 0xc388e610, name is spi_flash
[   26.056117] ret:0
[   26.056583] 0x53-0x57-0x4B
[   26.620495] gmac_rmii: probed
[   26.622007] eth0: PHY ID 001cc816 at 0 IRQ -1 (0:00) active
[   26.628529] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[   26.634139] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.
[RCS]: /etc/init.d/S99autorun
*****autorun script*****
starting pid 1001, tty '': '-/bin/sh'


BusyBox v1.19.3 (2020-12-02 15:48:52 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

-/bin/sh: stty: not found
BusyBox v1.2.1 Protect Shell (psh)
Enter 'help' for a list of davinci system commands.

# [   27.266784] gmac_rmii: probed
[   27.268298] eth0: PHY ID 001cc816 at 0 IRQ -1 (0:00) active
[   27.274871] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[   27.280426] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.

#########product info:#############
devicename: DS-3E1318P-EI
softVersion:V1.2.11 build 211213
language: EN
serialNo:K54362312
ezvizCode:HGCEOS
deviceType:0xa32209, deviceClass:5685
portNum:18
devicePrio:5700
deviceSeries:10746376
######################################
if_delRoute error: No such process
[   28.270365] PHY: 0:00 - Link is Up - 100/Full
[   28.776974] <hik>link_before_status :0x0
[   28.786622] <*******************add>list_cur->deal_rule.list_index:1,user_index:0
[   28.792658] <************<add>  &g_sw_deal_list:bf01aa54, list_cur is c2c25a00
[   28.844789] <hik>link_before_status :0x0
Init System Success!

That SoC doesn't even have support in the mainline kernel so it's pretty much a dead end.

Also, 64 MB of RAM is already discouraged (see https://openwrt.org/supported_devices/openwrt_on_864_devices) so even if it would be possible to bring OpenWrt to it (which it won't), you'll be hard pressed to find anyone interested as the future support of it looks to be in doubt.

I also found internal images which indicates that it's using RTL8188FTV for WiFi which isn't supported as well.

Since it is a managed switch, it could be enough :slight_smile:

again, it is a manged switch DS-3E1318P-EI

looks like Hikvision using same SoC in every product :slight_smile: camera, switch ... :slight_smile: so i was hoping that someone maybe, started some project based on this SoC

anyway, switch is not a big deal, 16x100Mbit PoE + 2x combo
but, i feel sorry to throw it away :frowning:

The China based SoCs are usually....poorly documented, or not even releasing any development information. Unless you've found some very popular one, like AllWinner/RockChip that can be seen in many different products and caught interest from people, otherwise usually it will be a dead end.

One good example is the SiFlower chip being used in GL-INET cheap routers, no one would ever work on it.

1 Like

Ah my bad, I accidentally found another device with that SoC and the device you actually mentioned flew right out of my head. The point about the SoC unfortunately still stands tho, I can't even find any documentation for it so even if it would be possible to bring support to it, it would be a massive uphill battle.

1 Like