Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi Zero 2 #729

Open
symbios24 opened this issue Nov 28, 2021 · 43 comments
Open

Raspberry Pi Zero 2 #729

symbios24 opened this issue Nov 28, 2021 · 43 comments

Comments

@symbios24
Copy link

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
Copy link

HinTak commented Nov 28, 2021

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
Copy link

HinTak commented Nov 28, 2021

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
Copy link
Author

symbios24 commented Dec 26, 2021

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
Copy link

HinTak commented Dec 26, 2021 via email

@symbios24
Copy link
Author

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

@symbios24
Copy link
Author

symbios24 commented Feb 25, 2022

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:

68ffb45

c0b40da

ffd11da

Thanks

@symbios24
Copy link
Author

Zero support anyway

@symbios24
Copy link
Author

symbios24 commented May 23, 2022

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
Copy link

HinTak commented May 23, 2022 via email

@symbios24
Copy link
Author

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
Copy link

HinTak commented May 26, 2022 via email

@symbios24
Copy link
Author

symbios24 commented May 26, 2022

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
Copy link

HinTak commented May 26, 2022 via email

@symbios24
Copy link
Author

symbios24 commented May 26, 2022

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
Copy link
Author

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
Copy link
Author

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
Copy link

HinTak commented Jun 14, 2022

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
Copy link
Author

symbios24 commented Jun 14, 2022

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
Copy link
Author

symbios24 commented Jun 18, 2022

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
Copy link

HinTak commented Jun 18, 2022 via email

@symbios24
Copy link
Author

symbios24 commented Jun 18, 2022

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

@symbios24 symbios24 reopened this Jun 18, 2022
@HinTak
Copy link

HinTak commented Jul 22, 2022

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
Copy link
Author

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
Copy link

HinTak commented Aug 8, 2022

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
Copy link
Author

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
Copy link

HinTak commented Aug 22, 2022

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

@symbios24
Copy link
Author

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

@HinTak
Copy link

HinTak commented Aug 22, 2022

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
Copy link
Author

symbios24 commented Aug 22, 2022

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
Copy link

HinTak commented Aug 22, 2022

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

@symbios24
Copy link
Author

Ok

What is the apt name aarch64-gcc ??

@HinTak
Copy link

HinTak commented Aug 23, 2022

Try apt search aarch64.

@symbios24
Copy link
Author

symbios24 commented Aug 23, 2022

I installed every aarch64 compiller there is still the same error

@HinTak
Copy link

HinTak commented Aug 23, 2022

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

@symbios24
Copy link
Author

There is not gcc-v in apt search

@HinTak
Copy link

HinTak commented Aug 23, 2022

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

@symbios24
Copy link
Author

Gcc version 10.2.1

@HinTak
Copy link

HinTak commented Aug 23, 2022

Argh, identical problem, the answer is in crosstool-ng/crosstool-ng#1248

@symbios24
Copy link
Author

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
Copy link

HinTak commented Aug 23, 2022

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

@symbios24
Copy link
Author

And how i do that?

@symbios24
Copy link
Author

symbios24 commented Aug 26, 2022

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

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants