Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.07 is OUT / Merge Window is OPEN, next branch is CLOSED / Release v2025.10 is scheduled for 06 October 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #u-boot
gsz has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
gsz has quit [Ping timeout: 276 seconds]
_whitelogger has joined #u-boot
rvalue has quit [Ping timeout: 276 seconds]
rvalue has joined #u-boot
vagrantc has quit [Ping timeout: 276 seconds]
persmule has quit [Remote host closed the connection]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
_whitelogger has joined #u-boot
Tartarus has quit [Read error: Connection reset by peer]
Tartarus has joined #u-boot
clamor has joined #u-boot
mithro has quit [Ping timeout: 272 seconds]
Stat_headcrabbed has joined #u-boot
mithro has joined #u-boot
haritz has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
paulbarker has quit [Ping timeout: 245 seconds]
paulbarker has joined #u-boot
vagrantc has joined #u-boot
vagrantc has quit [Quit: leaving]
warpme has joined #u-boot
sigmaris has quit [Ping timeout: 276 seconds]
sigmaris_ has joined #u-boot
sigmaris_ is now known as sigmaris
teejay_ is now known as teejay
vigneshr has joined #u-boot
Stat_headcrabbed has quit [Remote host closed the connection]
clamor has quit [Ping timeout: 272 seconds]
clamor has joined #u-boot
_whitelogger has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #u-boot
<tlwoerner> fatal: unable to access 'https://source.denx.de/u-boot/u-boot.git/': The requested URL returned error: 502
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #u-boot
warpme has quit [Client Quit]
mmu_man has joined #u-boot
warpme has joined #u-boot
<xypron> tlwoerner: Something wrong with the Anubis script.
<xypron> I hate all those sites wasting my time with Anubis.
<Tartarus> It's a shame there's not a real alternative
<Tartarus> The various IP blocking and so forth the admins tried didn't really stop the bots enough
persmule has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsimic has quit [Ping timeout: 240 seconds]
dsimic has joined #u-boot
BtbN has joined #u-boot
<BtbN> Hi! Is there some way I can detect if the current boot is a cold-boot or a reboot? I'd like to launch a different kernel in each case, to have a fallback in case rebooting into an updated kernel fails.
<BtbN> The device logs the type of boot to the serial console each bootup, so the information has to be somewhere
<quinq> grep for the message in the source
la_mettrie has left #u-boot [#u-boot]
<BtbN> I'm afraid it's not u-boot logging it, but the device itself
<BtbN> before it launches u-boot
<K900> The way you'd normally do this is with boot counting
<K900> As in, you store a number of boot attempts in some external storage, and then you have the OS determine whether it booted "successfully", however you define that, and set a flag in the same storage
<K900> And on the next boot you check the value of the flag, then reset it
<K900> And if you get to the bootloader a few times without the success flag being set, you switch to booting the backup
<BtbN> hm, can u-boot reliably write to ext4?
<BtbN> Cause that's all there is :D
<BtbN> Though the information of the boot type exists somewhere, probably need to poke a magic memory address
<BtbN> don't think saveenv works on this device
<BtbN> Another idea I'd have would be two separate boot-scripts
<BtbN> and have the second one delete itself first thing
<BtbN> so if it fails to boot, next boot only the old one is still there
<quinq> More likely for eeprom
<BtbN> https://github.com/frank-w/u-boot/blob/mtk-atf-2025/drivers/renesas/common/ddr/dram_sub_func.c#L36 this seems to be where the device firmware itself fetches the boot status
mmu_man has quit [Ping timeout: 252 seconds]
clamor has quit [Ping timeout: 240 seconds]
clamor has joined #u-boot
mmu_man has joined #u-boot
jfsimon has joined #u-boot
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 252 seconds]
vagrantc has joined #u-boot
rvalue- is now known as rvalue
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #u-boot
clamor has quit [Read error: Connection reset by peer]
dujem has quit [Ping timeout: 252 seconds]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
dujem has joined #u-boot
dujem_ has joined #u-boot
dujem has quit [Remote host closed the connection]
dujem_ has quit [Client Quit]
dujem has joined #u-boot
dujem has quit [Remote host closed the connection]
dujem has joined #u-boot
dujem_ has joined #u-boot
ikarso has joined #u-boot
dujem has quit [Remote host closed the connection]
dujem_ has quit [Quit: ZNC - https://znc.in]
dujem has joined #u-boot
dujem_ has joined #u-boot