2024-12-14 03:05 AM
I was going through the "Modify, rebuild and reload the Linux® kernel" section of the getting started guide for the STM32MP157x-DK2 board:
https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel
and when I ran the command "scp -r install_artifact/lib/modules/* root@<ip of board>:/lib/modules" with the ip address of my board I got the following output at the end:
Makefile 100% 669 133.5KB/s 00:00
poly1305-mips.pl 100% 24KB 1.6MB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl" to "/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl" failed
chacha-glue.c 100% 4193 344.2KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/arch/mips/crypto/chacha-glue.c": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/arch/mips/crypto/chacha-glue.c" to "/lib/modules/6.6.48/build/source/arch/mips/crypto/chacha-glue.c" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
Kbuild 100% 655 105.9KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/arch/mips/Kbuild": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/arch/mips/Kbuild" to "/lib/modules/6.6.48/build/source/arch/mips/Kbuild" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
MAINTAINERS 35% 255KB 1.4MB/s 00:00 ETA
scp: write remote "/lib/modules/6.6.48/build/source/MAINTAINERS": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/MAINTAINERS" to "/lib/modules/6.6.48/build/source/MAINTAINERS" failed
README 100% 727 151.0KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/README": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/README" to "/lib/modules/6.6.48/build/source/README" failed
Kconfig 100% 555 103.2KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/Kconfig": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/Kconfig" to "/lib/modules/6.6.48/build/source/Kconfig" failed
CODE_OF_CONDUCT.md 100% 3412 351.4KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/CODE_OF_CONDUCT.md": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/CODE_OF_CONDUCT.md" to "/lib/modules/6.6.48/build/source/CODE_OF_CONDUCT.md" failed
.rustfmt.toml 100% 369 82.5KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/.rustfmt.toml": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/.rustfmt.toml" to "/lib/modules/6.6.48/build/source/.rustfmt.toml" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
CREDITS 100% 100KB 1.0MB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/CREDITS": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/CREDITS" to "/lib/modules/6.6.48/build/source/CREDITS" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
.gitattributes 100% 105 23.1KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/.gitattributes": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/.gitattributes" to "/lib/modules/6.6.48/build/source/.gitattributes" failed
scp: stat remote: No such file or directory
Makefile 100% 67KB 933.0KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/Makefile": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/Makefile" to "/lib/modules/6.6.48/build/source/Makefile" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
.get_maintainer.ignore 100% 151 27.2KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/.get_maintainer.ignore": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/.get_maintainer.ignore" to "/lib/modules/6.6.48/build/source/.get_maintainer.ignore" failed
.mailmap 100% 36KB 586.2KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/.mailmap": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/.mailmap" to "/lib/modules/6.6.48/build/source/.mailmap" failed
.cocciconfig 100% 59 12.8KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/.cocciconfig": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/.cocciconfig" to "/lib/modules/6.6.48/build/source/.cocciconfig" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
Kbuild 100% 2573 464.7KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/source/Kbuild": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/source/Kbuild" to "/lib/modules/6.6.48/build/source/Kbuild" failed
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
scp: stat remote: No such file or directory
.modules.builtin.modinfo.cmd 100% 124 22.9KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/.modules.builtin.modinfo.cmd": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/.modules.builtin.modinfo.cmd" to "/lib/modules/6.6.48/build/.modules.builtin.modinfo.cmd" failed
scp: stat remote: No such file or directory
.vmlinux.export.c 21% 255KB 1.7MB/s 00:00 ETA
scp: write remote "/lib/modules/6.6.48/build/.vmlinux.export.c": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/.vmlinux.export.c" to "/lib/modules/6.6.48/build/.vmlinux.export.c" failed
..vmlinux.objs.cmd 100% 143 31.2KB/s 00:00
scp: write remote "/lib/modules/6.6.48/build/..vmlinux.objs.cmd": Failure
scp: upload "install_artifact/lib/modules/6.6.48/build/..vmlinux.objs.cmd" to "/lib/modules/6.6.48/build/..vmlinux.objs.cmd" failed
modules.alias 100% 167KB 1.3MB/s 00:00
scp: write remote "/lib/modules/6.6.48/modules.alias": Failure
scp: upload "install_artifact/lib/modules/6.6.48/modules.alias" to "/lib/modules/6.6.48/modules.alias" failed
modules.symbols.bin 100% 162KB 1.3MB/s 00:00
scp: write remote "/lib/modules/6.6.48/modules.symbols.bin": Failure
scp: upload "install_artifact/lib/modules/6.6.48/modules.symbols.bin" to "/lib/modules/6.6.48/modules.symbols.bin" failed
modules.softdep 100% 336 42.8KB/s 00:00
scp: write remote "/lib/modules/6.6.48/modules.softdep": Failure
scp: upload "install_artifact/lib/modules/6.6.48/modules.softdep" to "/lib/modules/6.6.48/modules.softdep" failed
scp: failed to upload directory install_artifact/lib/modules/6.6.48 to /lib/modules
And it looks like it has failed so I'd like to know if it is safe to continue the tutorial where I'm supposed to run
/sbin/depmod -a
and then
sync
Or will this brick my board?
2024-12-14 03:39 AM
Update: I ran the following command from my host PC
ssh root@<ip of board>
then
apt update
And got the following output
The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.
Get:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease [3461 B]
Ign:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease
Get:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease [3461 B]
Ign:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease
Get:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease [3461 B]
Ign:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease
Get:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease [3461 B]
Err:1 http://packages.openstlinux.st.com/5.0 mickledore InRelease
Error writing to file - write (28: No space left on device) [IP: 52.219.170.4 80]
Reading package lists... Error!
W: Failed to fetch http://packages.openstlinux.st.com/5.0/dists/mickledore/InRelease Error writing to file - write (28: No space left on device) [IP: 52.219.170.4 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
So I guess this is what caused the issue. Has anyone got any suggestions on how to resolve this?
2024-12-14 03:47 AM
When I run
df -h
I get the following output
Filesystem Size Used Avail Use% Mounted on
devtmpfs 159M 0 159M 0% /dev
/dev/mmcblk0p10 3.8G 3.8G 0 100% /
tmpfs 195M 0 195M 0% /dev/shm
tmpfs 78M 9.9M 68M 13% /run
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
tmpfs 195M 0 195M 0% /tmp
/dev/mmcblk0p8 55M 21M 31M 41% /boot
/dev/mmcblk0p9 14M 6.3M 6.4M 50% /vendor
tmpfs 195M 92K 195M 1% /var/volatile
/dev/mmcblk0p11 11G 45M 9.5G 1% /usr/local
tmpfs 39M 4.0K 39M 1% /run/user/1000
tmpfs 39M 0 39M 0% /run/user/0
So it seems like /dev/mmcblk0p10 is full but I don't know what to delete to remedy the issue. I don't think I've done much of anything on the device before running the tutorial that would use up any space on the device and there is /dev/mmcblk0p11 which has 9.5G free but I don't know what I can move over to that drive that won't risk compromising the dev kit.