bamarni / pi64

A 64-bit OS for the Raspberry Pi 3
712 stars 128 forks source link

Bamarni64 not supported by Pi 3 b+ #75

Open Crazyhead90 opened 6 years ago

Crazyhead90 commented 6 years ago

The current Bamarni 64 OS is not supported by the new Pi 3b+, when you try to load it after flashing it, it will hang on the rainbowscreen.

Would it be possible to update this so it gets supported?

aalteirac commented 6 years ago

I should be closed to compile it too, just need to find another box,14.04 seems not good to get it right. What distro did you use to build ? Still 11mn to complete the download :-)

Crazyhead90 commented 6 years ago

I used ubuntu 18.04 on VMware workstation player.

But i didnt compile it using his script, i used https://devsidestory.com/build-a-64-bit-kernel-for-your-raspberry-pi-3/ with the required tweaks

Crazyhead90 commented 6 years ago

I just tested the image in the 20 minutes time i had between getting home and having to leave again and it seems to work. The latest raspbian desktop version is now running on aarch64. I'm just not sure if the wifi firmware works, i might have to tweak that. Cable internet does work afaik. https://i.gyazo.com/e62356bdb7204b6634b1cab9991590ef.jpg

If you link me images of which you want me to try to convert to 64 bit, link them here. Else i could just try to do the raspbian lite into a 64bit version.

aalteirac commented 6 years ago

Nice ! Will give it a try, tx for sharing !

aalteirac commented 6 years ago

I have "firmware registration failed" and "Driver sdhost-bcm2035 is already registered", will try to reflash. raspbian lite is fine,

aalteirac commented 6 years ago

Reflashed, still same error but it load well and the wifi works

Crazyhead90 commented 6 years ago

Yea i have the same, not sure why it keeps checking to register it. But its registered so i guess its fine

Crazyhead90 commented 6 years ago

@vixns I'll make the lite version tomorrow my time (its 19:00 here and i only just got home, still got to shower etc)

aalteirac commented 6 years ago

you deserve a shower :-) looking forward for the lite version but no rush, well done !

Crazyhead90 commented 6 years ago

Note that raspbian is a 32bit OS with a 64bit kernal now, if you guys want a full 64bit OS and kernel, i probably have to update Bamarni's release instead anyway.

Crazyhead90 commented 6 years ago

@aalteirac @vixns I got bored tonight, so i updated the bamarni lite with the new kernel. The lite version is also in the https://github.com/Crazyhead90/pi64/releases/tag/2018-04-17.

I think it should boot, but now i'm not sure if the wifi or other things will work at all. Let me know if any of you tried it.

----- Might be tweaking 1 thing of the lite version. Could be that i update the download in the next couple minutes.

aalteirac commented 6 years ago

Started the d/l will tell you tmrw

Crazyhead90 commented 6 years ago

@aalteirac hold on, i just reuploaded the image, i forgot to change the wifi firmware. Restart the download and test the new one. (Same link etc, just the image got updated)

vixns commented 6 years ago

@Crazyhead90 the lite image does not boot.

Crazyhead90 commented 6 years ago

@vixns I changed some things in the boot files, please try the new Bamarni-lite-V2 on my release page. I also added the raspbian-lite-64bit there, but note that the raspbian is only a 64bit kernel with 32bit userland, while the Bamarni should be full 64bit.

aalteirac commented 6 years ago

It boots well ! no time to test connectivity but will do later today

Crazyhead90 commented 6 years ago

Ah nice! I will also compile the Bamarni-desktop the same way than. Keep in mind that you probably have to update the image since besides the new kernel version, its still an early stretch version

Crazyhead90 commented 6 years ago

My release page has both the desktop&lite version of Raspbian and Bamarni now.

If you find any problems with any of them let me know.

aalteirac commented 6 years ago

Many thanks @Crazyhead90 ! You have saved me at least 1 night of cumbersome manipulations to get this thing working properly 👍

Crazyhead90 commented 6 years ago

No problem, glad i got them working :)

If any of you run against problems with apt-get upgrade and libreoffice, reflash Bamarni and remove libreoffice first before you update and upgrade your system

sudo apt-get purge libreoffice*
sudo apt-get update
sudo apt-get upgrade -y
ScorrMorr commented 6 years ago

Thanks for the efforts! I downloaded Bamarni-desktop-full64bit-pi3bplus-V2.img. It boots on my Raspberry 3B+, but i get this error: https://i.imgur.com/oOBEGnZ.png (sorry for the bad quality)

mentaluproar commented 6 years ago

USB boot does not work. Otherwise, good so far. EDIT: 9 minutes in and we're still on configuring packages, so maybe something's up. EDITEDIT: 17 minutes later, its done. phwew!

Crazyhead90 commented 6 years ago

@mentaluproar yea the package configuration is pretty much installing the OS

Crazyhead90 commented 6 years ago

@ScorrMorr That is weird.. I'm also using the Bamrani desktop and for me its working fine (just not sure if the wifi doesn't work, of if its just me)

Could you try to just download the zip and to flash the zip on your sd card using etcher.


Wait during what are you getting that error? During the boot process right?

ScorrMorr commented 6 years ago

@Crazyhead90 yes i get that error during the boot process. I'll try with etcher and let you know.

ScorrMorr commented 6 years ago

@Crazyhead90 with etcher booting works and i am able to login, thanks!

satmandu commented 6 years ago

@Crazyhead90 Would updating the barmani image to bionic just require a change to your dockerfile? Any chance of respinning those for a barmani lite bionic image?

Crazyhead90 commented 6 years ago

@satmandu No, Bamarni is based on debian not on ubuntu

satmandu commented 6 years ago

Ah I misunderstood. The environment in docker for building the image is ubuntu.

Crazyhead90 commented 6 years ago

Ah yea, i guess it just downloads some packages from there.

I also didnt make the images with the docker script, i downloaded the last release image of him and manually updated the kernel in it by mounting the boot partition etc to make it 4.14 and rpi3b+ compatible.

satmandu commented 6 years ago

That seems like the easiest way to do it. I wonder if anybody has had any luck with getting one of these debian based arm64 builds working with the uboot bootloader the bionic stock arm64 images want to use, as per this: https://wiki.ubuntu.com/ARM/RaspberryPi

