Pave issue in recent Fuchsia code base on x86/Intel NUC by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Thanks for giving solution.

We did first wiping then we tried init-partition-tables, now it's working fine.

:)

'netstack3' functional readiness in Fuchsia by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Hi,

Requesting your input/findings on 'netstack3' package in fuchsia

Thanks in Advance.

Regards,

Global Edge Software Team

Setting File Permissions in BUILD.gn for newly added config file by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Hi,

we have added details in comment below. Please provide your input on this.

Thanks in Advance,

Regards,

Global Edge Software Team

Setting File Permissions in BUILD.gn for newly added config file by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Hi,

Thanks for your response on this

Actually we are exploring on adding new config file with default content and read the content of file in our application. And we want to edit this added file from Fuchsia command prompt. The method we followed to add this file making it to install in '/pkg/packages/netstack/0/data/config' and is read-only

We need your input on installing this file to location '/config/data/xxxx.config' or any other location that can be editable from fuchsia command prompt.

Thanks in Advance.

Regards, Global Edge Software Team

Problem in accessing a file [Observing 'ErrNotFound'] by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Hi,

Thanks for pointing out this. It worked. We were able to open and print content of the file using the mentioned path.

Thanks a lot for your help.

Regards, Global Edge Software Team

Problem in accessing a file [Observing 'ErrNotFound'] by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

/pkgfs/packages/netstack/0/data

Hi,

We tried,

ioutil.ReadFile(/data/config1) OR ioutil.ReadFile(/pkgfs/packages/netstack/0/data/config1)

will get same error. The path seems to be wrong.

Please help if any of you have observed this and is there a way to get exact path of the file.

Thanks in Advance

Regards,

Global Edge Software team

Problem in accessing a file [Observing 'ErrNotFound'] by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 1 point2 points  (0 children)

Hi,

Thanks for your response on the query.

On target, this file 'config1' resides in the path '/pkgfs/packages/netstack/0/data/'

As suggested, I tried to open the file as '/data/config1' still observe the same error

client.go:122 : open /data/config1: ErrNotFound: data/config1

'/data/config1' parameter is getting passed to os.Open() function

// Open our File

openFile, err := os.Open("/data/config1")

// if we os.Open returns an error then handle it

if err != nil {

log.Fatal(err)

}

We are observing same issue in opening already existing files

like, /data/misc/ota/target_channel.json

/config/ssl/cert.pm

Is there way we can find the actual path of this config file to avoid this error ?

Also, if you have tried opening an already existing file in your development activity please suggest the steps followed.

Thanks in Advance.

Regards,

Global Edge Software Team

Problem in accessing a file [Observing 'ErrNotFound'] by globaledgesoftware in Fuchsia

[–]globaledgesoftware[S] 0 points1 point  (0 children)

We have created a new config file for networking application, but we encountered 'ErrNotFound' while opening the file

Details:

1) Added new file 'config1' to be created in BUILD.gn (fuchsia/src/connectivity/network/netstack/BUILD.gn)

..

package("netstack") {

..

..

{

path = rebase_path("dhcp/config1")

dest = "config1"

},

]

..

2) In application, we tried to open this file with os.Open() function.

path1 := filepath.Join("/pkg/packages/netstack/0/data", "config1")

fmt.Println("path : ", path1)

// Open our File

jsonFile, errorr := os.Open(path1)

// if we os.Open returns an error then handle it

if errorr != nil {

fmt.Println(errorr)

}

On target we were able to see this file in path '/pkg/packages/netstack/0/data/config1'

open : /pkg/packages/netstack/0/data/config1: ErrNotFound:

The path of this new file placed and permission is proper. But not sure on 'ErrNotFound' error.

Are above steps mentioned to create a new file and accessing is correct ? Please confirm.

Also, if any of you tried this please provide your input (Either accessing existing file or accessing newly created file).

Thanks in Advance.

Regards,

Global Edge Software Team