maxnet / berryboot

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

Raspberry Pi Zero 2 #729

Open symbios24 opened 2 years ago

symbios24 commented 2 years ago

Hi The newly released Raspberry Pi Zero 2 Is not working with berryboot I tried the 32bit version and the 64bit version Its stuck on the rainbow screen Any fix or an update to make it work ??

HinTak commented 2 years ago

If it is a new hardware, likely it needs a new kernel plus updated/new device tree. It just needs a updated build with the current upstream (further upstream, from the pi people) kernel + devicetree.

HinTak commented 2 years ago

The pi zero 2 w has only been available for a few weeks. Anyway, since it is new hardware, likely need the latest upstream kernel plus devicetree; it is not a surprise that current /last build of berryboot does not work.

symbios24 commented 2 years ago

Still waiting no wonder why i ask you to update berryboot hintak,anyway your last version berryboot-20210805-pi0123 its not working at all you can delete it.

HinTak commented 2 years ago

Already explained - Pi Zero 2 is no Pi Zero, and you should not expect an earlier kernel to support later hardware. It just does not work. However, that does not devalue the support for Pi Zero (original, no 2). The old kernel supports older hardwares. That's all, nothing more, nothing less.

symbios24 commented 2 years ago

I mean the berryboot-20210805-pi0123 its not working with any pi tested so you can remove it.

symbios24 commented 2 years ago

Already explained - Pi Zero 2 is no Pi Zero, and you should not expect an earlier kernel to support later hardware. It just does not work. However, that does not devalue the support for Pi Zero (original, no 2). The old kernel supports older hardwares. That's all, nothing more, nothing less.

HinTak can you do me a favor and release an updated version for the 32bit Rpi4 version since it works way better than the native 64bit version and also include the latest usb boot fixes in the first three commits under:

https://github.com/maxnet/berryboot/commit/68ffb45a3e4545b9c1d599238d0f99c8602102a2

https://github.com/maxnet/berryboot/commit/c0b40dada13a1027fafc693108c8af01824e9997

https://github.com/maxnet/berryboot/commit/ffd11da8e23274b0bb8128765ebbc87f2646a276

Thanks

symbios24 commented 2 years ago

Zero support anyway

symbios24 commented 2 years ago

Already explained - Pi Zero 2 is no Pi Zero, and you should not expect an earlier kernel to support later hardware. It just does not work. However, that does not devalue the support for Pi Zero (original, no 2). The old kernel supports older hardwares. That's all, nothing more, nothing less.

Hintak can you give me please the Instructions you use to make/build berryboot eg: depends,, commands,i tried the official way didint make it Thanks

HinTak commented 2 years ago

My notes of how it was built is the file "Customizing-Berryboot.md" at https://github.com/HinTak/RaspberryPi-Dev

symbios24 commented 2 years ago

My notes of how it was built is the file "Customizing-Berryboot.md" at https://github.com/HinTak/RaspberryPi-Dev

I cannot do it there arent exact instructions how to build and compile and the depends needed, there is only customizing info that i dont understand at all.

HinTak commented 2 years ago

The actual build instruction is half way down, starting with "Capture logs while building Berryboot". The two commands simultaneously capture the log as "berryboot-build-log" and also display it:

32-bit build:

./build-berryboot.sh device_pi0123 2>&1 | tee berryboot-build-log

64-bit build:

./build-berryboot.sh device_pi64 2>&1 | tee berryboot-build-log

So it is perhaps best if you try the command and post the "berryboot-build-log" file generated. The content of it would be exactly what errors/problems you see from building, saved to a file.

The two builds require two different cross compilers. one is gcc-arm-linux-gnu and the other is gcc-aarch64-linux-gnu , and you need your usual native compiler too.

Remember Berryboot is a fairly complete (in the sense of "self-contained") linux system, so it requires a fair complete set of dev tools, enough to build a linux system from scratch, plus cross-compiling such a system.

symbios24 commented 2 years ago

Sorry but i dont undetstand many things i just know how to clone a repo and after compile/ build from it I tried before the /build-berryboot.sh device_pi0123

But it was always stopping coz depends were missing and was doing this for hours and hours until i cancel it

I dont understand why they dont release an update here for them must be a piece of cake to do it i just dont know it. If i did I would release every month an update

HinTak commented 2 years ago

As I wrote in Customizing-Berryboot.md, even if you have everything needed (e.g. you have done it successfully before), the build process is not fast - on my hardware, typically takes about 4 - 7 hours; and it would trty to download stuff from the internet too, so it depends on your network connectivity speed to some extent, too.

Berryboot is essentially a mini- but full self-contained linux system, so it requires quite a large set of dev tools to build - typical of building every part of a small linux system, I suppose. There is no getting around it.

symbios24 commented 2 years ago

It will be good all this tools/dev things to be included in the script so everything will be done/installed automatic, I can't make it like this,thanks anyway.

symbios24 commented 2 years ago

As I wrote in Customizing-Berryboot.md, even if you have everything needed (e.g. you have done it successfully before), the build process is not fast - on my hardware, typically takes about 4 - 7 hours; and it would trty to download stuff from the internet too, so it depends on your network connectivity speed to some extent, too. Berryboot is essentially a mini- but full self-contained linux system, so it requires quite a large set of dev tools to build - typical of building every part of a small linux system, I suppose. There is no getting around it.

Hintak you can remove the: berryboot-20210805-pi0123 from your github its not working with any raspberry pi i tried it.

symbios24 commented 2 years ago

