LuckfoxTECH / luckfox-pico

luckfox-pico sdk
241 stars 82 forks source link

openWRT for luckfox series initial support #115

Open pengphei opened 1 month ago

pengphei commented 1 month ago

After some hack for openwrt, now I can launch openwrt for luckfox rv1103/rv1106 series boards, features as below:

adbd enable & support

uci set rkusb.usb.adb_en='1'
uci commit

/etc/init.d/rkusb start

if last command hangs, it will reboot later and adbd start by default.

system burn

gunzip -d openwrt-rockchip-cortexa7-luckfox_pico-ext4-sysupgrade.img.gz
dd if=./openwrt-rockchip-cortexa7-luckfox_pico-ext4-sysupgrade.img of=/dev/sdc bs=2M conv=sync
sync

isp setup

  1. enable adbd
  2. send iqfile to /etc/iqfiles
  3. start rkaiq_3A_server

base system

  1. openWRT system and configs: https://github.com/ticklab/openwrt/commits/rockchip-22.03/
  2. rockchip bsp kernel: https://github.com/ticklab/rockchip-kernel/tree/openwrt-radxa-5.10
  3. camera_engine_rkaiq: https://github.com/TinkerBoard-Linux/rockchip-linux-external-camera_engine_rkaiq/tree/linux5.10-rk356x

issues

  1. camera_engine_rkaiq for rv1106 always startup failed.
pengphei commented 1 month ago

openwrt-rockchip-cortexa7-luckfox_pico-ext4-sysupgrade.img.gz

openwrt image for luckfox pico

pengphei commented 1 month ago

openwrt-rockchip-cortexa7-luckfox_pico-max-ext4-rootfs.zip

openwrt image for luckfox pico pro/max

shawnchain commented 2 weeks ago

Good job! Could U pls update the OpenWrt kernel package with the RK-Kernel source?

plan44 commented 2 weeks ago

openwrt-rockchip-cortexa7-luckfox_pico-max-ext4-rootfs.zip

openwrt image for luckfox pico pro/max

Does this work for Luckfox pico max with NAND flash (no SD card), too?

plan44 commented 2 weeks ago

Hi @pengphei, I'm trying to build openwrt for mtd (nand flash), in squashfs/jffs2 configuration, but I am not successful yet ;-) I am quite used to OpenWrt builds, but only for the MT7688 and RPi targets. I do not yet understand the specifics of the RV110x build, in particular the uboot parts.

I'd be very much interested to help in further developing OpenWrt for the luckfox rv1103/rv1106 series boards, but I don't know where to find more information. Any ideas how to proceed best?

plan44 commented 1 week ago

In the meantime, I managed to build trough OpenWrt 22.03 for the RV1106 and creating openwrt-rockchip-cortexa7-luckfox_pico-max-squashfs-boot.img and openwrt-rockchip-cortexa7-luckfox_pico-max-squashfs-rootfs.img. The former seems to be the kernel, it starts with a device tree according to binwalk, the latter is the squashfs rootfs.

What I am stuck with now is how to install these two in the NAND flash of my LuckFox Pico Max. The entire setup seems different from the mtd setup I know from MT7688, where kernel and squashfs are baked together as an uimage.

Any hints or pointers where to read up? Thx in advance!