maxnet / berryboot

Berryboot -- Boot menu / OS installer
http://www.berryboot.com/
Other
804 stars 133 forks source link

compiling issues related to overlays #288

Open alec801 opened 8 years ago

alec801 commented 8 years ago

I am trying to compile berryboot but I keep running into an error when it runs.

I am cloning the repo with

sudo git clone --depth=1 https://github.com/maxnet/berryboot.git

I am building with the command

sudo ./build-berryboot.sh device_pi1

After several hours I get the error

/usr/bin/install: cannot stat ‘/home/alec/berryboot/buildroot-2015.02/output/build/rpi-firmware-master/boot/overlays/_.dtb’: No such file or directory package/pkg-generic.mk:223: recipe for target '/home/alec/berryboot/buildroot-2015.02/output/build/rpi-firmware-master/.stamp_imagesinstalled' failed make: ** [/home/alec/berryboot/buildroot-2015.02/output/build/rpi-firmware-master/.stamp_images_installed] Error 1

so that first line is looking for and .dtb files found in the overlays folder, but in that folder every file has the extension .dtbo not .dtb

Any ideas on how to fix this?

Also, unrelated but to compile for 2 devices, can I run the command

sudo ./build-berryboot.sh device1 device2

Thanks in advance :)

eriknomitch commented 8 years ago

👍 I am also running into this.

frozeniceman commented 8 years ago

same for me, building took over an hour!! :-( last release of berryboot is not booting up, remains on rainbow splash forever Raspberry Pi 2

Limeth commented 8 years ago

Having the same issue. I need to build it myself because of #259.

frozeniceman commented 8 years ago

ok, my fault - thought I had a rPi2, but it was a Raspberry Pi 1 Model B+ /facepalm/

Just download the right repo for your Pi and it will work.

Limeth commented 8 years ago

@frozeniceman What other repo? Do you mean the berryboot2.0 branch or the master branch? Glad to know you found a solution.

frozeniceman commented 8 years ago

@Limeth No, I mean I used sudo ./build-berryboot.sh device_pi2 before and ran into issues

Limeth commented 8 years ago

Oh, maybe I have to run it with sudo, because I get the error when running ./rebuild-berryboot.sh device_pi1.

for ovldtb in  /home/limeth/workspace/other/berryboot2/buildroot-2015.02/output/build/rpi-firmware-master/boot/overlays/*.dtb; do /usr/bin/install -D -m 0644 ${ovldtb} /home/limeth/workspace/other/berryboot2/buildroot-2015.02/output/images/rpi-firmware/overlays/${ovldtb##*/} || exit 1; done
/usr/bin/install: cannot stat ‘/home/limeth/workspace/other/berryboot2/buildroot-2015.02/output/build/rpi-firmware-master/boot/overlays/*.dtb’: No such file or directory
make: *** [/home/limeth/workspace/other/berryboot2/buildroot-2015.02/output/build/rpi-firmware-master/.stamp_images_installed] Error 1
Limeth commented 8 years ago

Using sudo didn't help.

Limeth commented 8 years ago

Alright, so I tried a bunch of things, like compiling device_pi2 first, compiling on a different machine, installing some more build tools. Nothing seemed to work. Unfortunately, I will have to resort to installing Raspbian manually instead, until there is a clear way of fixing this.

Elana4 commented 8 years ago

I've managed to get it to compile after dealing with the exact same problem, you need to go into the configs and turn the INSTALL_DTBS=y to n, after you do this, save, run the rebuild command with whichever device you want to build, it will run through the building process, afterwards I turned the DTBS to y again and ran the build command again.