메뉴
HN
Hacker News 48일 전

록칩 RK3588 메인라인 비디오 캡처 지원

IMP
6/10
핵심 요약

콜라보라(Collabora)가 록칩(Rockchip) RK3588 칩셋의 비디오 캡처(VICAP) 및 카메라 하드웨어를 리눅스 메인라인 커널에 정식으로 지원하기 위한 장기적인 작업을 성공적으로 완수했습니다. 복잡한 하드웨어 구조와 문서 부족 등의 이유로 지원이 지연되어 왔으나, 이번 지원을 통해 개발자들은 제조사 펌웨어에 의존하지 않고 안정적인 오픈소스 환경에서 멀티미디어 애플리케이션을 개발할 수 있게 되었습니다.

번역된 본문

오늘날 많은 시스템 온 칩(SoC)들이 그렇듯, 최신 록칩(Rockchip) SoC(특히 RK35 세대)는 비디오 캡처와 이미지 신호 처리(Image Signal Processing)를 위한 전용 IP 블록을 통합하고 있습니다. 이러한 추가 기능은 다양하고 흥미로운 멀티미디어 애플리케이션의 가능성을 열어줍니다. 하지만 메인라인 리눅스에서 이러한 블록에 대한 지원은 비교적 잘 갖춰진 이 SoC 라인업에서 여전히 해결되지 않은 마지막 과제 중 하나로 남아있었습니다. 이제 그 격차를 메울 때가 되었습니다!

사명 지난 몇 년간 콜라보라(Collabora)는 록칩 RK3588 SoC의 메인라인 지원을 위해 상당한 노력을 기울여 왔습니다. 당사의 RK3588 업스트림 현황 매트릭스와 최근 리뷰 블로그 게시물인 '록칩에서 메인라인 리눅스, U-Boot 및 Mesa 실행: 한해의 회고'는 이 사명의 성공을 보여줍니다. 활기찬 linux-rockchip 커뮤니티 및 록칩 자체와 함께 RK3588의 대부분의 기능에 대한 업스트림 지원을 제공할 수 있었다고 말하는 것이 공정할 것입니다. 반면, 아직도 해결해야 할 지원되지 않는 하드웨어 블록이 몇 가지 남아 있습니다.

문제점 비디오 캡처 블록과 이미지 신호 처리기(ISP)는 (지원된다 하더라도) 메인라인 지원을 늦게 받는 하드웨어 블록 범주에 악명 높게 속합니다. 이유는 다양합니다. 사용자 기반이 상당함에도 비디오 출력과 같은 다른 기능보다는 규모가 작습니다. 하드웨어 문서는 지식 재산권 측면에서 특별하게 취급되는 것으로 보이는 ISP의 경우, 최소한 공개되지 않는 경우가 많습니다. 또한 기본 하드웨어가 결코 간단하지 않아 취미로 기여하는 개발자가 여가 시간에 해결하기가 어렵고 사실상 불가능에 가깝습니다. 기업의 경우에도 이러한 종류의 하드웨어를 초기에 구동하기 위해서는 막대한 시간과 비용이 소요되는 작업입니다. 결과적으로 이러한 강력한 하드웨어 블록의 사용자들은 공급업체(Vendor) 리눅스 커널에 의존하는 경향이 있으며, 이는 사이버 복원력 법안(CRA)과 같은 규정 준수 문제를 초래할 수 있습니다.

