Installing Openwrt on Dynalink DL WRx36

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • 6 June 2024 Update: old USB recovery instructions from OpenWrt no longer work,
    Read this description to get a summary of what you need along with links as well:
    Step 1: website for router on openwrt is here: openwrt.org/to...
    Step 2: Download files using Firmware selector here: firmware-selec...
    2a: Please note that link I gave you should auto-prefil router info and show you Qualcomm version which is what I used
    2b: Download kernel and factory file, these are the only two needed since we doing a fresh install.
    Step 3: Download config file you need to upload into router: forum.openwrt....
    3a: Note as in video, it will be mega link file, click that and download.
    Step 4: Log into router, get to configuration section to upload config file you downloaded, wait for router to finish processing, it should kick you when done.
    Step 5: SSH into router, remember new password, here's command: ssh admin@192.168.216.1 (Note i.p address, double check it like in video), password should be askey1234
    Step 6: Copy kernel file to usb flash drive, Double check that usb drive is formatted in Fat32, that is a must.
    Step 7: Plug usb drive into router, you can check router to make sure it's in if you want, or assume it's good.
    Step 8: Run following commands in console you ssh'd into router: (*REMEBER if you used generic file, to use generic name instead as stated in video*)
    fw_setenv bootcmd 'usb start && fatload usb 0:1 0x44000000 openwrt-qualcommax-ipq807x-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000; bootipq'
    reboot
    Step 9: Wait for router to reboot, and then ssh into router, it will be openwrt stuff this time, so use this command: ssh root@192.168.1.1
    Step 10: open up a new command prompt console, and cd to folder you are holding files you downloaded in, your about to transfer factory file to router
    Step 11: one your in that folder in command promt, transfer file to router, use this if your using same file: scp openwrt-qualcommax-ipq807x-dynalink_dl-wrx36-squashfs-factory.ubi root@192.168.1.1:/tmp/
    Step 12: Close that command console now and go back to one you used to ssh into router, run this command to see table to format: cat /proc/mtd
    12a: PLEASE PLEASE PLEASE PLEASE pay attention to this part, look for mtd tables that have rootfs and rootfs_1, mines was mtd18 and 20, but yours COULD be different
    Step 13: Now format rootfs and rootfs_1 partitions while also giving correct file name you just transferred to router:
    13a: WARNING, PLEASE MAKE SURE YOU ARE TARGETING RIGHT PARTITION AND USING RIGHT FILE NAME
    13b: If your mtd tables for root are mtd 18 and 20 like mines were, use these commands and CHANGE THEM IF YOURS ARE DIFFERENT:
    ubiformat /dev/mtd18 -y -f /tmp/openwrt-qualcommax-ipq807x-dynalink_dl-wrx36-squashfs-factory.ubi
    ubiformat /dev/mtd20 -y -f /tmp/openwrt-qualcommax-ipq807x-dynalink_dl-wrx36-squashfs-factory.ubi
    Step 14: Run this command now for U-boot environment: fw_setenv mtdids 'nand0=nand0'
    Step 15: Get offset for next command to run by running this: cat /sys/class/mtd/mtd18/offset
    15a: if you get 16777216, your OEM slot is 1, if you get 127926272 like me, it's OEM slot 2.
    Step 16: if AND ONLY IF you got OEM slot 2 like me, run this: fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x7a00000(fs),0x6100000@0x1000000(fs_1)'
    16a: if you got OEM slot 1, run this one instead, BUT ONLY IF YOU GOT OEM 1 instead: fw_setenv mtdparts 'mtdparts=nand0:0x6100000@0x1000000(fs),0x6100000@0x7a00000(fs_1)'
    Step 17: Run this next to set U-boot environment: 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'
    Step 18: reboot router, you can run this: reboot
    ************
    At this point, OPENWRT is installed on router assuming everything went without issue. thing with these Snapshots is that THEY DO NOT have a GUI preinstalled (Luci), so we need to now install it.
    Step 19: SSH back into your router, should be same command as before, run this: ssh root@192.168.1.1
    19a: I forgot to mention when you were ssh before, if you ever get an issue with ssh into router AFTER you had flashed it or changed something, it is likely a issue with keys computer made before device changed, go to your .ssh folder as shown in video and either edit device out or just delete that file.
    Step 20, now run following commands, and you'll be officially done:
    opkg update
    opkg install luci
    Once this finish, go into your browser using i.p address, should be able to just put in 192.168.1.1 and you'll get to openwrt. Remember default is no password, so you should be able to login with password blank by hitting login with username as root.
    please like, subscribe, and comment if everything goes well for you.

КОМЕНТАРІ • 33

  • @Bracket_Man
    @Bracket_Man 10 місяців тому +5

    24:55 You typed it in wrong it should be qualcommax-ipq807x not the other way around

    • @CodeVelazquez
      @CodeVelazquez  10 місяців тому +4

      Thanks a bunch for the catch, that means I can either rerun the usb commands with the correct filename, or change the filename on the usb drive around if I needed the recovery prior to fixing it.

    • @minn5459
      @minn5459 10 місяців тому +2

      Qualcommmaxxing 💪💪💪💪💪💪💪

  • @OutlawNix
    @OutlawNix 2 місяці тому +1

    I owned the Router shown in this video for 2 months and 10 days until out of the blue WAN port of the Router died.
    I ended up getting the TP-Link Deco W4500 which is a Wi-Fi 6 Mesh type system. Comes with 3 devices which I had spread evenly across the house as I could.
    The new Router gives far better Wi-Fi signal any where within the home. Heck I can even get a good Wi-Fi signal at the garage which is like 50 feet away from the home.
    Using the Dynalink Router I could barely get a Wi-Fi signal standing on the back.

    • @CodeVelazquez
      @CodeVelazquez  2 місяці тому

      Wow, thanks for sharing, I'll have to look into that one, sounds super convenient when you have a decent size home. I do wonder how OpenWrt would handle a device like that with linked mesh devices such as what your describing. Wonder how much configuration you have to do for all 4.

    • @OutlawNix
      @OutlawNix 2 місяці тому

      TP-Link Deco line up don't have the normal US interface that normal routers has. The TP-Link Deco uses smartphone app to control it and for configuration.
      So during configuration they really act as one voice so to speak. The biggest benefit for using the Deco is when you carrying mobile devices around the home.
      As you move through the home your device will switch which deco it uses to get the best signal.
      If the deco's are placed in the right spots through the home. You can be sure every device connected to the network will have the best signal it can get.

  • @hellomihai
    @hellomihai 7 місяців тому +2

    Hey, thanks so much for posting this. I used your guide to set it up and it works pretty well. I did notice that with openWRT I’m getting slower WiFi speed than with the stock firmware.

    • @CodeVelazquez
      @CodeVelazquez  6 місяців тому

      Happy it helped, and sorry to hear that. Now as a disclaimer, I'm not a professional, nor am I that knowledgeable on all the ins and outs of maximizing and fixing the speed of an openwrt router. I'm learning just as I'm sure all of you are, I can tell you what my experience has been and hopefully that helps!
      For your speed, That could be dependent on a few things like how developed openwrt is for your particular router. Assuming it is this one for example having better support in snapshot version vs the stable release currently, you should consider the following:
      For Wi-Fi, try to fine tune it for your environment like customizing the channel it uses, the band size (20hz up to 160hz if you have devices that can support it and there is not a lot of wifi signals where your at). There's free apps you can download on your phone like Wifiman and Netgear Wi-Fi analytics that can show you some very important details about all the wifi signals around the room you have your router in (neighbors wifi, hidden wifi, etc) like:
      1) What channels those wifi signals are using? You want yours to be on the channel with the least amount of wifi signals on,
      2) how big the bands are that those wifi signals take (one signal could cover channel 3, 4, and 5 for example), This is important to know because when you place your wifi signal on a specific channel, when you specify the width, the larger the number, the more channels its going to spread over, and therefore, more susceptible to degraded performance when other signals are in it's space. But if you can find the space to have it on more channles, your wifi signal will perform much fatser for devices that are able to take advantage of the infamous MIMO antenna stuff.
      If your talking about a wired connection, then things are a little bit more complicated. The best you can do:
      Install htop on the router, when you ssh into it and then run the command "htop", you will get this nice graphical interface that shows you your router CPUs at work. This is going to be very important, do this and once you have the screen up, then start further testing:
      Try to see if *Possibly* enabling the software flow offloading under Openwrt -> Network -> Firewall section of the router interface will help, and then run your favorite internet speed test on the PC. You'll notice that as it's running, the cpu's on the router (typically only really one of them) max out in utilization. The goal from my understanding is to try and have this as low as possible, it's not necessarily a bad thing if it caps out on you, so long as its not all the available cpu's, you should be ok, but again, the lower the better as that means it has room to handle higher speeds or do other stuff. You want to then try the following:
      1) Speed test with everything default, important to get a base speed number.
      2) Speed test with software flow offloading on, than the hardware version on as well (*At the time of writing this and for THIS particular router from the video, Hardware flow offloading changed nothing and I don't believe was supported, but as you know with snapshot builds this can get better or worse, so it's always good to try anyway to see, especially if your updating from time to time*)
      3) Also attempt to speed test with packet steering enabled, you can find this at Openwrt -> Network -> Interfaces -> the "Global network options" tab. And see how that works.
      Remember, lower is better on the cpu usage, and this is not an exhaustive list of things that could help you get better speeds, these are what I've personally experienced and am familiar with to share.

    • @hellomihai
      @hellomihai 6 місяців тому +1

      @@CodeVelazquez thank you so much for the advice. Im going to work on this and reply back with findings!

  • @missingsincemay
    @missingsincemay 4 місяці тому +1

    Just finished a successful install thanks to your video! You gave me the confidence to get this done, and I appreciate you so much. Everything is running great!

  • @fastdyna
    @fastdyna 10 місяців тому +5

    I usually don’t comment on YT videos but just wanted to say thanks for the fantastic “How to” video. I followed your instructions step by step and NO issues. Quick question, I did your last step too for the USB recovery so if we did a reset (or factory reset as some call it) would that wipe out the USB back-up plan? Thank you again!

    • @CodeVelazquez
      @CodeVelazquez  10 місяців тому +3

      Hi there, happy it helped! Regarding your question. I don't know *yet*. I actually took your question up with some of the people who have been working on developing openwrt for this router. When they get back to me, I'll reply again to you with what I found out.
      My initial thinking is that it stays persistent when your "recovering" openwrt, meaning if you find some way to repair it on the router which would include also sysupgrading the firmware. Now if you reflash the installation or even reformat the mtd partitions like you were reinstalling like in the original instructions as if you were installing openwrt when it had oem firmware, it probably doesn't, but that may only be true with reformatting the partitions and not openwrt depending on how the u-boot is involved. Hopefully they'll answer me soon.

    • @CodeVelazquez
      @CodeVelazquez  10 місяців тому +4

      Turns out that It does indeed persist even after a recovery. That's good since U-boot is an increadibly easy way to brick and render your device unusable if something were to go wrong from fiddling with it too much.

  • @rjtm90
    @rjtm90 11 місяців тому +3

    Hi. Thanks for guide!! I have two questions: how can install Luci offline or no internet in snapshot? And, this router with OpenWRT supports VLAN 802.1Q config? Thanks for reply.

    • @CodeVelazquez
      @CodeVelazquez  11 місяців тому +4

      Hey there! Thanks for asking, later on, I'll try to add your questions' answer in the description if youtube allows the space. But your answers are:
      1) For installing packages offline, you'll need to download the ipk file of the package and scp the file to the router and then run opkg install command on that file. It'll look something like this:
      1a: go here openwrt.org/packages/table/start?dataflt%5BName_pkg-dependencies*%7E%5D=Luci and get the luci package
      1b: open the console, and navigate to where you downloaded the luci package and then do scp luci filename.ipk root@192.168.1.1:/tmp
      1c: if the transfer was successful, ssh into the router, navigate to /tmp, and then run opkg install lusifilename.ipk
      1d: wait for it to finish and your done.
      2) For your other question, in general, most routers with multiple ports, especially those that come with a Wan port typically support VLan. The issue though is that because the router is so new and only supported in snapshot builds, it's hard to say if vlan functions 100% as expected, the only way you'll know is by trying it and testing everything, to include any extreme edge cases to ensure it functions as expected.
      Hope this helps!

  • @ljamesrosel
    @ljamesrosel 8 місяців тому +1

    I'm planning to get this for my first openwrt router...Do you still recommend this? I will mainly use it for QSM feature only. Hoping your response

    • @CodeVelazquez
      @CodeVelazquez  6 місяців тому

      Depends, enough time has passed where I am sure you probably already got it, depends on what you wanna do:
      If you want what is arguably the best consumer router in terms of hardware specs in an actual router that you can put openwrt on, with increasing support AND you plan on making this your day to day router and so you want something that can actually give you things like wifi6 speeds and whatnot. This is a solid choice. ESPECIALLY it's price point you can find it on at Amazon. I have three =)
      If you want a router strictly to learn openwrt and do some really cool customizable stuff and really plan to install a bunch of stuff, experiment with things and potentially jack it up. The linksys wrt 3200 acm router I made videos on would be my go to simply for it's specs ALONG with it's dual boot capabilities, which is so convenient and can be a massive life savor if you install/configure something that just jacks up the openwrt system where you can't get into the interface or worse can't ssh into it. It was considered the best in my opinion from what i've read back in the day for openwrt routers because of its specs. The only thing I"ve tried that didn't work with it is if your trying to use certain wireless repeating protocols like 802.11r (and of course I could of been doing something wrong), but other than that, and that was I guess specific to it's age, everything was great on it. I recommend this router only for this reason as it is still old and I wouldn't use it as my main go to with wifi being important to me since it obviously don't support the later protocols and speeds.

    • @ljamesrosel
      @ljamesrosel 6 місяців тому +1

      i already did it with my old computer with 4ghz...installed openwrt on usb and run SQM mode hehe Thanks!@@CodeVelazquez

  • @minn5459
    @minn5459 10 місяців тому +2

    Hi, I've read online that the firmware wasn't ready, it had just a snapshot back then, currently the version available is 23.05.0. Is it stable and good for everyday use now?

    • @CodeVelazquez
      @CodeVelazquez  10 місяців тому +4

      It is stable, but so many improvements and fixes have been added since the stable 23.05 version that I would actually personally recommend going the snapshot route. Just remember that you'll need to I stall luci via ssh when you install snapshots since it's preincluded in them.
      Just as a reinforcer, The snapshots are so far ahead of the stable release build that the group of developers that are behind bringing support for the device are in the process of changing the recommendation from the stable build to the snapshot. The convo is a little more advance (tech politics) then what I currently understand, but that's how much more of an improvement the snapshot build is currently at, they update the build nearly daily it seems so just imagine how much has improved over many months!

    • @minn5459
      @minn5459 10 місяців тому +2

      @@CodeVelazquez thanks homie

  • @Despair_794
    @Despair_794 8 місяців тому +1

    What the password so I can login to the wifi

  • @mikenyc1589
    @mikenyc1589 2 місяці тому +1

    Glad it worked but your video seemed all over the place....wish it was more methodical

    • @CodeVelazquez
      @CodeVelazquez  2 місяці тому

      Thanks for the feedback, we're making adjustments every step of the way.

  • @modenaman
    @modenaman 7 місяців тому +3

    OpenWRT as in Open "Double-U R T". Not OpenWort 😅
    Also, not "intrafs" image, it's an init RAM filesystem. (initramfs)

  • @killrtaco6071
    @killrtaco6071 3 місяці тому

    I installed the recovery image and now I cannot connect to the router because the default password isn't the one that is on the bottom nor one I set prior. Do you happen to know the default password for the recovery image?

    • @CodeVelazquez
      @CodeVelazquez  3 місяці тому

      Hmm, by recovery image are you referring to the .itb file? In most cases, if you are loading up the .itb file, imagine that you arey loading an entire encapsulated Linux operating system, so by default, there will be no password, all you need to know is the correct i.p address to the router, which *most* of the time, should have now been changed to 192.168.1.1 so double check using your computer to see what the i.p address is for the router it is connected to via an ethernet cord as there will be no Wi-Fi signal until you set it up ofcourse.
      Once you connect the router to the computer using the eathernet cord into the Lan port (make sure it is not the internet port in the router, needs to be one of the Lan ports), get the i.p address and ssh to the router, should be for example (ssh root@192.168.1.1) that you can type in the windows terminal, if it ask for a password, simply hit enter as there will be none setup by default. Amd lastly, if you get a host key error trying to ssh into the router, 9 out of 10 times it's because it created keys before from ssh into the same physical router with a different operating system basically, so you will need to delete the known_host file on your computer, but let's focus one thing at a time starting with that you are trying to connect with the proper i.p address.
      Can you confirm the i.p address to your router?

  • @Tay-ky3fi
    @Tay-ky3fi 11 днів тому

    i unfortunately bricked mine.. any chance you can do a serial install please?

    • @CodeVelazquez
      @CodeVelazquez  6 днів тому

      Hopefully this helps you: ua-cam.com/video/8AtaUFZt6KI/v-deo.html