Zero 2 W support

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Zero 2 W support

Postby graysky » Thu Nov 04, 2021 2:48 pm

$this->bbcode_second_pass_quote('alteriks', '@')graysky Would you be so kind and tell me about main differences between those two kernels? If you could share a link it would also be fine.


We had to create a rpi4 kernel back in Aug of 2019 in response to some upstream stuff.

https://github.com/raspberrypi/linux/is ... -521039426

$this->bbcode_second_pass_quote('alteriks', 'O')n a side note, I've managed to boot aarch64 on RPi Zero 2 W. I'll get back as soon I verify my hack, regarding loading proper dtb loading.


You should not need any hack and it is armv8 so should run aarch64 fine. Just put an aarch64 image on the media, chroot into it, update it, then put it in your zero 2 and it should work. Can you try this and report back please?
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Zero 2 W support

Postby alteriks » Thu Nov 04, 2021 2:56 pm

$this->bbcode_second_pass_quote('tazinblack', 'I')s there any chance to put the missing driver onto the sd card with my notebook and install it afterwards from the system itself?


If you are in a hurry you could just mount /boot partition from sdcard and put three files:
$this->bbcode_second_pass_code('', 'alarm% ls -l /usr/lib/firmware/updates/brcm/brcmfmac43436-*
-rw-r--r-- 1 root root 413934 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.bin
-rw-r--r-- 1 root root 11209 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.clm_blob
-rw-r--r-- 1 root root 1613 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.txt')
from https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm

Or You could try using https://github.com/gitbls/sdm like this:
$this->bbcode_second_pass_code('', 'sudo /usr/local/sdm/sdm --explore /path/to/archlinux.img')
After that you could update whole OS
alteriks
 
Posts: 6
Joined: Wed Nov 03, 2021 10:54 pm
Top

Re: Zero 2 W support

Postby alteriks » Thu Nov 04, 2021 3:30 pm

$this->bbcode_second_pass_quote('graysky', 'Y')ou should not need any hack and it is armv8 so should run aarch64 fine. Just put an aarch64 image on the media, chroot into it, update it, then put it in your zero 2 and it should work. Can you try this and report back please?


Running ArchLinuxARM-rpi-aarch64-latest with linux-aarch64-5.15.0-1-aarch64 kernel gave me black screen, but after tinkering with dtb I've managed to boot Pi without issues.

Alas installing older kernel - linux-raspberrypi4-5.10.76-3-aarch64 on ArchLinuxARM-rpi-aarch64-latest solved every issue. Now Pi Zero 2 W boots without any issue with 64bit kernel and userland
alteriks
 
Posts: 6
Joined: Wed Nov 03, 2021 10:54 pm
Top

Re: Zero 2 W support

Postby tazinblack » Thu Nov 04, 2021 5:40 pm

$this->bbcode_second_pass_quote('', 'I')f you are in a hurry you could just mount /boot partition from sdcard and put three files:

Code: Select all
alarm% ls -l /usr/lib/firmware/updates/brcm/brcmfmac43436-*
-rw-r--r-- 1 root root 413934 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.bin
-rw-r--r-- 1 root root 11209 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.clm_blob
-rw-r--r-- 1 root root 1613 Nov 4 14:22 /usr/lib/firmware/updates/brcm/brcmfmac43436-sdio.txt


from https://github.com/RPi-Distro/firmware- ... aster/brcm


That did not work on the first try. Then I put the files under /usr/lib/firmware/updates/brcm/.
After reboot everything was working fine.
For the update with pacman the 3 files need to be deleted there first. Otherwise pacman will complain about them.
After the update the files are present there again.

Thanks a lot for your help!

Regards
tazinblack
tazinblack
 
Posts: 6
Joined: Thu Nov 04, 2021 1:36 pm
Top

Re: Zero 2 W support

Postby MrGreen » Thu Nov 04, 2021 5:51 pm

No I am not.... ok leave it with me will return

Thanks for your help
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Zero 2 W support

Postby MrGreen » Thu Nov 04, 2021 7:37 pm

Very confused now, put fresh install on sd card, fired up my zero w and then updated system... once done powered off. Put card into zero 2 w and nothing, still unable to ssh in. Must be doing something wrong, wither wring image file or something different.
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Zero 2 W support

Postby dingausmwald » Sat Nov 06, 2021 3:59 am

@tazinblack
Could you explain what you did exactly? You said first try didn't work, and after that you copied the files to the exact same location again like @alteriks said and rebooted?!

I downloaded the image you mentioned
http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-4-latest.tar.gz
installed properly, boot was no problem.
After boot i copied the files to /usr/lib/firmware/updates/brcm/
i get this from dmesg

$this->bbcode_second_pass_code('', 'dmesg |grep brcm
mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2.txt failed with error -2')

what is strange. Im far from an expert but there is no mention of model-zero-2.txt anywhere. Not in the files nor the directories.

I did this like 10 times now. Copied the files to /usr/lib/firmware/brcm directly, still same error.
dingausmwald
 
Posts: 9
Joined: Fri Nov 10, 2017 2:33 pm

Re: Zero 2 W support

Postby MrGreen » Sat Nov 06, 2021 8:45 am

So I need a different image? Maybe why it is not working.... let me check downloads section
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Zero 2 W support

Postby MrGreen » Sat Nov 06, 2021 9:44 am

I am dumb sometimes ;-) .... put pi4 image on sd card, fired up my pi 4B and am now updating image...

Fingers crossed////
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Zero 2 W support

Postby MrGreen » Sat Nov 06, 2021 10:45 am

Using Raspberry 4 image in Pi Zero 2 W it now boots and I can ssh into it....

$this->bbcode_second_pass_code('', 'Linux alarmpi 5.10.77-1-raspberrypi4-ARCH #1 SMP Fri Nov 5 17:26:09 UTC 2021 armv7l GNU/Linux

')
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 21 guests