(Apparently you can use the bionic arm64 image with no modification with the pi 3b, as long as you have the right 64 bit uboot built and installed. But I wasn't able to easily get that updated for the 3b+)

dushyantbangal commented 6 years ago

@Crazyhead90 do you have a compiled image uploaded somewhere that we can use? If not, can you tell what steps to follow to get this running on rpi3 b+?

satmandu commented 6 years ago

@dushyantbangal See https://github.com/Crazyhead90/pi64/releases/tag/2018-04-17

dushyantbangal commented 6 years ago

@satmandu thanks. Not sure how I missed it when I was going through his fork. Just noticed its even posted two other times in this thread itself

G-UK commented 6 years ago

@Crazyhead90 is there any way of upgrading to your updated build from the original Bamarni release. I really don't fancy having to re-setup all my Pi's from scratch if I can avoid it.

@bamarni Would it be possible to merge these changes so we can use Pi64-update to update the kernal please.

satmandu commented 6 years ago

@G-UK See what I did here to update the kernel to a current version in lieu of using pi64-update to update the kernel (for 3b+):

https://github.com/bamarni/pi64/issues/86#issuecomment-393968302

G-UK commented 6 years ago

@satmandu Thank You, I'll give that a try on one of my headless Pi's first. If manage to do it ok I'll do the others as well.

satmandu commented 6 years ago

@G-UK Please let me know if it works for you!

satmandu commented 6 years ago

For what it's worth it just worked for me with the 4.17 kernel tree:

Linux host 4.17.1-v8+ #1 SMP PREEMPT Fri Jun 15 17:28:12 EDT 2018 aarch64 GNU/Linux
G-UK commented 6 years ago

Seems to be working although I've not fully tested it. Thanks Again

I did make a few changes as I built it on the Pi itself so didn't have to cross-compile.

sudo aptitude update && sudo aptitude upgrade
sudo aptitude install -y bc build-essential git unzip subversion
mkdir rpi ; cd rpi
git clone --depth=1  https://github.com/raspberrypi/linux.git
svn export https://github.com/raspberrypi/firmware/trunk/boot
rm boot/config.txt
rm boot/kernel*
cd linux
make bcmrpi3_defconfig
make -j`nproc` deb-pkg
cp arch/arm64/boot/Image ../boot/kernel8.img
cp arch/arm64/boot/dts/broadcom/*.dtb ../boot/
cd ..
echo "kernel=kernel8.img" >> boot/config.txt
sudo dpkg -i linux-headers-4.14.49-v8+_4.14.49-v8+-1_arm64.deb linux-image-4.14.49-v8+_4.14.49-v8+-1_arm64.deb linux-libc-dev_4.14.49-v8+-1_arm64.deb
sudo cp -r boot /
sudo reboot
sudo aptitude update && sudo aptitude upgrade
bamarni commented 6 years ago

Hey folks, unfortunately I didn't got into this project yet... Would any of you be interested in becoming a collaborator on the repo?

satmandu commented 6 years ago

Thanks @bamarni but unfortunately I'm not going to have much time to spend on these projects moving forward either.

mpvmpv commented 5 years ago

@Crazyhead90

Now i'm at the part where the no_pubkey error happens which is weird because i added these keys to the trusted key chain: https://i.gyazo.com/9d93ee31b4186674ef2bb935e8f596d4.png NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500

Just wanted to add my 2 cents. Apparently there is a problem/bug in multistrap 2.2.9 which gets installed in ubuntu via apt. A workaround patch for it is available here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881146

After applying the patch the image build process works again.

4R7I5T commented 5 years ago

Almost a year later and still no solution to the rainbow screen issue?

satmandu commented 5 years ago

There are plenty of ways to properly boot Linux in 64 bit mode on the 3b+ now. Ubuntu should have proper support as well in several months.

justinstander commented 5 years ago

Downloaded the full lite image 👌 lookin' good on my B+ https://github.com/Crazyhead90/pi64/releases/download/2018-04-17/Bamarni-lite-full64bit-pi3bplus-V2.zip

satmandu commented 5 years ago

Worth noting that the current Ubuntu server images work just fine on the 3b+.

The arm64 images here have been booting just fine:

http://cdimage.ubuntu.com/ubuntu-server/daily-preinstalled/current/

small32 commented 4 years ago

Downloaded the full lite image 👌 lookin' good on my B+ https://github.com/Crazyhead90/pi64/releases/download/2018-04-17/Bamarni-lite-full64bit-pi3bplus-V2.zip

@Crazyhead90

this image not supported by Google BBR!

mohakshah commented 4 years ago

I am a Pi 3B user who just wanted to run the latest kernel in the pi64 builds. I was able to fix the docker build issue in the commit mohakshah@cd12a122. The issue was being caused due to a Multistrap bug. I was able to circumvent it by first downloading the Debian keyring package and extracting it inside the chroot and then running Multistrap. A side effect of this approach is, I believe, that the bootstrap process is now more secure than before.

For anyone trying to build newer kernels, I have created 2 new branches in my fork - linux-4.14-2019 and linux-4.19. I also have a buster branch which generates a Debian buster image with kernel 4.19. Unfortunately, since I don't own a PI 3b+, I haven't been able to add support for that model in any of these branches. Nevertheless, I hope that someone finds these branches helpful. :)