mount: permission denied (are you root?) when loading from SD card

129 views
Skip to first unread message

Mariam

unread,
Oct 2, 2023, 10:48:49 AM10/2/23
to OpenPiton Discussion
Hello Openpiton Group!

I have tried building a linux image from the following ariane-sdk branches and i still get this error when I boot from SD card.
note: while cloning i had to apply some patches to libfakeroot.c and c-stack,c files as well as cloning pixman from a different source as I had trouble cloning it.



I have even tried building an image using this branch https://github.com/Jbalkind/ariane-sdk/tree/openpiton-opensbi but it keeps getting stuck.

Thank you,
Mariam

Screenshot from 2023-09-25 12-26-27.png
Screenshot from 2023-10-02 12-12-18.png

Jonathan Balkind

unread,
Oct 2, 2023, 1:33:04 PM10/2/23
to OpenPiton Discussion
Hi Mariam,

This is very peculiar. Could you tell me what kind of modifications you've made to openpiton/ariane or to the linux environment?

My immediate guess would be that the rootfs isn't properly being included in the linux+opensbi blob. Perhaps either the build failed for that part and you didn't notice or the rootfs (+linux?) is too large for what is copied by the zsbl. If it's the latter then you can increase the size of the sd_copy inside piton/design/chipset/rv64_bootrom/linux (assuming you're using openpiton-dev). We usually size this up to about 32-64MB just to make life more convenient, though it does lengthen the copying time.

Thanks,
Jon

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/795c790a-85d6-4336-b896-481df36263dfn%40googlegroups.com.

Mariam

unread,
Oct 4, 2023, 12:03:01 AM10/4/23
to OpenPiton Discussion
Hello Jon,

Thank you for the suggestion, I'll implement it and see how it goes.
For the modifications, I have attached a pdf file detailing all the errors I got from the moment I cloned the repo to generating the bbl and the modifications done to fix them.
I have realized that i attached the wrong screenshot as to where the openpiton-opensbi image gets stuck, so I attached it again.

and again thank you so much!

Regards,
Mariam
ariane-sdk.pdf
Screenshot from 2023-10-02 09-32-02.png

Mariam

unread,
Oct 9, 2023, 11:39:52 AM10/9/23
to OpenPiton Discussion
I have managed to solve the issue from this arcane-sdk branch https://github.com/openhwgroup/cva6-sdk/tree/openpiton by replacing the contents of .. /cva6-sdk/buildroot/package/fakeroot with files from https://github.com/buildroot/buildroot/tree/2021.08.x/package/fakeroot not sure if this is the best way to fix it but it works fine for me so far.

I also downloaded this patch https://github.com/buildroot/buildroot/blob/2021.08.x/package/m4/0003-c-stack-stop-using-SIGSTKSZ.patch and placed it inside ../cva6-sdk/buildroot/package/m4

Increasing the sd_copy solved another issue I had when copying the boot image blocks, since my rootfs folder was too large. So thank you Jon for mentioning that!

Regards,
Mariam

Jonathan Balkind

unread,
Oct 9, 2023, 8:40:22 PM10/9/23
to OpenPiton Discussion
Hi Mariam,

This is honestly quite a surprise. I still don't have any intuition for why the issue was occurring for you in the first place. I'm glad you got it resolved though :) Happy to give input if you hit further issues!

Thanks,
Jon

Reply all
Reply to author
Forward
0 new messages