Openwrt + required DoT or DoH

The short of it is:

  1. what resources are needed for openwrt + a required DoT or DoH solution (no wireless needed)?
  2. and can anyone recommend a basic solid hardware router that can accomplish this?

I've been reading all over and the specs don't seem clear. From install instructions, my ER-X with 256mb ram / 256mb nand flash storage seemed borderline to install openwrt and i wasn't sure if that would include dnscrypt. so i tried installing dnscrypt-proxy on EdgeOS and ran out of storage... without enough space to remove packages. (i'll revisit when usb to serial adapter arrives in next day or so)

The GL-AXT1800 travel router seems to do the above np with 512mb ram and only 128mb nand flash storage. Maybe bc of the micro sd?

I'm basically happy with my ER-X. And if i can get openwrt + DoH on it i'll be happy. but if i can't i'm not clear what the specs need to be. Right around these specs they seem to jump to mini pc specs which is not what i'm looking for in this particular router.

Thanks for any thoughts or suggestions.

Hint, it's not forbidden to use the wiki.

2 Likes

i thought i did but i guess not enough. i'll look through again.

What's borderline about it? It has plenty resources to run DoT, DoH or DNScrypt. It doesn't have to spend RAM on wireless buffers since there is no wireless on ER-X.

I'm definitely pushing my abilities here but after reading through the links below it looks like 128mb ram and 128mb flash should be plenty for what i'm trying to do. I don't really see it spelled out anywhere so i guess i just need to try and find out.

https://en.wikipedia.org/wiki/OpenWrt
- minimum of 16 MB of flash and 128 MB of RAM, preferably higher amounts.
https://openwrt.org/toh/buyerguide
https://openwrt.org/faq/which_router_should_i_buy
https://openwrt.org/toh/views/toh_available_16128
- 16MB Flash will provide for bare minimum installed packages. Devices with more storage is recommended.
- 128MB RAM will provide for minimal functionality. Devices with more RAM is recommended.

Back to the ER-X. It seems it has enough if i can recover it. Never used usb to serial adapter or a TFTP server to flash memory before but sounds like a fun thing to learn. its starting to make sense. Instead of recovering EdgeOS though i guess i'll try to flash OpenWrt directly.

* openwrt supports ER-X: 
https://openwrt.org/toh/ubiquiti/edgerouter_x_er-x_ka
* but install is not easy:
https://hmann.substack.com/p/edge-router-x-serial-connection	https://community.ui.com/questions/How-to-connect-ER-X-serial-console/75bbbd47-7520-49ba-82c4-2c35ff663497?page=1#M233420	https://community.ui.com/questions/ERX-ERX-SFP-System-Recovery/c713ea0f-a4c1-4e5c-9d43-9b369850044c

After reading through it again, i guess it was installing openwrt on top of edgeos that was borderline. it requires reverting to an older smaller version of edgeos and then still didn't have enough space. edgeos was too much not openwrt i guess.

Personally I prefer DoT, but most users use DoH. Why DoT? Because it's the fastest way to have ECS blocking DNS in my location.

1 Like
  1. count a megabyte for packages (eg. stuby with openssl) - your success heavily depends on 8MB flash whether you have that space. 64MB RAM can hold 1-2MB additional process
  2. formal minimal requirement of 128/16 is more than enough. ER-X is fine. But it is 256 mega-bits ir 32MB flash.

What do you see in df -k /overlay ? It should be 1MB maybe 2MB used from doh/dot software package added.

1 Like

brada4,

Thanks for your response. You're starting to get at what i was wondering: os + package reqs. I don't understand the correlation between storage and ram but i think i follow what you're saying: Openwrt needs ~8mb storage and packages need about ~1mb minimum. And i think you are saying thats whats needed on top of whats already installed. I thought i had that extra but the generated tar file was barely too large per openwrt isntructions which pointed to a custom tar.. which went sideways somewhere along the line.

I haven't been able to connect to the er-x for about a day now so can't check "df -k /overlay" .

Think i'm off to order a new travel (backup) router and study up on using this usb to serial adapter with the hopes i can recover the er-x when it arrives.

If you have 8MB flash you get ~1MB storage for extra packages after kernel (half to double depending on the device) , so expectation is that 32MB flash will have 20-few megs free after <.5MB initial config.

For entertainment - consider a virtual machine :wink:

You have to be more elaborate on what is installed, in ERX you can install samba server and one of fat p2p vpn packages….

1 Like

My ER-X with DOH, Adblock (Hagezi multi-light), Wireguard and DDNS

2 Likes

Just this….

brada4,

jeez thats confusing. sounds a bit like 2+2=pizza lol. Na its beginning to make sense thx.

funny you mention vm. i have one machine with 2 nics and im in the middle of trying to set up a openwrt vm in proxmox for a tmp router until my travel router arrives or i can restore the er-x. hopefully both. and of course, for the entertainment, i know very little about ve's. but gettin there! sure i could run to the store pay twice the amount but wheres the fun in that.

my er-x was just about stock. some recent web ui upgrades were significant though. don't know the specifics but they seemed heavy. i also logged in via ssh and made some config changes that way. can't remember but feel like i installed something in the past via cli. not surprising i ran out of resources on it.

Documibozo,

thats awesome. its just about exactly what i'd like to do.

Consider that not a long ago I was using dnscrypt2 and even with that fat GO app there was a lot of space left…

2 Likes

A followup on this in case it helps anyone in future with an ER-X. The router is back in the game with a fresh OpenWrt install using no where near the ER-X resources. The full console output was helpful so i'm including it at the bottom (minus kernel output for length limits).

I was able to RAM boot the factory image, use it to copy over the sysupgrade image and install it via console. The RAM boot method / Serial installation with TFTP described at link below worked great. I had a primary win11 machine setup as a usb to serial console and a second linux machine for tftp server and later scp.

This writeup was the main guide. It was very close to my situation and very helpful. Thank you to the author. Instead of running a http server at the end though i scp'd the sysupgrade image.

Getting a serial console connection:

	* most of the output ran at startup; have the terminal client setup before device startup
	* pressing '1' interrupted the bootloader
	* instructions at link above worked but here is a summary:
		* win+x - see Device Manager to confirm COM port and driver install / errors
		* Putty on win11
		* installed CP2102 win11 x64 driver
		* Gnd - Gnd
		* TX - RX
		* RX - TX
		* serial
		* COM4 @ 57600

These tftp instructions here were complete and very helpful:

Scp'd the sysupgrade image over at the end from the linux machine to erx:

scp openwrt*.bin root@192.168.1.1:/tmp/

And finally ran the install through the console.

begin console output ...


===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL4 FB_DL: 0xf, 1/0 = 633/391 3D000000
PLL2 FB_DL: 0x14, 1/0 = 694/330 51000000
PLL3 FB_DL: 0x1a, 1/0 = 575/449 69000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    0    0    0
0010:|    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0
0011:|    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 15
rank 0 fine = 64
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001C1D
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    10 9 10 11 11 7 12 8 7 7
10 |    9 11 8 10 9 9
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =29 DQS1 = 28
==================================================================
bit     DQS0     bit      DQS1
0  (1~57)29  8  (1~55)28
1  (1~51)26  9  (1~54)27
2  (1~53)27  10  (1~55)28
3  (1~54)27  11  (1~55)28
4  (0~58)29  12  (1~55)28
5  (1~53)27  13  (1~52)26
6  (0~55)27  14  (1~54)27
7  (1~55)28  15  (1~56)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    10 12 12 13 11 9 14 9 7 8
10 |    9 11 8 12 10 9
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1
DQ loop=14, cmp_err_1 = ffff0080
DQ loop=13, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=13,  finish count=2
byte:0, (DQS,DQ)=(9,8)
byte:1, (DQS,DQ)=(8,8)
20,data:89
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (UBNT Build Version: e50_002_4c817) (May 27 2019 - 06:37:33)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffac000

Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 8ffe1780
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 DA 90 95 06]
Device found in MTK table, ID: c2da, EXT_ID: 909506
Support this Device in MTK table! c2da
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 2047
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
..
UBNT e50 13-02079-22 74ACB9A32CB2
UBNT BD type=e50, mac=74ACB9A32CB2, s/n=74ACB9A32CB2, mrev=22, k_idx=0
============================================
Ralink UBoot Version: 4.3.S.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:May 27 2019  Time:06:37:33
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530
Enable port 0

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
   r: Start TFTP recovery.
default: 3

You choosed 1
                                                                                                             0


1: System Load Linux to SDRAM via TFTP.
 Please Input new ones /or Ctrl-C to discard
        Input device IP (172.16.3.213) ==:192.168.1.1
        Input server IP (172.16.3.210) ==:192.168.1.169
        Input Linux Kernel filename (vme50) ==:openwrt.bin

 NetTxPacket = 0x8FFE59C0
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 192.168.1.169; our IP address is 192.168.1.1
Filename 'openwrt.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: Got ARP REPLY, set server/gtwy eth addr (dc:0e:a1:b9:69:26)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################
done
Bytes transferred = 5922015 (5a5cdf hex)
NetBootFileXferSize= 005a5cdf
..Erasing NAND Flash...
ranand_erase: start:80000, len:20000
.Writing to NAND Flash...
done
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
   Image Name:   MIPS OpenWrt Linux-6.6.93
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    5921951 Bytes =  5.6 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...



OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...


BusyBox v1.36.1 (2025-06-23 20:40:36 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.2, r28739-d9340319c6
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: dsa: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
    link/ether <eth0 mac> brd ff:ff:ff:ff:ff:ff
    inet6 <eth0v6 mac> scope link
       valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether <eth0 mac> brd ff:ff:ff:ff:ff:ff
    inet6 <eth0v6 mac> scope link
       valid_lft forever preferred_lft forever
4: eth1@dsa: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether <eth1 mac> brd ff:ff:ff:ff:ff:ff
5: eth2@dsa: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether <eth2 mac> brd ff:ff:ff:ff:ff:ff
6: eth3@dsa: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether <eth3 mac> brd ff:ff:ff:ff:ff:ff
7: eth4@dsa: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether <eth4 mac> brd ff:ff:ff:ff:ff:ff
8: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether <eth1 mac> brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd32:cfd3:280b::1/60 scope global tentative noprefixroute
       valid_lft forever preferred_lft forever
root@OpenWrt:~# cd /proc
root@OpenWrt:/proc# ls
1              2373           35             639            meminfo
10             24             36             699            misc
1064           244            37             7              modules
11             245            38             9              mounts
1118           2462           384            buddyinfo      mtd
12             2464           39             bus            net
13             25             4              cgroups        pagetypeinfo
1358           2508           40             cmdline        partitions
14             2509           41             consoles       self
146            2526           419            cpuinfo        softirqs
15             2564           42             crypto         stat
1521           2583           426            device-tree    swaps
16             26             43             devices        sys
1640           265            44             diskstats      sysrq-trigger
17             267            45             driver         sysvipc
1731           269            46             execdomains    thread-self
1734           27             460            filesystems    timer_list
18             270            462            fs             tty
1813           271            5              interrupts     uptime
19             272            51             iomem          version
2              28             53             ioports        vmallocinfo
20             29             54             irq            vmstat
21             3              6              key-users      zoneinfo
22             30             60             keys
23             31             604            kmsg
2314           32             605            loadavg
2342           34             61             locks
root@OpenWrt:/proc# cat mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00060000 00020000 "u-boot-env"
mtd2: 00060000 00020000 "factory"
mtd3: 00600000 00020000 "kernel"
mtd4: 0f7c0000 00020000 "ubi"
root@OpenWrt:/proc# cd /
root@OpenWrt:/# ls
bin      init     overlay  root     sys      var
dev      lib      proc     run      tmp      www
etc      mnt      rom      sbin     usr
root@OpenWrt:/# cd tmp/
root@OpenWrt:/tmp# ls
TZ                   lib                  shm
board.json           lock                 state
dhcp.leases          log                  sysinfo
dnsmasq.cfg01411c.d  resolv.conf          tmp
etc                  resolv.conf.d
hosts                run
root@OpenWrt:/tmp# ls
TZ
board.json
dhcp.leases
dnsmasq.cfg01411c.d
etc
hosts
lib
lock
log
openwrt-24.10.2-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin
resolv.conf
resolv.conf.d
run
shm
state
sysinfo
tmp
root@OpenWrt:/tmp# sysupgrade -v /tmp/openwrt-24.10.2-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin
Cannot save config while running from ramdisk.
Thu Jan  1 01:13:24 UTC 1970 upgrade: Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
Thu Jan  1 01:13:25 UTC 1970 upgrade: Sending TERM to remaining processes ...
Thu Jan  1 01:13:30 UTC 1970 upgrade: Sending KILL to remaining processes ...
[ 4416.336039] stage2 (3266): drop_caches: 3
Thu Jan  1 01:13:36 UTC 1970 upgrade: Switching to ramdisk...
Thu Jan  1 01:13:38 UTC 1970 upgrade: Performing system upgrade...
[ 4418.912458] mtdblock: MTD device 'factory' is NAND, please consider using UBI block devices instead.
Kernel flag already set to kernel slot 1
verifying sysupgrade tar file integrity
Unlocking kernel ...
[ 4420.573541] mt7621-nand 1e003000.nand: ECC decoder for sector 2 timed out
[ 4421.100853] mt7621-nand 1e003000.nand: ECC decoder for sector 3 timed out
[ 4421.628274] mt7621-nand 1e003000.nand: ECC engine timed out entering idle mode
[ 4421.642668] nand: nand_erase_nand: attempt to erase a bad block at 0x09320000
[ 4421.656890] ubi0 warning: 0x80517468: error -5 while erasing PEB 1119, retry

Writing from <stdin> to kernel[ 4421.674865] ------------[ cut here ]------------
 ...  [e][ 4421.685753] WARNING: CPU: 0 PID: 419 at drivers/mtd/nand/raw/internals.h:140 0x804ec450
[ 4421.704245] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_inet pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt sha256_generic sha1_generic md5 crypto_hw_eip93 des_generic libdes authencesn authenc leds_gpio gpio_button_hotplug(O) crc32c_generic
[ 4421.807223] CPU: 0 PID: 419 Comm: ubi_bgt0d Tainted: G           O       6.6.93 #0
[ 4421.822286] Stack : 00000000 000001a3 80947440 8008a020 00000000 00000000 00000000 00000000
[ 4421.838936]         00000000 00000000 00000000 00000000 00000000 00000001 836c3ab0 8184be80
[ 4421.855581]         836c3b48 00000000 00000000 836c39f0 00000038 80826104 ffffffea 00000000
[ 4421.872226]         836c39fc 000000d3 8094f060 ffffffff 8084499c 836c3a90 00000000 804ec450
[ 4421.888873]         00000009 00000000 80947440 836c3d60 00000018 8049898c 00000000 80da0000
[ 4421.905518]         ...
[ 4421.910374] Call Trace:
[ 4421.910383] [<8008a020>] 0x8008a020
[ 4421.922217] [<80826104>] 0x80826104
[ 4421.929174] [<804ec450>] 0x804ec450
[ 4421.936115] [<8049898c>] 0x8049898c
[ 4421.943070] [<800073b8>] 0x800073b8
[ 4421.949998] [<800073c0>] 0x800073c0
[ 4421.956925] [<804ec450>] 0x804ec450
[ 4421.963853] [<807fc320>] 0x807fc320
[ 4421.970782] [<8002d9b4>] 0x8002d9b4
[ 4421.977723] [<804ec450>] 0x804ec450
[ 4421.984652] [<8002db10>] 0x8002db10
[ 4421.991659] [<804ec450>] 0x804ec450
[ 4421.998599] [<80070c00>] 0x80070c00
[ 4422.005614] [<804feefc>] 0x804feefc
[ 4422.012597] [<804f2e24>] 0x804f2e24
[ 4422.019540] [<804f6394>] 0x804f6394
[ 4422.026481] [<804f4440>] 0x804f4440
[ 4422.033409] [<804ce6bc>] 0x804ce6bc
[ 4422.040403] [<800537c8>] 0x800537c8
[ 4422.047330] [<804cdf90>] 0x804cdf90
[ 4422.054270] [<800537c8>] 0x800537c8
[ 4422.061227] [<8051743c>] 0x8051743c
[ 4422.068185] [<80517728>] 0x80517728
[ 4422.075113] [<800537c8>] 0x800537c8
[ 4422.082040] [<801a3150>] 0x801a3150
[ 4422.088995] [<805184c0>] 0x805184c0
[ 4422.095937] [<801cdfd0>] 0x801cdfd0
[ 4422.102864] [<80200001>] 0x80200001
[ 4422.109819] [<800537c8>] 0x800537c8
[ 4422.116746] [<8051880c>] 0x8051880c
[ 4422.123673] [<800537c8>] 0x800537c8
[ 4422.130601] [<801e4a14>] 0x801e4a14
[ 4422.137556] [<800537c8>] 0x800537c8
[ 4422.144483] [<80518cdc>] 0x80518cdc
[ 4422.151424] [<808280b8>] 0x808280b8
[ 4422.158391] [<80518398>] 0x80518398
[ 4422.165331] [<808280b8>] 0x808280b8
[ 4422.172323] [<8051a248>] 0x8051a248
[ 4422.179291] [<8051a130>] 0x8051a130
[ 4422.186232] [<800538cc>] 0x800538cc
[ 4422.193159] [<800537c8>] 0x800537c8
[ 4422.200101] [<800537c8>] 0x800537c8
[ 4422.207042] [<80002a58>] 0x80002a58
[ 4422.213984]
[ 4422.216982] ---[ end trace 0000000000000000 ]---
[ 4422.740209] mt7621-nand 1e003000.nand: ECC decoder for sector 0 timed out
[ 4423.267722] mt7621-nand 1e003000.nand: ECC decoder for sector 1 timed out
[ 4423.795283] mt7621-nand 1e003000.nand: ECC decoder for sector 2 timed out
[ 4424.322854] mt7621-nand 1e003000.nand: ECC decoder for sector 3 timed out
[ 4424.336386] nand: nand_erase_nand: attempt to erase a bad block at 0x04260000
[ 4424.350615] ubi0 warning: 0x80517468: error -5 while erasing PEB 473, retry
[ 4427.611211] block ubiblock0_0: created from ubi0:0(rootfs)
[ 4427.622203] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
Volume ID 0, size 23 LEBs (2920448 bytes, 2.7 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 243159040
Volume ID 1, size 1915 LEBs (243159040 bytes, 231.8 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
Unlocking kernel ...

Writing from <stdin> to kernel ...
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
[ 4430.281695] reboot: Restarting system

===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL4 FB_DL: 0xe, 1/0 = 641/383 39000000
PLL2 FB_DL: 0x14, 1/0 = 665/359 51000000
PLL3 FB_DL: 0x19, 1/0 = 642/382 65000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1
000E:|    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1    1
000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    0    0    0
0010:|    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0
0011:|    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 15
rank 0 fine = 64
B:|    0    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0
opt_dle value:10
DRAMC_R0DELDLY[018]=00001C1E
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    10 9 10 11 12 7 13 7 7 7
10 |    9 11 8 10 9 9
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =30 DQS1 = 28
==================================================================
bit     DQS0     bit      DQS1
0  (1~56)28  8  (1~54)27
1  (1~50)25  9  (1~52)26
2  (1~54)27  10  (1~55)28
3  (1~54)27  11  (0~55)27
4  (2~59)30  12  (1~55)28
5  (1~54)27  13  (1~54)27
6  (2~56)29  14  (1~55)28
7  (0~53)26  15  (1~56)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    12 14 13 14 12 10 14 11 8 9
10 |    9 12 8 11 9 9
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=1
DQ loop=14, cmp_err_1 = ffff0080
DQ loop=13, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=13,  finish count=2
byte:0, (DQS,DQ)=(9,8)
byte:1, (DQS,DQ)=(8,8)
20,data:89
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (UBNT Build Version: e50_002_4c817) (May 27 2019 - 06:37:33)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffac000

Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 8ffe1780
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 DA 90 95 06]
Device found in MTK table, ID: c2da, EXT_ID: 909506
Support this Device in MTK table! c2da
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 2047
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
..
UBNT e50 13-02079-22 74ACB9A32CB2
UBNT BD type=e50, mac=74ACB9A32CB2, s/n=74ACB9A32CB2, mrev=22, k_idx=0
============================================
Ralink UBoot Version: 4.3.S.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:May 27 2019  Time:06:37:33
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530
Enable port 0

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
   r: Start TFTP recovery.
default: 3                                                                                                   0

3: System Boot system code via Flash.
## Booting image at bfd40000 ...
   Image Name:   MIPS OpenWrt Linux-6.6.93
   Image Type:   MIPS Linux Kernel Image (uncompressed)
   Data Size:    3185208 Bytes =  3 MB
   Load Address: 80001000
   Entry Point:  80001000
.................................................   Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...



OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...


BusyBox v1.36.1 (2025-06-23 20:40:36 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.2, r28739-d9340319c6
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~#

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.