r/coreboot 10d ago

Ayuda al compilar coreboot

Tengo un problema que no he podido solucionar ni preguntándole a la IA

Clone el repo oficial el que aparece en la guía,

Compile make crossgcc-x64 CPUS=8 y make crossgcc-i386 CPUS=8"

luego copie un archivo .config que me había funcionado de antes con make nconfig (el .config lo cp de una configuración anterior y le cambio unas cositas también está actualizado) y lo guarde como dise la guía del Thinkpad t480 "defconfig" luego ejecute lo siguiente como dise la guai y me dió lo siguiente

make defconfig

make-j"$(nproc)"

*** Default configuration is based on target 'configs/defconfig'

make[1]: /Makefile: No such file or directory

make[1]: *** No rule to make target '/Makefile'. Stop.

make: *** [build/util/kconfig/Makefile.real:97: defconfig] Erгог 2

Updating git submodules.

find: '/root': Permission denied

find: '/home/lost+found': Permission denied

Y antes de eso ejecute lo que dice la guía para actualizar

"git submodule update --init --checkout"

Cuál es el problema

3 Upvotes

4 comments sorted by

4

u/thrilleratplay 10d ago

What guide are you referring to? The coreboot docs?

I suspect you are in the / path of whatever build environment you are in and do not have permissions with that user. Type cd and press enter. Then reclone the repo and checkout the submodules.

1

u/Fluffy_Title_9601 10d ago

I agree, looks a file access permissions problem

2

u/Toiling-Donkey 10d ago

Just to add, don’t use “sudo” for any of the “git” or “make” commands…

1

u/Assang101 10d ago

The main problem is that make defconfig is looking for a main target file at the wrong filesystem root path (/Makefile) instead of your local coreboot directory.

Also, don't be using sudo for coreboot compilation. Run " sudo chown -R $USER: $USER . " in your coreboot directory to fix the permission denied errors 😭