I have a Mikrotik LHG R board. I have loaded the wap-r-2nd 21.02.0-rc3 squash upgrade bin and the board boots fine. I used the image builder to build an image with lte drivers and usb support. Board doesn't recognize an EC25-AF card or EM7565 in usb2 mode. I think it has to do with the gpio mapping for this board. Does any one have information for Routerboard LHGR? GPIO pin mappings or dts info?
Just wanted to thank the openwrt community for the support and an awesome product. Log time user, short time hacker.
mattridrm
I was wondering if you have been able to get the LHG R to recognize the cards yet? I have been working with Quectel EM06-A and have the same issues.
Yes I did. You have to build from source and modify the mikrotik wapr-2nd.dts to include usb. I don't have access to the modified dts right now, but can post it later.
You have to modify the dts file qca9533_mikrotik_routerboard-wapr-2nd.dts in the openwrt source as shown below. The file is located in the target/linux/ath79/dts folder and then build from there.
Here is a link to the openwrt image builder that I built that includes the kernel with the DTS modifications. OPENWRT Image builder Much easier than building from source. Here is the image builder command that I used to build the firmware (It does expose ttyd on a http port and includes socat) to issue AT commands to the modem. Don't forget to set the modem to USB2 mode. The mikrotik board used doesn't support USB3. Good Luck.
I have this same antenna. LHG-R without modem. What was the final way to get openwrt/Rooter installed on this device? ive tried the netinstall with tftp. the unit will boot from ram but as soon as i flash it to the rom it goes into a boot loop.
You also need to look on the Mikrotik site. There is a setting in the Router OS that needs to be set. "boot device" I think I set mine to nand-if-fail-then-ethernet.
So i have tried this one as well. but it didnt boot either. but what i did find was i can hold the reset button and let it boot and hit it one more time and it will boot. maybe safemode?
but im still unable to get it to boot without doing that.
Did you set the boot mode from router os before flashing openwrt? If not I believe it tries to boot from ethernet or ubi and never tries to boot from flash. That is your boot problem.
I have only set the boot mode from router os before flashing openwrt. You may be able to try 'rbcfg set boot_device ethnand' or 'rbcfg set boot_device nand' from openwrt. rbcfg is a utility for mikrotik while running openwrt and may need to be installed from opkg.
Ah. you might be on it! i did not change the boot before i went to openwrt. I dont have internet on the device so i think ill have to go back to mikrotik and start over?
This is not correct.
The device comes from the factory set to boot from flash, then eth if that fails. Easiest way to install OpenWrt is to hold in the reset button for ~30 seconds (watch the LED patterns change, see the Mikrotik device guide and RouterBOOT directions to see what these patterns mean) to force netboot, and not change the RouterBOOT settings.
This tool is only available on very old OpenWrt. Now, these settings are accessible in /sys/firmware/mikrotik/soft_config. For OpenWrt master ath79, these settings now cannot be changed in OpenWrt. If you did change RouterBOOT settings in RouterOS, you can reset to default by holding reset button for >5 seconds, <10s at boot. Use LED patterns to confirm timing.
If you are holding in the reset button before applying power, the backup RouterBOOT is used.
If you had installed RouterOS v7, and updated (primary) RouterBOOT to v7, that will not boot OpenWrt from NOR (flash). You would need to netinstall a RouterOS v6, then upgrade (downgrade) RouterBOOT to v6. Reset the RouterBOOT settings first to make sure you are using BOOTP.
So looking at this i did have routeros 7 beta installed before this openwrt. I didnt change the boot order just tftp openwrt (ROOter).
I have tried to install routeros again but failed as netinstall never sees the board. how do you make it where netinstall sees it?
i have have rbcfg installed. Dairyman over at the ROOter forum had a file that i dropped in openwrt. it works but it didnt survive a reboot (the settings)
Looking at the /sys/firmware/mikrotik/soft_config i do see the same settings. But im unable to change any of them. Ive tried to set the backup bootloader to see if it would boot.