# \[WP7605\]\[fopen\] Condition "errno=30" by fopen

**URL:** <https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [March 30, 2023, 7:38am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473 "2023-03-30T07:38:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [March 30, 2023, 7:38am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/1 "2023-03-30T07:38:33Z")

</div>

Question:  
Could you tell me the condition that returned “errno=30” by fopen command?

Back Ground:  
We faced the issue that WP7605 could not save user data inside WP7605 file system.  
In my understanding, “errno=30” means “Read-only file system”.  
However, we did not operate to save userdata to ROM area, so we’re not sure the reason why WP7605 returned “errno=30” by fopen command.

Unfortunately, we could not reproduce this issue in WP devkit, so we would like to know feasibility start for “errno=30”.

Best Regards,  
— Hiroki

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 30, 2023, 8:29am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/2 "2023-03-30T08:29:22Z")

</div>

Where is the file located?  
/tmp folder?  
/home/root folder?

Did you try to create a file in console command in same folder?

---

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [March 30, 2023, 9:14am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/3 "2023-03-30T09:14:46Z")

</div>

Hi, jyijyi  
This is under /tmp folder.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [March 30, 2023, 9:31am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/4 "2023-03-30T09:31:43Z")

</div>

Did you try to create a file in console command in /tmp folder?

E.g. echo 123 \> /tmp/123.txt

Do you find problem after power cycle?

---

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [April 2, 2023, 11:11pm UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/5 "2023-04-02T23:11:01Z")

</div>

Unfortunately, we could not reproduce this issue, we have only kernel log that was happened this issue in the field.

> Do you find problem after power cycle?

Yes, 10+pcs was happened issue and reproduce rate is about 30% after power cycle.

Since we could not reproduce this issue in our side, we want feasibility study of “errno=30” by fopen command.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 3, 2023, 1:07am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/6 "2023-04-03T01:07:37Z")

</div>

Did you try to create a file in console command in /tmp folder when you see fopen() error?

E.g. echo 123 \> /tmp/123.txt

If you create file in /home/root folder which is userapp partition, does problem happen?

---

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [April 6, 2023, 12:49am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/7 "2023-04-06T00:49:57Z")

</div>

Hi, jyijyi

Could you tell me purpose to test by using following command?

E.g. echo 123 \> /tmp/123.txt

In order to explain and negotiate to end-customer, we want to know it.  
I guess you would like to confirm either module issue or operation issue.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 6, 2023, 1:05am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/8 "2023-04-06T01:05:42Z")

</div>

just wanna get more clue, for example:

1. whether this is only happening in linux program but not in console command.
2. whether this is only happening in /tmp (RAM) area but not in /home/root (userapp partition)

BTW, here the forum is just for idea sharing, have you reported this issue to official SWI support channel?

---

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [April 11, 2023, 5:06am UTC](https://forum.legato.io/t/wp7605-fopen-condition-errno-30-by-fopen/6473/9 "2023-04-11T05:06:47Z")

</div>

I created new SFDC#01209311 that I asked feasibility study to show “errno=30” by fopen command.
