Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.04, v2024.07-rc5 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2024.07 is scheduled for 01 July 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
grs has joined #u-boot
zibolo_ has quit [Ping timeout: 246 seconds]
zibolo has joined #u-boot
prabhakalad has quit [Ping timeout: 240 seconds]
prabhakalad has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
joeskb7 has quit [Quit: Lost terminal]
alpernebbi has quit [Ping timeout: 252 seconds]
jclsn has quit [Ping timeout: 264 seconds]
jclsn has joined #u-boot
hanetzer has quit [Ping timeout: 264 seconds]
hanetzer has joined #u-boot
tlwoerner has joined #u-boot
alpernebbi has joined #u-boot
goliath has quit [Quit: SIGSEGV]
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
frieder has quit [Ping timeout: 255 seconds]
naoki has joined #u-boot
frieder has joined #u-boot
vagrantc has quit [Quit: leaving]
macromorgan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
macromorgan has joined #u-boot
persmule has quit [Remote host closed the connection]
stefanro has joined #u-boot
Clamor has joined #u-boot
Guest8409 has quit [Quit: Leaving]
ja_02 has joined #u-boot
gsz_ has joined #u-boot
ikarso has joined #u-boot
joeskb7 has joined #u-boot
joeskb7 has quit [Client Quit]
joeskb7 has joined #u-boot
sng has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
sng has joined #u-boot
mmu_man has joined #u-boot
grs has quit [Quit: grs]
davlefou has quit [Ping timeout: 268 seconds]
enok has joined #u-boot
davlefou has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
indy_ has quit [Ping timeout: 240 seconds]
indy_ has joined #u-boot
enok has quit [Ping timeout: 256 seconds]
warpme has joined #u-boot
mmu_man has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #u-boot
rvalue- has joined #u-boot
flygoat has quit [Quit: Ping timeout (120 seconds)]
flygoat has joined #u-boot
rvalue has quit [Ping timeout: 268 seconds]
rvalue- is now known as rvalue
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Peng_Fan has quit [Quit: Connection closed for inactivity]
Stat_headcrabed has joined #u-boot
goliath has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
eballetbo has quit [Quit: Connection closed for inactivity]
umbramalison_alt has quit [Ping timeout: 252 seconds]
naoki has quit [Quit: naoki]
gsz_ has quit [Ping timeout: 256 seconds]
Clamor has quit [Ping timeout: 268 seconds]
Clamor has joined #u-boot
Peng_Fan has joined #u-boot
frieder has quit [Remote host closed the connection]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
dhruvag2000 has quit [Quit: Connection closed for inactivity]
mmu_man has joined #u-boot
ikarso has joined #u-boot
<Kasreyn> not exactly success but.. boot.bin from "cat E5250.nbl1.bin spl/smdk5250-spl.bin > boot.bin" will at least initialize the XE303 so the power LED stays on (but the screen stays black).. i assume spl/smdk5250-spl.bin is supposed to load and jump to the final u-boot?
<Kasreyn> just trying to figure out the composition of bl1 & bl2 in https://github.com/ARM-software/u-boot/blob/master/arch/arm/dts/exynos5250-snow.dts
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
persmule has joined #u-boot
dsimic has quit [Ping timeout: 256 seconds]
dsimic has joined #u-boot
jfsimon1981 has quit [Ping timeout: 264 seconds]
Stat_headcrabed has joined #u-boot
jfsimon1981 has joined #u-boot
<marex> Kasreyn: maybe sjg1 knows ?
<Kasreyn> marex: they visit this channel?
stefanro has quit [Quit: Leaving.]
<Kasreyn> i have verified that the U-Boot included in https://github.com/hexdump0815/imagebuilder/releases/tag/230924-01 works albeit there it is loaded from a Chromium kernel partition
Clamor has quit [Ping timeout: 264 seconds]
Clamor has joined #u-boot
pivi has quit [Quit: leaving]
hanetzer has quit [Ping timeout: 264 seconds]
hanetzer has joined #u-boot
pivi has joined #u-boot
<marex> Kasreyn: yeah
<marex> Kasreyn: is that doc/chromium/chainload.rst you are looking for ?
Clamor has quit [Ping timeout: 268 seconds]
<Kasreyn> marex: yes pretty much. i want to try flashing a nv u-boot to the 4MB SPI flash chip
<Kasreyn> just to make it enter a more recent U-Boot on power on
<Kasreyn> should be possible because that's what nv_image-snowhttps://archlinuxarm.org/forum/viewtopic.php?t=11812
<Kasreyn> *that's what nv_image-snow.bin does in https://archlinuxarm.org/forum/viewtopic.php?t=11812
<Kasreyn> the image from that thread works
<Kasreyn> it's perfect i just need it to be a more recent U-Boot
<Kasreyn> "nv-U-Boot is actually produced in addition to verified U-Boot by a normal build of chromeos-bootimage"
<Kasreyn> i just wish i could get that to work :)
<marex> oh
<Kasreyn> no document/thread really mentions what branch/version was used at the point those things could be accomplished
<marex> Kasreyn: does the u-boot build you got operational contain a version string ?
<marex> try and look at the serial console output, it will be something like v2024.07-rc...-gsomenumbers
<marex> those somenumbers are abbreviated commit ID
<marex> from the repo from which the binary was built
___nick___ has joined #u-boot
<Kasreyn> marex: it's U-Boot 2011.12
<Kasreyn> it's too old and doesn't support bootz command
<Kasreyn> but what is on the SPI chip is also the pre boot code, not just plain U-Boot
logicalerzor has joined #u-boot
<Kasreyn> i think later U-Boot doesn't even have that blob aka E5250.nbl1.bin
<Kasreyn> it's same reason libreboot no longer supports certain chromebooks
<marex> Kasreyn: are you sure you have to replace e5250.nbl1.bin and bl2.bin ?
<marex> Kasreyn: it seems there is some u-boot partition in the SPI NOR at offset 0x6000 (?) which is, well, u-boot with appended DT
<marex> maybe that is where you have to write that u-boot.bin generated by mainline U-Boot build ?
<marex> (I am very much guessing here)
Peng_Fan has quit [Quit: Connection closed for inactivity]
Clamor has joined #u-boot
Kwiboo has quit [Quit: .]
Kwiboo has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
___nick___ has quit [Ping timeout: 268 seconds]
naoki has joined #u-boot
<Kasreyn> marex: alright i will give it a try :)
tgamblin has quit [Ping timeout: 256 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<Kasreyn> technically "spl/u-boot-spl.bin" fits the range of "bl2 spl" 0x4000 / 16K & "E5250.nbl1.bin" fits the range of "bl1 pre-boot" 0x2000 / 8KB & u-boot-dtb.bin fits the range of "u-boot" 0x9a000
<Kasreyn> so every binary produced by mainline u-boot fits
<marex> yes
<Kasreyn> but can't just cat the files together, they have to padded some how
<marex> arch/arm/dts/exynos5250-snow.dts see the flash node there
___nick___ has joined #u-boot
<marex> seems like the first file is aligned to 0x2000 (8kiB) , the second starts at 8 kiB and is aligned to 16 kiB and then it is u-boot
<marex> look at truncate(1)
<marex> I think that could help
<Kasreyn> ah ;) thanks
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
<marex> Kasreyn: btw if there is 'sf' command in that old U-Boot, you can 'sf probe && sf update $loadaddr 0xoffsetInSPINor $filesize' to rewrite only the relevant part ; do it three times , once for each blob
<marex> the 0xoffsetInSPINor is the first field in reg=<offset length> property in /flash node in the snow DT
<marex> $filesize is set automatically by load/loady/tftp commands
<Kasreyn> no need it boots now :)
<Kasreyn> what i did: cat E5250.nbl1.bin > test.bin && truncate -s 8192 test.bin && cat spl/smdk5250-spl.bin >> test.bin && truncate -s 24576 test.bin && cat u-boot-dtb.bin >> test.bin
<Kasreyn> so U-Boot 2020.01 works on the XE303 :)
<Kasreyn> oh i forgot, also have to: make snow_defconfig && CROSS_COMPILE=arm-linux-gnueabihf- make -j20
<Kasreyn> big thanks @marex :)
<Kasreyn> and it's booting into Linux too
<Kasreyn> just have to "setenv devnum 2" (on my unit the internal eMMC is physically broken) then "run mmc_boot"
ungeskriptet has quit [Ping timeout: 268 seconds]
ungeskriptet has joined #u-boot
logicalerzor has quit [Quit: Connection closed for inactivity]
tec has quit [Quit: bye!]
tec has joined #u-boot
___nick___ has quit [Ping timeout: 256 seconds]
umbramalison has joined #u-boot
<marex> Kasreyn: very good
<marex> Kasreyn: so, now what about 2024.07-rc5 ?
<marex> (or 2024.07 on Monday) ?
mmu_man has quit [Ping timeout: 264 seconds]
ikarso has quit [Quit: Connection closed for inactivity]