Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.01 is OUT / Merge Window is OPEN, next branch is CLOSED / Release v2025.04 is scheduled for 07 April 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
<Tartarus> Ah nice catch
mmu_man has joined #u-boot
zkrx has quit [Ping timeout: 244 seconds]
zkrx has joined #u-boot
pgreco has joined #u-boot
pgreco_ has quit [Ping timeout: 252 seconds]
zibolo has quit [Ping timeout: 260 seconds]
zibolo has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
baltazar has quit [Ping timeout: 252 seconds]
baltazar has joined #u-boot
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #u-boot
frytaped has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
flyback has quit [Quit: Leaving]
flyback has joined #u-boot
<shadow> so... I sent e-mail to Jerome about the logic errors in LwIP stack and await a reply
<shadow> anyone else that wants to assist I would like to be proactive about this before the next release candidate
goliath has joined #u-boot
johnfergus has joined #u-boot
vardhan has joined #u-boot
vardhan_ has joined #u-boot
vardhan has quit [Remote host closed the connection]
vardhan has joined #u-boot
monstr has joined #u-boot
gsz has joined #u-boot
johnfergus has quit [Remote host closed the connection]
gsz has quit [Ping timeout: 265 seconds]
ldevulder has joined #u-boot
ladis has joined #u-boot
ikarso has joined #u-boot
frieder has joined #u-boot
vardhan has quit [Ping timeout: 252 seconds]
vardhan_ has quit [Ping timeout: 246 seconds]
dsimic has quit [Ping timeout: 244 seconds]
ldevulder has quit [Quit: Leaving]
dsimic has joined #u-boot
sszy has joined #u-boot
ldevulder has joined #u-boot
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #u-boot
naoki has quit [Ping timeout: 272 seconds]
naoki has joined #u-boot
naoki has quit [Ping timeout: 244 seconds]
naoki has joined #u-boot
naoki has quit [Read error: Connection reset by peer]
naoki has joined #u-boot
mckoan|away is now known as mckoan
SlimeyX_ has joined #u-boot
SlimeyX has quit [Ping timeout: 252 seconds]
SlimeyX_ is now known as SlimeyX
ldevulder has quit [Quit: Leaving]
ldevulder has joined #u-boot
<Hammdist> Image 'simple-bin' has faked external blobs and is non-functional: rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin <-- how to fix this error? I am trying to build orangepi-5-rk3588s
<Hammdist> /binman/simple-bin/mkimage/rockchip-tpl (../rkbin-master/bin/rk33/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin):
<Hammdist> looks like a path error there
<Hammdist> rk33/ seems not right
haritzondo has quit [Changing host]
haritzondo has joined #u-boot
haritzondo is now known as haritz
frytaped has quit [Quit: WeeChat 4.4.2]
mmu_man has joined #u-boot
prabhakalad has joined #u-boot
<Hammdist> https://pastebin.com/raw/TENYa656 <-- why does this Dockerfile attempting to build u-boot not work? it builds OK but after flashing no u-boot on serial output
<Hammdist> also I'm not clear on how to choose between the two available ddrbins for opi5
redbrain has quit [Ping timeout: 252 seconds]
redbrain has joined #u-boot
<Kwiboo> Hammdist: you can do something like: export ROCKCHIP_TPL=../rkbin/$(confget -f rkbin/RKBOOT/RK3588MINIALL.ini -s LOADER_OPTION FlashData), that is what I do in my github actions workflow: https://github.com/Kwiboo/u-boot-build/blob/main/.github/workflows/rk3588.yml#L112-L117
redbrain has quit [Ping timeout: 252 seconds]
frytaped has joined #u-boot
qsx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
qsx has joined #u-boot
goliath has quit [Quit: SIGSEGV]
frieder has quit [Ping timeout: 252 seconds]
naoki has quit [Quit: naoki]
ldevulder has quit [Quit: Leaving]
frytaped has quit [Ping timeout: 252 seconds]
frieder has joined #u-boot
<Hammdist> I think I had the wrong rkbin; fixed
<Hammdist> now I'm compiling u-boot with stdout-path = "serial2:115200n8"; but output is garbed even though I put screen on 115200 baud
<Hammdist> judging by the volume of output it seems to be booting into u-boot now though. just not sure about the baud rate. is that actually even configurable
frytaped has joined #u-boot
<Hammdist> compatible = "rockchip,rk3588-uart", "snps,dw-apb-uart";
<samcday> Looks like the baudrate isn't configurable from DT, rather it's driven by "CONFIG_BAUDRATE"
frieder has quit [Remote host closed the connection]
frytaped has quit [Ping timeout: 265 seconds]
frytaped has joined #u-boot
<Kwiboo> Hammdist: you should also use rkbin ddrbin_tool to change baudrate for the rockchip-tpl blob, see https://github.com/rockchip-linux/rkbin/blob/master/tools/ddrbin_tool_user_guide.txt#L77-L82
vfazio_ has joined #u-boot
vfazio has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
<Hammdist> set CONFIG_BAUDRATE=115200 but still negative function. only garbles on serial port
persmule has quit [Ping timeout: 264 seconds]
<marex> Hammdist: why not just set the baudrate variable in U-Boot env to change the baudrate ?
persmule has joined #u-boot
<Hammdist> changed using ddrbin_tool as well. still only garbles
mckoan is now known as mckoan|away
<marex> Hammdist: use libubootenv if you need to update u-boot env from linux userspace
<Hammdist> ah I had missed a critical step when using ddrbin_tool
<Hammdist> now I have uart output from memory init stage
<Hammdist> however it seems memory init takes an inordinate amount of time
<Hammdist> all dq eye scan done" .. and then nothing
<Hammdist> ah I was using the wrong rkbin image
<Hammdist> works now, I have non-garbled uart output from u-boot
vagrantc has joined #u-boot
ikarso has joined #u-boot
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Hammdist> https://pastebin.com/raw/Q8yBnbmS <-- how can I use the command line to attempt a boot from partition 1
<marex> load ... blockdev:part ... && bootm address
<Hammdist> it seems the default is using bootflow
<Hammdist> bootfl list shows no entries
<Hammdist> partition 1 contains a boot.scr thing. am I supposed to load and run that? how would I do that?
joeskb7 has joined #u-boot
monstr has quit [Remote host closed the connection]
redbrain has joined #u-boot
<Tartarus> Anyone here planning to send me a last-minute PR for -rc1?
<shadow> Tartarus: I was hopeful to resolve the LwIP dual network issue but that will have to be in future, I'm not skilled enough to figure it out myself
<apalos> Tartarus: I just got some tpm patches that are in a good shape
<apalos> But can I do it in -rc2? IO'd like to leave them in the ML for a week or so
<shadow> also, without rushing things, I have my eye on the JH7110 USB series from Minda which is largely waiting on marek who had the only unresolved suggestion from the previous round which I think is now resolved
<shadow> marex: if you had a moment and did you see that Minda sent a new version of the series?
<Tartarus> apalos: Yes
<Tartarus> shadow: Yeah, I hoped Jerome would have fixed it by now
vagrantc has quit [Quit: leaving]
chili-b has joined #u-boot
chili-b has quit []
chili-b has joined #u-boot
naoki has joined #u-boot
prabhakalad has quit [Ping timeout: 248 seconds]
macromorgan_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
macromorgan has joined #u-boot
chili-b has quit []
prabhakalad has joined #u-boot
<marex> dsimic: hey
<dsimic> hello :)
chili-b has joined #u-boot
<dsimic> marex: I just replied again on the ML
<marex> dsimic: I am barely keeping up
<dsimic> ah, it's a bit convoluted
<marex> dsimic: I mean with all the stuff
<marex> dsimic: lemme read the reply
<dsimic> oh, totally understood, thanks
<marex> Maybe another good option would be to modify the console_init_r()
<marex> function to simply leave "usbkbd" in the environment variables when
<marex> USB_KEYBOARD is selected, so the "usb start" executed later can
<marex> actually make USB keyboards work?
<marex> this ... yes
<marex> that is the best one as far as I can tell
<marex> Delesect overwrite when USB keyboard support is selected ... no ... that's awful
<dsimic> yes, leaving "usbkbd" makes the things work, while making it least possible for some regressions to occur
<dsimic> yup, I also don't like deselecting
<marex> retaining usbkbd is also the least obscure/confusing behavior
<dsimic> indeed
<marex> that said ... why is the env being rewritten and not extended in the first place ?
chili-b has quit []
<dsimic> I'm not 100% sure about that, perhaps SYS_CONSOLE_ENV_OVERWRITE exists to make the environment represet the runtime state
<dsimic> instead of the environment representing the desired state
<marex> 290 config SYS_CONSOLE_ENV_OVERWRITE
<marex> the help text explains that
<marex> except when user has usb keyboard plugged in ... that is not determined up front, that is determined because user thinks that's what they will have ... and that I think yes, should be retained in that env variable
<marex> the help text should be updated a bit to reflect this special case
<marex> i.e. in case the env contains usbkbd, the env is overwritten, but usbkbd is retained
<dsimic> yup, common/Kconfig pretty much confirms what I wrote above about the purpose of SYS_CONSOLE_ENV_OVERWRITE
naoki1 has joined #u-boot
<dsimic> sure, common/Kconfig needs updating to describe the "usbkbd" scenario
<marex> :)
<marex> thanks
<dsimic> maybe you could just briefly sum that up on the ML, or I can copy&paste a few lines from our discussion?
<dsimic> just for future reference
naoki has quit [Ping timeout: 260 seconds]
naoki1 is now known as naoki
<marex> dsimic: I'll do that in a bit
<dsimic> great, thanks
Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.01, v2025.04-rc1 are OUT / Merge Window is CLOSED, next branch is CLOSED / Release v2025.04 is scheduled for 07 April 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
chili-b has joined #u-boot
<marex> dsimic: thank you too
<dsimic> anytime :)
<chili-b> hello, I am currently having a problem where a USB storage device is failing to mount properly if it's plugged in when my computer powers on and stays plugged in while the OS boots, but if I un-plug the device and only plug it in once the OS has started booting, everything works fine
<chili-b> the computer is a RockPro64, and the storage device is some seagate usb ssd
<marex> kernel does not power cycle the USB port properly ?
<chili-b> possibly, but i'm in this channel because i only started having this issue since updating u-boot
<chili-b> i was previously on a build from 2020, now i'm on whatever the latest tag upstream is
<chili-b> downgrading is not an option, i had worse issues with the old version
<chili-b> i really don't have the time to bisect the issue, so i'm hoping someone has heard of this before
<marex> nope ... try 'usb stop' before booting , or 'usb reset' , it might do something
<marex> Kwiboo: maybe ?
<chili-b> > kernel does not power cycle the USB port properly
<chili-b> I have some more context on this: when i power on the computer, the LED power indicator on the SSD comes on. After the OS starts booting (around the time the font changes), the LED power indicator turns off and then the SSD doesn't mount properly
prabhakalad has quit [Ping timeout: 252 seconds]
prabhakalad has joined #u-boot
<marex> is that purely port powered device ?
<marex> does the power supply enough current ?
chili-b_ has joined #u-boot
chili-b has quit [Ping timeout: 260 seconds]
ladis has quit [Ping timeout: 248 seconds]
<dsimic> chili-b_: could you, please, send the entire output of "dmesg" from your RockPro64 when your USB storage device fails to be initialized by the kernel?
<dsimic> assuming that you run Linux, that is
prabhakalad has quit [Ping timeout: 276 seconds]
prabhakalad has joined #u-boot
<chili-b_> dsimic: where do you want me to upload that?
<marex> paste.debian.net is nice
<dsimic> or termbin.com
<dsimic> termbin is very handy from the command line
<dsimic> thanks
<dsimic> hmm, it might be related to a rather old patch for the RockPro64 that ended up not merged
<dsimic> I'll see to revisit it
<chili-b_> if it helps, here's what happens if i unplug the SSD, plug it back in, and run `mount-a`: https://paste.debian.net/1347145/
chili-b_ is now known as chili-b
<chili-b> the SSD works without error when I do this
<chili-b> and if I only plug the SSD in after the Debian has already started booting, everything works fine
<marex> chili-b: does it work if you blocklist uas driver ?
<chili-b> i think i tried that by setting usb-storage.quirks for the device but it didn't work
<chili-b> in the second paste, where i show what happens when i plug the ssd in after the OS has booted it looks like it's using UAS just fine though
<chili-b> i don't think it's a problem with the drive, i think it's something to do with how usb devices get set up
<marex> kernel should be independent of how the bootloader set the hardware up
<marex> does that still happen with linux 6.12.y/6.13.y or newer ?
<marex> 6.1.y is old
<chili-b> that's debian stable for you
<dsimic> can you test with some USB flash drive instead of the USB SSD?
<dsimic> just to make sure it isn't specific to that USB SSD
<chili-b> sure
<dsimic> thanks
<marex> stable does not necessarily mean bug free, it could be something that was fixed since, and not backported to LTS releases
chili-b has quit []
chili-b has joined #u-boot
totkeks has joined #u-boot
<chili-b> dsimic: the USB key mounted successfully
<chili-b> its power indicator flickered at the same point where the LED on the SSD just switches off
<dsimic> oh, interesting, so it might actually be power related, and related to that patch I mentioned before
<dsimic> I've noted all the details and I'll revisit it during the week
<chili-b> i didn't have this problem with a build of u-boot from 2020, if that helps
<dsimic> already noted that :)