Luma Home WiFi support

Awesome, thanks for the tip. Just got my new USB to serial TTL adapter today. I'll test it out :slightly_smiling_face:

Success :smiley:. Got it flashed to OpenWRT. Set it up as an AP. Tried it as a wireless client but it does not want to associate with any AP I have here. I'll play around with the config and test it out over the next little while.

Thanks to everyone for your time and contributions thus far. Looking good

So I noticed the image is now available in the snapshots. I'll go ahead and flash it.

Question

What can I do to help debug this unit and make OpenWRT run better, enable full functionality, ie vlans, wifi client mode, and anything else?

Anyone had any luck setting up the Lumas in a mesh? I'd be interested in a hard-wired backhaul configuration.
The original Luma has a few scripts in \opt\luma\bin, one specifically for backhaul wired_backhaul_agent.sh
Perhaps someone can write a quick guide.

Yes, see the thread here..

1 Like

Thanks Andy (assumed your name, sorry if wrong)
Will try to make some time this weekend to read more about batman and will try to follow your post.

Hi all.
First off: drandyhaas, tmn505 and everyone. Thank you so much for all your efforts here. I have 4 luma units and can't wait to get them upgraded.
Which brings me to my question:
I'm following the instructions here https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e24635710c7e6444afa463c59f3d81fe634eb3c7 to upgrade.
But after booting the initramfs image,
the next 2 commands file b/c it can't find fw_setenv
Any suggestion on how I can get past this?

thank you!

fw_setenv is there for me in openwrt.
But you could also run that from the uboot command line, like you do in step 6.

Thank you for you response. But still no luck. Sorry if I'm missing something. It's the first time I'm doing that low-level stuff with linux and embedded devices.

I'm thinking the issue may be that the initramfs image doesn't boot up correctly.
Below is what I see on screen. I can see that it's entering procd: - init - but it never completes (I do see the procd: - init completed - message during the regular boot sequence, but never with the new image).
I also noticed that during regular boot sequence that squashfs complains about corrupted data. Could the 2 be related?

Finally, I used the luma snapshot files from https://downloads.openwrt.org/snapshots/targets/ipq40xx/generic/. Should I try building them myself instead?

Many thanks in advance for your help.

(IPQ40xx) # bootm 0x84000000
## Booting kernel from FIT Image at 84000000 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM OpenWrt Linux-5.4.69
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x840000e4
     Data Size:    7815694 Bytes = 7.5 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80208000
     Entry Point:  0x80208000
     Hash algo:    crc32
     Hash value:   1968800b
     Hash algo:    sha1
     Hash value:   0ecdd180b04109f1add82b998b5bcfc1dffa0c4d
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Flattened Device Tree from FIT Image at 84000000
   Using 'config@1' configuration
   Trying 'fdt@1' FDT blob subimage
     Description:  ARM OpenWrt luma_wrtq-329acn device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x84774430
     Data Size:    16577 Bytes = 16.2 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   46f7f5ee
     Hash algo:    sha1
     Hash value:   5307df7909c1371dc62339197551f3ecc4858dd8
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x84774430
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 86ff8000, end 86fff0c0 ... OK
ipq: fdt fixup unable to find compatible node
Using machid 0x8010100 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.69 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14653-a439f1bb47)) #0 SMP Fri Oct 9 01:10:05 2020
[    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: Luma Home WRTQ-329ACN
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30092 r8192 d23156 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64448
[    0.000000] Kernel command line:
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 239408K/260096K available (5711K kernel code, 187K rwdata, 1492K rodata, 9216K init, 238K bss, 20688K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f0/0x49c with crng_init=0
[    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.000021] Switching to timer-based delay loop, resolution 20ns
[    0.000232] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000250] pid_max: default: 32768 minimum: 301
[    0.000453] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000471] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001474] CPU: Testing write buffer coherency: ok
[    0.002528] Setting up static identity map for 0x80300000 - 0x80300060
[    0.002663] rcu: Hierarchical SRCU implementation.
[    0.003111] smp: Bringing up secondary CPUs ...
[    0.006248] smp: Brought up 1 node, 4 CPUs
[    0.006266] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.006274] CPU: All CPU(s) started in SVC mode.
[    0.010666] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010821] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010845] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011119] pinctrl core: initialized pinctrl subsystem
[    0.012182] NET: Registered protocol family 16
[    0.012459] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013653] cpuidle: using governor ladder
[    0.013701] cpuidle: using governor menu
[    0.033240] cryptd: max_cpu_qlen set to 1000
[    0.036638] usbcore: registered new interface driver usbfs
[    0.036705] usbcore: registered new interface driver hub
[    0.036791] usbcore: registered new device driver usb
[    0.036838] pps_core: LinuxPPS API ver. 1 registered
[    0.036848] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.036874] PTP clock support registered
[    0.037559] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.038617] clocksource: Switched to clocksource arch_sys_counter
[    0.039411] thermal_sys: Registered thermal governor 'step_wise'
[    0.039714] NET: Registered protocol family 2
[    0.040609] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.040654] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.040691] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.040739] TCP: Hash tables configured (established 2048 bind 2048)
[    0.040863] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.040900] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041132] NET: Registered protocol family 1
[    0.041174] PCI: CLS 0 bytes, default 64
[    0.146075] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.151668] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.151683] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.202649] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.205913] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.205932] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.206620] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.206718] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.206801] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.206890] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.207198] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.209139] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.209186] msm_serial 78af000.serial: uartclk = 1843200
[    0.209244] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[    0.209273] msm_serial: console setup on port #0
[    0.694632] printk: console [ttyMSM0] enabled
[    0.699604] msm_serial: driver initialized
[    0.708535] loop: module loaded
[    0.709676] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.713737] spi-nor spi0.0: gd25q16 (2048 Kbytes)
[    0.717907] 8 fixed-partitions partitions found on MTD device spi0.0
[    0.722518] Creating 8 MTD partitions on "spi0.0":
[    0.728915] 0x000000000000-0x000000040000 : "0:SBL1"
[    0.734396] 0x000000040000-0x000000060000 : "0:MIBIB"
[    0.739449] 0x000000060000-0x0000000c0000 : "0:QSEE"
[    0.744349] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[    0.749507] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[    0.753988] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[    0.759627] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[    0.764929] 0x000000170000-0x000000180000 : "0:ART"
[    0.770691] spi-nand spi0.1: GigaDevice SPI NAND was found.
[    0.773945] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.779895] 1 fixed-partitions partitions found on MTD device spi0.1
[    0.787828] Creating 1 MTD partitions on "spi0.1":
[    0.794295] 0x000000000000-0x000008000000 : "ubi"
[    0.805662] random: fast init done
[    1.297294] libphy: ipq40xx_mdio: probed
[    1.339164] ESS reset ok!
[    1.372147] ESS reset ok!
[    1.789994] libphy: Fixed MDIO Bus: probed
[    1.794322] i2c /dev entries driver
[    1.796250] sdhci: Secure Digital Host Controller Interface driver
[    1.796620] sdhci: Copyright(c) Pierre Ossman
[    1.802943] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.810829] NET: Registered protocol family 10
[    1.814365] Segment Routing with IPv6
[    1.817366] NET: Registered protocol family 17
[    1.821114] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.825367] 8021q: 802.1Q VLAN Support v1.8
[    1.838527] Registering SWP/SWPB emulation handler
[    1.854346] UBI: auto-attach mtd8
[    1.854393] ubi0: attaching mtd8
[    2.246512] random: crng init done
[    4.853207] ubi0: scanning is finished
[    4.891473] ubi0: attached mtd8 (name "ubi", size 128 MiB)
[    4.891511] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.895860] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.902780] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.909625] ubi0: good PEBs: 1022, bad PEBs: 2, corrupted PEBs: 0
[    4.916345] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[    4.922629] ubi0: max/mean erase counter: 343/97, WL threshold: 4096, image sequence number: 1673397952
[    4.929743] ubi0: available PEBs: 0, total reserved PEBs: 1022, PEBs reserved for bad PEB handling: 18
[    4.939062] ubi0: background thread "ubi_bgt0d" started, PID 100
[    4.941191] block ubiblock0_1: created from ubi0:1(rootfs)
▒[    4.980679] Freeing unused kernel memory: 9216K) set to be root filesystem
[    4.980952] Run /init as init process
[    4.996447] init: Console is alive
[    4.996680] init: - watchdog -
[    5.007145] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.012192] dwc3-qcom 8af8800.usb3: IRQ hs_phy_irq not found
[    5.012928] dwc3-qcom 8af8800.usb3: IRQ dp_hs_phy_irq not found
[    5.018714] dwc3-qcom 8af8800.usb3: IRQ dm_hs_phy_irq not found
[    5.024298] dwc3-qcom 8af8800.usb3: IRQ ss_phy_irq not found
[    5.031936] dwc3-qcom 60f8800.usb2: IRQ hs_phy_irq not found
[    5.036103] dwc3-qcom 60f8800.usb2: IRQ dp_hs_phy_irq not found
[    5.041783] dwc3-qcom 60f8800.usb2: IRQ dm_hs_phy_irq not found
[    5.047384] dwc3-qcom 60f8800.usb2: IRQ ss_phy_irq not found
[    5.058109] dwc3 8a00000.dwc3: Failed to get clk 'ref': -2
[    5.224009] dwc3 6000000.dwc3: Failed to get clk 'ref': -2
[    5.359628] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.359784] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.364549] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[    5.371730] xhci-hcd xhci-hcd.0.auto: irq 93, io mem 0x08a00000
[    5.381905] hub 1-0:1.0: USB hub found
[    5.386908] hub 1-0:1.0: 1 port detected
[    5.391141] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.394775] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.400108] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    5.407756] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.414824] hub 2-0:1.0: USB hub found
[    5.422519] hub 2-0:1.0: 1 port detected
[    5.426511] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.430159] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    5.435614] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000000002010010
[    5.443033] xhci-hcd xhci-hcd.1.auto: irq 94, io mem 0x06000000
[    5.453174] hub 3-0:1.0: USB hub found
[    5.458267] hub 3-0:1.0: 1 port detected
[    5.462397] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.466130] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    5.471573] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    5.479213] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.486143] hub 4-0:1.0: USB hub found
[    5.493905] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    5.499104] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.508834] init: - preinit -
[    5.828719] usb 3-1: new full-speed USB device number 2 using xhci-hcd
[    5.981097] ess_edma c080000.edma: eth0: GMAC Link is down
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
[   10.192540] procd: - early -
[   10.192679] procd: - watchdog -
[   10.739545] procd: - watchdog -
[   10.742434] procd: - ubus -
[   10.796526] procd: - init -
Please press Enter to activate this console.
[   11.073312] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.081816] Loading modules backported from Linux version v5.8-0-gbcf876870b95
[   11.081853] Backport generated by backports.git v5.8-1-0-g79400d9e
[   11.100374] xt_time: kernel timezone is -0000
[   11.106270] urngd: v1.0.2 started.
[   11.133528] PPP generic driver version 2.4.2
[   11.134459] NET: Registered protocol family 24
[   11.157799] ath10k_mac_create, priv_size: 924  hw: 3fb145a8  hw->priv: 305f0158
[   11.765298] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   11.765378] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   11.777201] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-8c5b2baa2 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 1f3ed50f
[   11.834866] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:16 crc32 e2dfaa91
[   13.141903] ath10k_ahb a000000.wifi: unsupported HTC service id: 1536
[   13.143328] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   13.147347] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[   13.183697] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   13.184671] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13576 sram: 35752'
[   13.352650] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   13.519279] ath10k_mac_create, priv_size: 924  hw: d4182570  hw->priv: 6d09574b
[   14.225542] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   14.225598] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.244917] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-8c5b2baa2 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 1f3ed50f
[   14.295821] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:17 crc32 e2dfaa91
[   15.603040] ath10k_ahb a800000.wifi: unsupported HTC service id: 1536
[   15.604022] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   15.608478] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   15.645232] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   15.646201] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13576 sram: 35752'
[   15.776522] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   15.926576] kmodloader: done loading kernel modules from /etc/modules.d/*
[   34.833574] br-lan: port 1(eth0) entered blocking state
[   34.833612] br-lan: port 1(eth0) entered disabled state
[   34.837945] device eth0 entered promiscuous mode
[   34.860115] ess_edma c080000.edma: eth1: GMAC Link is down
[   39.050113] ess_edma c080000.edma: eth1: GMAC Link is up with phy_speed=1000
[   39.051084] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

Hi everyone.
figure it out for whoever wants to try it too.
You should compile your own images.
if you use the ones from the openwrt web site, you'll miss the files required.
After creating my own image and deploying it, the upgrade worked as expected.
Thank you again for your work on it.
Now on to enabling the mesh

Hi. As already mentioned Luma Home WiFi support, the device is supported in snapshots.
@tonym
Indeed uboot-envtools are missing on the snapshots builds. You can work aroud it with opkg update and opkg install uboot-envtools (also works on initranfs image). There seems to be some bug in buildbot which ignores DEVICE_PACKAGES.

@adipus @drandyhaas @jpstoppa @rayclark and anyone who may be concerned.
If You used my tree as a base for image compilation, You'll need to reinstall OpenWrt using installation instructions from the commit message in upstream repository. The official OpenWrt images are not compatible with the ones from my tree (we changed the location where the firmware is stored).
Following the upstream installation instructions will wipe remains of original firmware, if someone didn't make a backup I can upload two versions of kernel image (for those that wish to revert to original firmware). Two versions of ubi_rootfs are already in this post: Luma Home WiFi support.
Sorry for the inconvenience. You can check rationale from the conversation in https://patchwork.ozlabs.org/project/openwrt/patch/20200830112811.6175-1-tomek_n@o2.pl.

Thanks. I read the patchwork thread. If I have loaded all my lumas with your branch do I need to breakout the usb to uart adapter again? You mention upstream installation instructions, I am confused. Does the released openwrt now support the luma home devices?
Sorry if I am dense.

Was wondering the same. I could not get the snapshot image to boot. Eventually I went back to my USB TLL cable and reflashed the image that @tmn505 posted. So for now just have to compile images the way tmn505 outlined. Have to wait till the weekend. Eventually snapshots will work, just a matter of time to get the bugs ironed out :slight_smile:

Just flashed today on three separate Lumas. I followed the instructions here, using the latest snapshot images from OpenWRT. Was pretty quick and painless. The only thing I noticed is that on 80MHz 5GHz I was only getting ~200 Mbps down even at a link speed of 780 Mbps (I know this is theoretical but I've experienced 500+ on other AC access points). Other than that, this has been an amazing way to repurpose these otherwise useless access points that were sitting in a box.

@jpstoppa @rayclark
Maybe I can provide instructions to move to upstream OpenWrt images which can be performed on running system. Please provide output of ubinfo -a and ls -l /dev/ubi*.

Please help.
When running the tftp command, I get stuck here. Can anyone help?

Its going into loop


eth0 PHY0 Down Speed :10 Half duplex

eth0 PHY1 Down Speed :10 Half duplex

eth0 PHY2 Down Speed :10 Half duplex

eth0 PHY3 Down Speed :10 Half duplex

eth0 PHY4 up Speed :100 Full duplex

Using eth0 device

TFTP from server 192.168.1.250; our IP address is 192.168.1.201

Filename 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

Load address: 0x84000000

Loading: #T #######T ###########T ####T #######T ########T ###########T #######T #########

##T ########T ############################

Retry count exceeded; starting again

eth0 PHY0 Down Speed :10 Half duplex

eth0 PHY1 Down Speed :10 Half duplex

eth0 PHY2 Down Speed :10 Half duplex

eth0 PHY3 Down Speed :10 Half duplex

eth0 PHY4 up Speed :100 Full duplex

Using eth0 device

TFTP from server 192.168.1.250; our IP address is 192.168.1.201

Filename 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

Load address: 0x84000000

Loading: ########T #T ###T ############T T ##########T ######T ######T T ###T ##

Retry count exceeded; starting again

eth0 PHY0 Down Speed :10 Half duplex

eth0 PHY1 Down Speed :10 Half duplex

eth0 PHY2 Down Speed :10 Half duplex

eth0 PHY3 Down Speed :10 Half duplex

eth0 PHY4 up Speed :100 Full duplex

Using eth0 device

TFTP from server 192.168.1.250; our IP address is 192.168.1.201

Filename 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

Load address: 0x84000000

Loading: #########T ###############T ########T ############T #T ##T T ##########T #T ###T #

Retry count exceeded; starting again

eth0 PHY0 Down Speed :10 Half duplex

eth0 PHY1 Down Speed :10 Half duplex

eth0 PHY2 Down Speed :10 Half duplex

eth0 PHY3 Down Speed :10 Half duplex

eth0 PHY4 up Speed :100 Full duplex

Using eth0 device

TFTP from server 192.168.1.250; our IP address is 192.168.1.201

Filename 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

Load address: 0x84000000

Loading: #####T ######T ###########T ############T #########T ######T ############T ####

#####T #############T ######T ############

Retry count exceeded; starting again

eth0 PHY0 Down Speed :10 Half duplex

eth0 PHY1 Down Speed :10 Half duplex

eth0 PHY2 Down Speed :10 Half duplex

eth0 PHY3 Down Speed :10 Half duplex

eth0 PHY4 up Speed :100 Full duplex

Using eth0 device

TFTP from server 192.168.1.250; our IP address is 192.168.1.201

Filename 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

Load address: 0x84000000

Loading: ###############T T ###T ###############################################

###########

Bad ethernet cable? Or bad luma unit?

Likely a problem with the connection to your TFTP server. First thing to check is that you have the link up on both the TFTP server and Luma.
If that checks and assuming you only have one TFTP server running (i.e. you didn't install multiple servers and they conflict), check the following:

  1. The PC (or whatever device) running the TFTP server has the IP specified by Luma when you issued the tftpboot command. In your case IP: '192.168.1.250', netmask '255.255.255.0'.

  2. The TFTP server binds the above IP.

  3. The server's base directory contains the xxx.itb file. In your case 'openwrt-ipq40xx-generic-luma_wrtq-329acn-initramfs-fit-uImage.itb'.

  4. You can ping the TFTP server from Luma, and vice-versa. In your case:

  • From Luma:
ping 192.168.1.250
  • From the TFTP server:
ping 192.168.1.201
  1. Use a TFTP client and confirm it can pull a file from the TFTP server.
    I.e. assuming you use Windows and enabled the tftp client in Windows features, create a text file in the TFTP server's base directory, say: test.txt and put a few lines in it, then from command prompt issue the following:
tftp -i 192.168.1.250 test.txt %USERPROFILE%\Downloads

If you receive something of the sorts:

Transfer successful: 16 bytes in 1 second(s), 16 bytes/s

Your TFTP server runs fine, and all settings are OK. You can see that the file was transferred in your Downloads folder.

Hope this helps with your troubleshooting the issue.

@tmn505 - Here is the output of those commands

root@OpenWrt:~# ubinfo -a
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:62
Present UBI devices:            ubi0

ubi0
Volumes count:                           6
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     1022 (129769472 bytes, 123.7 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       2
Count of reserved physical eraseblocks:  18
Current maximum erase counter value:     296
Minimum input/output unit size:          2048 bytes
Character device major/minor:            246:0
Present volumes:                         0, 1, 2, 3, 4, 5

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        30 LEBs (3809280 bytes, 3.6 MiB)
State:       OK
Name:        kernel
Character device major/minor: 246:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        285 LEBs (36188160 bytes, 34.5 MiB)
State:       OK
Name:        ubi_rootfs
Character device major/minor: 246:2
-----------------------------------
Volume ID:   2 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        51 LEBs (6475776 bytes, 6.1 MiB)
State:       OK
Name:        dummy
Character device major/minor: 246:3
-----------------------------------
Volume ID:   3 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        30 LEBs (3809280 bytes, 3.6 MiB)
State:       OK
Name:        kernel1
Character device major/minor: 246:4
-----------------------------------
Volume ID:   4 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        37 LEBs (4698112 bytes, 4.4 MiB)
State:       OK
Name:        ubi_rootfs1
Character device major/minor: 246:5
-----------------------------------
Volume ID:   5 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        567 LEBs (71995392 bytes, 68.6 MiB)
State:       OK
Name:        rootfs_data
Character device major/minor: 246:6

************************************************************************

root@OpenWrt:~# ls -l /dev/ubi*
crw-------    1 root     root      246,   0 Jan  1  1970 /dev/ubi0
crw-------    1 root     root      246,   1 Jan  1  1970 /dev/ubi0_0
crw-------    1 root     root      246,   2 Jan  1  1970 /dev/ubi0_1
crw-------    1 root     root      246,   3 Jan  1  1970 /dev/ubi0_2
crw-------    1 root     root      246,   4 Jan  1  1970 /dev/ubi0_3
crw-------    1 root     root      246,   5 Jan  1  1970 /dev/ubi0_4
crw-------    1 root     root      246,   6 Jan  1  1970 /dev/ubi0_5
crw-------    1 root     root       10,  62 Jan  1  1970 /dev/ubi_ctrl
brw-------    1 root     root      254,   0 Jan  1  1970 /dev/ubiblock0_3
brw-------    1 root     root      254,   1 Jan  1  1970 /dev/ubiblock0_4

I used another server as a TFTP server and all went smoothly but now I have another problem.
I could not find a way to follow the build manual (add extra packages from that huge list) and used the images from the repository (https://downloads.openwrt.org/snapshots/targets/ipq40xx/generic/) .

I could successfully flash the image and now OpenWrt is booting but I have no access to the web interface. I checked and uhttpd is not running and its not even available to start on the router.

root@OpenWrt:/# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      
tcp        0      0 192.168.1.84:53         0.0.0.0:*               LISTEN      
tcp        0      0 192.168.1.1:53          0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 2001:8a0:ebfb:4d00:5ea9:33ff:fe01:245a:53 :::*                    LISTEN      
tcp        0      0 ::1:53                  :::*                    LISTEN      
tcp        0      0 fe80::5ea9:33ff:fe01:245a:53 :::*                    LISTEN      
tcp        0      0 :::22                   :::*                    LISTEN      
udp        0      0 127.0.0.1:53            0.0.0.0:*                           
udp        0      0 192.168.1.84:53         0.0.0.0:*                           
udp        0      0 192.168.1.1:53          0.0.0.0:*                           
udp        0      0 0.0.0.0:67              0.0.0.0:*                           
udp        0      0 :::546                  :::*                                
udp        0      0 :::547                  :::*                                
udp        0      0 2001:8a0:ebfb:4d00:5ea9:33ff:fe01:245a:53 :::*                                
udp        0      0 ::1:53                  :::*                                
udp        0      0 fe80::5ea9:33ff:fe01:245a:53 :::*                                
raw        0      0 ::%157:58               ::%156:*                58          
raw        0      0 ::%158:58               ::%157:*                58          
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                      4925 /var/run/wpa_supplicant/global
unix  2      [ ]         DGRAM                      2373 /var/run/hostapd/global
unix  2      [ ACC ]     STREAM     LISTENING       3188 /var/run/ubus.sock
unix  11     [ ]         DGRAM                      4488 /dev/log
unix  2      [ ]         DGRAM                      4924 
unix  2      [ ]         DGRAM                      5001 
unix  3      [ ]         STREAM     CONNECTED       2378 /var/run/ubus.sock
unix  2      [ ]         DGRAM                      3193 
unix  3      [ ]         STREAM     CONNECTED       4928 
unix  2      [ ]         DGRAM                      3330 
unix  3      [ ]         STREAM     CONNECTED       4490 
unix  3      [ ]         STREAM     CONNECTED       3286 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       3194 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED        251 
unix  2      [ ]         DGRAM                       295 
unix  2      [ ]         DGRAM                       494 
unix  3      [ ]         STREAM     CONNECTED        496 
unix  3      [ ]         STREAM     CONNECTED       3388 /var/run/ubus.sock
unix  2      [ ]         DGRAM                       534 
unix  2      [ ]         DGRAM                       693 
unix  2      [ ]         DGRAM                      2372 
unix  3      [ ]         STREAM     CONNECTED       2388 
unix  3      [ ]         STREAM     CONNECTED       4933 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       2507 
unix  3      [ ]         STREAM     CONNECTED       2377 /var/run/ubus.sock
unix  3      [ ]         STREAM     CONNECTED       2376 
unix  3      [ ]         STREAM     CONNECTED       3542 /var/run/ubus.sock
unix  2      [ ]         DGRAM                      2508 
unix  2      [ ]         DGRAM                      2511 

Even to access the router from my network I had to add some network routes.

Can anyone help me pass this ? Should I build my own image ?
And if so, in the make menu config, how can I mark to install all the necessary modules ?