MikroTik rb450gx4 support

Can you describe it? If package does require kernel module, is there any way to make it work?

I've got little experience with this... I used 15.15 OpenWrt or something like this a few years ago. And it worked fine for me - AdBlock, DLNA server, and so on.
Should I buy this router or you can advise me to by something else?
Is it worth to try? I've chosen this router cause it powerful and not ancient as many other routers for 18.06.
I found RB3011, but it is excessive for me and it has the same issues as RB450Gx4 as I understood.

I can build and upload the SDK and imagebuilders also so you can easily choose packages you need and necessary kmods will be included.

I have submitted this to a PR but I need to update it and then after its merged it will be much easier

Packages requiring kernel modules need to be built for the same version of the master in case of nightly and trunk builds, but once the pull request goes through and the RB450GX4 gets official support (hopefully in the next stable release), you'll be able to download the image and install any packages from the repo.

So yes, the router will work like any other supported device. It already works quite well, but just requires a bit more tinkering.

Yes, this is exactly what I mean.

And if there is an instruction how to build the image from robimarko with packages, it will be enough at the moment.

Hi. Can anybody tell what is mean (how to do) these steps

  1. Netboot openwrt-ipq40xx-mikrotik_rb450gx4-initramfs-fit-uImage.elf
  2. Reboot and set RouterBOOT to boot from NAND.
    https://openwrt.org/inbox/toh/mikrotik/mikrotik_rb450gx4
    ?

Does this help?
https://openwrt.org/toh/mikrotik/common

I'm stuck at (nand) boot time after running sysupgrade from the netbooted initramfs image with the latest squashfs image from the google drive link.
I get:

loading kernel... OK
setting up elf image...

I've been waiting for maybe 15 minutes now and suspect it's not meant to take that long. :confused:
I tried sysupgrading both via console (including detaching and formatting the "ubi" partition) and LuCI (just pointing it to the squashfs-image), but with the same result.

Is there a way I can debug this further? Did I maybe miss a step?

Which version you used?

I'm new to OpenWrt, so I'm not entirely sure if this is what you meant, but the OpenWrt banner of the initramfs image after netbooting says "OpenWrt SNAPSHOT, r10664-bccaa621d5". I used both image files from the google drive link provided above.

And you followed instructions from here?
https://openwrt.org/inbox/toh/mikrotik/mikrotik_rb450gx4

Its really important to ubiformat as parameters are different

Yes, I followed the instructions and used ubidetach/ubiformat like shown there.

Console log of netboot, ubidetach/ubiformat, sha256sum, sysupgrade and nand boot:

console log
RouterBOOT booter 6.44.3

RB450Gx4

CPU frequency: 716 MHz
  Memory size: 1024 MiB
    NAND size: 512 MiB

Press any key within 2 seconds to enter setup..
trying bootp protocol.... OK
Got IP address: 192.168.1.47
resolved mac address B4:2E:99:31:B3:93
transfer started ............................................................... transfer ok, time=3.38s
setting up elf image... OK
jumping to kernel code

OpenWrt kernel loader for Qualcomm IPQ-4XXX/IPQ-806X
Copyright (C) 2019  Sergey Sergeev <adron@mstnt.com>

