Aarch64 image does not boot on compute module 4

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

Aarch64 image does not boot on compute module 4

Postby zekromisblack » Thu Jan 26, 2023 9:41 am

The current Aarch64 image isn't compatible with the compute 4,is this going to be updated or can I do anything to install it?
zekromisblack
 
Posts: 5
Joined: Wed Jan 18, 2023 10:17 am

Re: Aarch64 image does not boot on compute module 4

Postby graysky » Thu Jan 26, 2023 12:38 pm

There are two aarch64 images:
ArchLinuxARM-rpi-aarch64-latest.tar.gz (contains linux-rpi kernel which is RPi Foundation's fork)
ArchLinuxARM-aarch64-latest.tar.gz (contains linux-aarch64 kernel which is vanilla upstream)

Which did you use?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Aarch64 image does not boot on compute module 4

Postby zekromisblack » Fri Jan 27, 2023 9:13 am

ArchLinuxARM-rpi-aarch64-latest.tar.gz iirc
Sorry for late reply
zekromisblack
 
Posts: 5
Joined: Wed Jan 18, 2023 10:17 am

Re: Aarch64 image does not boot on compute module 4

Postby zekromisblack » Fri Jan 27, 2023 9:19 am

After looking at the /boot folder in the archive I noticed it doesn't have the dtb files for the cm4 and adding those files directly from raspi firmware github it fails to boot
zekromisblack
 
Posts: 5
Joined: Wed Jan 18, 2023 10:17 am

Re: Aarch64 image does not boot on compute module 4

Postby graysky » Fri Jan 27, 2023 5:02 pm

You're saying that the rpi image is missing files?

1. Remove the files you manually added.
2. Please try this then try to boot it:
$this->bbcode_second_pass_code('', '# pacman -S linux-rpi raspberrypi-bootloader firmware-raspberrypi')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Aarch64 image does not boot on compute module 4

Postby uhhyeahbret » Sat Jan 28, 2023 10:21 pm

$this->bbcode_second_pass_quote('', '
') Remove the files you manually added.
2. Please try this then try to boot it:
CODE: SELECT ALL
# pacman -S linux-rpi raspberrypi-bootloader firmware-raspberrypi


I'm having issues flashing to a emmc CM4 as well.

When I try to install those packages when bootstrapping the ArchLinuxARM-rpi-aarch64-latest.tar.gz image, I get the following errors:

$this->bbcode_second_pass_code('', '
==> arm: error: unresolvable package conflicts detected
1766
arm: :: linux-rpi and linux-aarch64 are in conflict (linux). Remove linux-aarch64? [y/N]
1767
arm: :: linux-rpi and linux-aarch64 are in conflict
1768
==> arm: error: failed to prepare transaction (conflicting dependencies)
1769
==> arm: error while running provision hook: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]')

The image URL I'm having issues with: http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz

The arm7 rpi image (http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz) works fine.

MOD EDIT: removed ridiculous large image
uhhyeahbret
 
Posts: 12
Joined: Thu Sep 03, 2015 11:10 am

Re: Aarch64 image does not boot on compute module 4

Postby uhhyeahbret » Sun Jan 29, 2023 4:11 am

Ok, I removed the conflicting packages and got it booting, but USB isn't working.
Last edited by uhhyeahbret on Sun Jan 29, 2023 8:32 pm, edited 1 time in total.
uhhyeahbret
 
Posts: 12
Joined: Thu Sep 03, 2015 11:10 am

Re: Aarch64 image does not boot on compute module 4

Postby zekromisblack » Sun Jan 29, 2023 6:52 am

$this->bbcode_second_pass_quote('uhhyeahbret', 'O')k, I removed the conflicting packages and git it booting, but USB isn't working.

Try putting "dtoverlay=dwc2,dr_mode=host" in your config file
zekromisblack
 
Posts: 5
Joined: Wed Jan 18, 2023 10:17 am

Re: Aarch64 image does not boot on compute module 4

Postby graysky » Sun Jan 29, 2023 11:20 am

$this->bbcode_second_pass_quote('zekromisblack', 'T')ry putting "dtoverlay=dwc2,dr_mode=host" in your config file


I never used the CM4... is this a requirement for USB functionality with CM4? From /boot/overlay/README:
$this->bbcode_second_pass_quote('/boot/overlay/README', '
')Name: dwc2
Info: Selects the dwc2 USB controller driver
Load: dtoverlay=dwc2,<param>=<val>
Params: dr_mode Dual role mode: "host", "peripheral" or "otg"

g-rx-fifo-size Size of rx fifo size in gadget mode
g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget mode
My AUR packagesMy zsh configsStreamzap remote config
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000
Top

Re: Aarch64 image does not boot on compute module 4

Postby zekromisblack » Sun Jan 29, 2023 11:53 am

$this->bbcode_second_pass_quote('graysky', '')$this->bbcode_second_pass_quote('zekromisblack', 'T')ry putting "dtoverlay=dwc2,dr_mode=host" in your config file


I never used the CM4... is this a requirement for USB functionality with CM4? From /boot/overlay/README:
$this->bbcode_second_pass_quote('/boot/overlay/README', '
')Name: dwc2
Info: Selects the dwc2 USB controller driver
Load: dtoverlay=dwc2,<param>=<val>
Params: dr_mode Dual role mode: "host", "peripheral" or "otg"

g-rx-fifo-size Size of rx fifo size in gadget mode
g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget mode

Yes it is, applies to all oses on the cm4, it's like it due to "power savings"
zekromisblack
 
Posts: 5
Joined: Wed Jan 18, 2023 10:17 am
Top

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests