Despite assurances by Eben Upton that there’s no supply shortage of Raspberry Pi CM4 modules for commercial and industrial customers, installations or projects requiring just a few modules may be out of luck. So alternatives are needed, and after seeing Rockchip RK3566-based SoMs compatible with Pi CM4, namely the Pine64 SoPine and Radxa CM3, Banana Pi is working on a Raspberry Pi CM4 compatible module powered by Amlogic A311D hexa-core Arm Cortex-A73/A53 processor. Banana Pi BPI-CM4 specifications: SoC – Amlogic A311D hexa-core processor with 4x Arm Cortex-A73 @ 2.0 GHz and 2x Arm Cortex-A53 @, Arm Mali-G52 MP4 (6EE) GPU, 5 TOPS NPU System Memory – 2GB/4GB LPDDR4 RAM Storage – 16GB eMMC flash (up to 128GB) Networking – Gigabit Ethernet PHY on-module, optional WiFi 5/6 module with on-board PCB antenna and external antenna 2x 100-pin high-density board-to-board connector (mostly) compatible with Raspberry Pi CM4 with 1x HDMI, 1x MIPI […]
Linux 5.18 release – Main changes, Arm, RISC-V, and MIPS architectures
Linux 5.18 is out! Linus Torvalds has just announced the release on lkml: No unexpected nasty surprises this last week, so here we go with the 5.18 release right on schedule. That obviously means that the merge window for 5.19 will open tomorrow, and I already have a few pull requests pending. Thank you everybody. I’d still like people to run boring old plain 5.18 just to check, before we start with the excitement of all the new features for the merge window. The full shortlog for the last week is below, and nothing really odd stands out. The diffstat looks a bit funny – unusually we have parsic architecture patches being a big part of it due to some last-minute cache flushing fixes, but that is probably more indicative of everything else being pretty small. So outside of the parisc fixes, there’s random driver updates (mellanox mlx5 stands out, […]
Linux hardware video encoding on Amlogic A311D2 processor
I’ve spent a bit more time with Ubuntu 22.04 on Khadas VIM4 Amogic A311D2 SBC, and while the performance is generally good features like 3D graphics acceleration and hardware video decoding are missing. But I was pleased to see a Linux hardware video encoding section in the Wiki, as it’s not something we often see supported early on. So I’ve given it a try… First, we need to make a video in NV12 pixel format that’s commonly outputted from cameras. I downloaded a 45-second 1080p H.264 sample video from Linaro, and converted it with ffmpeg:
1 |
ffmpeg -i big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 -pix_fmt nv12 big_buck_bunny_1080p_H264_AAC_25fps_7200K-nv12.yuv |
I did this on my laptop. As a raw video, it’s pretty big with 3.3GB of storage used for a 45-second video:
1 2 3 4 |
ls -lh total 3.3G -rw-rw-r-- 1 jaufranc jaufranc 40M Aug 5 2011 big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 -rw-rw-r-- 1 jaufranc jaufranc 3.3G May 21 15:03 big_buck_bunny_1080p_H264_AAC_25fps_7200K-nv12.yuv |
Now let’s try to encode the video to H.264 on Khadas VIM4 board using aml_enc_test hardware video encoding sample:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
khadas@Khadas:~$ time aml_enc_test 1080p.nv12 dump.h264 1920 1080 30 25 6000000 1125 1 0 2 4 src_url is : 1080p.nv12 ; out_url is : dump.h264 ; width is : 1920 ; height is : 1080 ; gop is : 30 ; frmrate is : 25 ; bitrate is : 6000000 ; frm_num is : 1125 ; fmt is : 1 ; buf_type is : 0 ; num_planes is : 2 ; codec is : 4 ; codec is H264 Set log level to 4 [initEncParams:177] enc_feature_opts is 0x0 , GopPresetis 0x0 [SetupEncoderOpenParam:513] GopPreset GOP format (2) period 30 LongTermRef 0 [vdi_sys_sync_inst_param:618] [VDI] fail to deliver sync instance param inst_idx=0 [AML_MultiEncInitialize:1378] VPU instance param sync with open param failed [SetSequenceInfo:979] Required buffer fb_num=3, src_num=1, actual src=3 1920x1080 Encode End!width:1920 real 0m26.074s user 0m1.832s sys 0m4.883s |
The output explains the parameters used. There are some error messages, […]
You can now buy Khadas VIM4 SBC for $199.90
Khadas VIM4 single board computer was first unveiled last October with Amlogic A311D2 octa-core Cortex-A73/A53 processor, 8GB LPDDR4X, but it’s only been launched today, and you can now buy the Khadas VIM4 board for right under $200. It is an upgrade to Khadas VIM3 Pro launched with Amlogiv A311D hexa-core processor a few years ago, and our testing in Android 11 revealed the main benefit may be the upgrade GPU that delivered a 67% boost in 3DMark, but CPU multi-core performance and memory bandwidth will also see some benefits over Amlogic A311D, even against in overclocked systems like ODROID N2+. Here’s a reminder of Khadas VIM4 specifications: SoC – Amlogic A311D2 octa-core processor with 4x Arm Cortex-A73 cores @ up to 2.2 GHz and 4x Cortex A53 cores @ up to 2.0 GHz, Arm Mali-G52 MP(8EE) GPU, (Note: no NPU at this time) System Memory – 8GB LPDDR4X @ 2016 […]
Khadas VIM4 Review – Part 2: Android 11 preview and benchmarks
In the first part of Khadas VIM4 review, I showed off the Amlogic A311D2 SBC and some accessories such as the DIY case and M2X expansion board to add M.2 SSD and modem and tried out OOWOW cloud services to install Ubuntu 20.04 server. I’ve now just gotten Fiber Internet at home, so it’s much more practical to test the system, and in the second part of the review, I’ve installed Android 11 on the VIM4 board, checked out settings and system info, and ran some benchmarks. It will be more like a preview since Android 11 is not a consumer-friendly system at this time, and is more designed for people wanting to build their own applications. Installing Android 11 on Khadas VIM4 with OOWOW system Last time around, I used OOWOW system install in the SPI flash on the board to download and install Ubuntu 20.04 server to the […]
Khadas VIM4 Review – Part 1: Unboxing, kit assembly, and first boot with OOWOW
Khadas VIM4 is a compact Amlogic A311D2 octa-core Cortex-A73/A53 SBC with 8GB RAM, HDMI input and output, WiFI 6 connectivity, and more. You can check our earlier post for the full specifications. The good news is that it will officially launch on May 10. I’ve also just received a Khadas VIM4 review sample today together with accessories. Today, I’ll start by checking out the board, assembling the kit, and trying out OOWOW services to boot OS from the cloud, before testing available operating systems in more detail in the second part of Khadas VIM4 review a little later. Khadas VIM4 kit unboxing I received everything in a blank cardboard package with several small packages inside. Besides Khadas VIM4 SBC, we’ve got a plastic + metal enclosure with screws and screwdriver, two antennas for WiFi and Bluetooth, a USB Type-C power supply, a USB-C cable, an M.2 expansion board, a short […]
Orbbec Persee+ 3D AI camera runs Ubuntu or Android on Amlogic A311D processor
Orbbec Persee+ is a 3D depth camera running Linux with AI capabilities thanks to Amlogic A311D hexa-core processor equipped with a 5 TOPS NPU (Neural-network Processing Unit). The Persee+ is designed to help researchers, engineers, and hobbyists implement advanced uses for 3D imaging. Orbbec has been around for several years with the first product we covered here being the Orbbec Persee 3D depth camera running Ubuntu or Android on Rockchip RK3288 processor and unveiled in 2015. Last year, the company introduced the Zora P1 Amlogic A311D development board for Orbbec 3D cameras, so in a way, the Orbbec Persee+ is born from the work done on the Persee camera and Zora P1 over the years. Orbbec Persee+ 3D AI camera specifications: SoC – Amlogic A311D hexa-core processor with 4x Cortex-A73 cores, 2x Cortex-A53 cores, Arm Mali-G52MP4 GPU, 5 TOPS NPU System Memory – 4GB RAM Storage – 8GB (specs) / […]
ameriDroid introduces $20 aluminum case for ODROID-N2+ SBC
You may know ameriDroid as a reseller of single board computers and accessories, but the US company has now designed and manufactured its first accessory with an aluminum case for ODROID-N2+ SBC. ameriDroid says the design of their enclosure is based on the metallic blue case found in the Home Assistant Blue gateway also powered by ODROID-N2+ board, and everything was 100% designed and manufactured by ameriDroid in the United States, specifically in Kentucky and California for the R&D, while the factory is located in Ohio. The enclosure has mostly been designed for industrial application, think of a factory floor for instance, so it may not be the prettiest. The company even explains that it is made of unpainted, unfinished aluminum with potentially some minor surface marks from the manufacturing process, but that it could be polished or painted for a better finish. It ships as a kit with an […]