Luckfox Lyra on PicoCalc

finally got hisptoot’s buildroot to build after many failures.
how to add our own apps to it ?
even after trying some 5 to 6 wifi dongles, wifi is still not working.

2 Likes

I have to commend you on this, every time I sit down to sort it out, after about 20 minutes, I decide this is not a project I want to take on. However, someone needs to document the process, because hisptoot never bothered to and he has not posted in this topic since April.

1 Like

the key to the whole process is having a new user as “luckfox” and naming your sdk folder inline with what his script expects. the rest are just copy to the right folders and merger. Another important lesson was to use ubuntu 22.04 as python2 is a key requirement. Rest is completely automated.

2 Likes

This the last version he has published.


Fontsize is in
/root/.fbtermrc/

[edit]
You cannot scroll the terminal .. not complete true. Man page says shift Page-Up and Page-Down, but I have failed to find this keys on the keyboard ..

But here are the keys for fterm:(you can generate multiple screens, that is something i was not aware)
keyboard: CTRL_ALT_E: exit from FbTerm
CTRL_ALT_C: create a new window
CTRL_ALT_D: destroy current window
CTRL_ALT_1: switch to window 1
CTRL_ALT_2: switch to window 2
CTRL_ALT_3: switch to window 3
CTRL_ALT_4: switch to window 4
CTRL_ALT_5: switch to window 5
CTRL_ALT_6: switch to window 6
CTRL_ALT_7: switch to window 7
CTRL_ALT_8: switch to window 8
CTRL_ALT_9: switch to window 9
CTRL_ALT_0: switch to window 10
SHIFT_LEFT: switch to previous window
SHIFT_RIGHT: switch to next window
SHIFT_PAGEUP: history scroll up
SHIFT_PAGEDOWN: history scroll down
CTRL_ALT_F1: switch to encoding of current locale
CTRL_ALT_F2 to CTRL_ALT_F6: switch to additional encodings
CTRL_SPACE: toggle input method
CTRL_ALT_K: kill input method server

Thanks Michael!
Is not the most elegant solution, but if you use this after a command :

| less

I.e.

ls | less

You kind of can scroll in terminal, is not the best but its the only workaround I could find as PgUp and PgDown are not in the keyboard (maybe if the keyboard firmware is updated :thinking:?)

Regarding the font if I nano it its an empty file… maybe I need to update the os version to latest

1 Like

I haven’t tried this on the Lyra, but you may want to try pressing Shift + Up Arrow for Page Up and Shift + Down Arrow for Page Down. Also, Shift + Tab send Home and Shift + Del sends End. Weirdly, Shift + Enter also sends Break.

Keyboard mapping came up in the PicoMite code so I went through and added them based on the keyboard firmware and what the MicroPython port was using. Since it’s part of the keyboard firmware I’m guessing those should work on the Lyra too.

Note that the Shift key always sends a key code on the PicoCalc and also modifies the key pressed (if it can be shifted – a few can’t). Normal keyboards don’t do that, so depending on how the keyboard driver in the OS running on the Lyra works, this might cause some weirdness when reading keyboard input from some applications. Most will probably ignore those extra Shift keycodes anyway, but just FYI.

Nothing happens on the Lyra if I press Shitf + Up / Down :frowning:

Does anyone know how i can connect antenna to the wifi of luckfox Lyra board. Or would we need to dismantle the usb wifi dongle and solder to that antenna.

Luckfox Lyra does not have wifi. You’d need to solder an antenna to the dongle if that’s what you want to do (I have seen such hacks but they depend on the dongle model).


perfect

4 Likes

Hello everyone, I ported a new image and didn’t need to modify circuitry to play the sound, and I compiled ratroarch into it. I release it with the SDK, you can use the SDK to compile your own software, you can get the image and SDK on GitHub.

nekocharm/picocalc-luckfox-lyra

3 Likes

I assume this still requires Ubuntu 22.04 with Python2 to build, is this correct?
Does this include the wireless drivers from hisptoot’s image or do I need to integrate those myself?

Nice, I see you have also added the PicoCalc drivers to the SDK Makefile/Kconfig…
I added to PicoCalc menu for a Ubuntu OS version

My PicoCalc is now on the way

I see this is the same for another SDK supporting the Banana Pi BPI-Forge1 (RK3506J) also requires Ubuntu 22.04 and python2

Thanks for your effort!

I’ve tried the image, and indeed sound is working though it is distorted. Noticeable when playing an mp3, or by simply running RetroArch.

Anything I can help with testing, changing some settings?


Update, might be the same issue as with the Hisptoot image, ‘a loud noise using soft pwm’