brook_ has quit [Remote host closed the connection]
ft has quit [Ping timeout: 268 seconds]
ft has joined #beagle
brook_ has joined #beagle
_av500_ has joined #beagle
av500 has quit [Ping timeout: 246 seconds]
brook_ has quit [Remote host closed the connection]
buzzmarshall has quit [Quit: Konversation terminated!]
aussetg has quit [Remote host closed the connection]
aussetg has joined #beagle
Shadyman has joined #beagle
aussetg has quit [Remote host closed the connection]
aussetg has joined #beagle
<set> busybox?
<set> No. Sorry. No.
mvaittin has joined #beagle
brook_ has joined #beagle
brook_ has quit [Ping timeout: 272 seconds]
rob_w has joined #beagle
_av500_ is now known as av500
mvaittin has quit [Ping timeout: 268 seconds]
ft has quit [Remote host closed the connection]
mvaittin has joined #beagle
ikarso has joined #beagle
brook_ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
brook_ has quit [Ping timeout: 256 seconds]
florian has joined #beagle
xet7 has quit [Remote host closed the connection]
Shadyman has quit [Quit: Leaving.]
buckket has quit [Quit: buckket]
buckket has joined #beagle
xet7 has joined #beagle
xet7 has quit [Quit: Leaving]
florian has quit [Quit: Ex-Chat]
florian has joined #beagle
Stat_headcrabed has joined #beagle
florian has quit [Quit: Ex-Chat]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
brook_ has joined #beagle
mvaittin has quit [Ping timeout: 256 seconds]
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
rob_w has quit [Remote host closed the connection]
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
brook_ has quit [Ping timeout: 256 seconds]
brook_ has joined #beagle
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
buzzmarshall has joined #beagle
<zmatt> brook_: I don't think people really use uefi on 32-bit arm?
ft has joined #beagle
<jakllsch> they do via u-boot
<zmatt> I guess people feel like u-boot isn't already bloated enough on its own, so they want uefi in the mix too? ;-)
<jakllsch> idk, it really can make booting less board-specific for the OS
ikarso has quit [Quit: Connection closed for inactivity]
<zmatt> I mean, booting isn't board-specific for the kernel, and it will remain board-specific for the distro (since inserting UEFI in the mix doesn't change the fact that you need an uefi-enabled u-boot for your specific board)
<zmatt> (and generally everything I do on a beaglebone is board-specific anyway)
<brook_> jakllsch: do they really via u-boot? That is, people have u-boot loading an EFI bootloader, which loads the OS?
<jakllsch> that's what NetBSD dose
<brook_> Yes, but as far as I can tell, it does not successfully boot. I always get a "data abort" between ExitBootServices() and when an EARLYCONS kernel starts console output.
<jakllsch> Something's currently broken with that on Beagle Bone
<brook_> That is why I am asking. I'm trying to figure out if anyone has success with it. I suppose the answer is, no? What would help for debugging?
<jakllsch> i had to resort to a more classic approach for booting BBs
<brook_> So did I. I have a patch that reverts back, but I'm trying to find out if it is just me. I guess not.
<brook_> Do you have any knowledge of the details of the transition between bootarm.efi and the kernel?
<jakllsch> very vague; i'd have to search the efi boot sources
<brook_> Do you feel like helping to do that? I'm pretty much stabbing in the dark.
brook__ has joined #beagle
rob_w has joined #beagle
brook_ has quit [Ping timeout: 255 seconds]
<zmatt> brook__: I don't suppose the data abort comes with any details?
Stat_headcrabed has joined #beagle
Stat_headcrabed has quit [Client Quit]
brook__ has quit [Remote host closed the connection]
brook_ has joined #beagle
<brook_> Actually it does. It reports a bunch of registers, etc.
<zmatt> it would be nice if it bothered to print what _kind_ of data abort :P
brook_ has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
<zmatt> e.g. this is the abort decoding logic I've written for a personal project: https://pastebin.com/S4BtY6Gi
<brook_> OK, cool. Sorry, but how would I use this?
<zmatt> at the bottom there's dabort_handler()
<zmatt> it reads two registers, DFSR (or in some cases IFSR) and DFAR
<brook_> So, I'm guessing I install this as a handler for SIGABRT?
<zmatt> well there's clearly already a handler
<zmatt> dumping those two values in that handler would be sufficient
<zmatt> if you're feeling ambitious you could use the decoding logic in sync_abort_common() to directly print a more useful abort message
alcob-tio53 has joined #beagle
<zmatt> this is u-boot's abort handler probably?
<zmatt> or efiboot's I guess
<brook_> I'm having trouble finding an abort handler in the bootarm.efi code. But then again, I'm not sure how exactly to look for it.
<brook_> It looks like the message I see is from u-boot: arch/arm/lib/interrupts.c. It tries to fix the PC and then prints stuff. I suppose I can figure out how to get more info out of that, but I'm not sure.
<zmatt> yeah do_data_abort() would be the equivalent of my dabort_handler
<zmatt> and the struct pt_regs *pt_regs the equivalent of my ExcState
<zmatt> show_regs() is analogous to my dump_state()
<brook_> Do you think I can just replace its contents with your function? Should I keep the efi_restore_gd() and fixup_pc() calls? I suppose I could just add a call to your function before the bad_mode() call, right?
<zmatt> I'd say replace the printf ("data abort\n");
<zmatt> one sec
<brook_> it looks like pt_regs is defined in arch/arm/include/asm/proc-armv/ptrace.h as { long uregs[18] }. That's a little different from (bigger than) your ExcState.
<brook_> assuming sizeof(long) == sizeof(uint32_t) anyway
<zmatt> yes my ExcState is analogous to pt_regs (i.e. serves the same function), not identical
<zmatt> but you don't need to fiddle with that part
<zmatt> just replace printf ("data abort\n"); by print_data_abort(); from my pastebin and optionally the same for prefetch abort
<brook_> So, put that in place of the printf()? It looks to be picking up the state itself.
<zmatt> exactly
<brook_> Got it. Thanks a lot. I won't be able to actually try this until tonight, as I don't have the board handy. I'm eager to see what happens, though. Thanks so much. I'll let you know what happens.
<zmatt> in case you're wondering, this is not quite cortex-a8 specific, but it's for non-LPAE ARMv7-A/R devices... maybe ARMv6 too, probably not older
<zmatt> (or LPAE cpus that aren't in LPAE mode)
<brook_> I was wondering about the cortex-a8 bit. Thanks for clarifying.
<zmatt> it's possible it's more general than I think, but I don't really have a reason to cross-check against older ARM architectures
djinni has quit [Quit: Leaving]
djinni has joined #beagle
samnob has quit [Ping timeout: 252 seconds]
samnob has joined #beagle
ikarso has joined #beagle
<brook_> zmatt: I have a new u-boot compiled and ready to test. Stay tuned tomorrow.
<brook_> Thanks again.
Shadyman has joined #beagle
<alcob-tio53> hi, does bb-imager run in windows?
alcob-tio53 has quit [Read error: Connection reset by peer]
rob_w has quit [Read error: Connection reset by peer]
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
brook_ has quit [Remote host closed the connection]
notserpe has joined #beagle
brook_ has joined #beagle
alcob-tio53 has joined #beagle
brook_ has quit [Ping timeout: 260 seconds]
alcob-tio53 has quit [Quit: Client closed]
alcob-tio53 has joined #beagle
alcob-tio53 has quit [Client Quit]
alcob-tio53 has joined #beagle
alcob-tio53 has quit [Quit: Client closed]
brook_ has joined #beagle
brook__ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook__ has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook__ has joined #beagle
brook__ has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook__ has joined #beagle
brook__ has quit [Read error: Connection reset by peer]
alcob-tio53 has joined #beagle
brook_ has joined #beagle
brook_ has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
alcob-tio53 has quit [Client Quit]
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
brook_ has quit [Remote host closed the connection]
brook_ has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
brook__ has joined #beagle
brook__ has quit [Read error: Connection reset by peer]
brook_ has quit [Ping timeout: 272 seconds]