Extracting LZMA kernel...Done
Starting kernel at 0x80208000

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.62 (robimarko@localhost.localdomain) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10661-7fc2487829)) #0 SMP Fri Aug 2 14:42:36 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Mikrotik RouterBOARD RB450Gx4
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x7c/0x438 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29964 r8192 d23284 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 259904
[    0.000000] Kernel command line:
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1011220K/1046528K available (4853K kernel code, 169K rwdata, 1324K rodata, 17408K init, 231K bss, 35308K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (5846 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (17408 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 170 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 232 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000022] Switching to timer-based delay loop, resolution 20ns
[    0.000261] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000280] pid_max: default: 32768 minimum: 301
[    0.000473] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000494] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001413] CPU: Testing write buffer coherency: ok
[    0.002359] Setting up static identity map for 0x80300000 - 0x80300060
[    0.002520] rcu: Hierarchical SRCU implementation.
[    0.003230] smp: Bringing up secondary CPUs ...
[    0.006130] smp: Brought up 1 node, 4 CPUs
[    0.006147] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.006156] CPU: All CPU(s) started in SVC mode.
[    0.010491] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010640] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010664] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.010919] pinctrl core: initialized pinctrl subsystem
[    0.011918] NET: Registered protocol family 16
[    0.012176] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013340] cpuidle: using governor ladder
[    0.013386] cpuidle: using governor menu
[    0.029494] usbcore: registered new interface driver usbfs
[    0.029558] usbcore: registered new interface driver hub
[    0.029639] usbcore: registered new device driver usb
[    0.029687] pps_core: LinuxPPS API ver. 1 registered
[    0.029697] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.029729] PTP clock support registered
[    0.031203] clocksource: Switched to clocksource arch_sys_counter
[    0.032121] NET: Registered protocol family 2
[    0.032729] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.032767] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.032873] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.033038] TCP: Hash tables configured (established 8192 bind 8192)
[    0.033177] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.033229] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.033490] NET: Registered protocol family 1
[    0.240850] No memory allocated for crashlog
[    0.241090] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.246051] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.246065] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.252381] bounce: pool size: 64 pages
[    0.252407] io scheduler noop registered
[    0.252416] io scheduler deadline registered (default)
[    0.254597] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.254615] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.255863] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.255944] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.256017] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.256091] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.256752] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.257332] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.257375] msm_serial 78af000.serial: uartclk = 1843200
[    0.257425] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 27, base_baud = 115200) is a MSM
[    0.257451] msm_serial: console setup on port #0
[    0.772490] console [ttyMSM0] enabled
[    0.777393] msm_serial: driver initialized
[    0.785248] loop: module loaded
[    0.786702] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xdc
[    0.787739] nand: Toshiba NAND 512MiB 3,3V 8-bit
[    0.794391] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 128
[    0.798994] 2 fixed-partitions partitions found on MTD device qcom_nand.0
[    0.806338] Creating 2 MTD partitions on "qcom_nand.0":
[    0.813280] 0x000000000000-0x000001000000 : "kernel"
[    0.833678] 0x000001000000-0x000020000000 : "ubi"
[    0.848324] random: fast init done
[    1.288915] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    1.298772] m25p80 spi0.0: w25q16jv (2048 Kbytes)
[    1.298834] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.302482] Creating 6 MTD partitions on "spi0.0":
[    1.308882] 0x000000000000-0x000000023000 : "Qualcomm-boot1"
[    1.314228] 0x000000023000-0x000000080000 : "Qualcomm-boot2"
[    1.319926] 0x000000080000-0x00000008e000 : "RouterBoot"
[    1.325609] 0x00000008e000-0x00000008f000 : "hard_config"
[    1.330825] 0x000000090000-0x0000000a0000 : "dts_config"
[    1.336215] 0x0000000bd000-0x0000000be000 : "soft_config"
[    1.342208] libphy: ipq40xx_mdio: probed
[    1.421371] ESS reset ok!
[    1.451679] ESS reset ok!
[    1.869527] libphy: Fixed MDIO Bus: probed
[    1.870408] EDMA using MAC@ - using
[    1.870424] c6:1a:5b:5d:51:12
[    1.876747] EDMA using MAC@ - using
[    1.876759] 16:42:f5:81:d4:2c
[    1.981342] i2c /dev entries driver
[    1.983348] sdhci: Secure Digital Host Controller Interface driver
[    1.983635] sdhci: Copyright(c) Pierre Ossman
[    1.989880] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.994833] sdhci_msm 7824900.sdhci: Got CD GPIO
[    2.000575] sdhci_msm 7824900.sdhci: Linked as a consumer to regulator.1
[    2.036944] mmc0: SDHCI controller on 7824900.sdhci [7824900.sdhci] using ADMA 64-bit
[    2.048526] NET: Registered protocol family 10
[    2.053117] Segment Routing with IPv6
[    2.053482] NET: Registered protocol family 17
[    2.056386] 8021q: 802.1Q VLAN Support v1.8
[    2.060206] Registering SWP/SWPB emulation handler
[    2.072413] UBI: auto-attach mtd1
[    2.072452] ubi0: attaching mtd1
[    3.606922] random: crng init done
[    7.888653] ubi0: scanning is finished
[    7.917165] ubi0: attached mtd1 (name "ubi", size 496 MiB)
[    7.917240] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[    7.921756] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[    7.928444] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[    7.935379] ubi0: good PEBs: 1981, bad PEBs: 3, corrupted PEBs: 0
[    7.942139] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    7.948329] ubi0: max/mean erase counter: 6/4, WL threshold: 4096, image sequence number: 1587010922
[    7.955515] ubi0: available PEBs: 0, total reserved PEBs: 1981, PEBs reserved for bad PEB handling: 37
[    7.964876] ubi0: background thread "ubi_bgt0d" started, PID 93
[    7.966925] block ubiblock0_0: created from ubi0:0(rootfs)
[    7.979639] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem▒[    8.017398] Freeing unused kernel memory: 17408K
[    8.031422] Run /init as init process
[    8.047633] init: Console is alive
[    8.048153] init: - watchdog -
[    8.068964] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    8.104479] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.112950] init: - preinit -
[    8.786480] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.786640] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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
[   12.000968] procd: - early -
[   12.001369] procd: - watchdog -
[   12.665480] procd: - watchdog -
[   12.665854] procd: - ubus -
[   12.738702] procd: - init -
Please press Enter to activate this console.
[   12.973534] urngd: v1.0.0 started.
[   12.997204] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.003830] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   13.017934] input: beeper as /devices/platform/beeper/input/input0
[   13.021254] fuse init (API version 7.27)
[   13.035849] xt_time: kernel timezone is -0000
[   13.048075] PPP generic driver version 2.4.2
[   13.049027] NET: Registered protocol family 24
[   13.058173] kmodloader: done loading kernel modules from /etc/modules.d/*
[   35.942758] br-lan: port 1(eth0) entered blocking state
[   35.942797] br-lan: port 1(eth0) entered disabled state
[   35.947183] device eth0 entered promiscuous mode
[   35.954504] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   35.968383] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   36.951326] br-lan: port 1(eth0) entered blocking state
[   36.951372] br-lan: port 1(eth0) entered forwarding state
[   36.956544] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.31.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10664-bccaa621d5
 -----------------------------------------------------
=== 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:/# cd /tmp
root@OpenWrt:/tmp# sha
/bin/ash: sha: not found
root@OpenWrt:/tmp# sha256sum openwrt-ipq40xx-mikrotik_rb450gx4-squashfs-sysupgra
de.bin
f120da1063b7f84e6c3073e091e8bb4657de9727e8c31b2c9cedc584d88eaf73  openwrt-ipq40xx-mikrotik_rb450gx4-squashfs-sysupgrade.bin
root@OpenWrt:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01000000 00040000 "kernel"
mtd1: 1f000000 00040000 "ubi"
mtd2: 00023000 00001000 "Qualcomm-boot1"
mtd3: 0005d000 00001000 "Qualcomm-boot2"
mtd4: 0000e000 00001000 "RouterBoot"
mtd5: 00001000 00001000 "hard_config"
mtd6: 00010000 00001000 "dts_config"
mtd7: 00001000 00001000 "soft_config"
root@OpenWrt:/tmp# ubidetach -p /dev/mtd1
[  149.212275] block ubiblock0_0: released
[  149.212801] ubi0: detaching mtd1
[  149.227412] ubi0: mtd1 is detached
root@OpenWrt:/tmp# ubiformat /dev/mtd1 -y
ubiformat: mtd1 (nand), size 520093696 bytes (496.0 MiB), 1984 eraseblocks of 262144 bytes (256.0 KiB), min. I/O size 4096 bytes
libscan: scanning eraseblock 1983 -- 100 % complete
ubiformat: 1981 eraseblocks have valid erase counter, mean value is 4
ubiformat: 3 bad eraseblocks found, numbers: 1099, 1472, 1473
ubiformat: formatting eraseblock 1983 -- 100 % complete
root@OpenWrt:/tmp# sysupgrade -v openwrt-ipq40xx-mikrotik_rb450gx4-squashfs-sysu
pgrade.bin
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... blockd ntpd ubusd urngd uwsgi logd rpcd dnsmasq nginx nginx /lib/upgrade/stage2: line 101: can't open /proc/744/cmdline: no such file
netifd odhcpd
Sending KILL to remaining processes ...
Performing system upgrade...
Unlocking kernel ...

Writing from <stdin> to kernel ...
[  210.703978] ubi0: attaching mtd1
[  216.502162] ubi0: scanning is finished
[  216.530058] ubi0: attached mtd1 (name "ubi", size 496 MiB)
[  216.530096] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[  216.534511] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[  216.541330] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[  216.548159] ubi0: good PEBs: 1981, bad PEBs: 3, corrupted PEBs: 0
[  216.554974] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[  216.561252] ubi0: max/mean erase counter: 7/5, WL threshold: 4096, image sequence number: 441012130
[  216.568304] ubi0: available PEBs: 1940, total reserved PEBs: 41, PEBs reserved for bad PEB handling: 37
[  216.577308] ubi0: background thread "ubi_bgt0d" started, PID 1514
UBI device number 0, total 1981 LEBs (503078912 bytes, 479.7 MiB), available 1940 LEBs (492666880 bytes, 469.8 MiB), LEB size 253952 bytes (248.0 KiB)
Volume ID 0, size 23 LEBs (5840896 bytes, 5.5 MiB), LEB size 253952 bytes (248.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 486825984
Volume ID 1, size 1917 LEBs (486825984 bytes, 464.2 MiB), LEB size 253952 bytes (248.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       261 - PBL, Start
B -      1340 - bootable_media_detect_entry, Start
B -      1680 - bootable_media_detect_success, Start
B -      1694 - elf_loader_entry, Start
B -      5090 - auth_hash_seg_entry, Start
B -      7242 - auth_hash_seg_exit, Start
B -    576061 - elf_segs_hash_verify_entry, Start
B -    691987 - PBL, End
B -    692011 - SBL1, Start
B -    780493 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    782011 - boot_flash_init, Start
D -     45854 - boot_flash_init, Delta
B -    832060 - boot_config_data_table_init, Start
D -      3850 - boot_config_data_table_init, Delta - (419 Bytes)
B -    839296 - clock_init, Start
D -      7567 - clock_init, Delta
B -    851278 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    854766 - sbl1_ddr_set_params, Start
B -    859753 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    864245 - Pre_DDR_clock_init, Start
D -         4 - Pre_DDR_clock_init, Delta
D -     13146 - sbl1_ddr_set_params, Delta
B -    879317 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    947415 - sbl1_wait_for_ddr_training, Start
D -        29 - sbl1_wait_for_ddr_training, Delta
B -    968308 - Image Load, Start
D -    140447 - QSEE Image Loaded, Delta - (262104 Bytes)
B -   1109250 - Image Load, Start
D -      1446 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1119499 - Image Load, Start
D -     17641 - APPSBL Image Loaded, Delta - (31184 Bytes)
B -   1137555 - QSEE Execution, Start
D -        58 - QSEE Execution, Delta
B -   1143662 - SBL1, End
D -    453761 - SBL1, Delta
S - Flash Throughput, 1854 KB/s  (295755 Bytes,  159442 us)
S - DDR Frequency, 672 MHz


RouterBOOT booter 6.44.3

RB450Gx4

CPU frequency: 716 MHz
  Memory size: 1024 MiB
    NAND size: 512 MiB

Press any key within 2 seconds to enter setup.

RouterBOOT-6.44.3
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   n - silent boot
   o - boot device
   r - reset booter configuration
   e - format nand
   w - repartition nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   t - test ram memory
   x - exit setup
your choice: o - boot device

Select boot device:
 * e - boot over Ethernet
   n - boot from NAND, if fail then Ethernet
   1 - boot Ethernet once, then NAND
   o - boot from NAND only
   b - boot chosen device
   f - boot Flash Configure Mode
   3 - boot Flash Configure Mode once, then NAND
your choice: o - boot from NAND only

RouterBOOT-6.44.3
What do you want to configure?
   d - boot delay
   k - boot key
   s - serial console
   n - silent boot
   o - boot device
   r - reset booter configuration
   e - format nand
   w - repartition nand
   g - upgrade firmware
   i - board info
   p - boot protocol
   t - test ram memory
   x - exit setup
your choice: x - exit setup


writing settings to flash... OK


Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       261 - PBL, Start
B -      1340 - bootable_media_detect_entry, Start
B -      1680 - bootable_media_detect_success, Start
B -      1694 - elf_loader_entry, Start
B -      5089 - auth_hash_seg_entry, Start
B -      7241 - auth_hash_seg_exit, Start
B -    576085 - elf_segs_hash_verify_entry, Start
B -    692009 - PBL, End
B -    692033 - SBL1, Start
B -    780511 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    782029 - boot_flash_init, Start
D -     45843 - boot_flash_init, Delta
B -    832066 - boot_config_data_table_init, Start
D -      3850 - boot_config_data_table_init, Delta - (419 Bytes)
B -    839300 - clock_init, Start
D -      7577 - clock_init, Delta
B -    851292 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    854780 - sbl1_ddr_set_params, Start
B -    859766 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    864258 - Pre_DDR_clock_init, Start
D -         4 - Pre_DDR_clock_init, Delta
D -     13146 - sbl1_ddr_set_params, Delta
B -    879331 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    947408 - sbl1_wait_for_ddr_training, Start
D -        29 - sbl1_wait_for_ddr_training, Delta
B -    968345 - Image Load, Start
D -    140458 - QSEE Image Loaded, Delta - (262104 Bytes)
B -   1109301 - Image Load, Start
D -      1440 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1119542 - Image Load, Start
D -     17642 - APPSBL Image Loaded, Delta - (31184 Bytes)
B -   1137600 - QSEE Execution, Start
D -        58 - QSEE Execution, Delta
B -   1143704 - SBL1, End
D -    453781 - SBL1, Delta
S - Flash Throughput, 1854 KB/s  (295755 Bytes,  159447 us)
S - DDR Frequency, 672 MHz


RouterBOOT booter 6.44.3

RB450Gx4

CPU frequency: 716 MHz
  Memory size: 1024 MiB
    NAND size: 512 MiB

Press any key within 2 seconds to enter setup..

loading kernel... OK
setting up elf image...

Hm, this really does not make sense as that same image booted fine on my device.
Can you try installing again?

I just did, to produce the console log I posted.
I've noticed that in older instructions for manually flashing, there are a lot more steps (i.e. more partitions to erase) listed. Do I maybe need to clear out or prepare something else, other than ubiformatting mtd1?
Another thing I noticed was that during netbooting the initramfs image, the boot got stuck during

IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

and I had to press Enter to continue. My guess would be that this can't be of any importance for my problem, though - I just have IPv6 turned off in my LAN.

[Edit]: are there any debug switches I could use to get more info on the cause of the hang I'm experiencing?

Well, those instructions don't apply here.
It does not get stuck there, but rather boot process is supposed to stop there as getting ethernet to work is the last step.
And pressing enter drops you to shell, this is normal.

Well, there are really no debug switches.
For whatever reason, your board does not start the aux loader.
Can you try erasing the kernel partition with mtd erase kernel first?

I would try this image on my RB450 but its my main router and I cant take my network down.

1 Like

That seems to have done it! I can now boot normally.
Thanks a lot for your help! :+1:

Will there potentially be a new image coming soon? luci-app-openvpn doesn't appear in the gui, luci-app-ddns doesn't ever fully load in the gui and both of these installs complain about the kernel version (when installing the dependencies). I either have to --force-depends or --force-overwrite or both to get things loaded, but I'm not sure if they even work properly. The software menu is non-existent in luci. I realize this is pretty much still in beta, but I'm looking for a daily driver and am wondering when something a bit more user friendly might be available?

Thanks for the effort on this!

Well, since this I seriously lack time I doubt that there will be new images soon.
I can only recommend that you build from source as its available on my github.
You cant really install those packages that way as they have hard version dependencies.

/you'll have to pardon my ignorance, but if I build from source (which I dont know how to do, but can try and figure out) will that resolve the issues I've pointed out? If not, how would I build this to support standard packages or is that even possible?

Yes, then you will be able to build and include any packages you want.

I think I have it figured out in that I basically have to use your branch and add the packages during the menuconfig portion. so is it correct that if I want to add packages that I will basically need to recompile a new image every time vs. downloading and installing due to a different kernel?

Can I ask what options you used in the menuconfig? I essentially left everything default except the packages I wanted and basically picked Target Sytem: IPQ40xx, Subtarget: Generic, Target Profile: Default Profile. Is that correct? I don't want to brick my device :slight_smile: