public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
@ 2022-11-19 10:11 cp0613
  2022-11-19 10:21 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: cp0613 @ 2022-11-19 10:11 UTC (permalink / raw)
  To: openembedded-core; +Cc: Chen Pei

From: Chen Pei <cp0613@linux.alibaba.com>

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
 meta/recipes-devtools/rust/rust-snapshot.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc
index 2f9cdb9566..491c022a36 100644
--- a/meta/recipes-devtools/rust/rust-snapshot.inc
+++ b/meta/recipes-devtools/rust/rust-snapshot.inc
@@ -21,6 +21,10 @@ SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "ef697469b2a3ea8897f49b70e3be
 SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "11630fc51fffe722e52f649357b5948c24b5305cfb61a8114527234e054451c4"
 SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "ba7188b2c7890e61bf58d3aa9e94c323fec375f67cf03841bbcc0f6c800fe6ad"
 
+SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "284b09a96d4cdbb96827914a318f9c41e2b207c0afeae76b9f0e3830d2ef2d4d"
+SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "5f3e69a185c7246773948ac97c053cf135d81ffdbf926d10a3339de93424f26b"
+SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "b94e262dec82b7cacf3baa77f35601c82d389ad338d118b42da4d23e26240760"
+
 SRC_URI += " \
     https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
     https://static.rust-lang.org/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [OE-core] [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-19 10:11 [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains cp0613
@ 2022-11-19 10:21 ` Alexander Kanavin
  2022-11-19 12:51   ` cp0613
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2022-11-19 10:21 UTC (permalink / raw)
  To: cp0613; +Cc: openembedded-core

I do have to ask, what kind of hardware are you using? Riscv64 systems
tend to be seen as something akin to raspberry pi, but if building
rust (which takes at least ten minutes on a 2x64 core x86 server) is
now feasible, I'd like to know how :)

Alex

On Sat, 19 Nov 2022 at 11:11, cp0613 <cp0613@linux.alibaba.com> wrote:
>
> From: Chen Pei <cp0613@linux.alibaba.com>
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
> ---
>  meta/recipes-devtools/rust/rust-snapshot.inc | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc
> index 2f9cdb9566..491c022a36 100644
> --- a/meta/recipes-devtools/rust/rust-snapshot.inc
> +++ b/meta/recipes-devtools/rust/rust-snapshot.inc
> @@ -21,6 +21,10 @@ SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "ef697469b2a3ea8897f49b70e3be
>  SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "11630fc51fffe722e52f649357b5948c24b5305cfb61a8114527234e054451c4"
>  SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "ba7188b2c7890e61bf58d3aa9e94c323fec375f67cf03841bbcc0f6c800fe6ad"
>
> +SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "284b09a96d4cdbb96827914a318f9c41e2b207c0afeae76b9f0e3830d2ef2d4d"
> +SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "5f3e69a185c7246773948ac97c053cf135d81ffdbf926d10a3339de93424f26b"
> +SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "b94e262dec82b7cacf3baa77f35601c82d389ad338d118b42da4d23e26240760"
> +
>  SRC_URI += " \
>      https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
>      https://static.rust-lang.org/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173513): https://lists.openembedded.org/g/openembedded-core/message/173513
> Mute This Topic: https://lists.openembedded.org/mt/95130600/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-19 10:21 ` [OE-core] " Alexander Kanavin
@ 2022-11-19 12:51   ` cp0613
  2022-11-20 10:49     ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: cp0613 @ 2022-11-19 12:51 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

I am using a high performance riscv64 SOC TH1520, an example of the Wujian 600’s platform released by T-Head. You can find more information from:
https://riscv.org/blog/2022/08/alibaba-cloud-unveils-chip-development-platform-to-support-developers-with-risc-v-based-high-performance-socs-alibaba-cloud/
Thanks.

[-- Attachment #2: Type: text/html, Size: 553 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core] [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-19 12:51   ` cp0613
@ 2022-11-20 10:49     ` Alexander Kanavin
  2022-11-21  1:40       ` cp0613
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2022-11-20 10:49 UTC (permalink / raw)
  To: cp0613; +Cc: openembedded-core

Right, but are you actually running bitbake on this board, which
according to the page has only 4 cores? And if you do, what targets
are you building and how long do they take?

Otherwise I am not sure what riscv rust-snapshot is useful for. It
would help if you explain the use case.

Alex

On Sat, 19 Nov 2022 at 13:51, cp0613 <cp0613@linux.alibaba.com> wrote:
>
> I am using a high performance riscv64 SOC TH1520, an example of the Wujian 600’s platform released by T-Head. You can find more information from:
> https://riscv.org/blog/2022/08/alibaba-cloud-unveils-chip-development-platform-to-support-developers-with-risc-v-based-high-performance-socs-alibaba-cloud/
> Thanks.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173516): https://lists.openembedded.org/g/openembedded-core/message/173516
> Mute This Topic: https://lists.openembedded.org/mt/95130600/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-20 10:49     ` [OE-core] " Alexander Kanavin
@ 2022-11-21  1:40       ` cp0613
  2022-11-21 11:08         ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: cp0613 @ 2022-11-21  1:40 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

Yes, now bitbake is running on this board.
The example TH1520 is 4cores, but Wujian 600 supports more cores.
It does take a lot of time to run on this board now, and I don’t see the actual significance at the moment, but I think this is part of the riscv ecology and will play a role in the near future.
Thanks.

[-- Attachment #2: Type: text/html, Size: 366 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core] [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-21  1:40       ` cp0613
@ 2022-11-21 11:08         ` Alexander Kanavin
  2022-11-21 11:17           ` cp0613
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2022-11-21 11:08 UTC (permalink / raw)
  To: cp0613; +Cc: openembedded-core

Yes, but this needs to be of practical use, and not just an experiment
that you ran. I'd rather defer this until there is for example a
broadly available cloud resource where you can run bitbake and get
completion times similar to that of established architectures. Keep in
mind that someone has to update those checksums with each rust upgrade
for example. And test that things work and do not regress.

Alex

On Mon, 21 Nov 2022 at 02:40, cp0613 <cp0613@linux.alibaba.com> wrote:
>
> Yes, now bitbake is running on this board.
> The example TH1520 is 4cores, but Wujian 600 supports more cores.
> It does take a lot of time to run on this board now, and I don’t see the actual significance at the moment, but I think this is part of the riscv ecology and will play a role in the near future.
> Thanks.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173644): https://lists.openembedded.org/g/openembedded-core/message/173644
> Mute This Topic: https://lists.openembedded.org/mt/95130600/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains
  2022-11-21 11:08         ` [OE-core] " Alexander Kanavin
@ 2022-11-21 11:17           ` cp0613
  0 siblings, 0 replies; 7+ messages in thread
From: cp0613 @ 2022-11-21 11:17 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Yes, I agree with your point of view and understand the impact of this,
the current time may not be mature enough,
thanks for your review.

[-- Attachment #2: Type: text/html, Size: 150 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-21 11:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-19 10:11 [meta-oe] [PATCH] rust-snapshot:add riscv64 toolchains cp0613
2022-11-19 10:21 ` [OE-core] " Alexander Kanavin
2022-11-19 12:51   ` cp0613
2022-11-20 10:49     ` [OE-core] " Alexander Kanavin
2022-11-21  1:40       ` cp0613
2022-11-21 11:08         ` [OE-core] " Alexander Kanavin
2022-11-21 11:17           ` cp0613

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox