When building an oWRT image from scratch using the gl-inet repo, it appears that the serial console is disabled. How do i fix this? I would like to be able to use the serial port to get into the device.
As I know, the UART is connected to the Bluetooth module. Your firmware will send all the output to the bluetooth module. If you don’t have the module that should be OK.
@luochongjun Thanks. I’ll give that a try. Do you know why it’s ttyATH0 for some units and ttyS0 for others?
@alzhao I am talking about the UART that’s exposed on the PCB as 4 unpopulated pins… next to the SIM slot and the USB port. I thought that the BT module was built in to the radio as i can see the “scan for BT devices” on the web interface… but i never do get any “results” back from a scan :/.
Is that correct? I have an unpopulated portion of the PCB next to the USB port that looks like some sort of module on board could be soldered there… i thought that the area was for the optional zigbee or zwave module.
Is blue tooth optional on this unit, too? Or, is there a way that i can tell what radios the unit has by looking at the model number or serial number or similar?
@alzhao Here’s the PCB w/ the unpopulated area. I don’t know where it was ordered from… i believe from the gl-inet website, but i would need to confirm with the person that bought it.
If anybody else comes across this thread in the future:
It is possible to order the unit w/o a BTLE radio. I saw the section in the UI where you could scan for BTLE devices and assumed that the radio was built into the SoC and figured that the unpopulated section on the board was for zigbee/zwave/lora… etc.
But that assumption was false. The SoC only has wifi radios. This explains why the stock firmware does not support a console via UART.
Bumping an “old” thread, because of the same problem and I think that there’s no need to open a new thread because it’s the same problem and the same device.
I have a gl-x750v2c6 with no BT/Zigbee devices and ttyS0 is disabled with stock and custom built kernel:
[ 0.350382] console [ttyS0] disabled
[ 0.354194] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
As this image is based on ATH79, checking target/linux/ath79/image/nand.mk
Is ttyS0 being used for mpcie modem? I do not think so, because quectel uses /dev/ttyUSBX for serial access.
Should ttyS0 be used for BT/ZigBee? It should not, because this device has no BT/ZigBee adapter soldered on board.
How can I enable ttyS0 in order to debug my kernel?