OS08A10 fail to initiate at VIM3

Hi, I just got a OS08A10 from khadas. But it fail to initiate as follow dmesg error:

[   19.054997] fb: ---------------clear fb1 memory ffffff80115ae000
[   19.055118] fb: osd[1] canvas.idx =0x43
[   19.055120] fb: osd[1] canvas.addr=0x74c00000
[   19.055122] fb: osd[1] canvas.width=128
[   19.055123] fb: osd[1] canvas.height=32
[   19.055125] fb: osd[1] frame.width=32
[   19.055126] fb: osd[1] frame.height=32
[   19.055128] fb: osd[1] out_addr_id =0x2
[   19.058708] iq name from dts config is ----> os08a10
[   19.060152] get_cali_name_id@soc_iq.c:168 SUBDEV_IQ(ERR) :get_calibrations_os08a10
[   19.060162] acamera_camera_async_bound@main_kernel_juno_v4l2.c:133 GENERIC(E
RR) :bound called with sd 0x2a50400, asd 0x22bca68, sd->dev 0x46ea8410, name SocCalibrations
[   19.060170] soc_iq_probe@soc_iq.c:276 SUBDEV_IQ(ERR) :register v4l2 IQ device. result 0, sd 0x2a50400 sd->dev 0x46ea8410
[   19.062880] acamera_soc_lens_init@soc_lens.c:221 GENERIC(INFO) :Lens subdevice init
[   19.063231] acamera_camera_async_bound@main_kernel_juno_v4l2.c:133 GENERIC(ERR) :bound called with sd 0x2aa2480, asd 0x22bca90, sd->dev 0x4418a010, name SocLens
[   19.063241] soc_lens_probe@soc_lens.c:193 GENERIC(INFO) :register v4l2 lens device. result 0, sd 0x2aa2480 sd->dev 0x4418a010
[   19.070427] acamera_camera_sensor_init@soc_sensor.c:564 GENERIC(ERR) :Sensorsubdevice init
[   19.070761] config sensor os08a10 driver.
[   19.070814] ir_cut_get_named_gpio@soc_sensor.c:477 GENERIC(ERR) :ir cut gpio count = 1
[   19.070828] ir_cut_get_named_gpio@soc_sensor.c:482 GENERIC(ERR) :ir cut gpio name [0] = 404
[   19.070833] sensor bsp init
[   19.070841] acamera_camera_async_bound@main_kernel_juno_v4l2.c:133 GENERIC(ERR) :bound called with sd 0x2ae6d98, asd 0x22bcab8, sd->dev 0x46ea8010, name SocSensor
[   19.070849] acamera_camera_async_complete@main_kernel_juno_v4l2.c:187 GENERIC(ERR) :complete called
[   19.070853] acamera_camera_async_complete@main_kernel_juno_v4l2.c:189 GENERIC(ERR) :starting V4L2 firmware
[   19.071153] isp_v4l2_ctrl_s_ctrl_standard@isp-v4l2-ctrl.c:43 GENERIC(ERR) :Control - id:0x980900, val:128, is_int:1, min:0, max:255.
[   19.071164] isp_fw_do_set_brightness@fw-interface.c:916 GENERIC(ERR) :ISP FW
not inited yet
[   19.071170] isp_cma_alloc@isp-v4l2.c:650 GENERIC(ERR) :Failed alloc cma page
[   19.071184] acamera_camera_async_complete@main_kernel_juno_v4l2.c:198 GENERI
C(ERR) :Failed to register ISP v4l2 driver.
[   19.071193] soc_sensor_probe@soc_sensor.c:530 GENERIC(ERR) :register v4l2 se
nsor device. result -1, sd 0x2ae6d98 sd->dev 0x46ea8010
[   19.071214] soc_sensor: probe of sensor failed with error -1
[   19.074324] camera_ioctl@soc_sensor.c:251 GENERIC(ERR) :Failed to process camera_ioctl. Sensor is not initialized yet. camera_init must be called before
[   19.075273] soc_lens_ioctl@soc_lens.c:100 GENERIC(ERR) :Failed to process lens_ioctl. Lens is not initialized yet. lens_init must be called before
[   19.255499] meson-remote ff808040.rc: remote_ioctl invalid user space pointe

