Trouble Booting AArch64 Image on Compute Module 4

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

Trouble Booting AArch64 Image on Compute Module 4

Postby Ana_Grace » Wed Sep 06, 2023 11:06 am

I'm currently trying to boot an AArch64 image on a Compute Module 4, but I'm encountering some issues. It seems like the image is not booting as expected, and I'm not sure where the problem lies.Has anyone successfully booted an AArch64 image on a Compute Module 4? If so, could you please share held by credit cardholders any tips or steps that I might be missing? I'd appreciate any guidance on how to get the system up and running.
Thank you in advance for your assistance! Your expertise will be a great help in resolving this booting issue.
Last edited by Ana_Grace on Thu Sep 07, 2023 5:18 am, edited 7 times in total.
Ana_Grace
 
Posts: 1
Joined: Wed Sep 06, 2023 10:55 am

Re: Trouble Booting AArch64 Image on Compute Module 4

Postby graysky » Wed Sep 06, 2023 6:14 pm

Are you using the image containing the linux-aarch64 kernel or linux-rpi kernel? Use the latter.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Trouble Booting AArch64 Image on Compute Module 4

Postby solskogen » Fri Sep 08, 2023 6:28 am

I don't there an image containing the linux-rpi kernel by default. It has to be installed after the fact.
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: Trouble Booting AArch64 Image on Compute Module 4

Postby hossamyazeed » Sun Sep 17, 2023 8:50 pm

i do have same problem , followed this instructionsmake_clickable_callback(MAGIC_URL_FULL, ' ', 'https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4', '', ' class="postlink"') ,
i used this imgmake_clickable_callback(MAGIC_URL_FULL, ' ', 'http://fl.us.mirror.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz', '', ' class="postlink"') .
after few trials i discovred that my SD card because bcm2711-rpi-cm4.dtb was not included in /boot/dtbs/broadcom, i copied the .dtb file from a working armv7 SD Card . now my SD card recognized but i am getting the error below
mmc0: unrecognised SCR structure version 4
mmc0: error -22 whilst initialising SD card
i tried both mmcblk1 & mmcblk0 in root/etc/fstab file did not solve this boot problem.
i replaced the SD card nothing happen
FYI i had zero trouble installing & booting ARMv7 version .
can you please help to solve this problem ?
hossamyazeed
 
Posts: 2
Joined: Sun Sep 17, 2023 8:26 pm

Re: Trouble Booting AArch64 Image on Compute Module 4

Postby hossamyazeed » Mon Sep 18, 2023 7:26 am

i managed to boot successfully ,
1. installed aarch64 as per the official instructions below make_clickable_callback(MAGIC_URL_FULL, '
', 'https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4', '', ' class="postlink"')
2. then i followed this instructions below make_clickable_callback(MAGIC_URL_LOCAL, '
', 'https://archlinuxarm.org/forum', 'viewtopic.php?f=65&t=16463#p71398', ' class="postlink-local"')
""As a summary, as a temporary fix, you have to modify the /boot/boot.txt to replace ${fdt_addr_r} by ${fdt_addr} on the lines beginig by "booti" (2 lines) and then rebuild the boot.scr using the script ./mkscr (also in /boot). This script needs uboot-tools to be installed (and it's not true for a fresh install). No need to modify /etc/fstab (as said by jpnadas)."
3. install apt install u-boot-tools , cd /root/boot ( the location of /boot in your SD card )
4. mkimage -A arm -T script -O linux -d boot.txt boot.scr
reboot with the SD card inserted , it works
edit:
i forgot to mention that i had to copy bcm2711-rpi-cm4.dtb to /boot/dtbs/broadcom, i copied the .dtb file from a working armv7 SD Card
once i booted
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu --noconfirm
hossamyazeed
 
Posts: 2
Joined: Sun Sep 17, 2023 8:26 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests