08-18-2015 06:40 AM
I have a problem with my Petalinux 2015.2 and automounting SD card. I'm working on MicroZed using Vivado 2015.2 and SDK.
This two lines (at booting kernel) really annoys me. But system is booting from SD card properly.
mkdir: can't create directory '/run/media/mmcblk0p1' : No such file or directory mount: mounting /dev/mmcblk0p1 on run/media/mmcblk0p1 failed: No such file or directory
I tried to do some apps with changed Makefile. I had an idea to force creating that path by:
install: $(APP) $(TARGETINST) -d $(APP) /run/media/$(APP)
but it doesn't seem work.
Have you got any idea how to deal with it? I got stuck so I would be grateful for any help..
Thank you in advance,
08-18-2015 06:48 AM
08-19-2015 12:07 AM
I really appreciate your help. I followed yours instructions and it seems that I can create any folder in any directory (for example /bin) except in "/run" folder.
My makefile looks like this:
all: install .PHONY: install install: $(APP) rsync -ar ./up/ $(TARGERDIR)/bin/
and it worked, but if I change path to /run there is no folder at /run on petalinux .
I tried to gave some correct permissions using before my rsync line but it didn't worked too..
-chmod -p 0755 $(TARGETDIR)/run
08-28-2015 04:41 AM
So maybe is there any other ideas how to fix this? Or anyone can tell me if this is normal behavior?
After startup when I try mount SD card I got this message:
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data my be corrupt. Please run fsck.
08-28-2015 05:55 AM
08-30-2015 11:39 PM
thanks for your explanation, I really appreciate it.
As you say I will ignore it. Just wanted to know the cause of this warning and now you've helped me.
08-31-2015 01:08 PM
Apologies, it is actually fsck.fat (not vfat). It comes from the dosfstools package.
I happen to use use Buildroot, where the relevant config option is BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT, but I am pretty certain it should be available in PetaLinux as well.