Luckfox Lyra on PicoCalc

@michael_mayer
Oh ok, myabe this will help ? (the kernel headers will be available on your luckfox device with a modified compiled kernel)

with the luckfox sdk

./build.sh kernel-config

then

sudo build.sh

Enable “CONFIG_IKCONFIG_PROC” and the options below - Enable kernel headers though…

I transfered the new kernel (boot.img) to my luckfox with upgrade_tool

e.g

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

started up and

extract /sys/kernel/kheaders.tar.xz

2 Likes

I am not sure if I got it but I will give it a shot. Thanks!

1 Like

Finally got all the bits and pieces to give the usb a try, works as advertised! Got wifi up and running and tried the browser, worked 1st try. Is there a graceful way to quit the browser?
Thanks hisptoot for this massive effort.

Tom

To quit the Browser press “q”.
You have also lynx installed, not only w3m.

I just compiled the RTL8812AU driver (for USB Wi-Fi adapters with that chipset). maybe it can save someone some time!

8812au

1 Like

Thanks! Tried ‘q’ or it might have been ctrl q. Will try again.

Tom

Worked as advertised! I was making it harder than needed (typical :grin:).

Thanks!
Tom

I am trying to get my head around buildroot and building my own image to my liking.
Can anyone help me?

1 Like

the challenge is not the buildroot itself but rather finding source code that will compile for the ARM cpu the LYRA has

Hi, I was able to compile and run LittlePiggy Tracker. Sadly the sound is choppy so it is unusable, I am not sure why.

Did you do the hardware mod to swap pins ?

For clarification, are you asking how hisptoot integrated the LCD and keyboard drivers and built the original image or are you asking how to use the buildroot to compile your own programs?

If you are just looking to compile your own programs, I can certainly help you with that.

If you are looking to build your own image from scratch, that is something I have not attempted to do yet. Apparently the buildroot requires access to python2 and I am too lazy at the moment to fire up a virtual machine running Ubuntu 22.04.

Yes, I have done the mod for PWM Sound. I think it has something todo with the SDL Audio drivers. (alsa sound is not working for some unknown reason)
I can share my make file changes if someone is interested.
Edit: With choppy i mean: Sound is playing but some tones come late, so the melody gets wonky.

BTW: hisptoot has done some great work. So please subscribe to his youtube channel to show some appreciation.

Thanks.

1 Like

The goal for me is to make a image on my own as a project and then start to change things to my liking. Another reason is that I have another devboard that buildroot supports and practically nothing else does so I want to learn.

1 Like

I know someone up thread was trying to build a Ubuntu image, but other than that, I don’t know if anyone else has tried to duplicate the work. Looking at the github repo where he put the drivers, he did not leave any specific instructions. Did you have a look at the shell scripts in buildroot/board/rockchip/rk3506? It looks like those scripts are doing at least some of the heavy lifting.

I was able to get pip working with this command:
python -m ensurepip --upgrade

Sadly for installing some packages we don´t have enough ram, that means pip is been killed. ( it tried opencv-python )
Messages log:

May 26 17:56:37 luckfox kern.err kernel: [ 2261.108964] Out of memory: Killed process 3148 (pip3) total-vm:40200kB, anon-rss:23796kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:44kB oom_score_adj:0     

Maybe if we activate swap …
[EDIT]
It is actually quite easy:
https://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/

It seems to work. You have to set the TMPDIR environment variable because /tmp is only 50MB.

add to .bashrc:
export TMPDIR=[your tmpdir]
[Edit]
Fair Warning: pip has taken several hours and failed for the opencv-python package. I think we are here on a limit what you can do with PIP and 128 mb of memory.

1 Like

Good tip, I will have to add that to my “Make this usable” list.

I am curious, are you using the default command launcher in the root account? If you jailbreak yourself out of that and use a normal user account, it frees up 45+ MB of RAM.

2 Likes

I have deactivated the commandlauncher, and closed the fbterm for more memory, but is was still not enough. So swap memory is needed for bigger packages.

1 Like

Hi, Which would be the latest version? there are multiple files in the drive folder and its very confusing

Also two questions
1/ how do I scroll on the terminal?
2/ how can I change font size/color?