Luckfox Lyra on PicoCalc

the mx1.25 4pin connector and the USB C port(according to product feature it support OTG mode but so far I didn’t see anyone try to enabled it
) on lyra board get a standard 5V output;

but most “wifi modules” comes with 3.3v,in this case will need another “adapter board” to provide mx1.25 connectors and dc-dc converter 5v
to 3.3v.

since the Lyra board get a 3v3 pin,solder the power line to it directly can save an adapter board.

2 Likes

So, i just compiled it with:

CROSS_COMPILE=‘arm-linux-gnueabihf-’ CFLAGS=‘-mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon -mfloat-abi=hard’ ./configure

The problem is that it only works with glibc. Even when compiled with musl it does not work on calclinux. it trows the sdl 1.2 error :

No available video device.

i would appreciate help on this error.

Kinda fixed it. first i ran the following commands:

unset SDL_VIDEODRIVER
export SDL_NOMOUSE=1 

Now it crashes the shell on exit

What is it you’re trying to compile? Sorry, didn’t see a message about that.

If your program use sdl-1.2 try setting this env vars :

#!/bin/sh
export SDL_VIDEODRIVER="fbcon"
export SDL_FBACCEL=0
export SDL_FBDEV="/dev/fb0"
export SDL_NOMOUSE=1
export SDL_AUDIODRIVER=alsa
1 Like

I was trying to compile PCSXReARMed.

This seems to work, but needs to change the display fullscreen config to on

1 Like

Thanks for the great work on the firmware and instructions - it works great!!!
I even didn’t have to delete the internal flash, it booted from the MicroSD - just worked!

1 Like

What OS do you use on your PicoCalc + Lyra Setup?

  • Calculinux
  • Ubuntu
  • Other (reply)
0 voters

Nice! any way to look at the code/test it? I’m pretty familiar with embedded, and interested to have Upsilon running :slight_smile:

can this Linux firmware Also work with the normal luckfox pico and not just the lyra

no, luckfox pico is nothing like luckfox lyra, not compatible

Regarding Upsilon, here you will find my butchered patches that I built to produce the binary you can found in the PKG repo. I managed to get compiled on picocalc, still fail to cross compile in Yocto.

A lot of work must be done, it’s only a quick hack.

1 Like

Guys Sharing the latest progress I’ve been making on Ubuntu 24.04 on Lyra:

I compiled a Linux Kernel that is compatible with the Ubuntu 24.04 rootfs from @markbirss based on nekocharm’s work (also known as boot.img). The current progress is as follows:

  • Intree LCD driver,performance on the x11 gui has significantly improved; (40fps vs 18.5fps on Picoarch).
  • Fixed the bug that LCD shutted down into blank screen when running Picoarch and ffplay.
  • Graphical Linux logo during startup.
  • SD card slot on PicoCalc now works properly ;(mounting script required)
  • Hardware pwm sound driver in .ko module ;(still based on RMIO12 pin output)
  • Improvements keyboard driver in .ko module;(easy to develope the keyboard driver and no need to recomplite the whole kernel)
  • adb and rndis (with adb, you can directly use the USB cable to enter shell withadb shell,. This feature is very useful when the keyboard driver and Wi-Fi network drivers are not effective. and the adb reboot loader kick the lyraboard into loader mode for flashing firmware is much more convenient than the method of removing backshell then remove and plugin the TF card again for only a firmware update.

【!】Images and the source codes are currently being organized,and will be released later.:face_blowing_a_kiss:

Improvement description for the keyboard driver:

fixed the bug that press [alt + I = alt + insert] (Inherent logical flaw in the firmware)

R_Shift + Enter : Toggle_mouse_mode;

Mouse_Mode

Key Normal L_shift R_shift L_shift + R_shift
Up-Down Mouse_Up-Down Up-Down PageUp-PageDown No respond

Keyboard_Mode

Key Normal L_shift R_shift L_shift + R_shift
Up-Down Up-Down Shift + Up-Down PageUP-PageDown Shift + PageUp-PageDown
---------- --------- ----------------- -------------------- -------------------------
F1~F5 F1~F5 Shift + F1~F5 F6~F10 Shift + F6~F10
Esc-Brk Esc Shift + Esc Break Shift + Break
Tab-Home Tab Shift + Tab Home Shift + Home
Del-End Del Shift + Del End Shift + End
Enter Enter Shift + Enter Switch Mouse_Mode N/A

Show case

the power of apt is really bravo!




videos

boot time:

graphics performance show case:

special thanks

@hisptoot for keyboard & pwm_snd drivers;
@markbirss for the ubuntu 24.04 firmware;
@nekocharm for graphics,sdcard drivers and compilation tutorial

4 Likes

@gurubook, Unfortunately, AliExpress no longer shows me the item. Do you have a product name or a picture?

Mine it’s a generic RTL8188FTV module, it goes 2/3 euro apiece, you will find many searching on AliExpress.

OK, thanks.

Is it a BL-M8188FU Module (rated for 3.3 V)? If so, did you connect all 4 pins to the MX1.25 connector or did you solder Vcc directly to pin 36 for 3.3 Volt?

I ask, because the Vcc pin of the 4-pin MX1.25 connector shows 3.3 V in battery mode, but 5 V when PicoCalc is powered via USB.

I found a USB cable 4P MX1.25 on Aliexpress cut the USB connector, soldered to the module and worked flawlessy, so far nothing had burst into flames.

That’s good to know. Thanks.

My concern was that operating it at 5 to 5.5 volts (while PicoCalc is powered via USB cable) would destroy the module.

According to the specifications, it is designed for 3.3 volts +/- 0.2 volts.

That’s why I asked.

Do you have a photo of your assembly?

@johnlaur, thanks for your work on Calculinux. I just installed it and love having Linux on the PicoCalc.

When I installed Calculinux, I had JackCarterSmith’s firmware installed (v0.8) and I was not able to login to Calculinux, as no keypress was recognized. After returning to the official firmware v1.4 everything was fine.

JackCarterSmith said that the i2c bus shall run with 10 kHz to be on the safe side. Do I have a chance to configure the speed by editing any configuration file? Or do you have any other idea what the problem could be?