Luckfox Lyra on PicoCalc

I just tried running frotz, and the code checks if the user is root, and exits if it is.

#ifndef WIN32
    if ((getuid() == 0) || (geteuid() == 0)) {
	printf("I won't run as root!\n");
	exit(1);
    }
#endif

So I guess that would need to be patched out.

I created another (non-root) user and frotz ran fine that way. Since it’s just a terminal program I was able to test it outside of the PicoCalc on the Lyra. :slight_smile:

I am just interested in plugging a usb wifi dongle into the 4 pin usb header on the Lyra and then just tucking that into the case. I have like 6 usb wifi dongles in my part drawer and one of them is the same TP-Link Nano that you have. The cable I have is 30 CM though, so I may have to shorten that up a bit. But if we know that works then I am going to give it try this weekend.

I was planning to tuck it into the case as well. I’d rather not have to solder anything at all, even the cable mod (for the step up), but it sounded like it’s not capable of supplying the necessary power from the batteries alone. Yeah, that Lyra USB adaptor is rather long. But there’s a lot of empty space in the PicoCalc case so it might fit in there even if it’s a bit ridiculous. I’m guessing the wireless signal should be fine through the plastic case.

I might give it a try anyway. Hopefully if it can’t supply the power nothing will go wrong, and it just won’t work. Futher up the thread, with a slightly different wifi dongle that’s also supported, it sounded like the keyboard disconnected and didnt’ work at boot if the dongle was plugged in. But with enough power (via the step up) that didn’t happen. And that dongle only supported wifi. This one supoprts both wifi and bluetooth, but maybe TP-Link made it draw very little power at init. Guess I’ll just have to see…

Can confirm that TP-Link is drawing less than the LP-Link I used before. I still waiting for my screen, then I will make a update video about all the wounderful progress you all have done here.

1000126684

SD card slot on PicoCalc’s mainboard now works.

6 Likes

I gave it a try, but honestly, the performance was underwhelming. It’s not nearly as smooth or stable as I hoped, and setup was more of a hassle than expected. Definitely not ready for regular use yet.

Hi, since you don’t share any particular information, I have to guess.

Currently the system should boot up in 12 seconds after the 2nd boot. If your boot time is much longer than this, check dmesg and look for mmc log. Maybe the sdcard is not compatible with luckfox lyra or current system. I use a pSLC card on lyra. If you expect raspberry pi zero2w level performance, that is unrealistic.
And the screen won’t reach 60fps due to spi bandwidth limit.

Update.img is rockchip’s closed image format. You have to use sd firmware tool from rockchip.

1.6Mb/s ?? Seems incredibly slow !

The sd card slot on picocalc’s mainboard only supports spi mode. I set the spi max freq to 40Mhz in dts. The write speed of the lexar sd card is about 2.3MB/s.

The tf card slot on luckfox lyra supports sdio mode. The max bus freq is 52Mhz in dts. The write speed of mkfounder’s pslc card is about 21MB/s

The new image is uploaded. mmcblk3 is the sd card slot on PicoCalc.
Right shift key is mouse mode toggle key in new kbd driver. Arrow keys control mouse move and square bracket keys control mouse button.
Mouse mode should be useful in pico8 editor.

6 Likes

Hmmmm will someone ever manage to get MMbasic running on the Lyra ?. Should be even faster than a Pico2 ?

I would not see why MMBasic could not be compiled for this Lyra build, as long as all the build tools are all there.

The Linux build should theoretically be a good starting point and may just build and work. I don’t think anyone has tried yet. Of course it wouldn’t have the PicoMite extras like GPIO support, etc. since it’s meant for desktop platforms. Also, it wouldn’t have any online access since the WebMite code is all Pico focused. Someone would need to implement all that from scratch in MMBasic for Linux.

So it wouldn’t really be taking advantage of the hardware completely. And depending on what it was you were trying to do, there may be some other open source application that uses SDL that could just be built for the Lyra.

Once more people receive their PicoCalcs and more experiment with the Lyra, I’d expect to see a lot more ported to it. Right now it’s very early days and we’re lucky @hisptoot has been working on making it such a nice usable platform.

I bet in 6 months or so we’ll see all kinds of cool stuff running on it. Some of it will be for the cool/wow factor even if it’s not very practical to use. I’m guessing things like gaming emulators would fall into that category. While it should be capable enough there are far better device form factors and control input for those sorts of things. Calculator emulators might be an exception though, as they (HP48GX, TI, etc) could really shine on this device. Seems like it could also be a more portable uConsoke like device for mostly terminal/shell stuff or lightweight utilities, diagnostics, etc. And the experiments with LoRa with other hardware look interesting and useful too. I’m curious if anyone will manage to pair something like the Heltec with the Lyra as has already been done with the Pico.

I started developing SDL2 stuff in C on the Lyra using the picocalc keyboard and it’s not as bad as I expected. vim + gcc works great, and relevant headers are installed. The speed is pretty good even though the screen is not full throttle.

3 Likes

Is there any reason to get the 256mb flash version?

And has anyone found a source for these in the US?

any try a 3.3v RTL8723BU wifi usb board on this? like this one. https://www.aliexpress.us/item/2251832780485233.html

1 Like

You can run MMBasic for Linux if you want to.

1 Like

Mame 0.37 via libretro/picoarch works !
Mame on picocalc

So far i compiled and tested this libretro, all seem to work well

beetle-pce-fast_libretro.so
fceumm_libretro.so
gambatte_libretro.so
mame2000_libretro.so
smsplus-gx_libretro.so
snes9x2005_libretro.so
bluemsx_libretro.so
fmsx_libretro.so
gme_libretro.so
quicknes_libretro.so
snes9x2002_libretro.so
stella2014_libretro.so

5 Likes

No access to I/O though apparently..

I asked the guy who did a YouTube video on the several boards that could work on the Pico calc, and he said he used the basic LuckFox Lyra board.