Read only Debian: Getting Started with the STM32MP157


I was able to run Debian following this: Debian: Getting Started with the STM32MP157

But I can’t use apt-get install or apt update and it fails with this error:

debian@arm:~$ sudo apt update
Reading package lists… Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (30: Read-only file system)

How do I change the file system to be able to install packages?

Thank you

HI @samy please share your board’s /etc/fstab, and the output of /proc/cmdline:

cat /etc/fstab
cat /proc/cmdline


Hi @RobertCNelson,

Thanks for your quick response. I am running it on a custom SOM where Bootloader, Kernel and device trees are in internal NAND and only root file system is in SD card. I am using my custom Kernel and device trees, and only mounted your Debian root filesystem.
Here are the outputs:

debian@arm:~$ cat /etc/fstab
debian@arm:~$ cat /proc/cmdline
console=ttySTM0,115200 mtdparts=nand0:512k(fsbl1),512k(fsbl2),512k(metadata1),512k(metadata2),3m(fip-a),3m(fip-b),-(UBI) ubi.mtd=UBI console=ttySTM0,115200 root=/dev/mmcblk1 rootfstype=ext4 mtdparts=nand0:512k(fsbl1),512k(fsbl2),512k(metadata1),512k(metadata2),3m(fip-a),3m(fip-b),-(UBI)

Thank you

What partition did you save the Debian RootFS too?

In /etc/fstab, you’ll need to add the node name:

Normally for this target you’d use:

/dev/mmcblk0p4  /  auto  errors=remount-ro  0  1

But as all the other bits are in NAND, maybe?

/dev/mmcblk0p1  /  auto  errors=remount-ro  0  1

In your boot arg, your passing: root=/dev/mmcblk1 if you used above (/dev/mmcblk0p1) then that should match…


@RobertCNelson that worked! Thank you