I just tested installation of Openwrt 22.03 RC4 onto DGS-1210-20 F1. Without having a matching image i tried the best match DGS-1210-16. From documenationion I expect 1210-16 G1 to be nearly the same as 1210-20 F1.
Loading imageramfs works nice. However during load I get an error - NEVERTHELESS openwrt will start
u-boot># tftpboot 0x8f000000 10.90.90.1:openwrt.bin
Using rtl8380#0 device
TFTP from server 10.90.90.1; our IP address is 10.90.90.90
Filename 'openwrt.bin'.
Load address: 0x8f000000
Loading: Got ARP REPLY, mac addr (e8:6a:64:e8:d5:2f), ip addr (10.90.90.1)
T T T T T T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
############
done
Bytes transferred = 6842989 (686a6d hex)
u-boot># bootm
Loading Runtime Image .OS:...FAILED
read: 0x4a650465, calculated: 0x49f786a4FS:...FAILED!!
os_ver = 1030, fs_ver = 1.........(os_ver & fs_ver) = 0...
## Booting kernel from Legacy Image at 8f000000 ...
Image Name: MIPS OpenWrt Linux-5.10.120
Created: 2022-06-10 7:20:21 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 6842925 Bytes = 6.5 MB
Load Address: 80000000
Entry Point: 80000400
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 5.10.120 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19426-2b1941e47d) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Jun 10 07:20:21 2022
[ 0.000000] RTL838X model is 83826800
Setup will continue through webui. Flashing works but restart hangs. After poweroff/poweron cycle the system starts, gives the same error and falls back to failsafe image
**** RTL8214FC config - MAC ID = 24 ****
Now External 8214FC
Net: Net Initialization Skipped
rtl8380#0
Hit Esc key to stop autoboot: 0
Loading Runtime Image .OS:...FAILED
read: 0x4a650465, calculated: 0x4a13593aFS:...FAILED!!
os_ver = 83ddf784, fs_ver = 1.........(os_ver & fs_ver) = 0...
## Booting kernel from Legacy Image at b4e80000 ...
Image Name:
Created: 2020-09-04 8:33:36 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1035503 Bytes = 1011.2 KB
Load Address: 80000000
Entry Point: 80262000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
Usually for me those T means problem in the tftp connection. I have only seen those when I have no connection at all. But then it usually fill a whole line with T and then aborts.
I have only # when loading the file from the tftp server.
Those, I always get after the original firmware was replaced with OpenWRT (the second line is for me only the text FS:….Failed!! instead. But it doesn’t matter because it works anyway.
I think it somehow looks for the original firmware or something?
Have you actually made a setup firmware dts file for your device hardware or did you just took anything from the source code pile and rolled the dice?
Looking at bootlog from the wiki it seems as if OpenWRT will boot always from the backup partition. My device is booting original legacy from b4e80000 (see above) while G1 is booting OpenWRT legacy from b4100000 (see G1 bootlog )
Loading Runtime Image .OS:...FAILED
FS:...FAILED!!
...
## Booting kernel from Legacy Image at b4100000 ...
Image Name: MIPS OpenWrt Linux-5.4.124
Created: 2021-06-13 22:02:19 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 2814581 Bytes = 2.7 MB
Load Address: 80000000
Entry Point: 80000400
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 5.4.124 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16172-2aba3e9784)) #0 Sun Jun 13 22:02:19 2021
So you took a 16-port H/W rev G1 and put it in a 20-port H/W rev F3.
And just expected it to work without making any attempts to check anything other than the fact that D-Link was the manufacturer on both.
I know that seems strange but from my understanding 1210-20 F1 = 1210-16 G1. initramfs works flawless. MTD layout is the same. Maybe some U-Boot differences ... I will have a look at the 1210-28 OpenWRT config. This is an F model too.
problem fixed. Boot address was wrongly set in U-Boot environment. Pointed to backup location. changed it via setenv and now it works. Will update the wiki.