Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.04, v2025.07-rc4 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2025.07 is scheduled for 07 July 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
_whitelogger has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
clamor has joined #u-boot
ja_02 has quit [Ping timeout: 276 seconds]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Client Quit]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
prabhakalad has quit [Ping timeout: 272 seconds]
prabhakalad has joined #u-boot
clamor has quit [Ping timeout: 276 seconds]
clamor has joined #u-boot
_whitelogger has joined #u-boot
clamor has quit [Ping timeout: 260 seconds]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Client Quit]
Poltawer has joined #u-boot
eballetbo_ has joined #u-boot
__ad has joined #u-boot
qschulz_ has joined #u-boot
eballetbo has quit [Ping timeout: 260 seconds]
clarity has quit [Ping timeout: 260 seconds]
qschulz has quit [Ping timeout: 260 seconds]
ad__ has quit [Ping timeout: 260 seconds]
electricworry has quit [Ping timeout: 260 seconds]
eballetbo_ is now known as eballetbo
clarity_ has joined #u-boot
electricworry_ has joined #u-boot
persmule has quit [Remote host closed the connection]
mmu_man has joined #u-boot
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
chili-b has quit [Ping timeout: 252 seconds]
chili-b has joined #u-boot
tlwoerner_ has quit [Ping timeout: 268 seconds]
tlwoerner has joined #u-boot
eballetbo has quit [Quit: Connection closed for inactivity]
clarity_ is now known as clarity
_whitelogger has joined #u-boot
Poltawer has quit [Ping timeout: 245 seconds]
Poltawer has joined #u-boot
goliath has joined #u-boot
Guest7 has joined #u-boot
<Guest7> hi, I'm using FIT image with an ARM device, is there a way to pass atags to the kernel for ramdisk address or it must be hardcoded with linux,initrd-start?
<marex> ugh ... ATAGS
<marex> Guest7: is your U-Boot version very old or something ?
<marex> usually U-Boot automatically passes the initrd location to the kernel
<marex> sec
<Guest7> nope, we're using latest git version
<marex> Loading Ramdisk to bce24000, end bcf765e0 ... OK
<marex> do you happen to have some ... fdt_high or initrd_high ... variables set in your u-boot env ?
<marex> if yes, and if they are set to 0xffffffff or 0xffffffffffffffff then unset them and try that
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marex> and uh, one more thing ... you did enable the kernel options to use ramdisk, right ?
<Guest7> yeah of course
<Guest7> I don't see anything _high in the env, only stdin, stdout and stderr
<marex> CONFIG_BLK_DEV_RAM and CONFIG_BLK_DEV_LOOP ?
<marex> and also ... CONFIG_BLK_DEV_INITRD
<Guest7> yup all are =y
<marex> Guest7: and you are sure the ramdisk is not malformed ?
<Guest7> that's unsupported platform in both u-boot and linux (we're porting mainline and u-boot) so it might be a reason?
<Guest7> it should be fine..
<marex> Guest7: hmmmm, try and build that exact same ramdisk into the kernel , mount sysfs , and see if /sys/firmware/chosen is populated and see what it contains
<marex> see esp. if it contains valid linux,initrd-start and linux-initrd,end ... if it does, U-Boot did patch the initrd locations into DT before passing it to Linux
<Guest7> hm I can bundle ramdisk with the kernel? is there any guide?
<marex> make menuconfig -> Generic setup -> Initial RAM filesystem and RAM disk (initramfs/initrd) support -> Initramfs source file(s)
<marex> plug in the path to initramfs root dir, save, exit, build, retest
<marex> that;s kernel menuconfig btw
<Guest7> wow thanks, it'll take some time because I transfer the kernel via serial..
<marex> use XZ compression, that should help
<Guest7> hmm I see only regular devicetree nodes under /sys/firmware/devicetree/base/chosen
<marex> Guest7: can you easily replace u-boot ?
<Guest7> yup
<marex> if so, git grep linux,initrd and spam the code around those strings with printf()s
<marex> see if that code is being called
Stat_headcrabbed has joined #u-boot
<Guest7> well function is called with fdt in the FIT, but the kernel doesn't boot with external fdt (only appended works so far)
<Guest7> https://bpa.st/HQTQ then wdt reboots the device
hanetzer has joined #u-boot
mmu_man has quit [Ping timeout: 244 seconds]
clamor has joined #u-boot
dsimic has quit [Ping timeout: 272 seconds]
dsimic has joined #u-boot
Stat_headcrabbe1 has joined #u-boot
Stat_headcrabbe1 has quit [Client Quit]
Stat_headcrabbed has quit [Ping timeout: 260 seconds]
soxrok2212 has quit [Read error: Connection reset by peer]
soxrok2212 has joined #u-boot
persmule has joined #u-boot
Stat_headcrabbed has joined #u-boot
clamor has quit [Ping timeout: 260 seconds]
<marex> Guest7: ah, your DT is part of the kernel binary ?
<Guest7> yeah, i'm doing `cat arch/arm/boot/zImage arch/arm/boot/dts/mediatek/mt6572-jty-d101.dtb > kernel.bin` and using kernel.bin in the FIT
<marex> Guest7: could you fix that and instead use proper separate FDT ?
<marex> why does that not work ?
<Guest7> I mean the kernel (zImage) doesn't want to boot with separate FDT
<Guest7> i have no idea tbh
<marex> with separate FDT, U-Boot would be able to patch in the initrd properties
<marex> Guest7: why not ?
<marex> Add "earlycon earlyprintk" to kernel command line ($bootargs) and see if it complains about anything
<marex> you could try and set "fdt_high" variable to something reasonable ( not 0xffffffff ) to limit the maximum memory address to which FDT can be loaded
<Guest7> I have `console=tty0 console=ttyS0,921600 earlycon` built-in to kernel but it doesn't work
<marex> try to place FDT something like 128 MiB past the kernel tops
<marex> Guest7: add earlyprintk too
<marex> also in kernel menuconfig -> drivers -> character devices -> serial drivers -> make sure "Support for early console on" is set
<marex> that might get you early output
<Guest7> i'll try debug uart thingy, hope it'll tell something
<marex> Guest7: if you can reboot without thrashing content of DRAM, you could also analyze kernel log buffer in U-Boot , after warm-reset from failed boot
<marex> maybe try and add 'panic=5' or something to bootargs, to reboot the machine after 5 seconds in case of kernel panic
<marex> also, oops=panic maybe
<marex> see Documentation/admin-guide/kernel-parameters.txt for other tunables
<Guest7> well fdt is not passed to kernel because i don't see any logs in UART and wdt resets the device
<Guest7> let me try with debug uart now
<marex> is this arm32 or arm64 ?
<marex> on arm32, there is some menuconfig -> kernel hacking -> debug UART thing , where kernel can directly write characters to UART without having to initialize it
<marex> I think it isnt present on arm64
<Guest7> yup I've enabled that
<marex> did you point that to the right UART ?
<marex> is it writing into the right register ?
<Guest7> not tested yet, one moment
<marex> I have to leave in like 3 minutes, back in 20-ish
<Guest7> np, thanks for the help :D
<Guest7> hmm something is wrong with memcmp? https://bpa.st/V2SQ
<Guest7> okay yeah external dtb works fine, but initrd isn't... i think i'll keep initrd in the kernel
<Guest7> thanks a lot for help :)
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
<marex> ok back
<marex> Guest7: re initrd , did you disable the built-in ramdisk in kernel config now ?
<marex> Guest7: initrd might not take priority over the built in one
<Guest7> nope, i left it but if the bootloader provides initrd the kernel will take it instead
<marex> Guest7: ha
<marex> Guest7: btw did you consider NFS boot over , well , ethernet or USB CDC ethernet or some such ?
<Guest7> this is not possible (yet), we have only initial kernel/u-boot working (see https://github.com/catfish03/linux-mt65xx/commit/6a6feae3cedec14ca4e05cc8bb9357c15049ba47) and i'm fine with built-in initrd for now
<marex> fun
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
warpme has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vagrantc has joined #u-boot
Guest7 has quit [Quit: Client closed]
Poltawer has quit [Quit: WeeChat 4.6.3]
alexxy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
alexxy has joined #u-boot
flyback has quit [Ping timeout: 248 seconds]
flyback has joined #u-boot
clamor has joined #u-boot
clamor has quit [Read error: Connection reset by peer]
<zen_desu> im not sure what is wrong with my kernel config, im using the default config for the starfive visionfive2, but once uboot runs it, i get no more console output
<zen_desu> the board just seems stalled
<zen_desu> https://0x0.st/86He.txt this is the kernel config
mischief has quit [Ping timeout: 252 seconds]
clamor has joined #u-boot
mischief has joined #u-boot
_whitelogger has joined #u-boot