Hi Gabriel,
Welcome to coreboot!
What distro are you using? I just tested the instructions using debian and had no issues.
The tutorial originally had stated a distribution, and was written specifically for that linux distro, but in an attempt to be more supportive of a wider community, it's been expanded with instructions on how to run it under more distributions. This is great but as a consequence, it's difficult to debug issues like this without knowing what distro you're using, even if you have exactly followed the instructions.
You don't generally need coreinfo as a payload - it's just a simple payload that comes with the coreboot project, so is easy to use for the tutorial. To boot your machine, you'd want something like seabios, grub2, tianocore, or something else that will load the OS from some sort of boot media for you.
As far as teaching you makefiles, that's a little beyond the scope of the initial tutorial here. In fact, the coreboot makefiles are about as complex set of makefile as you'll ever see without someone trying (HARD) to make something more convoluted. I'd probably recommend against looking at the coreboot makefiles as the first attempt to learn make unless you like to learn to swim by diving into the deep end.
If you haven't already done so, you can generally get quicker responses from people on the #coreboot channel on libera-chat: https://web.libera.chat/#coreboot
Take care, and again, welcome to coreboot Martin
Dec 26, 2022, 14:22 by fg.malaspina@gmail.com:
Hello,
I'd like to build coreboot for HP Elitebook 8570w but I keep running into trouble.
I'm trying to build > coreinfo> , following the 1st part of the > tutorial https://doc.coreboot.org/tutorial/part1.html> to the letter, but it simply doesn't work.
Initially I'd get an error involving > libpayload> ; I got it compiled and installed following instructions in > README> and now I'm getting the following:
... ...
AR /home/gabriel/coreboot/payloads/coreinfo/libpayload/libpayload.a
CC arch/x86/head.head.o.o CP /home/gabriel/coreboot/payloads/coreinfo/libpayload/head.o LPGCC coreinfo.bin
/home/gabriel/coreboot/util/crossgcc/xgcc/i386-elf/bin/ld.bfd: cannot find -lpayload /home/gabriel/coreboot/util/crossgcc/xgcc/i386-elf/bin/ld.bfd: cannot find libgcc.a: No such file or directory
collect2: error: ld returned 1 exit status make: *** [../libpayload/Makefile.payload:93: build/coreinfo.bin] Error 1 make: Leaving directory '/home/gabriel/coreboot/payloads/coreinfo
I'd guess it's a matter of unsatisfied dependencies but I don't understand > make> files, as of yet at least.
Anyone that could point me in any direction?
Thanks,
Gabriel.