0

I am having a Raspberry Pi 3b+ (Arch64) device. Generally I run Raspbian 64-bit by using the Rasbian Imager tool to setup my SD card.

I am interested to run Archlinux 64-bit on the same. And following the official guide to set it up from

here

I have successfully setup the SD card by creating the required partitions and Filesystems. I have also updated the /etc/fstab with the correct PARTUUIDs to mount the / and /boot partitions.

Now I have observed that I need to update the /boot/boot.txt appropriately and run ./mkscr command after installing uboot-tools on another running arch64 linux system. Fot this I have used a Archlinux arch64 instance from UTM on MacOS M-series machine.

The question is what to update i the /boot/boot.txt file. Below is the entire /boot/boot.txt file already included in the downloaded tarball:

# After modifying, run ./mkscr # Set root partition to the second partition of boot device part uuid ${devtype} ${devnum}:2 uuid setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /Image; then if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}; else booti ${kernel_addr_r} - ${fdt_addr_r}; fi; fi; fi 

I think I need to update the line:

part uuid ${devtype} ${devnum}:2 uuid

Can anyone suggest what needs to be changed here and does any other file needs to be changed in /boot/ for the system to work?

3
  • What problem do you see? The command part uuid ${devtype} ${devnum}:2 uuid is confusing in that the last argument is an environment variable named uuid and the second argument is the "uuid" sub-command of "part". The effect is to set the uuid environment variable to the partition UUID of partition 2 of devnum, of devtype. If nothing is setting those, you probably need devtype=mmc and devnum=0 or 1.
    – Tom Rini
    CommentedJan 1 at 17:52
  • I am new to uboot, so don't have much idea. Do you mean the updated line should be part uuid mmc 0:2 uuid OR part uuid mmc 0:2 abef12cd-02, where abcef12cd-02 is the part-uuid of the root partition. And on the same note, does that mean, every ${something} is a place holder and I need to replace it with appt. data in boot.txt?
    – Anirban
    CommentedJan 2 at 3:38
  • What I mean is, you're not showing a failure log anywhere. What is the failure you see?
    – Tom Rini
    CommentedJan 3 at 4:33

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.