Running on Fenix 1.0.4 Ubuntu 20.04.2 LTS Linux 4.9.241.

hf@Khadas:~$ ls /dev/video*
/dev/video10  /dev/video11  /dev/video12  /dev/video13  /dev/videosync

Any idea? I will provide more information if you wonder. Thanks!

Please provide the full kernel log and the hardware connection.

@numbqq Sorry for long delay, I post full kernel log to this gist.

I found some errors from the kernel log. Can you provide more information ?

  • free
  • cat /etc/fenix-release

And which image ? Desktop or server?


hf@Khadas:~$ free
              total        used        free      shared  buff/cache   available
Mem:        1905684     1292512       75540      196728      537632      392340
Swap:        952824       70996      881828
hf@Khadas:~$ cat /etc/fenix-release 
################ GIT VERSION ################

I first install IM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V1.0.2-210207 and upgrade to the latest.

Please use this image and do not upgrade to check the camera.


Yes, camera does work at fresh install system(VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530.7z . Is it possible to support OS01A10 in new built systems?

It works on my side. Can you update to latest v1.0.5 release to check again?

Thanks, OS01A10 seem to work on v1.05 now. But ffmpeg/vlc fail to find the hardware decoder after upgrade system. Only single capture works, live fail.

khadas@Khadas:~$ ffplay /dev/video0
ffplay: /lib/aarch64-linux-gnu/libasound.so.2: no version information available (required by /lib/aarch64-linux-gnu/libavdevice.so.58)
ffplay: /lib/aarch64-linux-gnu/libasound.so.2: no version information available (required by /lib/aarch64-linux-gnu/libavdevice.so.58)
ffplay: /lib/aarch64-linux-gnu/libasound.so.2: no version information available (required by /lib/aarch64-linux-gnu/libsndio.so.7.0)
ffplay: /lib/aarch64-linux-gnu/libasound.so.2: no version information available (required by /lib/aarch64-linux-gnu/libsndio.so.7.0)
ffplay: /lib/aarch64-linux-gnu/libasound.so.2: no version information available (required by /lib/aarch64-linux-gnu/libflite.so.1)
ffplay version 4.2.4-1ubuntu0.1 Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Failed to initialize a hardware accelerated renderer: Couldn't find matching render driver
Failed to create window or renderer: Couldn't find matching render driver

I’m not sure whether it is caused libasound2 library, you can try to reinstall the library to check:

$  sudo apt-get install --reinstall libasound2

No, it doesn’t work, even with other USB cameras.

Previous version works?

Yes, it works well in fresh installation.

OK. Thanks for your feedback, we will check thuis issue.

Are you sure ffplay works with MIPI camera in fresh installation?

The MIPI camera is Multiplanar, so it seems not work with ffmpeg, but USB camera works. So please use guvcview to preview the MIPI camera.

And I also update to latest firmware version. The USB camera also broken, but there is a workaround to fix this issue:

$ sudo apt-get install --reinstall libasound2
$ wget http://ports.ubuntu.com/ubuntu-ports/ubuntu-ports/pool/universe/libs/libsdl2/libsdl2-2.0-0_2.0.10+dfsg1-3_arm64.deb
$ sudo dpkg -i libsdl2-2.0-0_2.0.10+dfsg1-3_arm64.deb

Sorry for my misunderstanding. I should clear that ffplay works well with USB camera and MIPI works well with guvcview in fresh installation.

With your patch, MIPI and USB camera works with opencv and guvcview. The ffpaly will crash gnome desktop without previous hardware accelerated renderer error. But guvcview and vlc can play USB camera. I don’t plan to fix this ffmpeg issue.