Install Openwrt Mikrotik RBSXT5nDr2

I want to install OpenWRT on this router, but I'm having trouble with the TFTP server. I understood everything about how to set it up and flash the routerboard, but the problem is that it just gets the IP address from the DHCP and then it just doesn't send the initramfs.bin.

My tftpd64 logs are:

Warning: Anticipation window in use
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:18.785]
DHCP: proposed address 192.168.1.3 [08/11 22:37:21.969]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:21.972]
DHCP: proposed address 192.168.1.3 [08/11 22:37:25.136]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:25.140]
DHCP: proposed address 192.168.1.3 [08/11 22:37:28.300]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:28.303]
DHCP: proposed address 192.168.1.3 [08/11 22:37:31.463]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:31.467]
DHCP: proposed address 192.168.1.3 [08/11 22:37:34.635]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:34.640]
DHCP: proposed address 192.168.1.3 [08/11 22:37:37.808]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:37.811]
DHCP: proposed address 192.168.1.3 [08/11 22:37:40.969]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:40.972]
DHCP: proposed address 192.168.1.3 [08/11 22:37:44.148]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:44.151]
DHCP: proposed address 192.168.1.3 [08/11 22:37:47.314]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:47.317]
DHCP: proposed address 192.168.1.3 [08/11 22:37:50.483]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:50.487]
DHCP: proposed address 192.168.1.3 [08/11 22:37:53.661]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:53.664]
DHCP: proposed address 192.168.1.3 [08/11 22:37:56.830]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:37:56.834]
DHCP: proposed address 192.168.1.3 [08/11 22:38:00.011]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:00.017]
DHCP: proposed address 192.168.1.3 [08/11 22:38:03.177]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:03.181]
DHCP: proposed address 192.168.1.3 [08/11 22:38:06.344]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:06.347]
DHCP: proposed address 192.168.1.3 [08/11 22:38:09.520]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:09.523]
DHCP: proposed address 192.168.1.3 [08/11 22:38:12.692]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:12.697]
DHCP: proposed address 192.168.1.3 [08/11 22:38:15.871]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:15.875]
DHCP: proposed address 192.168.1.3 [08/11 22:38:19.035]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:19.038]
DHCP: proposed address 192.168.1.3 [08/11 22:38:22.207]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:22.210]
DHCP: proposed address 192.168.1.3 [08/11 22:38:25.372]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:25.376]
DHCP: proposed address 192.168.1.3 [08/11 22:38:28.546]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:28.550]
DHCP: proposed address 192.168.1.3 [08/11 22:38:31.709]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:31.713]
DHCP: proposed address 192.168.1.3 [08/11 22:38:34.873]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:34.876]
DHCP: proposed address 192.168.1.3 [08/11 22:38:38.055]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:38.058]
DHCP: proposed address 192.168.1.3 [08/11 22:38:41.227]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:41.231]
DHCP: proposed address 192.168.1.3 [08/11 22:38:44.408]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:44.411]
DHCP: proposed address 192.168.1.3 [08/11 22:38:47.572]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:47.576]
DHCP: proposed address 192.168.1.3 [08/11 22:38:50.756]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:50.760]
DHCP: proposed address 192.168.1.3 [08/11 22:38:53.920]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:53.924]
DHCP: proposed address 192.168.1.3 [08/11 22:38:57.089]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:38:57.095]
DHCP: proposed address 192.168.1.3 [08/11 22:39:00.269]
Rcvd DHCP Discover Msg for IP 0.0.0.0, Mac F4:1E:57:22:98:B5 [08/11 22:39:00.272]

I got it to initialize, but now I can't flash it because there is only one partition available, and it's too small.

Look at the partition downloaded
Processing: image.png…

Look at my logs, what's causing the nand issue?

[ 0.000000] Linux version 5.15.167 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Sep 23 12:34:46 2024
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is MikroTik RouterBOARD SXT 5nD r2 (SXT Lite5)
[ 0.000000] SoC: Atheros AR9344 rev 3
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 51804K/65536K available (6746K kernel code, 592K rwdata, 856K rodata, 4596K init, 221K bss, 13732K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 600.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000002] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[ 0.008961] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[ 0.086068] pid_max: default: 32768 minimum: 301
[ 0.092401] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.100725] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.117324] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.128568] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.136570] pinctrl core: initialized pinctrl subsystem
[ 0.144700] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.152110] thermal_sys: Registered thermal governor 'step_wise'
[ 0.170001] clocksource: Switched to clocksource MIPS
[ 0.184333] NET: Registered PF_INET protocol family
[ 0.190227] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.199597] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.209307] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.218134] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.226864] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.234898] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.242311] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.249773] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.258230] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.264812] PCI: CLS 0 bytes, default 32
[ 0.874601] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.888012] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.894716] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.907638] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.920745] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.928025] gpio-export gpio-export: 1 gpio(s) exported
[ 0.935527] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.946033] printk: console [ttyS0] disabled
[ 0.951058] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[ 0.960918] printk: console [ttyS0] enabled
[ 0.969980] printk: bootconsole [early0] disabled
[ 7.170003] ar934x-nand 1b000200.nand: read operation failed on page -1
[ 8.639995] ar934x-nand 1b000200.nand: read operation failed on page -1
[ 10.109996] ar934x-nand 1b000200.nand: read operation failed on page -1
[ 11.579996] ar934x-nand 1b000200.nand: read operation failed on page -1
[ 11.586851] nand: No NAND device found
[ 11.590741] ar934x-nand 1b000200.nand: nand_scan failed, err:-19
[ 11.598401] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[ 11.603670] 1 fixed-partitions partitions found on MTD device spi0.0
[ 11.610301] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[ 11.617182] OF: Bad cell count for /ahb/spi@1f000000/flash@0/partitions
[ 11.624407] Creating 1 MTD partitions on "spi0.0":
[ 11.629381] 0x000000000000-0x000000020000 : "RouterBoot"
[ 11.639747] RouterBoot: routerboot partition /ahb/spi@1f000000/flash@0/partitions/partition@0/partition@10000 (/ahb/spi@1f000000/flash@0/partitions/partition@0) "bootloader2" overlaps with previous partition "soft_config".
[ 11.660287] RouterBoot: error parsing routerboot partition /ahb/spi@1f000000/flash@0/partitions/partition@0/partition@10000 (/ahb/spi@1f000000/flash@0/partitions/partition@0)
[ 12.077307] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
[ 12.133358] ag71xx 19000000.eth: invalid MAC address, using random address
[ 12.482209] ag71xx 19000000.eth: connected to PHY at mdio.0:1f:00 [uid=004dd042, driver=Generic PHY]
[ 12.492532] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[ 12.499353] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 10, using 10
[ 12.510824] NET: Registered PF_INET6 protocol family
[ 12.527752] Segment Routing with IPv6
[ 12.531740] In-situ OAM (IOAM) with IPv6
[ 12.535941] NET: Registered PF_PACKET protocol family
[ 12.541328] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 12.555372] 8021q: 802.1Q VLAN Support v1.8
[ 12.565761] clk: Disabling unused clocks
[ 12.599977] Freeing unused kernel image (initmem) memory: 4596K
[ 12.606156] This architecture does not have kernel memory protection.
[ 12.612827] Run /init as init process
[ 12.616610] with arguments:
[ 12.616615] /init
[ 12.616621] with environment:
[ 12.616626] HOME=/
[ 12.616631] TERM=linux
[ 13.458254] init: Console is alive
[ 13.462563] init: - watchdog -
[ 13.493574] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 13.508968] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 13.527157] init: - preinit -
[ 13.994291] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.109768] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.228146] random: jshn: uninitialized urandom read (4 bytes read)
[ 16.672992] eth0: link up (100Mbps/Full duplex)
[ 16.677748] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.803386] eth0: link down
[ 16.821902] procd: - early -
[ 16.825297] procd: - watchdog -
[ 17.457164] procd: - watchdog -
[ 17.461817] procd: - ubus -
[ 17.476460] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.515438] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.522750] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.533917] procd: - init -
[ 18.421988] kmodloader: loading kernel modules from /etc/modules.d/*
[ 19.005854] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[ 19.013873] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[ 19.325796] PPP generic driver version 2.4.2
[ 19.341206] NET: Registered PF_PPPOX protocol family
[ 19.437238] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[ 19.447965] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[ 19.911295] ath: phy0: Unable to load EEPROM file ath9k-eeprom-ahb-18100000.wmac.bin
[ 19.919344] ath9k 18100000.wmac: failed to initialize device
[ 19.925299] ath9k: probe of 18100000.wmac failed with error -22
[ 19.980585] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 20.819293] urngd: v1.0.2 started.
[ 21.750292] random: jshn: uninitialized urandom read (4 bytes read)
[ 22.098126] random: jshn: uninitialized urandom read (4 bytes read)
[ 22.420496] random: jshn: uninitialized urandom read (4 bytes read)
[ 22.940456] random: crng init done
[ 22.943999] random: 27 urandom warning(s) missed due to ratelimiting
[ 52.460897] br-lan: port 1(eth0) entered blocking state
[ 52.466332] br-lan: port 1(eth0) entered disabled state
[ 52.472153] device eth0 entered promiscuous mode
[ 55.553076] eth0: link up (100Mbps/Full duplex)
[ 55.557850] br-lan: port 1(eth0) entered blocking state
[ 55.563311] br-lan: port 1(eth0) entered forwarding state
[ 55.616070] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready