Zero 2 W support

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

Re: Zero 2 W support

Postby dingausmwald » Tue Nov 16, 2021 2:17 pm

$this->bbcode_second_pass_quote('graysky', 'S')o use the 64-bit image... others in this thread have confirmed aarch64 support.

this is sadly partly wrong.
@alteriks is the only one in this thread who was able to run aarch64 with an older kernel (linux-raspberrypi4-5.10.76-3-aarch64 to be precise) or while tinkering with dtb files.

I tried it myself and with updated aarch64 the zero2 is stuck at rainbow screen.
dingausmwald
 
Posts: 9
Joined: Fri Nov 10, 2017 2:33 pm

Re: Zero 2 W support

Postby graysky » Tue Nov 16, 2021 8:13 pm

Troubleshooting is tough when you do not have a piece of the hardware in question. I have to rely on users willing to try ***** out. The needed dtb files are currently shipped. You should not need to mess with them unless I misread replies to my questions in this thread.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Rasperry Pi Zero2W Support?

Postby ArchNewbie1 » Tue Nov 16, 2021 9:38 pm

Hello Guys,
I have bought A Rasperry Pi Zero 2W a des dass ago and i want to Install Arch Linux on IT,but I die Not found an Image on the Site.I have Heard that the Pi Zero 2W uses the Same Soc AS the Rpi3,so could I use the Image of the Pi3 in this Case?Thank you for your answers.
ArchNewbie1
 
Posts: 2
Joined: Mon Nov 15, 2021 3:33 pm

Re: Zero 2 W support

Postby graysky » Tue Nov 16, 2021 9:51 pm

MOD NOTE - Merged
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Zero 2 W support

Postby dingausmwald » Tue Nov 16, 2021 11:55 pm

as for the bluetooth problem i found a post at the manjaro forum where they got bluetooth working
https://forum.manjaro.org/t/raspberry-pi-kernels-2-0/84885/149
but i can't figure out how to apply this

i downloaded the BCM43430B0.hcd, renamed it to BCM.hcd and pasted it in /lib/usr/firmware/update/bcrm/
$this->bbcode_second_pass_code('', 'dmesg |grep Blue
[ 11.380160] Bluetooth: Core ver 2.22
[ 11.390878] Bluetooth: HCI device and connection manager initialized
[ 11.393140] Bluetooth: HCI socket layer initialized
[ 11.395327] Bluetooth: L2CAP socket layer initialized
[ 11.397510] Bluetooth: SCO socket layer initialized
[ 11.446622] Bluetooth: HCI UART driver ver 2.3
[ 11.452011] Bluetooth: HCI UART protocol H4 registered
[ 11.461367] Bluetooth: HCI UART protocol BCSP registered
[ 11.464896] Bluetooth: HCI UART protocol LL registered
[ 11.469880] Bluetooth: HCI UART protocol ATH3K registered
[ 11.482388] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 11.484694] Bluetooth: HCI UART protocol Broadcom registered
[ 11.858947] Bluetooth: hci0: BCM: chip id 115
[ 11.861240] Bluetooth: hci0: BCM: features 0x0e
[ 11.864893] Bluetooth: hci0: BCM43430B0
[ 11.866935] Bluetooth: hci0: BCM (002.001.012) build 0000
[ 11.890723] Bluetooth: hci0: BCM 'brcm/BCM.hcd' Patch
[ 13.574588] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 13.575849] Bluetooth: BNEP filters: protocol multicast
[ 13.577060] Bluetooth: BNEP socket layer initialized
[ 13.998187] Bluetooth: hci0: command 0x0a0a tx timeout
[ 22.238193] Bluetooth: hci0: BCM: Patch command 0a0a failed (-110)
[ 22.239583] Bluetooth: hci0: BCM: Patch failed (-110)
[ 24.318180] Bluetooth: hci0: command 0xfc18 tx timeout
[ 32.478192] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[ 34.558146] Bluetooth: hci0: command 0x0c03 tx timeout')
dingausmwald
 
