Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta: Wish Support bitbake #20

Open
rzr opened this issue Nov 25, 2021 · 2 comments
Open

Meta: Wish Support bitbake #20

rzr opened this issue Nov 25, 2021 · 2 comments

Comments

@rzr
Copy link
Contributor

rzr commented Nov 25, 2021

Hi,
Let me open issue to track related effort to support bitbake,
I have generated a recipe I will share it if you want to test until it's finalized.

Relate-to: #16

Relate-to: https://booting.oniroproject.org/distro/oniro/-/issues/191

rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Nov 25, 2021
This is useful for cargo-bitbake tool

Relate-to: astarte-platform#16
Bug: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Nov 25, 2021
This is useful for cargo-bitbake tool

Relate-to: astarte-platform#16
Bug: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Nov 29, 2021
This is useful for cargo-bitbake tool

Relate-to: astarte-platform#16
Bug: astarte-platform#20
Forwarded: astarte-platform#21
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Nov 29, 2021
This is useful for cargo-bitbake tool

Relate-to: astarte-platform#16
Bug: astarte-platform#20
Forwarded: astarte-platform#21
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Dec 1, 2021
This file has been generated using:
cargo bitbake

It might be commited into meta-rust

Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
@rzr
Copy link
Contributor Author

rzr commented Dec 1, 2021

Hi,
I have shared a recipe above, but it depends on other changes I am currently upstreaming:

Origin: openembedded/openembedded-core@6cd2cf6
Relate-to: libunwind/libunwind#312
Relate-to: https://booting.oniroproject.org/distro/oniro/-/issues/191
Forwarded: https://lists.openembedded.org/g/openembedded-core/message/158932

Fell free to reach me if you want to know more about status, some help will be also needed to use the cloud example.

I am not sure I used the right variables in:

RUST_BACKTRACE=1 cargo run --example simple -- --credentials-secret $credentialssecret --device-id $deviceid --pairing-url $pairingurl --realm $realm

astarte-oniro

rzr pushed a commit to abandonware/openembedded-core that referenced this issue Dec 1, 2021
[Khem Raj]
defaults for gcc is to use -fno-common this ensures that it keeps
building with gcc -fno-common

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

[Philippe Coval]

Change and related patch ported to dunfell branch on 1.3.1 version

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Origin: openembedded@6cd2cf6
Relate-to: libunwind/libunwind#312
Relate-to: https://booting.oniroproject.org/distro/oniro/-/issues/191
Change-Id: If34ea06e365f57b6007e9ea3da8d9d716e4b01cc
Forwarded: https://lists.openembedded.org/g/openembedded-core/message/158932
Last-Update: 2021-11-25
Relate-to: astarte-platform/astarte-device-sdk-rust#20
Signed-off-by: Philippe Coval <[email protected]>
rzr pushed a commit to abandonware/openembedded-core that referenced this issue Dec 6, 2021
[Khem Raj]
defaults for gcc is to use -fno-common this ensures that it keeps
building with gcc -fno-common

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

[Philippe Coval]

Change and related patch ported to dunfell branch on 1.3.1 version

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Origin: openembedded@6cd2cf6
Relate-to: libunwind/libunwind#312
Relate-to: https://booting.oniroproject.org/distro/oniro/-/issues/191
Change-Id: If34ea06e365f57b6007e9ea3da8d9d716e4b01cc
Forwarded: https://lists.openembedded.org/g/openembedded-core/message/158932
Last-Update: 2021-11-25
Relate-to: astarte-platform/astarte-device-sdk-rust#20
Relate-to: YoeDistro#1
Signed-off-by: Philippe Coval <[email protected]>
rzr pushed a commit to abandonware/openembedded-core that referenced this issue Dec 7, 2021
[Khem Raj]
defaults for gcc is to use -fno-common this ensures that it keeps
building with gcc -fno-common

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

[Philippe Coval]

Change and related patch ported to dunfell branch on 1.3.1 version

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Origin: openembedded@6cd2cf6
Relate-to: libunwind/libunwind#312
Relate-to: https://booting.oniroproject.org/distro/oniro/-/issues/191
Change-Id: If34ea06e365f57b6007e9ea3da8d9d716e4b01cc
Forwarded: https://lists.openembedded.org/g/openembedded-core/message/158932
Last-Update: 2021-11-25
Relate-to: astarte-platform/astarte-device-sdk-rust#20
Relate-to: YoeDistro#1
Relate-to: https://lists.openembedded.org/g/openembedded-core/message/159140?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Ccoval%2C20%2C2%2C0%2C87483217
Signed-off-by: Philippe Coval <[email protected]>
@rzr
Copy link
Contributor Author

rzr commented Jan 15, 2022

After configured interfaces at cloud side , i am able to see some activities:

astarte-cloud

Next, it would be nice to make a shared lib that can be used from non rust programs too, what do you think of this idea ?

More to come at fosdem:

Oniro:

  - An Eclipse Foundation project driven by working group
  - Open source distributed operating system
    - Targeting IoT devices
    - Defragment development for embedded sys
  - Same build system (bitbake) for different kernels
  - Device RUST sdk can be integrated as a bitbake recipe
    - https://github.com/astarte-platform/astarte-device-sdk-rust/issues/20
  - Astarte has been packaged using "bibtake cargo" 
    - Will support oniro next release "goofy" (on yocto Kirkstone branch)
      - Feedback welcome:
      - https://booting.oniroproject.org/distro/oniro/-/issues/191
  - Visit FOSDEM2022's Oniro Stand:
   - https://fosdem.org/2022/schedule/event/welcome_oniro/      



Pictures:

https://user-images.githubusercontent.com/89133/149566215-2bc1a3b1-5003-4b28-b01c-dc718eeaba4d.png

https://user-images.githubusercontent.com/89133/149620560-f164a0c2-11f3-4cbf-9f64-fc863005807b.png

https://gitlab.eclipse.org/groups/eclipse-wg/oniro-wg/proposal-incubation-stage-oniro/-/wikis/uploads/bc7f535040a90db19f9267913180a083/ONIRO-Masterbrand-vertical.svg.png

rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Jan 15, 2022
My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record here is is the observed error:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Jan 15, 2022
My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record the observed error was:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Forwarded: astarte-platform#31
Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Jan 18, 2022
Using officla rust's docker image as base.

For the record it can be rebased on ubuntu:21.10
(and cargo should be added to base packages)

My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record the observed error was:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Forwarded: astarte-platform#31
Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Jan 24, 2022
Using official rust's docker image as base.

For the record it can be rebased on ubuntu:21.10
(and cargo should be added to base packages)

My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record the observed error was:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Install example is needed because there is no default installation rule:

  error: there is nothing to install in `astarte_sdk v0.1.0 (/local/src/astarte-device-sdk-rust)`, because it has no binaries

Forwarded: astarte-platform#31
Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Feb 28, 2022
Using official rust's docker image as base.

Usage is straight forward:

```
    docker run astarte-device-sdk-rust:latest run --example simple -- \
	   --credentials-secret $credentialssecret \
	   --device-id $deviceid \
	   --pairing-url $pairingurl \
	   --realm $realm
```

For the record it can be rebased on ubuntu:21.10
(and cargo should be added to base packages)

My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record the observed error was:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Install example is needed because there is no default installation rule:

  error: there is nothing to install in `astarte_sdk v0.1.0 (/local/src/astarte-device-sdk-rust)`, because it has no binaries

Forwarded: astarte-platform#31
Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
rzr added a commit to CrossStream/astarte-device-sdk-rust that referenced this issue Feb 28, 2022
Using official rust's docker image as base.

Usage is straight forward:

```
    docker run astarte-device-sdk-rust:latest run --example simple -- \
	   --credentials-secret $credentialssecret \
	   --device-id $deviceid \
	   --pairing-url $pairingurl \
	   --realm $realm
```

For the record it can be rebased on ubuntu:21.10
(and cargo should be added to base packages)

My distro RUST setup is not running it out of the box
so I used a more recent one.

For the record the observed error was:

  error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
  -> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32

Install example is needed because there is no default installation rule:

  error: there is nothing to install in `astarte_sdk v0.1.0 (/local/src/astarte-device-sdk-rust)`, because it has no binaries

Forwarded: astarte-platform#31
Relate-to: astarte-platform#20
Signed-off-by: Philippe Coval <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant