Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.10 is OUT / Merge Window is OPEN until 25 October 2021 / Release v2022.01 is scheduled for 10 January 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
torez has quit [Quit: torez]
qschulz_ has quit [Read error: Connection reset by peer]
zibolo has quit [Ping timeout: 244 seconds]
qschulz has joined #u-boot
zibolo has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
<sjg1> milkylainen: Gosh you really dig into it! Did you ask on any of the toolchain mailing lists, etc? What is special about U-Boot that it has this problem?
guillaume_g has joined #u-boot
agust has joined #u-boot
camus1 has joined #u-boot
camus has quit [Ping timeout: 260 seconds]
camus1 is now known as camus
sszy has joined #u-boot
matthias_bgg has joined #u-boot
kaji has quit [Quit: Client limit exceeded: 20000]
gsz has joined #u-boot
mckoan|away is now known as mckoan
tre has joined #u-boot
lucaceresoli has joined #u-boot
<milkylainen_> sjg1: I've bumped a question to the binutils channel + mailing list. See if I can get some pointers from there. I patched my toolchain, but it doesn't seem to help. So I'm back to square 0 unfortunately.
kaji has joined #u-boot
smartin has joined #u-boot
<milkylainen_> sjg1: The acual segv. https://pastebin.com/KK0L0MJ7
<milkylainen_> (gdb) p *(struct bfd_elf_section_data *)(htab->elf.splt->output_section)->used_by_bfd
<milkylainen_> Cannot access memory at address 0x0
tambarus has joined #u-boot
mmu_man has joined #u-boot
macromorgan has quit [Read error: Connection reset by peer]
tnovotny has joined #u-boot
josem has joined #u-boot
<milkylainen_> sjg1: Isn't app mode supposed to use the efi app ldscript?
camus1 has joined #u-boot
<milkylainen_> Or are the efi ldscripts only for payloads?
camus has quit [Ping timeout: 256 seconds]
camus1 is now known as camus
tambarus has quit [Quit: Connection closed for inactivity]
josem has quit [Quit: Client closed]
josem has joined #u-boot
torez has joined #u-boot
ilunev has joined #u-boot
michalkotyla has joined #u-boot
tre has quit [Remote host closed the connection]
macromorgan has joined #u-boot
<michalkotyla> Hello everyone! I try to build u-boot for my custom imx6dl board, but I have a lot of errors like this: https://pastebin.com/raw/VMCkcAVu . Do you have any ideas what is MX6DL_##x? I looking for that in source code (https://github.com/u-boot/u-boot/search?q=MX6DL_%23%23x) but i do not see any useful definitions
matthias_bgg has quit [Quit: Leaving]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
michalkotyla has quit [Quit: michalkotyla]
<rfried> Tartarus: ping, do you want the PXE series on next or master ? do you prefer to merge it yourself or do you want it through my tree ?
<Tartarus> rfried: master, and were you going to rework the previous PR, with the 8211e PHY fix or just drop the patch?
<rfried> Tartarus: drop the patch.
<Tartarus> ok
<rfried> if it's going to master (the PXE) maybe you should merge it.
<rfried> I don't have any other content for master.
<Tartarus> OK, I can pick up the PXE stuff then. And you'll rework/resend the rest of the stuff?
tnovotny has quit [Quit: Leaving]
<rfried> Yes, I forced pushed the patches without the PHY, once CI will pass I'll sent you a new pull-request
redbrain has joined #u-boot
as2334 has joined #u-boot
vagrantc has joined #u-boot
lucaceresoli has quit [Remote host closed the connection]
torez has quit [Ping timeout: 245 seconds]
torez has joined #u-boot
guillaume_g has quit [Quit: Konversation terminated!]
mckoan is now known as mckoan|away
mmu_man has quit [Ping timeout: 250 seconds]
indy has quit [Read error: Connection reset by peer]
indy has joined #u-boot
<Tartarus> xypron: So, trying some bootefi stuff. Is it expected that bootefi doesn't end up calling usb_stop() ? And if so, uh, how is that supposed to work?
<Tartarus> To be clear, what I mean is this, after usb start and bootefi of a kernel (or via grub):
<Tartarus> vs
smartin has quit [Quit: smartin]
<xypron> Tartarus: in efi_exit_boot_services() we call bootm_disable_interrupts() which only calls usb_stop() if CONFIG_CMD_USB=y. Why should it depend on CMD_USB and not on USB?
torez has quit [Ping timeout: 264 seconds]
torez has joined #u-boot
camus1 has joined #u-boot
<Tartarus> xypron: CMD_USB=y already on this platform
<Tartarus> And the user visible difference is usb start, or not, before bootefi
<xypron> But still is the constraint correct?
<Tartarus> lemme toss in a usb stop...
<xypron> But it is already called.
<xypron> Better put a printf into usb_stop()
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
<Tartarus> OK
<xypron> Tartarus: On my OrangePi PC is always get a warning "EHCI failed to shut down host controller." So ehci_shutdown() is invoked.
<Tartarus> Not called here.
<Tartarus> j721e_evm_a72_defconfig is anything pops out at you
<Tartarus> Adding debug print to efi_exit_boot_services
<Tartarus> That is called
<xypron> is usb_stop called?
<xypron> Tartarus ^
<apalos> xypron sjg1 will any preference on the TPM cleanup thingy? Will some of you pick it up or Tartarus ?
___nick___ has joined #u-boot
<xypron> apalos: mmio driver?
<apalos> yea
<apalos> xypron ^^
<xypron> apalos: as that is needed for EFI testing I could add it to my next pull request
<apalos> I am fine with that
torez has quit [Ping timeout: 240 seconds]
<Tartarus> xypron: As best I can tell (but I'm trying for a 4th time and then seeing what booti says too), it's dying immediately in usb_stop and producing that fault?
torez has joined #u-boot
<Tartarus> ... there's 2 usb_stop()s, cool, ok
<Tartarus> So, debugging a bit more where it fails down in I hope the right usb_stop
josem has quit [Quit: Client closed]
<xypron> Tartarus: one for DM_USB one for non DM
<sjg1> apalos: It's OK for xypron to do it
<sjg1> milkylainen_: I believe it should use the EFI .lds script for the app
mmu_man has joined #u-boot
<milkylainen> I'm just confused.. I don't think the app uses the EFI .lds scripts. In 32-bit or not. It looks like it builds the lds from the regular generic lds. Payload uses the EFI .lds though.
<milkylainen> sjg1^
<Tartarus> xypron: Right so, OK, the code just behaves widly different in bootefi vs booti
<Tartarus> xypron: Can you add a few debug prints like this:
<Tartarus> And see if bootefi vs booti behave the same?
<Tartarus> I get:
<Tartarus> vs
<xypron> you mean I should run the same on one of my Sunxi boards?
<xypron> Tartarus ^
<Tartarus> Or some other aarch64 platform yes
<Tartarus> my pinea64 has awful usb
<Tartarus> So I can't test on mine
calle has joined #u-boot
<calle> hi
<xypron> That was on 32bit Sunxi
torez has quit [Quit: torez]
as2334 has quit [Quit: as2334]
vagrantc has quit [Ping timeout: 264 seconds]
<xypron> Tartarus: 64bit: https://paste.ubuntu.com/p/fQ6Mj4KtRV/
vagrantc has joined #u-boot
<xypron> You problem seems to be board specific.
<Tartarus> xypron: Do you have anything with xhci, not ehci?
<sjg1> milkylainen: OK that is strange to me
<xypron> Tartarus: RISC-V: SiFive unmatched, ARM64 MacchiatoBin
<Tartarus> Try the macchiatobin I guess please
<xypron> Tartarus: the unmached boots fine with U-Boot
<xypron> and bootefi
<xypron> Tartarus: it is already late. I have a look tomorrow
<Tartarus> Thanks
___nick___ has quit [Ping timeout: 256 seconds]
<Tartarus> sjg1: Any idea how the DM version of usb_stop could get different paths on booti vs bootefi?
redbrain has quit [Ping timeout: 240 seconds]
gsz has quit [Quit: leaving]
<xypron> sjg1: Tartarus: initializing the UEFI subsystem scans all block devices
<xypron> Tartarus: execute 'efidebug memmap' before booti. Does the error occur?
<Tartarus> Note that in this case I don't have anything actually plugged in via USB (I did when I first stumbled on this problem, but removed that variable)
<Tartarus> xypron: ok, lets see
<Tartarus> xypron: boots
<Tartarus> xypron: wait, I messed up sorry
<Tartarus> xypron: OK, I made sure to usb start and it still boots with booti
<xypron> Tartarus: why does TF-A handle the exception. I would have expected U-Biit's crash handler to write the registers
<Tartarus> Just how the platform is?
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
calle has quit [Quit: Leaving]
agust has quit [Quit: Leaving.]