New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ath79: add support for GL.iNet GL-X300B #4246
Conversation
Please describe what to do exactly. |
Thank you very much for taking the time to review this, I will push in a commit that addresses most of these issues tomorrow and will identify outstanding questions on my end. This is my first device support commit and I greatly appreciate your detailed review patience. Thanks again. |
I believe I've addressed almost all of the issues identified, some feedback was unclear to me, probably because of my lack of experience in this space. I'm eager to address the outstanding issue. Once this is complete I will apply outstanding corrections on #4245 . Thanks again for your help and patience, really appreciate it. EDIT: I'm assuming that you will perform a squash commit to merge these changes with the revised commit message included in the PR, if you need me to rework the edits into a single commit in my branch please let me know and I will do so. |
@adschm thank you very much for taking the time to review my commit, I've made most of the the changes you have requested however I didn't understand some of the feedback you've provided. Can you please take a look at the updated code and outstanding unresolved comments and clarify them so that I can address them. Thank you again for your time. Regarding the dtsi and dts files I used a dtsi as support for variants of this device could benefit from it. if you would prefer I can integrate the dtsi into the dts file. I do not plan to work on support myself, at present, beyond these two base images. I've amended my commit and it now shows as a single change from a git perspective. I have updated #4245 as well and will continue to do so based on your feedback here. |
Please add a MAC address overview to your commit message: |
9fdf4b0
to
4a35d4a
Compare
I believe that every issue identified in the review is now addressed, I have updated the commit message to include the MAC table and amended the installation process. It is possible to switch to OpenWrt using sysupgrade on this platform. Please let me know if there are any remaining issues @adschm, thank you for your time. |
I believe that all outstanding issues are fully addressed, I'm confident that the fix I've used for the rs485_pin is the right solution. Can you please reconsider your previous position and complete the review @adschm. Despite the challenges we both faced I assure you my intentions are to resolve all of the outstanding issues and get this device into OpenWrt, I'm far from the only person interested in it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add the switch config to 02_network
, even if only CPU + 1 port is used.
I'm not certain how to add this device to |
Can you provide the output of |
Here's the swconfig output:
From a networking perspective the WAN is eth1 and functions correctly, LAN is a bridge on eth0. I believe that eth0 goes through the switch chip to the "LAN" port on the router. I'm not certain exactly how eth1 is working and if it makes use of the switch chip; we don't see a second port active here and there's no VLAN associated with eth1, at least that I see. |
See the QCA9531 datasheet on how the switch is connected. I was asking about the Switch config, as this allows UCI to display link state information. port 4 is the external one while port 0 is connected to the CPU MAC. Can you add the appropriate config section? |
The GL-X300B is a industrial 4G LTE router based on the Qualcomm QCA9531 SoC. Specifications: - Qualcomm QCA9531 @ 650 MHz - 128 MB of RAM - 16 MB of SPI NOR FLASH - 2x 10/100 Mbps Ethernet - 2.4GHz 802.11b/g/n - 1x USB 2.0 (vbus driven by GPIO) - 4x LED, driven by GPIO - 1x button (reset) - 1x mini pci-e slot (vcc driven by GPIO) - RS-485 Serial Port (untested) Flash instructions: This firmware can be flashed using either sysupgrade from the GL.iNet firmware or the recovery console as follows: - Press and hold the reset button - Connect power to the router, wait five seconds - Manually configure 192.168.1.2/24 on your computer, connect to 192.168.1.1 - Upload the firmware image using the web interface RS-485 serial port is untested and may depend on the following commit in the GL.iNet repo: gl-inet@202e83a MAC addresses as verified by OEM firmware: vendor OpenWrt address WAN eth0 label LAN eth1 label + 1 2g phy0 label + 2 The label MAC address was found in the art partition at 0x0 Based on vendor commit: gl-inet@16c5708 Signed-off-by: John Marrett <johnf@zioncluster.ca>
I believe I added the appropriate configuration to I added:
However, when I ssh through the WAN port with the LAN disconnected and boot the device I see the following log messages:
This occurs even though port 4 is down:
Can you please tell me what I did wrong either with the change or validating it? Thanks very much for your help! |
When installing LuCI, can you see the port state at Network --> switch? |
Yes, the port state in the luci interface is working correctly. |
Merged to my staging tree, thanks! |
The GL-X300B is a industrial 4G LTE router based on the Qualcomm QCA9531 SoC.
Specifications:
Flash instructions:
This firmware can be flashed using either sysupgrade from the GL.iNet
firmware or the recovery console as follows:
RS-485 serial port is untested and may depend on the following commit in
the GL.iNet repo:
gl-inet@202e83a
MAC addresses as verified by OEM firmware:
vendor OpenWrt address
WAN eth0 label
LAN eth1 label + 1
2g phy0 label + 2
The label MAC address was found in the art partition at 0x0
Based on vendor commit:
gl-inet@16c5708
Signed-off-by: John Marrett johnf@zioncluster.ca