Askey RAC2V1K / RT4230W REV6 Support

New update, I'm using a SAC router to test things instead of the RAC one I have because I'm using it as my main, and its flash chip is only 256M instead of the 512M that's on deviwiki. I just found this out because I was trying to dump the nand with "nand read" and "tftpput" but whenever I specified anything higher than 255M I would just get a "Attempt to read outside the flash area" error. Also for some reason it's just not letting me dump the thing in general. It just gives me a "NAND read from offset 0 failed -74" error.

If you have serial access , just interrupt uboot and copy the boot log. I want to see the likelihood of the flash being 256 or 512

Edit: 3 consecutive replies aren't allowed apparently so im editing this.
Luckily it seems like we have about 230M of space (0xDC00000 in hex) for all of the openwrt goodies and booting seems easy enough.

512 or 256 some routers use different flash chips
i am 512 log

I didn't notice until now that it tells you the nand size right at the beginning :man_facepalming:

Finally got the chance to test on the actual RAC2V1K instead of the SAC version aaannnndddddd wireless is broken. I'll work on this and try to get it working. Something tells me it's because of the different flash size, but we'll see.

Here's the error if anyone can help:

[   11.073838] ath10k_pci 0000:01:00.0: Refused to change power state, currently in D3
[   11.074055] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   14.153740] ath10k_pci 0000:01:00.0: failed to read device register, device is gone
[   14.153778] ath10k_pci 0000:01:00.0: failed to wait for target after cold reset: -5
[   14.160207] ath10k_pci 0000:01:00.0: failed to reset chip: -5
[   14.168602] ath10k_pci: probe of 0000:01:00.0 failed with error -5
[   14.213811] ath10k_pci 0001:01:00.0: Refused to change power state, currently in D3
[   14.214029] ath10k_pci 0001:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   17.293728] ath10k_pci 0001:01:00.0: failed to read device register, device is gone
[   17.293767] ath10k_pci 0001:01:00.0: failed to wait for target after cold reset: -5
[   17.300196] ath10k_pci 0001:01:00.0: failed to reset chip: -5
[   17.308685] ath10k_pci: probe of 0001:01:00.0 failed with error -5

@efsg -
i've got a rev6 router, uploaded the config.cfg, got ssh access, but now lost web gui access - can you tell the username and password for lighttpd in your config?
thank you!

Accounts are admin
password is linuxbox

yes - now it works. i had to firstboot the router via ssh and then reupload your config.
thank you

@romio, @efsg
i can ssh in as 4230w, but dont have permission to edit anyting in /etc. can you confirm that 4230w should have these permissions? if not, how to? also only one login session allowed?

reupload backup
4230w is root user

ive now got root access thanks to @efsg, and serial access too - able to load initramfs as suggested by @lmore377.
from u-boot console, i created a few ethernet settings via setenv:
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.9 (change as you like)
setenv netmask 255.255.255.0
saveenv

then you can set a fixed IP on your computer and tftp in:
tftpboot initramfs

@efsg - ive downloaded your openwrt firmware images. i can get the initramfs-fit-uimage-itb to boot via tftpboot, but then it reboots and runs the stock image from ubi.

are any of your images able to be written to mtd? which partition?

thank you so much!

Nothing is able to be written right now. I'm still trying to get wifi working because I was working with a rev10 router originally but now that I'm on a rev6 router pcie is broken

Also, are you getting a kernel panic or something? As far as I know that image should boot fine on either revision

@lmore377 - your initramfs.img does boot ok. i did not hit 'enter' on the serial console to finish the openwrt boot process. luci gui loads up ok.
my hardware: i'm on a rev6 board accoriding to firmware (rev9 is silkscreened on pcb).

maybe start with setting up some environment vars in uboot?

I don't see any special vars in uboot. Can you boot openwrt and run lspci -v real quick?

here you go:

root@OpenWrt:/# lspci -v
0000:00:00.0 PCI bridge: Qualcomm Device 0101 (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 35
        Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: 08000000-081fffff [size=2M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: pcieport
lspci: Unable to load libkmod resources: error -12

0000:01:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
        Subsystem: Qualcomm Atheros Device cafe
        Flags: bus master, fast devsel, latency 0, IRQ 43
        Memory at 08000000 (64-bit, non-prefetchable) [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
        Capabilities: [158] Latency Tolerance Reporting
        Capabilities: [160] L1 PM Substates
        Kernel driver in use: ath10k_pci

0001:00:00.0 PCI bridge: Qualcomm Device 0101 (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 37
        Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: 2e000000-2e1fffff [size=2M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: pcieport

0001:01:00.0 Network controller: Qualcomm Atheros QCA9984 802.11ac Wave 2 Wireless Network Adapter
        Subsystem: Qualcomm Atheros Device cafe
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at 2e000000 (64-bit, non-prefetchable) [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
        Capabilities: [158] Latency Tolerance Reporting
        Capabilities: [160] L1 PM Substates
        Kernel driver in use: ath10k_pci

root@OpenWrt:/#

Wait does your router have a qr code on the back or no? It looks like wifi is working for you. Try turning it on through luci

no qr code
wifi works - enabled via luci

I think it's the wifi cards. There's just something different about the one in this router that's making it refuse to work with openwrt. Can you send a picture of the area around the nand chip (above the wifi card)? I want to see if at least that looks the same.

Edit: I took out the wifi cards and put in a random laptop wifi card and sure enough it shows up fine in lspci

It's not the wifi card. Somethings different with the board itself.

@ghoffman can you take out the wifi card and also send pictures of the area around the pcie slots? I noticed that it's different between the two routers I have

@lmore377


i hope this helps. i guess it does have a qr code on the PCB.