-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cross architecture use of kernel snapshots doesn't match documentation #50644
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
Comments
It works for me:
Are you sure you copied the right file to the D1? It's strange that your invocation of |
My apologies, I just re-downloaded the SDK dev channel riscv64 zipfile from dart.dev and used it on my D1 board and it does work fine now and the timestamp in the version matches too:
So I think I must have downloaded an earlier build of Also @rmacnak-google thanks for the tip to use qemu, that will make testing some things a bit easier vs needing to use my actual risc-v D1 devboard. Sorry about the false alarm. |
This is the third time this week that someone has gotten confused over -444.0.dev and -440.0.dev, which |
ah yes you are spot on @whesse ! I can't believe I posted here twice and didn't spot the difference in version numbers until you pointed it out! As you say they look so similar, its really easy to them confused. |
@rmacnak-google apologies for posting on a closed issue, but I got a bit stuck trying to replicate the use of the Qemu commands in your prior comment. I'm not super familiar with Qemu, so I've learnt that you are using the user mode emulation of Qemu which I got installed on Ubuntu via the apt package |
I believe I got those through some transitive dependency of the |
perfect thanks again @rmacnak-google ! I've got it up and working now 👍🏻 |
According to the wiki documentation here compiling a kernel snapshot like so:
should produce a snapshot that is:
Yet when I do the above on a x86 laptop:
then copy across the resulting file and try to run it on a RISC-V D1, I get an error:
Note above that as far as I can see I am using the same version of the Dart SDK on both machines.
The reason I'm attempting to do this is due to #49253 being too slow to do Dart development on-device.
What I'd like to do is essentially replicate the Flutter development model of compiling snapshots on my (fast) development laptop and then copying them across and hot-reloading (or even hot-restarting) the snapshot on the (slow) RISC-V machine, but with a Dart cli application rather than Flutter.
The text was updated successfully, but these errors were encountered: