<dryimpact> Hello. The serial connection of a router I'm currently working on (mediatek), only works in u-boot. After running any firmware (including factory), stdout is empty. Like it's not printing any kernel logs, but works (at least the factory image). There haven't been any attempts to support this device yet. I'd really appreciate any tips I can get.
<dryimpact> Sorry if this isn't the correct place to ask (I already tried the forum).
<Habbie> any chance the baud rate changes after uboot?
<dryimpact> I think not? The extracted fdt from the factory image doesn't note any baud rate, but there is especially no garbage text appearing. (iirc, I even checked with a logic analyzer: nothing)
<dryimpact> I just tried the most common rates from 4800 to 921600 and input doesnt work on any of them.
<dwfreed> is it maybe just not using the serial as console?
<dryimpact> Sorry I cant quite follow. I did rebuild an image of a supported device with very similar specs and the behaviour was exactly the same. Do you mean that uboot does something weird?
<dwfreed> well, possibly the device tree doesn't have the correct configuration for the serial (if you've got shell, make sure there's a tty device for it, name varies), or that the kernel parameters do not specify console=<serial tty> for the correct name
<dwfreed> if you've got shell, you can try manually running a getty on the serial tty
<damo22> dryimpact: the OS might not be trying to use the serial, or is misconfigured in the device tree so doesnt work correctly
<dryimpact> Um, I think a forum member and me kind of already tried those things? We compared the uart registers and only nr.1 was active. We also tried setting console to the mmio32 address via fdt and bootargs. (https://forum.openwrt.org/t/214784). Should I try removing the console arg from fdt and uboot entirely?
<damo22> dryimpact: if serial works in uboot, can you check which uart it is using?
<dryimpact> There is `coninfo` which lists "serial 80000003 ...". But that doesn't map to a memory address of any of the serial ports.
<damo22> what is the exact output of that command can you paste to a paste service?
<dryimpact> Sure this is what I get: https://0x0.st/XDGf.txt
<damo22> looks like there might be pinmux
shoragan has quit [Quit: quit]
<dryimpact> Since there isnt anything of that in the factory fdt, what options do I have to figure out the the mux configuration?
<damo22> dryimpact: can you do "fdt print" in uboot?
<damo22> paste that as well to a paste service
shoragan has joined #openwrt-devel
<dryimpact> I can. Here is is: https://0x0.st/XD4z.txt
<damo22> 5 uarts are all disabled
<dryimpact> Can I enable them? :D
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/46/builds/4) of `main_sunxi/cortexa7` completed successfully.
<damo22> the device tree might need to be patched
<damo22> status = "okay" instead of "disabled" ?
<dryimpact> for all uarts? sure let me try
<dryimpact> um, my first thought was to rebuild the linksys-e8450 image with the dts modified to include these uarts. Do I need to keep the "serial@11xxxxxx"?
<dryimpact> oh wait nvm, I think the fdt command can also write
<damo22> im looking at uboot source code, there is :
<damo22> &pinctrl { uart0_pins: uart0 {
<damo22> mux {
<damo22> groups = "uart0_0_tx_rx" ;
<damo22> function = "uart";
<damo22> etc
<schmars[m]> are you trying to unbrick this e8450 from the "kiss of death"?
<damo22> dryimpact: in your dtsi for the board:
<damo22> stdout-path = "serial0:115200n8";
<damo22> bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512";
<damo22> 115200n1 doesnt look right to me
<damo22> isnt that like 1 bit serial?
<dryimpact> I guess. I just tried to use the same settings as in the factory fdt. which also has n1.
<dryimpact> should I change it to n8?
<damo22> maybe just remove it and use 115200
<dryimpact> Okay. Also the fdt command can write but the hash is checked again later so I have to build a new image
<KGB-0> https://tests.reproducible-builds.org/openwrt/openwrt_sunxi.html has been updated. (0% images and 100.0% packages reproducible in our current test framework.)
<dryimpact> I just ran the new image but sadly still exact same behaviour. This is the edited dtsi if you want to check: https://0x0.st/XDDo.c I had to remove the 5th uart, otherwise the build said something about the interrupt size not being a multiple of 12.
<dryimpact> Sorry, forgot to link the .dts file as well: https://0x0.st/XDDH.c
goliath has quit [Quit: SIGSEGV]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
<dryimpact> schmars[m] oh sorry I missed your message. I'm actually trying to get a serial connection to openwrt of an unsupported device. Its hardware is just very similar to the linksys. (serial to uboot works)
KGB-0 has quit [Quit: KGB-0]
<schmars[m]> ah understood
KGB-0 has joined #openwrt-devel
<owrt-images-builds> Build [#5](https://buildbot.openwrt.org/images/#/builders/257/builds/5) of `main_lantiq/xway` failed.
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/80/builds/4) of `openwrt-24.10_ramips/rt288x` failed.
skynet2 has joined #openwrt-devel
skynet2 has quit []
skynet2 has joined #openwrt-devel
skynet2 has quit [Ping timeout: 480 seconds]
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/26/builds/4) of `main_qualcommax/ipq807x` failed.
<owrt-images-builds> Build [#3](https://buildbot.openwrt.org/images/#/builders/138/builds/3) of `openwrt-24.10_ath79/generic` failed.
rua has quit [Quit: Leaving.]
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/120/builds/4) of `openwrt-24.10_ath79/mikrotik` failed.
mark22k has quit [Quit: The Lounge - https://thelounge.chat]
mark22k has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/119/builds/4) of `openwrt-24.10_ath79/nand` failed.
n3ph has quit [Ping timeout: 480 seconds]
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/204/builds/4) of `openwrt-24.10_apm821xx/nand` failed.
asmodehn__ has joined #openwrt-devel
killgufo has quit [Read error: Connection reset by peer]
killgufo has joined #openwrt-devel
killgufo has quit []
killgufo has joined #openwrt-devel
asmodehn_ has quit [Ping timeout: 480 seconds]
sorinello has joined #openwrt-devel
Stat_headcrabbed has joined #openwrt-devel
rua has joined #openwrt-devel
hurricos_ has quit [Read error: Connection reset by peer]
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
rua has quit []
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/195/builds/4) of `openwrt-24.10_ipq806x/chromium` failed.
rua has joined #openwrt-devel
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #openwrt-devel
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/132/builds/4) of `openwrt-24.10_ath79/tiny` failed.
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/145/builds/4) of `openwrt-24.10_ipq40xx/mikrotik` failed.
nixuser has quit [Read error: Connection reset by peer]
nixuser has joined #openwrt-devel
<KGB-0> https://tests.reproducible-builds.org/openwrt/openwrt_x86.html has been updated. (100.0% images and 100.0% packages reproducible in our current test framework.)
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/129/builds/4) of `openwrt-24.10_ipq806x/generic` failed.
caskd has joined #openwrt-devel
caskd has quit [Ping timeout: 480 seconds]
caskd has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/151/builds/4) of `openwrt-24.10_ipq40xx/chromium` failed.
n3ph has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/57/builds/4) of `openwrt-24.10_malta/be64` failed.
goliath has joined #openwrt-devel
robimarko has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
rua has quit [Quit: Leaving.]
rua has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/203/builds/4) of `openwrt-24.10_ipq40xx/generic` failed.
rua has quit [Quit: Leaving.]
robimarko has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<owrt-images-builds> Build [#5](https://buildbot.openwrt.org/images/#/builders/208/builds/5) of `main_bcm47xx/legacy` completed successfully.
goliath has quit [Quit: SIGSEGV]
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/102/builds/4) of `openwrt-24.10_mpc85xx/p2020` failed.
Sawzallz has joined #openwrt-devel
Sawzall has quit [Ping timeout: 480 seconds]
zer0def has quit [Quit: zer0def]
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/45/builds/4) of `openwrt-24.10_malta/be` failed.
rua has joined #openwrt-devel
rsalvaterra has joined #openwrt-devel
rsalvaterra has quit []
rsalvaterra has joined #openwrt-devel
skynet2 has joined #openwrt-devel
lynxis has quit [Quit: beaming to the mars]
lynxis has joined #openwrt-devel
minimal has joined #openwrt-devel
Lynx- has joined #openwrt-devel
rua has quit [Quit: Leaving.]
zer0def has joined #openwrt-devel
rua has joined #openwrt-devel
kirdesde3 has joined #openwrt-devel
kirdesde3 has quit []
kirdesde0 has joined #openwrt-devel
kirdesde0 has quit []
kirdesde1 has joined #openwrt-devel
zer0def has quit []
zer0def has joined #openwrt-devel
caskd has quit [Ping timeout: 480 seconds]
caskd has joined #openwrt-devel
kirdesde1 has quit [Quit: The Lounge - https://thelounge.chat]
kirdesde5 has joined #openwrt-devel
kirdesde5 has quit []
kirdesde5 has joined #openwrt-devel
kirdesde5 has quit []
kirdesde0 has joined #openwrt-devel
kirdesde0 has quit []
kirdesde5 has joined #openwrt-devel
kirdesde5 has quit []
kirdesde5 has joined #openwrt-devel
rsalvaterra has quit [Remote host closed the connection]
kirdesde has quit [Quit: The Lounge - https://thelounge.chat]
kirdesde5 is now known as kirdesde
T-Bone has joined #openwrt-devel
f00b4r0 has quit [Read error: Connection reset by peer]
goliath has joined #openwrt-devel
Lynx- has quit [Read error: Connection reset by peer]
lucenera1 has joined #openwrt-devel
rua has quit [Remote host closed the connection]
rua has joined #openwrt-devel
lucenera has quit [Ping timeout: 480 seconds]
lucenera1 is now known as lucenera
n3ph has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
ali3nx has joined #openwrt-devel
<owrt-images-builds> Build [#4](https://buildbot.openwrt.org/images/#/builders/196/builds/4) of `openwrt-24.10_sunxi/cortexa7` completed successfully.
aiyion has joined #openwrt-devel
<owrt-images-builds> Build [#5](https://buildbot.openwrt.org/images/#/builders/91/builds/5) of `main_bmips/bcm63268` failed.
n3ph has joined #openwrt-devel
<swalker> updated openwrt/upstream, https://sdwalker.github.io/uscan/index.html
<Habbie> is there a ready-to-run docker image with apk? i recall grabbing something from aparcar months ago and importing it, but perhaps an easier option exists now?
digitalcircuit has quit [Quit: Signing off from Quassel - see ya!]
digitalcircuit has joined #openwrt-devel
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
minimal has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
khrbtxyz has joined #openwrt-devel
mrkiko has quit [Quit: leaving]
sorinello has quit [Ping timeout: 480 seconds]
<dryimpact> Hello. I asked here yesterday already, but I am just really lost at this point. My mtk router boots into u-boot and the factory openwrt just fine, but the serial connection only works while in u-boot. After starting the boot process nothing is logged to the terminal, not even any kernel logs. We already checked different baudrates and the coninfo
<dryimpact> command in u-boot suggests pinmuxing. The fdt doesn't mention anything about uart related pinmux, and it also shouldn't since the serial output doesnt work with that anyway. factory fdt: https://0x0.st/XD4z.txt ; coninfo https://0x0.st/XDGf.txt