# Luckfox Lyra on PicoCalc

**URL:** <https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280>\
**Category:** PicoCalc\
**Tags:** hardware, alternatives, alternative-board\
**Created:** [March 25, 2025, 12:27pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280 "2025-03-25T12:27:50Z")\
**Posts on this page:** 20\
**Page:** 24

<div class="post-metadata">

**Author:** ![michael\_mayer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/michael_mayer/32/5278_2.png) [@michael\_mayer](https://forum.clockworkpi.com/u/michael_mayer)\
**Post date:** [July 2, 2025, 2:55pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/464 "2025-07-02T14:55:40Z")

</div>

You may also use the windows tools for flashing:  
RK Driver Assistant  
RKDevTool

> **[Download | LUCKFOX WIKI](https://wiki.luckfox.com/Luckfox-Lyra/Download)**
>
> Luckfox Lyra RK3506

Viel Glück.

---

<div class="post-metadata">

**Author:** ![markbirss](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/markbirss/32/12114_2.png) [@markbirss](https://forum.clockworkpi.com/u/markbirss)\
**Post date:** [July 2, 2025, 6:39pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/465 "2025-07-02T18:39:18Z")

</div>

I think the simplest solution to transfer/copy those compiled modules will be with

```auto
adb push
adb: push requires <source> and <destination> arguments

```

since ADB support is still in the Ubuntu Images

---

<div class="post-metadata">

**Author:** ![callimero](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/callimero/32/11706_2.png) [@callimero](https://forum.clockworkpi.com/u/callimero)\
**Post date:** [July 3, 2025, 6:53am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/466 "2025-07-03T06:53:26Z")

</div>

> [@michael\_mayer](#):
>
> Viel Glück.

🙂 Danke.

I think my main brain problem is how to get this first time on a SD-Card. Maybe I try on the weekend.

---

<div class="post-metadata">

**Author:** ![benklop](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/benklop/32/11258_2.png) [@benklop](https://forum.clockworkpi.com/u/benklop)\
**Post date:** [July 3, 2025, 7:29pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/467 "2025-07-03T19:29:33Z")

</div>

I’ve built a docker based build environment and several wrapper scripts for building, flashing, and so on based originally on the nekocharm repo. [GitHub - benklop/picocalc-luckfox-lyra](https://github.com/benklop/picocalc-luckfox-lyra) if you’d like to take a look. I’ve used AI rather a lot to help with the documentation, so there’s plenty of it 😃

As it is, on most systems with docker already installed, it should just be a matter of `./setup.sh && ./build.sh all && ./flash.sh`

It will rewrite the SD card over USB while it’s in the picocalc/luckfox lyra, so that’s pretty nice - I don’t have to take the back off any more!

It also has an ‘overlay’ system for applying new buildroot packages, though i have not honestly tested that very much yet.

I also have no idea how well this works for initial flashing of an SD card - I haven’t tried that at all this way yet.

There is also a lot not yet working - I have the hwpwm module from the hisptoot repo ported, but I think I don’t have the dts configured right for it yet. There is also a kernel module included for rtl8188fu, but I haven’t really tested it yet. [EDIT] the wifi module does load, but I haven’t set up a connection yet.

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 4, 2025, 3:00pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/468 "2025-07-04T15:00:08Z")

</div>

I have had a chance to sit down and install @[markbirss](https://forum.clockworkpi.com/u/markbirss)’s Ubuntu image and I have to say, this is head and shoulders above [hisptoot](https://forum.clockworkpi.com/u/hisptoot)’s image.

I have been using Linux for a very long time, compiling programs and such does not bother me, but I am also at an age where I don’t want to spend a week getting a computer into a usable state. When I was 30, I didn’t mind going to war with my operating system, at 61, not so much. Jailbreaking it from that command-launcher was probably what annoyed me the most, to future image developers, don’t do that. While I appreciate hisptoot’s work, it was a pain to get the device where I wanted it to be, and I can’t imagine what an inexperienced Linux user went through.

This Ubuntu image solves all that. Once I got it on the SD card and booted it up, it was easy as pie to get where I needed to go. I did have to compile and install a wireless driver, but that is trivial to me. The developer image had everything I needed, including nmtui to connect to my wireless network. After that, it was just updating the system and installing the software I use. When all was said and done, I had a usable system in about an hour.

Well done markbirss and Thank you for the work, I appreciate it.

---

<div class="post-metadata">

**Author:** ![michael\_mayer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/michael_mayer/32/5278_2.png) [@michael\_mayer](https://forum.clockworkpi.com/u/michael_mayer)\
**Post date:** [July 4, 2025, 7:44pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/469 "2025-07-04T19:44:04Z")

</div>

Hi,

I currently trying this version.  
LCD doesn´t seem to work.  
What is supposed to work with the DEV image?

```auto
root@luckfox:/# lsmod
Module Size Used by
usb_f_fs 17169 5
usb_f_rndis 10473 2
u_ether 7766 1 usb_f_rndis
libcomposite 28654 13 usb_f_fs,usb_f_rndis
cfg80211 178451 0
btusb 21056 0
btintel 9563 1 btusb
dwc2 98566 0
udc_core 11099 5 usb_f_fs,dwc2,u_ether,usb_f_rndis,libcomposite
usbcore 127925 2 dwc2,btusb
ili9488_fb 6591 1
picocalc_kbd 5831 0
phy_rockchip_inno_usb2 19899 2
usb_common 4091 5 phy_rockchip_inno_usb2,udc_core,dwc2,libcomposite,usbcore

```

At least some modules are already here.

Edit: Dont get it wrong, I am really happy that you provided this image!

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 5, 2025, 3:34am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/470 "2025-07-05T03:34:04Z")

</div>

> [@michael\_mayer](#):
>
> What is supposed to work with the DEV image?

The only thing I have not tested is sound. I have not done the hardware modification for sound and I have not gotten around to testing the software sound. Other than that, I have not had any problems, LCD and keyboard work out of box.

---

<div class="post-metadata">

**Author:** ![michael\_mayer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/michael_mayer/32/5278_2.png) [@michael\_mayer](https://forum.clockworkpi.com/u/michael_mayer)\
**Post date:** [July 5, 2025, 4:57am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/471 "2025-07-05T04:57:28Z")

</div>

Do you have used the Ubuntu image 22.04.5 or 24.04.2(Big one)?  
With ubuntu image 22.04.5 I have no issue.  
Maybe it is the audio mod.

---

<div class="post-metadata">

**Author:** ![michael\_mayer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/michael_mayer/32/5278_2.png) [@michael\_mayer](https://forum.clockworkpi.com/u/michael_mayer)\
**Post date:** [July 5, 2025, 7:58am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/472 "2025-07-05T07:58:00Z")

</div>

> [@cjstoddard](#):
>
> I did have to compile and install a wireless driver

Which one of the many drivers for Wifi you have taken? (I need it for rtl8821)  
I have tried a lot github entries for the rtl8821CU, all have compile errors.

---

<div class="post-metadata">

**Author:** ![michael\_mayer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/michael_mayer/32/5278_2.png) [@michael\_mayer](https://forum.clockworkpi.com/u/michael_mayer)\
**Post date:** [July 5, 2025, 9:29am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/473 "2025-07-05T09:29:24Z")

</div>

Damn, it is the audio mod. The removed pin stops the image from booting from the device.

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 5, 2025, 11:42am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/474 "2025-07-05T11:42:58Z")

</div>

> [@michael\_mayer](#):
>
> Which one of the many drivers for Wifi you have taken? (I need it for rtl8821)  
> I have tried a lot github entries for the rtl8821CU, all have compile errors.

I more or less followed these steps;

> [@markbirss](#):
>
> ```auto
> git clone https://github.com/lwfinger/rtw88
> cd rtw88
> make
> sudo make install
> sudo make install_fw
> sudo mkdir -p /lib/firmware/rtw88
> sudo cp /lib/other/firmware/rtw88/* /lib/firmware/rtw88/
> sudo reboot
> 
> ```

Now having said that, I also found I could not compile those drivers until after I did these steps;

> cd /usr/src/linux-6.1.99  
> sudo make menuconfig

I then went to

Device Drivers \> Network device support \> Wireless LAN

And enabled Realtek devices, I also set “Realtek 8187 and 8187B support” and “Realtek rtlwifi family of devices” to build as modules, then saved the config and exited. After that I ran

> sudo make modules; sudo make modules\_install

Once I did that, I was able to go back and compile the rtw88 drivers.

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 5, 2025, 11:50am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/475 "2025-07-05T11:50:50Z")

</div>

> [@michael\_mayer](#):
>
> Do you have used the Ubuntu image 22.04.5 or 24.04.2(Big one)?

The 24.04.2 image, I used a 256GB SD card, so the size was not really an issue.

---

<div class="post-metadata">

**Author:** ![markbirss](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/markbirss/32/12114_2.png) [@markbirss](https://forum.clockworkpi.com/u/markbirss)\
**Post date:** [July 5, 2025, 1:23pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/476 "2025-07-05T13:23:29Z")

</div>

Some of your strangeness can be explained by the boot.img

The pwm sound modules are not loaded as the pins assigned were re-purposed as externally available pins

You would need to revert to the original Ubuntu 22.04 boot.img that still have the audio pwm pins assigned as i later re-arranged them for SPI LoRa (you can use the previous boot.img with ubuntu 24.04)

From your pc while luckfox connected

```auto
adb reboot loader

```

then restore just the boot parition boot.img  
[This is where the RM\_IO pins in dts were re-mapped]

```auto
sudo ./upgrade_tool di -b ./boot.img

```

---

<div class="post-metadata">

**Author:** ![markbirss](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/markbirss/32/12114_2.png) [@markbirss](https://forum.clockworkpi.com/u/markbirss)\
**Post date:** [July 5, 2025, 1:35pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/477 "2025-07-05T13:35:41Z")

</div>

I at some stage ran a full build like this below after - make menuconfig

`depmod -a` is used for updating symbols to allow newly installed kernel modules to actually load  
which would be needed after installing new modules from source also

```auto
make -j3 modules_prepare; make -j3 modules; make -j3 modules_install; depmod -a; reboot

```

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 5, 2025, 2:31pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/478 "2025-07-05T14:31:43Z")

</div>

I documented my process. Please pay attention to the instructions, there are a couple of steps you may not want to do, like removing the lyra account or uninstalling the meshtastic software.

> <https://github.com/cjstoddard/PicoCalc-uf2/blob/main/Luckfox-Lyra/Luckfox%20Ubuntu.md>

---

<div class="post-metadata">

**Author:** ![markbirss](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/markbirss/32/12114_2.png) [@markbirss](https://forum.clockworkpi.com/u/markbirss)\
**Post date:** [July 5, 2025, 3:12pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/479 "2025-07-05T15:12:55Z")

</div>

> [@cjstoddard](#):
>
> Well done markbirss and Thank you for the work, I appreciate it.

Thank you very much for the kind words.

I guess at this stage documentation is very helpful and also people experiences as it gives others choice on how they can to customise the os further.

---

<div class="post-metadata">

**Author:** ![cjstoddard](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cjstoddard](https://forum.clockworkpi.com/u/cjstoddard)\
**Post date:** [July 12, 2025, 4:38pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/480 "2025-07-12T16:38:16Z")

</div>

Because I am using a large SD for my boot drive, I have been ignoring the PicoCalc SD. Today I went to mount it and Ubuntu does not seem to recognize it is there. Neither lsblk nor fdisk -l detect it. The SD card works fine in my other machines, I even wrote new partition tables and formatted it a couple of time using both ext4 and fat32. Is it just me or is anyone else having this issue?

---

<div class="post-metadata">

**Author:** ![indiemandeceased](https://avatars.discourse-cdn.com/v4/letter/i/dbc845/32.png) [@indiemandeceased](https://forum.clockworkpi.com/u/indiemandeceased)\
**Post date:** [July 12, 2025, 10:05pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/481 "2025-07-12T22:05:32Z")

</div>

Yes I have the same issue which has not been noticed for the same reason - large boot drive.

---

<div class="post-metadata">

**Author:** ![0xd61](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/0xd61/32/11227_2.png) [@0xd61](https://forum.clockworkpi.com/u/0xd61)\
**Post date:** [July 13, 2025, 2:03am UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/482 "2025-07-13T02:03:03Z")

</div>

Hi guys, I just got my Luckfox Lyra and was able to compile everything with the SDK, but I’m struggling with the UART output. Is there a way to configure the UART to 115200 baud? In the docs it says by default it uses 1500000 baud but my Serial-USB adapter can only handle 115200. I tried setting it in the cmdline which gets updated but the output does not change.

---

<div class="post-metadata">

**Author:** ![0xd61](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/0xd61/32/11227_2.png) [@0xd61](https://forum.clockworkpi.com/u/0xd61)\
**Post date:** [July 13, 2025, 5:24pm UTC](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280/483 "2025-07-13T17:24:40Z")

</div>

OK, I figured it out. The console specified by default (ttyFIQ0) is not correct. I needed to enable uart0 by adding this to the device-tree (rk3506g-luckfox-lyra.dts):

```auto
&uart0 {
    status = "okay";
};

```

Afterwards the console in the bootargs needs to be updated to:

```auto
console=ttyS0,115200

```

[Previous page](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280.md?page=23)

[Next page](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280.md?page=25)