Posts: 9
Joined: Fri Nov 10, 2017 2:33 pm

Re: Zero 2 W support

Postby graysky » Wed Nov 17, 2021 11:34 am

$this->bbcode_second_pass_quote('dingausmwald', 'a')s for the bluetooth problem i found a post at the manjaro forum where they got bluetooth working
https://forum.manjaro.org/t/raspberry-pi-kernels-2-0/84885/149
but i can't figure out how to apply this


From the post you referenced, you need to edit /boot/config.txt and add dtparam=krnbt=on as well. I updated our firmware-raspberrypi package so you can remove the file you manually added to /lib/usr/firmware/update/bcrm/. Once the new firmware package builds and hits your mirror, please try it and report back.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Zero 2 W support

Postby dingausmwald » Wed Nov 17, 2021 3:38 pm

Perfect! Bluetooth is up and running. Thank you very much.
dingausmwald
 
Posts: 9
Joined: Fri Nov 10, 2017 2:33 pm

Re: Zero 2 W support

Postby ionspin » Sun Nov 21, 2021 7:27 pm

I am stuck at a different spot. I'm running Zero 2 W headless.

- Fresh install of aarch64 to sdcard
- Connected to Zeros UART

First try no response at all. Then I added this dtb to boot partition https://github.com/raspberrypi/firmware ... zero-2.dtb and got the following boot log over UART:

$this->bbcode_second_pass_code('', '
U-Boot 2021.04-1 (May 27 2021 - 18:44:02 +0000) Arch Linux ARM

DRAM: 448 MiB
RPI: Board rev 0x12 unknown
RPI Unknown model (0x902120)
MMC: mmc@7e202000: 0, mmcnr@7e300000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
starting USB...
Bus usb@7e980000: USB DWC2
scanning bus usb@7e980000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
708 bytes read in 2 ms (345.7 KiB/s)
## Executing script at 02c00000
39852544 bytes read in 1648 ms (23.1 MiB/s)
Failed to load '/dtbs/broadcom/bcm283x-rpi-other.dtb'
SCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@7e202000.blk...
Card did not respond to voltage select! : -110
Scanning disk mmcnr@7e300000.blk...
Disk mmcnr@7e300000.blk not ready
Found 3 disks
Missing RNG device for EFI_RNG_PROTOCOL
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Card did not respond to voltage select! : -110

Device 0: unknown device
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-bcm283x-rpi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-bcm283x
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
U-Boot>
')

Looking at https://source.denx.de/u-boot/u-boot/-/ ... /rpi/rpi.c it seems that Zero 2 W is not in the list of known revision codes and therefore it tries to load /dtbs/broadcom/bcm283x-rpi-other.dtb.

@alteriks could you please share what you did with dtb files to get aarch64 to boot?
ionspin
 
Posts: 4
Joined: Sun Nov 21, 2021 7:05 pm

Re: Zero 2 W support

Postby dingausmwald » Sun Nov 21, 2021 7:52 pm

@ionspin

that's exactly what i did some days ago, with the exact same output.
Just to be clear, i used the rpi-aarch64-latest image. Not the aarch64-latest. But i guess you did too.
Would be great if @alteriks could share his magic so @graysky could push an update like for the bluetooth.
dingausmwald
 
Posts: 9
Joined: Fri Nov 10, 2017 2:33 pm

Re: Zero 2 W support

Postby graysky » Sun Nov 21, 2021 8:43 pm

Kevin refreshed the images a few days ago. If I understand this thread correctly, it should just work.

http://il.us.mirror.archlinuxarm.org/os ... est.tar.gz
or
http://il.us.mirror.archlinuxarm.org/os ... est.tar.gz

First try 64-bit since I thought that is what I understand works. I do not have the hardware so I cannot.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 11 guests