Yes.
And this time, it works.
Yes.
And this time, it works.
Great!
I've added the u-boot commands to the wiki entry.
Can.
I removed my USB without issues.
You've previously issued u-boot commands that told it to look for an itb image on a USB upon boot. It found it and loaded the initramfs image into memory. You can remove the USB but next time it boots, it won't be into OpenWRT. Me personally, I just leave the USB in until I've run the necessary commands to copy the factory image to both partitions and set the next boot options to point to OpenWRT. One man's opinion.
So, i just got three of these routers but there is dynalink firmware installed on them. I tried googling for how to flash openwrt on them, but cant find it.
Here is a page about it, but has been removed:
https://openwrt.org/inbox/toh/dynalink/dl-wrx36
EDIT: Found it by scrolling through this thread, that's not gonna be a walk in the park for me
Maybe we should pin the instructions somewhere so it's easy to find.
EDIT2:
I tried to follow instructions i found, but they are not very noob-friendly:
First of all, do i first need to follow instructions to get SSH? I have the feeling these commands are all linux. Do i need to run a virtual box with linux running in order to get openwrt running on these devices?
EDIT3:
To help others a bit, for the part that i at least can, i saw that people in europe were trying to find the device. They are new for just 69 euro now on the german amazon, that also sells them to netherlands and perhaps other countries. But just 5 left in stock, while there were 12 around 3 days ago. I bought 3.
You cannot find it looking for the WRX36, but instead it's simply AX3600. https://www.amazon.de/-/en/Dynalink-AX3600-Wireless-Coverage-Ethernet-White/dp/B098WC99VC/ref=sr_1_2?crid=3FUJO066OBC85&keywords=dynalink+ax3600&qid=1675445010&sprefix=dynalink+ax3600%2Caps%2C300&sr=8-2
The question I am replying is "Removing USB after installing Openwrt".
I take it as installing to internal flash of the router.
That's why I answered yes.
If the question is after booting the .itb image (via USB), then it is no for me.
No, it's been moved to https://openwrt.org/toh/start
They are, but Google might not have caught up, page was moved yesterday.
Use a Linux live environment, booted from a flash drive.
thanks Frolic! We have your dog food at home
I'm probably going to ask a lot of questions here, but hopefully that will enable me in time to make this a bit more noob-friendly, for those who seek to do this without technical knowledge like me.
For the price, it's simply an unbeatable router. I wanted to use a asus setup, but it does not support fast transitioning/roaming. and this device has more range and more cpu power.
But the standard firmware on this device is very mediocre.
Luckily, i have some experience with linux CLI from managing online web servers(but only tutorials i can copy paste and apply for my web server)
My first question about enabling ssh is already the first task. Where would i download the config file of the router in order to decrypt it? where can it be found/downloaded?
Thanks!
Somewhere in the router UI, or DL the prepatched one posted in this thread, search for "mega.nz".
Are any of you guys available on discord for the weekend to chat about installing this?
I am taking note of the steps i am taking to make sure the next guy who purchases this router has a easy time to install it. But i'm pretty sure i'm gonna require some help making the installation myself.
Also, if any of you guys want me to try something on a stock firmware, do let me know. Just note it needs to be dumbed down since im totally new to networking and openwrt, and have just little linux experience.
EDIT: Putting my head around everything I've read:
Installation instructions from here:
Option 2: Boot initramfs from SSH access on OEM firmware
1. Copy the initramfs image to a FAT-formatted flash drive
(tested on single-partition drive) and connect it to device USB port.
2. Change boot command so it loads the initramfs image on next boot
Fallback to OEM firmware is provided.
# fw_setenv bootcmd 'usb start && fatload usb 0:1 0x44000000 openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000; bootipq'
3. Reboot the device to boot the initramfs
# reboot
So, the drive can be fat32?
the image file talked about here is the https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb thats provided above in the installation instructions? just that one file works on the usb drive?
Then:
Use SCP (or other way) to transfer OpenWrt factory image
So this is the second file? https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/openwrt-ipq807x-generic-dynalink_dl-wrx36-squashfs-sysupgrade.bin
just have to copy it to the root folder of the router?
Then starting from:
3. Check MTD partition table.
It's hopefully all copy-paste work, as this is all too much for me, haha.
On a offtopic note, i swear this device seemed familar to me, and i just figured out where it is familiar of. I hope the led cannot turn led, that would become creepy
Wish me luck with trying to install the openwrt tommorow!
I have a serial console for other routers and devices anyway.
So I ordered my WRX36 together with a 4-pin 2.0 mm JST PH connector.
I followed the installation guide in the TOH, Option 1 (using serial console)
but instead of USB boot I did a TFTP boot of the xxx.itb file.
The rest of the installation is done from a initramfs image.
If any of the steps of Option 2 (Boot initramfs from SSH access on OEM firmware)
fails you won't be able to do any further diagnosis.
If you don't have a serial console, now is the the time to buy one.
Good luck.
Unbox the router, connect to the router via LAN port, log in at 192.168.216.1 using default credentials on the bottom of the router, go to the Backup/Restore page in the OEM firmware and restore the backup.cfg file listed further up in the thread (this enables SSH), the device will reboot.
Place a file called "openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb" on any FAT/FAT16/FAT32 USB drive (doesn't even need to be empty) in the base directory of the USB and plug it into the router.
SSH into the router (Host: 192.168.216.1, Username: admin, Password: askey1234). Run the following command:
fw_setenv bootcmd 'usb start && fatload usb 0:1 0x44000000 openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000; bootipq'
Issue the 'reboot' command.
Your DHCP lease should change from 192.168.216.XXX to 192.168.1.XXX (this is how you know it's running OpenWRT. But wait!? OpenWRT is only running in memory and won't persist as this is an initramfs image.
On your machine, SCP (Secure Copy) or TFTP (Trivial File Transfer Protocol) the factory OpenWRT image to the router's /tmp directory. Here is the command I run from my linux laptop but you could also use WinSCP:
scp openwrt-snapshot-r21965-6f89a0ca20-ipq807x-generic-dynalink_dl-wrx36-squashfs-factory.ubi root@192.168.1.1:/tmp/openwrt-snapshot-r21965-6f89a0ca20-ipq807x-generic-dynalink_dl-wrx36
-squashfs-factory.ubi
SSH into the router (Host: 192.168.1.1, Username: root, no password). Run the following commands:
Install OpenWrt from initramfs image:
...
3. Check MTD partition table.
rootfs and rootfs_1 should be mtd18 and mtd20
depending on current OEM slot.
# cat /proc/mtd
4. Do a ubiformat to both rootfs partitions:
# ubiformat /dev/mtd18 -y -f /tmp/openwrt-snapshot-r21965-6f89a0ca20-ipq807x-generic-dynalink_dl-wrx36
-squashfs-factory.ubi
# ubiformat /dev/mtd20 -y -f /tmp/openwrt-snapshot-r21965-6f89a0ca20-ipq807x-generic-dynalink_dl-wrx36
-squashfs-factory.ubi
5. Set U-boot env variable: mtdids
# fw_setenv mtdids 'nand0=nand0'
6. Get offset of mtd18 to determine current OEM slot
- If current OEM slot is 1, offset is 16777216 (0x1000000)
- If current OEM slot is 2, offset is 127926272 (0x7a00000)
# cat /sys/class/mtd/mtd18/offset
7. Set U-boot env variable: mtdparts
If current OEM slot is 1, run:
# fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x1000000(fs),0x6100000@0x7a00000(fs_1)'
If current OEM slot is 2, run:
# fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x7a00000(fs),0x6100000@0x1000000(fs_1)'
8. Set U-boot env variable: bootcmd
# fw_setenv bootcmd 'setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs rootfstype=squashfs rootwait; ubi part fs; ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350-rev0'
9. Reboot the device
# reboot
Remove USB during reboot and you should be set.
I just tried this before bedtime, and i manage to get openwrt running in temp memory/ram. putty and winscp find something at 192.168.1.1 but the user root is immediately rejected when logging in. The user admin exists, it asks for a password. Entering a blank/nothing wont work, askey1234 also does not work.
In ipconfig, the default gateway is set to 192.168.1.1 so i do feel its the router im communicating with.
More attempts tommorow, thanks a lot for this easy guide!
192.168.216.1 is no longer available, so pretty sure the usb part worked...
I managed to brick my newly bought DL-WRX36, I already ordered another one and I'll probably keep the new one on stock firmware but with SSH access enabled.
Anyways, I did take pictures of the front and back of the PCB board in case anyone is interested
What happened? Then me/others can evade doing that.
I was a dummy and got a typo in this command below:
fw_setenv bootcmd 'setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs rootfstype=squashfs rootwait; ubi part fs; ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350-rev0'
My typo was:
fw_setenv bootcmd 'setenv bootargs console=ttyMSM0,115200n8 ubi.mtd=rootfs rootfstype=squashfs rootwait; ubi part fs; ubi read 0x44000000 kernel; bootm 0x44000000#config@rt5010w-d350
-rev 0'
I was too confident and typed reboot
and press Enter
.
The weird thing is I got serial working and U-boot never shows up, I did update to latest stock firmware (which I think was my other mistake)
S - Core 0 Frequency, 1651 MHz
it could be the latest firmware makes U-Boot
go quiet
For the .itb image I boot from USB, the scp commamd failed when running from Linux side. I need to run at the Router side.
Last time, I copied to / of the router, and I got suggestion copying to /tmp is better.
Please order a serial adaptor. I got mine last night, and I unbricked my router OK.