As I wrote in Customizing-Berryboot.md, even if you have everything needed (e.g. you have done it successfully before), the build process is not fast - on my hardware, typically takes about 4 - 7 hours; and it would trty to download stuff from the internet too, so it depends on your network connectivity speed to some extent, too. Berryboot is essentially a mini- but full self-contained linux system, so it requires quite a large set of dev tools to build - typical of building every part of a small linux system, I suppose. There is no getting around it.

Hintak will you release if you want and can an updated berryboot version with bullseye kernel for Rpi4 please?? Thank you

HinTak commented 2 years ago

My pi is not operational at the moment - the last SD card died suddenly a while ago and I haven't figured out what's wrong with it and/or decide trying to savage data from it yet, so I am not doing much with / on my Pi lately or in the near future. Sorry. Until I get a new SD card and/or try to savage the old, not much I am doing at all with Pi dev in general. That said, my notes is out there for people to try.

symbios24 commented 2 years ago

I boot from mechanical hdd ,i have many spare sd cards thought if you want i can send you one,clean the contacts of the card with isopropyl alcohol

symbios24 commented 2 years ago

My pi is not operational at the moment - the last SD card died suddenly a while ago and I haven't figured out what's wrong with it and/or decide trying to savage data from it yet, so I am not doing much with / on my Pi lately or in the near future. Sorry. Until I get a new SD card and/or try to savage the old, not much I am doing at all with Pi dev in general. That said, my notes is out there for people to try.

Im trying to build berryboot I managed to install most of the depends except the "which" the " bazaar" and the "sftp" apt cannot find them,How can i install them? Thanks

HinTak commented 2 years ago

"which" and "bazaar" are their own packages. "which" is quite common. Are you sure you need bazaar? That's for checking out sources directly from a bazaar repo. "sftp" is part of "openssh-clients"

symbios24 commented 2 years ago

No i dont need baazar i thought it was necessary, How to i install "which" I will try it on a raspberry pi what OS you suggest to built it? Raspbian or ubuntu? And how can i build a 32bit kernel for Pi4? How long it will take on Pi4 to complete? Thanks

HinTak commented 1 year ago

On the pi, you can do 'sudo apt-get install which', etc. Ubuntu has a slightly more up to date software stack. The pi4 isn't much slower than my laptop, so maybe 5-10 hours? And quite a lot of disk space, and a network connection.

symbios24 commented 1 year ago

Is it possible to create a sh script that installs the depends first and then ask you for example for what raspberry pi board to create the berryboot installer, And compiles/builds after??

In other words an automated berryboot installer script??

HinTak commented 1 year ago

Short answer, no. Mostly you just keep on installing missing things until it works, and don't remove them. So it is a lot of one-off operations.

symbios24 commented 1 year ago

I

Short answer, no. Mostly you just keep on installing missing things until it works, and don't remove them. So it is a lot of one-off operations.

I tried to build berryboot the pi64 version, in raspberry pi4 with raspbian bullseye 32bit and got this error

IMG_20220822_195336

Should i do it in 64 bit OS??

Or should i do it in raspbian buster?

Or its just not possible in arm???

HinTak commented 1 year ago

You need to install the Cross compiler. It should say Aarch64-...-gcc instead of gcc.

symbios24 commented 1 year ago

I think i have install it,but will it install it in 32bit os?

HinTak commented 1 year ago

Hmm, forget my last comment - you haven't got to that stage yet. this is in the host part - it is complaining the machine/cpu you use to compile is too low spec, or the compiler too old.

symbios24 commented 1 year ago

So what now? I need a normal pc? Unfortunately my laptop broke down weeks ago.the only "pc" i have is the Rpi

I contacted the berryboot creator but i think he does not bother to make an updated version he did not even answer, looks like berryboot is abandoned.

Anyway thanks

HinTak commented 1 year ago

Try upgrading the gcc compiler - pick the highest you can. Raspberrypi supports multiple simultaneous ones, the default might be a bit low.

symbios24 commented 1 year ago

Ok

What is the apt name aarch64-gcc ??

HinTak commented 1 year ago

Try apt search aarch64.

symbios24 commented 1 year ago

I installed every aarch64 compiller there is still the same error

HinTak commented 1 year ago

Forgot, that's the later part. You probably need a more recent gcc / binutils . What does "gcc -v" say?

symbios24 commented 1 year ago

There is not gcc-v in apt search

HinTak commented 1 year ago

I mean just running "gcc -v". It should show the gcc version.

symbios24 commented 1 year ago

Gcc version 10.2.1

HinTak commented 1 year ago

Argh, identical problem, the answer is in https://github.com/crosstool-ng/crosstool-ng/issues/1248

symbios24 commented 1 year ago

Thanks

This is the answer??

Setting CT_EXTRA_CFLAGS_FOR_HOST="-march=armv7-a -mfloat-abi=hard -mtune=cortex-a5" on top of the xtensa-fsf-elf sample has got me past the GMP build error (the full build is still going).

If yes what i do ???

HinTak commented 1 year ago

Find where CFLAGS is set wrongly when gmp is built, and correct it.

symbios24 commented 1 year ago

And how i do that?

symbios24 commented 1 year ago

Anyway i dont think i can do it im not so experienced with that things,if you can sometime in the future to release an updated version in your git page for pi64 will be great thank you

actraiser30 commented 9 months ago

Find where CFLAGS is set wrongly when gmp is built, and correct it.

Hintak dont get abused too much its not good,what a moron you are.