솔루션을 향하여 이러한 교착 상태를 극복하기 위해 콜라보라는 첫 번째 단계, 즉 RK3588 비디오 캡처(VICAP) 장치 지원을 시작하기로 결정했습니다. 처음부터 이것이 단거리 스프린트가 아닌 마라톤이 될 것이라는 점은 명백했습니다. 계획은 rkcif 드라이버가 RK3588 VICAP를 지원하도록 하는 것이었으며, 이 드라이버는 2020년부터 각 메일링 리스트에서 논의되고 있었습니다! 콜라보라는 2022년 초에 메인라인 논의에 합류했으며 패치 시리즈는 Bootlin의 주도로 9번의 수정을 거쳤습니다. 그 후 미디어 컨트롤러(Media-controller) 중심의 V4L2 드라이버를 향한 대대적인 재설계가 요청되었습니다. 이로 인해 드라이버가 완전히 리팩토링되었고 메인라인 리눅스에 포함되기 위한 새로운 추진력을 얻게 되었습니다. 결과적인 패치 시리즈의 7번의 추가 수정과 두 번의 드라이버 이름 변경 끝에, 이 작업은 암스테르담에서 열린 오픈 소스 서밋 유럽 2025에서 발표되었습니다. '최신 록칩 SoC를 위한 메인라인 비디오 캡처 및 카메라 지원을 향하여'라는 제목의 강연은 현대 멀티미디어 SoC를 위한 소프트웨어 스택에 대한 개요를 제공하고 이미 메인라인에 반영되었거나 현재 검토 진행 중인 기여 사항들을 다루었습니다. rkcif 드라이버의 몇 차례 추가 수정 끝에, PX30 VIP 및 RK3568 VICAP를 지원하는 기본 드라이버가 마침내 수용되었습니다.

원문 보기
원문 보기 (영어)
--> --> --> About Who we are Our expertise Our work Open Source Our ecosystem Services Guide Train Build Integrate Optimize Maintain Industries Automotive Digital TV Silicon OEM VR/AR News & Blog Careers Contact About Services Industries News & Blog Careers Contact --> +44 (0)1223 362967 +1 514 667 2499 contact@collabora.com --> Home » News & Blog » News & Events » --> Home News & Blog News Mainline video capture and camera support for Rockchip RK3588 --> Mainline video capture and camera support for Rockchip RK3588 --> 13/04/2026 --> Posted on 13/04/2026 by Michael Riesch --> Mainline video capture and camera support for Rockchip RK3588 Posted on 13/04/2026 by Michael Riesch --> Michael Riesch April 13, 2026 Share this post: --> Reading time: As many System-on-a-Chips (SoCs) do these days, recent Rockchip SoCs (namely, those of the RK35 generation) integrate dedicated IP blocks for video capture and image signal processing. These additions open the door to a wide range of interesting multimedia applications. However, support for these blocks in mainline Linux remains one of the last missing pieces in an otherwise well-supported SoC lineup. It is time to close that gap! The mission Over the last few years, Collabora has invested significant efforts into mainline support for the Rockchip RK3588 SoC. Our RK3588 upstream status matrix and the recent review blog post Running Mainline Linux, U-Boot, and Mesa on Rockchip: A year in review show the success of this mission. It is fair to say that together with the vibrant linux-rockchip community and Rockchip themselves, we were able to provide upstream support for most of the features of the RK3588. On the other hand, there are still a few unsupported hardware blocks that need to be taken care of. The problem Video capture blocks and image signal processors (ISPs) notoriously fall into the category of hardware blocks that gain mainline support at a late stage (if at all). The reasons for this are manifold: while the user base is substantial, it's smaller than that of other features, such as video output for instance. The hardware documentation is often not available, at least for ISPs, which seem to be considered special in terms of intellectual property. Then, the underlying hardware is not exactly trivial, making it difficult (if not impossible) for a hobbyist contributor to tackle in their free time. Even for companies, the initial efforts required to bring up that sort of hardware are a time-consuming and hence costly endeavor. As a consequence, users of these powerful hardware blocks tend to resort to a vendor Linux kernel, which can lead to regulatory compliance issues, such as under the Cyber Resilience Act (CRA). (Towards) the solution In a quest to overcome this deadlock, Collabora decided to start with the first step: bringing up the RK3588 video capture (VICAP) unit. It was obvious from the very start that this would not be a sprint, but a marathon. The plan was for the rkcif driver to support the RK3588 VICAP, and this driver had been under discussion on the respective mailing lists since 2020 ! Collabora joined the mainlining discussion in early 2022 and the patch series went through nine iterations driven by Bootlin. Then, a major rework towards a media-controller centric V4L2 driver was requested. This led to a complete refactoring of the driver and a renewed push towards inclusion in mainline Linux. After another seven iterations of the resulting patch series and renaming the driver twice, the work was presented at Open Source Summit Europe 2025 in Amsterdam. The talk " Towards Mainline Video Capture and Camera Support for Recent Rockchip SoCs " provided an overview of the software stack for modern multimedia SoCs and covered the contributions that had already landed in mainline and were currently in flight, respectively. A few iterations of the rkcif driver later, the basic driver providing support for the PX30 VIP and the RK3568 VICAP was accepted (October 2025). After more than five years of development, including 25 iterations and three renamings, this was a major milestone. On the other hand, there was still a lot to do, of course. For instance, the Rockchip MIPI CSI-2 receiver unit that is coupled closely to the VICAP required a mainline driver as well. Again, the hardest part in software development proved to be naming things. After several iterations and three renamings and/or relocations, the driver found its name and place in the mainline Linux kernel (January 2026). This came to pass right in time for FOSDEM 2026 in Brussels, where Collabora presented " Upstreaming Progress: Video Capture and Camera Support for Recent Rockchip SoCs " Apart from the refined and updated status matrix (see slides 15 and 17), the talk featured a first picture made with a Sony IMX415 sensor attached to the RK3588 VICAP. Of course, in this setup the raw image data from the sensor was debayered in software (which yielded an abysmal frame rate of 1 fps) and there was no image processing such as auto white balance (which explained the greenish image), but at that time it represented a significant stage of this journey. A few extension patches to the rkcif driver were required to add RK3588 support. Those patches had been in development for some time, and were recently sent out for review . The next step(s) Naturally, we all would like to use the RK3588 ISP to process the images from the camera sensor in the dedicated hardware. To that end, we essentially need three things. The first of the remaining issues is the support for the RK3588 VICAP MUX-TOISP unit, which constitutes a direct hardware connection that passes the data from the VICAP to the ISP(s). Technically, this is not strictly needed. As of now the RK3588 VICAP is able to stream the raw pictures into memory and the ISP can fetch the data from memory. This approach allows for more elaborate use cases, such as processing more than one camera stream per ISP (time-division multiplexing). However, for the simple use case with one camera stream per ISP, this has a couple of disadvantages: Amongst other things, it results in increased memory bandwidth requirements as well as increased latency. Also, it should be noted that the direct hardware connection affects the design of the software architecture for these (otherwise independent) hardware blocks. It is important to take this connection into consideration early on, otherwise it might be very hard to add support for it at a later step. Thus, apart from controlling the interaction with the hardware, this step requires considerations as to how to integrate the kernel drivers into the V4L2 media controller framework. Initial testing has already shown the first signs of life from this unit, though it will take some time until the code is ready to be integrated into mainline Linux. The second issue is the missing Linux kernel driver for the RK3588 ISP, as the vendor kernel driver is not upstreamable for various reasons. In an effort to aid upstreaming, Rockchip provided a stripped down driver that is available here . This driver only supports memory-to-memory operation and debayering (and no further image processing capabilities), but it is very helpful for hardware bringup. For the inclusion in mainline Linux, however, the plan is for a new rkisp2 driver that is developed from scratch, aiming to support all ISPs of the RK35 generation. To achieve this ambitious milestone, Collabora teamed up with Rockchip and Ideas on Board with this new ISP as a shared goal in mind. Based on that, the third issue centers on libcamera support for the RK3588 image processing pipeline including suitable image processing algorithms (IPA). The team at Ideas on Board is already active in that direction and has reported initial success with regard to the bring-up of the first image processing blocks. See their blog post for more details. In the meantime, impatient users can try the libcamera software ISP as