-
Notifications
You must be signed in to change notification settings - Fork 24
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
SDK 2.0 compatibility #45
Comments
@boozook tells me he's going to take a look at the build and linking issues. On the subject of picking an SDK, I'd recommend just switching to 2.0 to start, and back-fit a 1.0 switch if there's anyone ends up needing it. |
Same Issue for me. We're unable to test on the device because latest released OS version is 1.13.7 without new loader. We just can hope :))
I'll try to get "normal execution" of new build (for new loader with relloc support) on the rev1 device with OS 1.13.7 on board to get message like "The Playdate OS is too old to run this game". |
Update. My test "foo" binary contains the following...I'm sure it should work because now in linker-map
🤷♂️ |
One more update. I've compiled one of examples in the SDK/C_API/Examples... |
@boozook Interesting - I was able to get the expected "Update Needed" message on my 1.13.7 device. I just unpacked the 2.0 beta2 SDK to my Two things surprised me, though - the pdx had no ELF relocations file, and it ran on both 1.x and 2.x simulators, which I didn't think was supposed to work. I'd have to guess that the simulator is special-cased to run 1.x and 2.x games. |
@boozook Do you think there's any way others could help with your investigation? I'm not experienced in this area, but I'm worried about the SDK 2 release obsoleting all crankstart games, so I'd like to do what I can! |
Panic just announced that SDK 2.0 is going live in a few days, on June 12th, 2023. They make it easy to update, so most users will probably do so quickly, and then crankstart games will no longer work. We definitely need to figure this out. |
Has anyone shipped a game using crankstart? |
I'm not sure, but I'd like to. I've spent a long time on mine, and I'd be quite sad to have to rebuild it in Lua. |
I have an MVP-like build script "rust build executable bin then give it to pdc". I not sure that it works, so I just need to test it with latest beta. Or better test on real hardware, I have one, but so have to wait OS 2.0 release. 🤷🏻♂️ |
Nice, thank you!! If you're interested, they requested beta testers for new releases, and you obviously have a very good case. You might be able to try 2.0 on-device sooner. https://devforum.play.date/t/now-accepting-applications-for-beta-testers/11123 |
@tjkirch thank you, I didn’t know that.
|
I'm working on it... 😐 |
Here's what I've figured out so far in terms of the 0x0: constant (everything after this is compressed) .text section contents |
Sad news for now. I tried really many options and didn't understand where I was wrong. So I have no idea for now. There is dummy isolated example (/playground). @scratchminer, @tjkirch, do you have any ideas. Seems to I need help. |
Hm... Probably I have another option. Tomorrow I'll try to use only gcc linking. Will see... |
Okay. Almost all my previous solutions did not works because of bug in the pdc. |
Status update:
UPD: For |
Probably I'm done. |
Also we're need some validity tests for produced output to detect regression on future changes. |
I need feedback to merge crank#42. |
I would close this because there's a latest fix in #48. |
Panic sent out this email about the upcoming SDK 2.0 update, which links to this detail page.
I tested my simple crankstart-based game with SDK 2.0 - it ran fine in the simulator, but it crashes on my Playdate, saying
CAPI handler function wasn't located in loaded data
. I'm wondering what's required for compatibility.Here are some random thoughts:
pdc
now needs to know about ELF relocations via a pdex.elf file. I don't see it generating one automatically. I'm not knowledgeable in this area; is this a concern, or is Rust doing automatically what Panic suggests in their updated compiler/linker flags? I saw someone mentionemit-relocs
for tock.The text was updated successfully, but these errors were encountered: