Repository navigation
Conversation
Signed-off-by: Luca <dev@luaxlab.de>
PR Summary by QodoAdd Yeskamo NK02 (HI3518EV200) device support
AI Description
Merge Risk
|
Code Review by Qodo
1. Other builders cannot produce this image
|
|
Forgot to mention: Going to cleanup defconfig and unneccessary files as suggested. Regarding rtl8188: In fact, booth the out of tree as well as the staging driver seem to work. However, the staging driver needs manual loading (/etc/modules) and majestic lists it as no driver - but it works. |
The defconfig was a whole Buildroot .config (4207 lines), carrying a local BR2_EXTERNAL path and the fixed NOR package. It is now the short form the other hi3518ev200 lite boards use, on the split NOR layout: the generic hi3518ev200 lite set with RTL8188EUS in place of MT7601U, no motors (the NK02 has no pan/tilt), and the sensor named. The five files under board/hi3516cv200 were unchanged copies of the firmware's and are dropped. The exclude list named the six iq files twice.
openipc-ai
left a comment
There was a problem hiding this comment.
Thanks, Luca. The device side looks right. The structure wasn't something CI could build, so I fixed it directly on your branch (f47dcb6) rather than send it back to you:
- The defconfig was a full Buildroot
.config(4207 lines). It had your localBR2_EXTERNAL_GENERAL_PATH="/mnt/datafs/…", pinned host-GCC and toolchain-version symbols, andBR2_OPENIPC_NOR_FIXED_PACKAGE=y. It's now the ~60-line form the otherhi3518ev200_lite_*boards use, closest toqtech-qvc-ipc-136w(also RTL8188EU). That means firmware's generic hi3518ev200 lite set, withRTL8188EUS_OPENIPCin place of MT7601U, nomotors(the NK02 has no pan/tilt),BR2_OPENIPC_SNS_MODEL="sc2135", and the split NOR layout (post-image-split.sh) every 8 MB board now uses. I left outLINUX_FIRMWARE_OPENIPC_RTL_8188EUbecause the 8188eus driver carries its own firmware. The qtech board runs without that file. - Dropped
br-ext-chip-hisilicon/board/hi3516cv200/*. All five files were byte-for-byte copies of firmware's, so they changed nothing. - The exclude list named the six
iq/*.inifiles twice. I removed the duplicates.
hisi_mci.disabled=1 isn't dirty, by the way. himci.c on the cv200 kernel has module_param(disabled, …), and the module is hisi_mci, so that's exactly the switch made for this. It only takes effect from the second boot, because extras is read by U-Boot. That matches your README note "long first boot". If you want the first boot fast too, add a backgrounded (sleep 3; reboot -f) & at the end of the customizer, as several other boards do.
I've approved the CI run. Please flash the CI image once it's built and confirm the camera still comes up the same way: video, Wi-Fi, night mode.
This PR brings initial support for Yeskamo NK02 and perhaps familiar white-label-devices.
Some technical information:
SoC: hi3518ev200
Sensor: sc2135
WiFi: rtl8188eu
ROM: NOR 8M
The kernel has builtin support for mmc devices, there is however no mmc or sd slot present. Nevertheless the driver tries to probe for an sd card and delays booting by minutes.
As a perhaps dirty workaround I let the customizer add an argument
hisi_mci.disabled=1to the kernel boot arguments (theextrafwargs to be specific) which prevents the module from loading. Cam comes up in seconds on subsequent boots.Glad to see this merged, or problems pointed out to me.
Cheers