Subscribe to new threads in https://forum.openwrt.org/c/announcements/14 ?
(haven't tried it myself)
Subscribe to new threads in https://forum.openwrt.org/c/announcements/14 ?
(haven't tried it myself)
Ahh yes good idea, can use the "Watching First Post" option.
Purchased this device last Friday and today came home.
Did the process on the wiki and everything was working nice.
This weekend I will be testing this new device.
Using this method (message I replied to), I've just been notified of a new release 23.05.4, time to upgrade
@S7venLights
Hello and thank you for this guide. I'm a new user and only entry level network engineer type (its not even my job, but I did obtain Network+). I messed up.
At Part 2 step 5:
ubiformat /dev/mtd18 -y -f /tmp/factory_image.ubi
ubiformat /dev/mtd20 -y -f /tmp/factory_image.ubi
I forgot to replace the "factory_image" with the actual name of the file.. I rebooted and the router won't load USB back up (I've tried several times). It is in purple mode and not responding to anything. What do I need to do to fix this? I tried hitting the reset button but it didn't do anything.
I tried opening the links to serial stuff, and they seem to be broken. Any idea?
Actually the links work, but hoping I don't have to go this route.
Hi Sorry to hear, I updated the instructions to highlight the need to change filenames and to set USB recovery earlier inline with the latest official wiki. I also made a few other changes to make things more understandable.
I'm no expert, so not sure how I could help for your specific issue. But can you still SSH into the router?
If so, can you redo the commands you messed up correctly?
or perhaps even restart the process form Part 1 step 4 or 5?
If that doesn't work, I'm not sure... maybe @hnyman can help?
If you did in fact get to the section that sets USB boot for recovery, make sure you have the right file/image on the USB stick. My instructions for setting USB boot at the time you installed set this as the USB recovery:
fw_setenv openwrtusb 'usb start && fatload usb 0:1 0x44000000 openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000
According to that, you need a file called openwrt-ipq807x-generic-dynalink_dl-wrx36-initramfs-uImage.itb on your USB stick.
Maybe try renaming the intramfs file on the usb stick accordingly.
That is a great point about renaming the file. Maybe it makes more sense to just come up with a simple, fixed name for the file (ex. "Dynaboot.itb" ) when setting the USB bootcmd line. Then it's just a matter of renaming the downloaded file on the USB before recovery booting.
I'm losing my mind, already successfully followed these instructions once before but now, for whatever reason, I can't get the router to boot into the initramfs (snapshot version). The USB stick is formatted FAT32, the command I'm running is fw_setenv bootcmd 'usb start && fatload usb 0:1 0x44000000 openwrt-qualcommax-ipq807x-dynalink_dl-wrx36-initramfs-uImage.itb && bootm 0x44000000; bootipq'
, I've even tried copying the initramfs file from /mnt/UNTITLED to the default folder.
It just reboots into OEM firmware every single time. I followed part 1 perfectly, I have no idea what I could be doing wrong.
Too large or modern memory stick? (Although fat32)
Some sticks have got USB enumeration differently than 0:1
You might try 1:1 or 0:2
Not all USB sticks work, using an older USB2 stick seems to work better
Appreciate the swift responses everyone, I ended up going to the store to buy another USB drive. Bizarrely, the one I tried unsuccessfully was actually an old USB 2.0 stick (also plugged into a USB 2.0 slot, maybe that has something to do with it?)
The one I just bought is 32GB, USB 3.2. I simply dropped the initramfs onto it, plugged it in and it successfully booted into OpenWrt. Got everything working ok.
Is there an easy way to check the USB enumeration under Windows, for future reference?
Probably easier to do it on your router, once you got Openwrt back.
The enumeration varies by the stick type, and is naturally related to the router's OS, so Windows has no knowledge about Linux enumeration.
Example of trying three sticks in my MT6000 router:
(note "usbutils" installed for "lsusb" command, but the same info is in the system log, too.)
Old slow stick got 1:2 while new USB3 sticks got 2:1
root@router6000:~# opkg install usbutils
Installing usbutils (017-r1) to root...
Stick1:
root@router6000:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.49 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 4146:ba65 PRETEC UG-04GB USB Mass Storage Device
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.49 xhci-hcd xHCI Host Controller
System log:
Tue Sep 10 21:57:50 2024 kern.info kernel: [ 2701.238431] usb 1-2: new high-speed USB device number 2 using xhci-mtk
Tue Sep 10 21:57:50 2024 kern.info kernel: [ 2701.431053] usb-storage 1-2:1.0: USB Mass Storage device detected
Tue Sep 10 21:57:50 2024 kern.info kernel: [ 2701.437459] scsi host0: usb-storage 1-2:1.0
Tue Sep 10 21:57:51 2024 kern.notice kernel: [ 2702.477841] scsi 0:0:0:0: Direct-Access Pretec UltimateGuard 2.00 PQ: 0 ANSI: 2
Tue Sep 10 21:57:51 2024 kern.notice kernel: [ 2702.654340] sd 0:0:0:0: [sda] 7897088 512-byte logical blocks: (4.04 GB/3.77 GiB)
Tue Sep 10 21:57:51 2024 kern.notice kernel: [ 2702.662121] sd 0:0:0:0: [sda] Write Protect is off
Tue Sep 10 21:57:51 2024 kern.debug kernel: [ 2702.666897] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
Tue Sep 10 21:57:51 2024 kern.err kernel: [ 2702.829470] sd 0:0:0:0: [sda] Asking for cache data failed
Tue Sep 10 21:57:51 2024 kern.warn kernel: [ 2702.834947] sd 0:0:0:0: [sda] Assuming drive cache: write through
Tue Sep 10 21:57:51 2024 kern.info kernel: [ 2702.843286] sda: sda1
Tue Sep 10 21:57:51 2024 kern.notice kernel: [ 2702.845823] sd 0:0:0:0: [sda] Attached SCSI removable disk
Stick2:
root@router6000:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.49 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.49 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 0781:55a9 USB SanDisk 3.2Gen1
System log:
Tue Sep 10 22:00:00 2024 kern.info kernel: [ 2830.899625] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
Tue Sep 10 22:00:00 2024 kern.info kernel: [ 2830.930973] usb-storage 2-1:1.0: USB Mass Storage device detected
Tue Sep 10 22:00:00 2024 kern.info kernel: [ 2830.937378] scsi host0: usb-storage 2-1:1.0
Tue Sep 10 22:00:01 2024 kern.notice kernel: [ 2832.019350] scsi 0:0:0:0: Direct-Access USB SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
Tue Sep 10 22:00:01 2024 kern.notice kernel: [ 2832.040179] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)
Tue Sep 10 22:00:01 2024 kern.notice kernel: [ 2832.048020] sd 0:0:0:0: [sda] Write Protect is off
Tue Sep 10 22:00:01 2024 kern.debug kernel: [ 2832.052807] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
Tue Sep 10 22:00:01 2024 kern.notice kernel: [ 2832.058153] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Tue Sep 10 22:00:01 2024 kern.info kernel: [ 2832.072050] sda: sda1
Tue Sep 10 22:00:01 2024 kern.notice kernel: [ 2832.074596] sd 0:0:0:0: [sda] Attached SCSI removable disk
Stick3:
root@router6000:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.49 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.49 xhci-hcd xHCI Host Controller
Bus 002 Device 004: ID 1f75:0918 Device Storage STORAGE DEVICE
root@router6000:~# lsusb -s 2:1
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.49 xhci-hcd xHCI Host Controller
System log:
Tue Sep 10 22:02:52 2024 kern.info kernel: [ 3003.345842] usb 2-1: new SuperSpeed USB device number 3 using xhci-mtk
Tue Sep 10 22:02:52 2024 kern.info kernel: [ 3003.401834] usb-storage 2-1:1.0: USB Mass Storage device detected
Tue Sep 10 22:02:52 2024 kern.info kernel: [ 3003.408194] scsi host0: usb-storage 2-1:1.0
Tue Sep 10 22:02:53 2024 kern.notice kernel: [ 3004.477990] scsi 0:0:0:0: Direct-Access Specific STORAGE DEVICE 0009 PQ: 0 ANSI: 6
Tue Sep 10 22:02:53 2024 kern.notice kernel: [ 3004.488060] sd 0:0:0:0: [sda] 122880000 512-byte logical blocks: (62.9 GB/58.6 GiB)
Tue Sep 10 22:02:53 2024 kern.notice kernel: [ 3004.496037] sd 0:0:0:0: [sda] Write Protect is off
Tue Sep 10 22:02:53 2024 kern.debug kernel: [ 3004.500815] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
Tue Sep 10 22:02:53 2024 kern.notice kernel: [ 3004.506166] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Tue Sep 10 22:02:53 2024 kern.info kernel: [ 3004.517683] sda: sda1
Tue Sep 10 22:02:53 2024 kern.notice kernel: [ 3004.520214] sd 0:0:0:0: [sda] Attached SCSI removable disk
Hi, I updated the guide to explain this option to people
I updated the guide to make people aware of this issue with USB's by linking to your convo thread
Hey, I was trying to install OpenWRT and forgot to insert the USB with all the files, I used fw_setenv bootcmd
command before rebooting
The router boots with purple LED and not blue, can't access it via SSH either. I guess it's trying to boot into nothingness now. Is there something I could do before I resort to poking SERIAL port (with 0 comprehension of its mysterious interworkings as well). Any help is greatly appreciated!
Insert the USB drive....?
No workerino still
Assuming you got the params right, the only reason why it wouldn't boot, is the flash drive.
Try and older and smaller flash drive, but if it fails, serial the only way to fix it.