You may also use the windows tools for flashing:
RK Driver Assistant
RKDevTool
Viel Glück.
You may also use the windows tools for flashing:
RK Driver Assistant
RKDevTool
Viel Glück.
I think the simplest solution to transfer/copy those compiled modules will be with
adb push
adb: push requires <source> and <destination> arguments
since ADB support is still in the Ubuntu Images
Danke.
I think my main brain problem is how to get this first time on a SD-Card. Maybe I try on the weekend.
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 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.
I have had a chance to sit down and install @markbirss’s Ubuntu image and I have to say, this is head and shoulders above 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.
Hi,
I currently trying this version.
LCD doesn´t seem to work.
What is supposed to work with the DEV image?
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!
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.
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.
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.
Damn, it is the audio mod. The removed pin stops the image from booting from the device.
I more or less followed these steps;
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.
The 24.04.2 image, I used a 256GB SD card, so the size was not really an issue.
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
adb reboot loader
then restore just the boot parition boot.img
[This is where the RM_IO pins in dts were re-mapped]
sudo ./upgrade_tool di -b ./boot.img
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
make -j3 modules_prepare; make -j3 modules; make -j3 modules_install; depmod -a; reboot
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.
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.