Luckfox Lyra on PicoCalc

Hi, I uploaded a new version of ili9488_fb.ko.
Replace the old one in /usr/lib.
I think it would fix fbterm rendering.

3 Likes

Hi, I’ve uploaded Lyra Ubuntu to PicoCalc, so far it’s working via the terminal. Can you advise me on how to move the screen and keyboard?

1.Setup build env:

I don’t know if the official ubuntu image is built via the same toolchain. Maybe you should ask luckfox for help.

2.get the kernel devel header of your ubuntu image

3.modify makefile, change kernel header location and cross compiler prefix

4.modify the device tree of your ubuntu kernel, according to the dts file on github.

5.build drivers and load them.

2 Likes

Thanks for the information, I’ll try it this weekend. Hopefully it works.

I’ve been poking around in the keyboard firmware, and I’ve created a branch that is supposed to add a i2c message sent to the MCU on long and short press of the power button, instead of shutting things down. This would have to be enabled by setting a flag over I2C first.

I’ve also added a way to adjust the long press time for the button.

all I know is that it compiles - I don’t have anything to test this stuff on currently. I wouldn’t mind if someone wanted to see how this works, of course some Linux kernel stuff will also be needed to make use of any of it.




lyra plus board on PicoCalc

8 Likes

So that’s one way to get internet then, Is the board plug and play with your same guide for the Lyra standard board? We would just need to cut some space for the Port. and would sound work with this or still need to hack it.

1 Like

I think the only difference between lyra and lyra plus should be kernel device tree.

You have it booting or still working on it. How about the Lyra pro max.?

Indeed same specs.

|Ethernet|RJ45 100M|
|Memory and Storage|
|Flash|256MB|
|Memory|128MB DDR3L(OPTIONS)|
|SOC Features|
|Processor|Tripe-core@1.2Ghz|
|Interfaces & Peripherals|
|Display Interface|MIPI DSI 2-lane|
|GPIO|24-Pin|
|USB|USB OTG2.0|


New image uploaded.

Kbd driver supports reading battery percent, setting screen backlight and emulating mouse. But I think the preloaded keyboard firmware has a bug, which causes battery percent to be reported as zero.

Fix a bug in LCD driver, fbterm works now.

w3m, openssh, mosh and gcc are included.

4 Likes

actually, it is: Reading battery level from mmbasic - #3 by guu

Looks great. I cannot test it now because my screen is broke. Looking forward to try it out.

I will try it tonight will this work on lyra plus too?

Do you know how to flash the SD card from linux (no access to windows currently)?

very important to find proper output device: of=/dev/sdX because you can easily overwrite system partition

I mean the rootfs.img for the Lyra (from stock ubuntu image). I tried dd-ing it on the sd but it looks like it needs a partition structure. An it doesn’t boot.

dd write partitions structure too, have you did dd of=/dev/sdb or dd of=/dev/sdb1? try to use device without any number.

you can check partitions structure by doing sudo cfdisk /dev/sdb before and after dd

and please be sure that /dev/sdb is your sdcard :slight_smile:

My device is /dev/mmcblk0. I did not specify a partition number as it was partitionned for something else before.

fdisk tells me that there is no partition table on the sd after writing it. Do I need a dos partition table with a single fat32 partition?

ineresting, tutorial says:

Note: It only supports flashing using SPI NAND FLASH. If you need to flash the firmware to a TF card, you will need to use SocToolKit software in a Windows environment.
Image Burning for Linux/MacOS | LUCKFOX WIKI

a bit weird that dd doesn’t work as it should, I agree with you.