Tilgin HG2381_UK

Hi i have got Tilgin HG2381 and it is not in the list...
Can anyone explain me where i have to look to to see if it is possible to install openwrt on it?

list of chips i can see on the board is : S8314L40
EM68C16CWQG-25H EtronTech
W29N01HVSINA Winbond
S8043L71
S828NN26
QCA9880-BR4A
S8164K02

Thanks for any help

I couldn't find much info about this device.
Quick screenshot from https://www.youtube.com/watch?v=OnWw40U7JpE (might not be the exact version you have) + my annotations

# Chip
#1 Lantiq ...
#2 Lantiq ...
#3 QCA9880
#4 S8...
#5 S8...
#6 Winbond .... / EtronTech EM68C16CWQG-25H
#7 Winbond W29N01HVSINA

Can you fill in 1,2,4 and 5?

1 S8314L40
2 S8164K02
4 S8043L71
5 S828NN26 Don"t know the make never seen this logo(see picture)

Thanks for your reply

hey i have a smailer device as this.

Here is some info about mine: https://exxxxkc.neocities.org/articles/device_info/01/

It gives an option for TFTP boot when the bootloader is interrupted. Is there any chance to create an image to run a test build of openwrt that way?

Update: There seems to be a build available. https://github.com/systemcrash/lede-tilgin-2381

It seems you found my github archive for the 2381. I documented the chips on my Tilgin 2381 a few years back, so that one day someone might undertake this. The repo just has a 2381 OEM firmware update I captured.

I thought the hardware was a bit anemic when we got them for free with the Internet package. I already had an Archer C7 and stuck with that. Although the 2381 could be an OK workhorse for many, since it has a wide distribution.

@exkc - can you run the commands on the serial console when the device is up:

cat /proc/mtd

ubinfo -a

Maybe also in the uboot menu before boot:

# printenv

@kcrk - you have the HG2384 - can you do the same, please?

@Derskij do you still use this device? Can you get serial console access?

@systemcrash I've uploaded the logs with all the commands here: tilgin-hg2381_rpi400-serial0_20230119.7z

1 Like

can you run the commands on the serial console when the device is up

i cant get the shell

I have the same device as Derskij (Tilgin HG2381), and I'm trying to install openwrt on it too.
I have serial console access and already tried to tftpboot this DWR-996 firmware on it as an experiment, but it just ended up booting the factory firmware. Would you have any tips on how to build a ram bootable openwrt for it? I'm currently reading through the developer guide but there are a lot of moving parts.

Yeah, there are quite a few moving parts. The reason I have waited to start any rough development of this device is the additions for the flash system and its layout which are going into master. See this other thread about this device. When UBI devices are natively supported, it will be much easier to work on this device.

It might even lack 2.4GHz wifi - but does anyone use 2.4 nowadays?

BTW @d0tkom did you capture any log or interesting output when trying to boot that firmware?

Any updates on this? Is there a way to pull the patch and create a test build?

https://patchwork.ozlabs.org/project/linux-mtd/patch/db15df88648ace1cdd9ba6aa60c1ef418bb70a81.1683043928.git.daniel@makrotopia.org/

There's a way - just patch main and (try to) build. I've no more tips for a recommended way to do that than what's in the wiki

Still waiting for the UBI bits to go in. Looking promising, though!

OK, the UBI bits are in and that leaves perhaps one or two things out of a potential openwrt image.

But @exkc did you ever manage to get an image of your firmware on your HK based device? Could you dump one?

2 Likes

Here is some info collected from my Tilgin UBI HG228x/238x
I'm trying to figure out which OpenWRT I may try to install or how to compile one on my own.... :slight_smile:

It looks though like my version has different chips :pleading_face:

# Chip
#1 ??
#2 Lantiq PSB-82312 W V1.2 XWAY WRX312 TP1YG70C10
#3 QCA9880-BR4A
#4 Lantiq PEF 707IV V1.6
#5 Lantiq PEF 42068V V1.2 XWAY SLIC120 UMSKNNSL00
#6 ??
#7 MXIC T151 MX30LF1G08AA-T 35531000

# uname -a
Linux myhome.mynet 2.6.32.42 #1 Sat Aug 22 04:43:20 MSK 2015 mips GNU/Linux
# cat /proc/version
Linux version 2.6.32.42 (helen@bree) (gcc version 4.3.3 (GCC) ) #1 Sat Aug 22 04:43:20 MSK 2015
# cat /proc/cpuinfo
system type             : GRX390
processor               : 0
cpu model               : MIPS 34Kc V5.6
BogoMIPS                : 478.41
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ff8, 0x0ffb]
ASEs implemented        : mips16 dsp mt
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "U-Boot"
mtd1: 07f80000 00020000 "ubi"
mtd2: 00159c75 0001f800 "kernel"
mtd3: 011b1000 0001f800 "rootfs"
mtd4: 000000a9 0001f800 "test_data"
mtd5: 00001f00 0001f800 "Environment"
mtd6: 00001000 0001f800 "Misc-A"
mtd7: 00159bf6 0001f800 "old.kernel"
mtd8: 011b1000 0001f800 "old.rootfs"
mtd9: 00001000 0001f800 "old.appfs"
mtd10: 0000b000 0001f800 "Config-A"
mtd11: 0001f800 0001f800 "caldata"
mtd12: 00002000 0001f800 "Config-C"
mtd13: 00001000 0001f800 "appfs"
mtd14: 00008000 0001f800 "Log"
# cat /proc/meminfo
MemTotal:         109064 kB
MemFree:           39344 kB
Buffers:            8100 kB
Cached:            28272 kB
SwapCached:            0 kB
Active:            15132 kB
Inactive:          27868 kB
Active(anon):       7560 kB
Inactive(anon):      160 kB
Active(file):       7572 kB
Inactive(file):    27708 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          6648 kB
Mapped:             7664 kB
Shmem:              1092 kB
Slab:              19456 kB
SReclaimable:       1608 kB
SUnreclaim:        17848 kB
KernelStack:         560 kB
PageTables:          364 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       54532 kB
Committed_AS:      55664 kB
VmallocTotal:    1048372 kB
VmallocUsed:         636 kB
VmallocChunk:    1028644 kB
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / squashfs_old ro,relatime 0 0
proc /proc proc rw,relatime 0 0
none /ramdisk tmpfs rw,relatime,nr_inodes=2048,mode=755 0 0
none /dev tmpfs rw,relatime,nr_inodes=1024,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=620 0 0
none /sys sysfs rw,relatime 0 0
none /ramdisk/var/log tmpfs rw,relatime,size=512k,mode=755 0 0
procbususb /proc/bus/usb usbfs rw,relatime 0 0
tmpfs /ramdisk/var/spool/clp tmpfs rw,nosuid,nodev,noexec,noatime,size=1092k,mode=777 0 0

There is no SOC support for GRX390 yet, so you'd have to start at the very beginning to add a new target and write the necessary kernel support (think years of works for a very motivated and seasoned developer).

Thanks @slh
I was a hopeful when I saw this commit

0024-MIPS-lantiq-revert-DSA-switch-driver-PMU-clock-chang.patch
Due to the merge of grx390 and ar10 clocks, extend support to grx390

But I trust your knowledge. It has done me well so far :slight_smile:

In general, I also have this router and from what I remember I was able to boot OpenWRT on it. The main problem is the PHY firmware, which is licensed not allowing redistribution. For that momentemt also forget about support for analog phones, DSL and 2.4GHz WiFi.