https://ticket.coreboot.org/issues/281 similar to this. Without this commit: https://github.com/hanetzer/coreboot/commit/272fc7e3f5d32c0323602682636b5494c1ab6ba0 I cannot boot a ppc64 be romstage if I enable lz4 romstage compress...Marty Plummer
Aaron Durbin wrote: > I agree that this should be corrected, but there's not much we can do while still maintaining backwards compatibility. The endian calls, regardless of which one employed, would be required. The thing that always bu...Marty Plummer
This may be enough for now, but perhaps we should see about reworking cbfs* to properly encode these things in big/little endian depending on the target, and have the code just use the 'native' format instead of doing these explicit r...Marty Plummer
Patch seems to work. I get as far with a big endian coreboot as I do with a little endian coreboot now (romstage->ramstage handoff fails for some reason).Marty Plummer
Aaron Durbin wrote: > Original sighting: > ... I had to recompile; I've been building little-endian for the moment because otherwise I'd be stuck here. > struct cbfs_stage starts at 0x202b8 for fallback/romstage file. > ... ~~~ EL...Marty Plummer
This is also an issue if you build a big-endian coreboot on a big-endian system (in my case a talos ii running be gentoo), so something is definitely up. Marty Plummer
https://github.com/hanetzer/coreboot/tree/power9-endian-demo ^ code in question. Build a cross-pp64 toolchain, switch mainboards to qemu-powernv9. Use https://github.com/hanetzer/qemu/tree/powernv-5.2 for qemu (its the same as ht...Marty Plummer
Ok, scratch that. I was under the impression that the four bytes at the end of coreboot.rom(more properly the coreboot cbfs's end) was from fmap, but that's from cbfstool add-master-header. Its encoded as LE.Marty Plummer
Marty Plummer wrote: > So, as part of my work on fully porting coreboot for ppc64/power9/talos ii I've > ... Just checked against the emulation/qemu-power8 target (clean tree) and it also has the fmap headers in LE while the cbfs head...Marty Plummer