Running OpenWrt on HEX S not working

So I have latest openwrt 24.10.0 running on HEX S. I have tried older versions also. It won't boot after tftbooting and flashing firmware EXCEPT if i press reset button for few seconds during bootup. Whats the catch?

So make a reboot, nothing. Poweroff , hold reset button for 3-5s, beeps boots to openwrt. I have made another openwrt device a monthe before and it works ok.

Do you have a copy of something bootable in jffs?

What you mean by "something bootable". You mean the one that I can boot without pressing the button or the one that boots only when i press the reset?
Whats the best way to dump the jffs?

mikrotik bootloader can load various things like take partition or file on cf card as boot file, if you have mips-linux-kernel file in a recognised filesystem on flash it may take it as a valid boot option.

Ok. But i don't use sdcard or usb drive. I have it directly in internal 16MB flash. Will try to get a console attached.

EDIT: serial uart attached. If i set baud to 115200, i get no output until openwrt boots:

[    0.000000] Linux version 6.6.73 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28427-6df0e3d02a) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Mon Feb  3 23:09:37 2025
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:4
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is MikroTik RouterBOARD 760iGS (hEX S)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s19136 r8192 d21824 u49152
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=0004816f
[    0.000000] Readback ErrCtl register=0004816f
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 247816K/262144K available (8363K kernel code, 653K rwdata, 1016K rodata, 1284K init, 229K bss, 14328K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000004] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008073] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.066230] pid_max: default: 32768 minimum: 301
[    0.079695] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.086935] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103577] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.113405] rcu: Hierarchical SRCU implementation.
[    0.118105] rcu:     Max phase no-delay instances is 1000.
[    0.124167] smp: Bringing up secondary CPUs ...
[    0.129558] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.129585] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.129600] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.129649] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.183618] Synchronize counters for CPU 1: done.
[    0.216213] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.216238] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.216251] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.216280] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.275182] Synchronize counters for CPU 2: done.
[    0.305861] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.305883] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.305897] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.305931] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.360379] Synchronize counters for CPU 3: done.
[    0.390242] smp: Brought up 1 node, 4 CPUs
[    0.401375] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.411189] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.422002] pinctrl core: initialized pinctrl subsystem
[    0.430413] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.437129] thermal_sys: Registered thermal governor 'step_wise'
[    0.439395] /pinctrl: Fixed dependency cycle(s) with /pinctrl/pinctrl0
[    0.467962] clocksource: Switched to clocksource GIC
[    0.483195] NET: Registered PF_INET protocol family
[    0.488366] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.497378] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.505702] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.513382] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.521004] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.528221] TCP: Hash tables configured (established 2048 bind 2048)
[    0.535490] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.543020] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.549521] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.557378] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.563065] PCI: CLS 0 bytes, default 32
[    0.570802] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.578544] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.584289] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.600325] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.611294] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.617254] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.623328] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.630091] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.646224] printk: console [ttyS0] disabled
[    0.651384] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    0.660469] printk: console [ttyS0] enabled
[    0.660469] printk: console [ttyS0] enabled
[    0.668756] printk: bootconsole [early0] disabled
[    0.668756] printk: bootconsole [early0] disabled
[    0.682371] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    0.689415] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.694507] 2 fixed-partitions partitions found on MTD device spi0.0
[    0.700918] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.708261] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.715919] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.723276] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.730876] Creating 2 MTD partitions on "spi0.0":
[    0.735676] 0x000000000000-0x000000040000 : "RouterBoot"
[    0.743591] 5 routerbootpart partitions found on MTD device RouterBoot
[    0.750169] Creating 5 MTD partitions on "RouterBoot":
[    0.755296] 0x000000000000-0x00000000f000 : "bootloader1"
[    0.761977] 0x00000000f000-0x000000010000 : "hard_config"
[    0.767869] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[    0.776337] 0x000000010000-0x00000001f000 : "bootloader2"
[    0.782961] 0x000000020000-0x000000021000 : "soft_config"
[    0.789915] 0x000000030000-0x000000031000 : "bios"
[    0.795935] 0x000000040000-0x000001000000 : "firmware"
[    0.802883] 2 minor-fw partitions found on MTD device firmware
[    0.808768] Creating 2 MTD partitions on "firmware":
[    0.813721] 0x000000000000-0x000000330000 : "kernel"
[    0.820112] 0x000000330000-0x000000fc0000 : "rootfs"
[    0.826179] mtd: setting mtd8 (rootfs) as root device
[    0.831383] 1 squashfs-split partitions found on MTD device rootfs
[    0.837557] 0x000000bc0000-0x000000fc0000 : "rootfs_data"
[    0.980164] i2c_dev: i2c /dev entries driver
[    0.985359] i2c-mt7621 1e000900.i2c: clock 100 kHz
[    0.993566] MikroTik RouterBOARD hardware configuration sysfs driver v0.08
[    1.001946] MikroTik RouterBOARD software configuration sysfs driver v0.05
[    1.013330] NET: Registered PF_INET6 protocol family
[    1.020954] Segment Routing with IPv6
[    1.024707] In-situ OAM (IOAM) with IPv6
[    1.028812] NET: Registered PF_PACKET protocol family
[    1.033913] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.047353] 8021q: 802.1Q VLAN Support v1.8
[    1.082403] gpio-export gpio_export: 1 gpio(s) exported
[    1.229620] mtk_soc_eth 1e100000.ethernet: generated random MAC address 65:74:68:25:64:00
[    1.239961] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.258310] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    1.270400] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 19
[    1.280039] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    1.313223] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[    1.321630] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=22)
[    1.334502] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    1.338917] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=23)
[    1.355091] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=24)
[    1.368459] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=25)
[    1.381600] mt7530-mdio mdio-bus:1f lan5 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=26)
[    1.394193] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[    1.401084] DSA: tree 0 setup
[    1.405174] clk: Disabling unused clocks
[    1.415905] VFS: Mounted root (squashfs filesystem) readonly on device 31:8.
[    1.426912] Freeing unused kernel image (initmem) memory: 1284K
[    1.432897] This architecture does not have kernel memory protection.
[    1.439346] Run /sbin/init as init process
[    1.969771] init: Console is alive
[    1.973459] init: - watchdog -
[    2.523516] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.596715] usbcore: registered new interface driver usbfs
[    2.602535] usbcore: registered new interface driver hub
[    2.608143] usbcore: registered new device driver usb
[    2.614908] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    2.633161] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[    2.641581] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    2.646954] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    2.659646] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000280010
[    2.668893] xhci-mtk 1e1c0000.xhci: irq 29, io mem 0x1e1c0000
[    2.674927] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    2.680276] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    2.687746] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    2.695359] hub 1-0:1.0: USB hub found
[    2.699294] hub 1-0:1.0: 2 ports detected
[    2.704607] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.713926] hub 2-0:1.0: USB hub found
[    2.717825] hub 2-0:1.0: 1 port detected
[    2.731103] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.747053] init: - preinit -
[    3.448298] mtk_soc_eth 1e100000.ethernet sfp: renamed from eth1
[    4.877972] random: crng init done
[    5.385716] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    5.398363] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    5.398745] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    9.921495] jffs2: notice: (620) jffs2_build_xattr_subsystem: complete building xattr subsystem, 19 of xdatum (0 unchecked, 4 orphan) and 23 of xref (5 dead, 0 orphan) found.
[    9.939077] mount_root: switching to jffs2 overlay
[    9.946937] overlayfs: upper fs does not support tmpfile.
[    9.964597] urandom-seed: Seeding with /etc/urandom.seed
[   10.074981] procd: - early -
[   10.078200] procd: - watchdog -
[   10.712599] procd: - watchdog -
[   10.716982] procd: - ubus -
[   10.875794] procd: - init -
Please press Enter to activate this console.
[   11.755440] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.823796] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized.
[   11.866676] sfp sfp1: Host maximum power 1.0W
[   11.921043] PPP generic driver version 2.4.2
[   11.927025] NET: Registered PF_PPPOX protocol family
[   11.938342] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.753628] urngd: v1.0.2 started.
[   19.146103] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   19.186912] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   19.195420] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   19.212214] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[   19.222083] br-lan: port 1(lan2) entered blocking state
[   19.227428] br-lan: port 1(lan2) entered disabled state
[   19.232963] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
[   19.239398] mtk_soc_eth 1e100000.ethernet eth0: entered allmulticast mode
[   19.249888] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
[   19.282289] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[   19.290568] br-lan: port 2(lan3) entered blocking state
[   19.295853] br-lan: port 2(lan3) entered disabled state
[   19.301330] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
[   19.310154] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
[   19.328475] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
[   19.337269] br-lan: port 3(lan4) entered blocking state
[   19.342793] br-lan: port 3(lan4) entered disabled state
[   19.348205] mt7530-mdio mdio-bus:1f lan4: entered allmulticast mode
[   19.356589] mt7530-mdio mdio-bus:1f lan4: entered promiscuous mode
[   19.376536] mt7530-mdio mdio-bus:1f lan5: configuring for phy/gmii link mode
[   19.385606] br-lan: port 4(lan5) entered blocking state
[   19.391074] br-lan: port 4(lan5) entered disabled state
[   19.396418] mt7530-mdio mdio-bus:1f lan5: entered allmulticast mode
[   19.405826] mt7530-mdio mdio-bus:1f lan5: entered promiscuous mode
[   19.434374] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
[   19.443665] br-wan: port 1(wan) entered blocking state
[   19.449045] br-wan: port 1(wan) entered disabled state
[   19.454379] mt7530-mdio mdio-bus:1f wan: entered allmulticast mode
[   19.464064] mt7530-mdio mdio-bus:1f wan: entered promiscuous mode
[   19.578670] mtk_soc_eth 1e100000.ethernet sfp: PHY [mdio-bus:07] driver [Qualcomm Atheros AR8031/AR8033] (irq=POLL)
[   19.589361] mtk_soc_eth 1e100000.ethernet sfp: configuring for phy/rgmii-rxid link mode
[   19.604583] br-wan: port 2(sfp) entered blocking state
[   19.610005] br-wan: port 2(sfp) entered disabled state
[   19.615304] mtk_soc_eth 1e100000.ethernet sfp: entered allmulticast mode
[   19.623788] mtk_soc_eth 1e100000.ethernet sfp: entered promiscuous mode
[   22.569577] mt7530-mdio mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[   22.569660] br-wan: port 1(wan) entered blocking state
[   22.582423] br-wan: port 1(wan) entered forwarding state

I tried 9600 and 19200 also - no output and garbage as soon as openwrt boots which is to be expected.

Get to the end of openwrt booting.

Edited on previous post.

It is nicely booted? How does it look when it does not boot?

Yes. It's nicely booted. I can even upgrade fw etc and it works. There is no output before openwrt info.

But it just won't boot unless i hold down reset button for ~5 seconds on startup. If i press it longer it will make tftboot.

Ok, it turns out my HEX S comes with factory firmware of 6.48.7. I did not check that. So I flashed it with 6.48.6 version. This had this problematic boot. I have now flashed the correct 6.48.7 and it boots as it should. I don't know if the revision r2 is something new - don't remember what the previous one was.

I guess we can now add 6.48.7 as of confirmed working lowest version.

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