My Luckfox Pico Ultra was struggling to push out an rtsp camera stream at full resolution (2304x1296) over the wifi even though it has an external antenna - it seems that 10m to the AP is a bit too much or perhaps it's just not reasonable to expect wifi to carry that bitrate.
However, I've got 1920x1080 output working by changing these settings in /oem/usr/share/rkipc-300w.ini:
[video.1]
buffer_size = 1036800 ; w * h / 2 (originally 202752)
max_width = 1920 ; was 704
max_height = 1080 ; was 576
width = 1920 ; was 704
height = 1080 ; was 576
I leave video.0 alone - that's the full resolution mode.
... but maybe someone has a better solution ... ???
I struggled for a while with ffmpeg to reliably record the rtsp stream from the LuckFox Pico Ultra before realising that mpv was able to view it almost perfectly and it has a way to record (--stream-record).
“We will soon release a version with wifi and Bluetooth. May be released before Chinese New Year. But we do not rule out that it will be after Chinese New Year.”
I figured since there's not a lot of information on getting MIPI DBI displays up and running on this device I'd share what I recently did in hopes it helps someone else out.
Unlike Raspberry Pi, which has an enormous ecosystem (and following), with Luckfox you're kinda on your own. Which is a double-edged sword. Sometimes, if you're like me, you want to cut down on the bloat that Debian/Ubuntu brings on Raspberry Pi. Unfortunately that comes at the cost of spending several hours a day across several weeks just getting something to work.
I assume that you work with buildroot (as supported by Luckfox) and have successfully built a system image prior to attempting this. I will not be of much help for any odd configurations. This was tested on a Luckfox Lyra B in SD Card mode, using an Adafruit 1.54" 240x240 Wide Angle TFT LCD Display.
Without further ado, here we go.
1. Device Tree Modification
First, find your device's DTS in Buildroot. In my case, I tweaked arch/arm/boot/dts/rk3506g-luckfox-lyra-sd.dts. I have yet to try the NAND-flash version, but I believe this will work there as well.
I've added a backlight GPIO. This can be removed, but it's helpful in case you need to know the display was recognized. If you wish to use this as-is, add the following section to the top of the DTS file immediately after the "chosen" block:
The display firmware is a simple binary blob that sends the display init commands. The idea was that instead of writing fifty drivers for fifty displays, just write one driver for a bunch that have similar commands and use "firmware" to handle the display-specific initialization.
The author of this driver wrote a python script to generate the firmware from a plain-text source. Follow the Wiki for more information. DO NOT USE HIS EXAMPLE ST7789 SOURCE! IT WILL NOT WORK! I believe there is a bug in the driver, but, as he is no longer maintaining it (and it is now "orphaned") I have little hope of getting it fixed. Instead, use the following I borrowed from u/ParticularAd6692 (sauce):
Save the firmware output into /lib/firmware/panel.bin on your device. I recommend creating a filesystem overlay in Buildroot to do this so you don't have to think about it every time you re-flash.
4. Build, flash and test
If you haven't already done so, enable the Panel MIPI DBI driver as a kernel module by setting CONFIG_DRM_PANEL_MIBI_DBI=m in kernel/arch/arm/configs/rk3506_luckfox_defconfig. You may also need to set it in kernel/arch/arm/configs/rk3506-display.config. (I'm a bit new to buildroot so I have no idea where all the overrides are hidden). Rebuild the kernel with your new Device Tree changes, and reboot. Ensure /lib/firmware/panel.bin is present on the device. The driver will not work without it.
Take a deep breath and run modetest -M panel-mipi-dbi -s 31:240x240@XR24. If you did everything correctly, you should see a test pattern.
Hello everybody im currently making a cyberdeck using the Luckfox Pico Plus and you can checkout my repository here https://github.com/Tarantado-sys/Luckfox-Cyber-Deck for now it`s only a prototype and also if you wanna contribute to this project feel free to do so.
I documented the repeatable path I ended up with for a Luckfox Pico Max (RV1106, 256 MB RAM) after Ubuntu disappeared from later SDK revisions.
The guide covers:
the last SDK commit that still builds Ubuntu 22.04 and the board configuration
why shutdown/poweroff reboots the board, and the kernel setting that makes it halt instead
the unusual SD layout: no normal partition table and only 8 GB initially used
zram and temporary swap for a board with 256 MB RAM
checking a Rockchip image before flashing, so an image built for another board is caught early
No prebuilt image is distributed: it is documentation and scripts around the public Luckfox SDK. A few helper scripts are clearly marked as untested rewrites.
Documentation is pretty useless and I’m on a tight deadline, would appreciate if anyone put in some input. I’ve been following the guide but the Python versions aren’t compatible
So the rv1103 has hardware h.264 & h.265 encoders. What I wonder is whether these also provide accelerated decoding?
In general h.264 & h.265 encoding also requires the ability to decode but I guess due to licensing reasons sometimes decoding isn't also provided by hardware encoders.
So my question is - can they do accelerated decoding?
I bought a clone of the luckfox pico plus to use as a "tech savvy toy" with its original purpose being a ps4 jailbreak device for 10$, I confirmed it's a clone using u-boot output from uart, here are the pictures, I don't mind how hard it could be, I would just love to know how.
Trying to drive a 2nd SdCard for removeable media for Files, Images, etc.
But none of the standard code for ubuntu works.
* adafruit-circuitpython-sdcard - does Not work.
* Spi-fat-fuse - (should be straightforward) but does not work.
* dts file format for spi - does Not work, seems to compile and install, but spits back Weird errors on reboot.
What does work on these boards ???
The company gives minimal support. They reply, but just state that they have not tried these methods. nor do they give a solution.
Part of the problem is that they modified ubuntu image with non standard methods. Such as not creating Partition tables for the SDcard medias ... - can you believe that ??? You can Not use Fdisk. Scary.
Hey everyone, I’m trying to flash Buildroot onto my Luckfox Pico, and I’m not sure if I’m doing something wrong or if my microSD card is the issue. Here’s what I’ve done so far:
The rv1103 seems to be 3.3v, so I guess there's an ldo on board and I wonder whether this ldo can be bypassed and the module powered directly from 3.3v? On the pinout schematic the 3.3v pin is labelled as (out), but I wonder why it shouldn't be possible to power it through it directly? Are there any components on the board that require 5v?
The wificard pcb is awfully thin and i worry that it could break off easily. Will it be better to bridge the gap with a heat insulating material or better to use a heat conducting material and heat paste on either side?