Hello, my Pine64 PineCube board (Sochip/Allwinner S3) is dead, so I am 
trying to use the camera on my BananaPi M2 Ultra (Allwinner R40). From the 
outset I am testing Chen-Yu Tsai's patch (link 
<https://patchwork.kernel.org/project/linux-arm-kernel/patch/20191215165924.28314-15-w...@kernel.org/>)
 
in Armbian without success.
I'm not sure what could be wrong, the regulators are activated, i2c4 is 
also activated. but I don't get /dev/video1 for the camera only video0 
(cedrus).


-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/8cc8fe71-1ccb-4c6a-b3e5-3e6bbd8bdf21n%40googlegroups.com.
suario@Soporte-3:~$ ssh bpi@192.168.0.109
bpi@192.168.0.109's password: 
 ____  ____  _   __  __ ____  _   _ 
| __ )|  _ \(_) |  \/  |___ \| | | |
|  _ \| |_) | | | |\/| | __) | | | |
| |_) |  __/| | | |  | |/ __/| |_| |
|____/|_|   |_| |_|  |_|_____|\___/ 
                                    
Welcome to Armbian 22.08.0-trunk Bullseye with Linux 5.15.55-sunxi

No end-user support: community creations

System load:   42%              Up time:       0 min    
Memory usage:  5% of 1.97G      IP:            192.168.0.109
CPU temp:      40°C             Usage of /:    9% of 15G        

[ 0 security updates available, 3 updates total: apt upgrade ]
Last check: 2022-08-26 13:35

Last login: Fri Aug 26 13:25:34 2022 from 192.168.0.103
bpi@bananapim2ultra:~$ dmesg | grep -i csi
[    1.193718] SCSI subsystem initialized
[    1.508969] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
246)
[    1.947449] csi-avdd: Bringing 700000uV into 2800000-2800000uV
[    1.947940] csi-avdd: supplied by regulator-dummy
[    1.950290] csi-iovcc: Bringing 700000uV into 2800000-2800000uV
[    1.950760] csi-iovcc: supplied by regulator-dummy
[    1.951295] csi-dvdd: Bringing 700000uV into 1500000-1500000uV
[    1.951781] csi-dvdd: supplied by regulator-dummy
[    1.960659] i2c 2-003c: Fixing up cyclic dependency with 1c09000.csi
[    2.022247] scsi host0: ahci-sunxi
[    2.336386] scsi 0:0:0:0: Direct-Access     ATA      GIGABYTE GP-GSTF 61.3 
PQ: 0 ANSI: 5
[    2.337295] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.340790] sd 0:0:0:0: [sda] Attached SCSI disk
bpi@bananapim2ultra:~$ lsmod | grep -i csi
sun4i_csi              24576  0
v4l2_fwnode            24576  2 ov5640,sun4i_csi
videobuf2_dma_contig    20480  2 sunxi_cedrus,sun4i_csi
v4l2_async             20480  3 ov5640,v4l2_fwnode,sun4i_csi
videobuf2_v4l2         20480  3 sunxi_cedrus,v4l2_mem2mem,sun4i_csi
videobuf2_common       45056  6 
sunxi_cedrus,videobuf2_dma_contig,videobuf2_memops,v4l2_mem2mem,videobuf2_v4l2,sun4i_csi
bpi@bananapim2ultra:~$ i2cdetect -l
Command 'i2cdetect' is available in the following places
 * /sbin/i2cdetect
 * /usr/sbin/i2cdetect
The command could not be located because '/usr/sbin:/sbin' is not included in 
the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated 
with your user account.
i2cdetect: command not found
bpi@bananapim2ultra:~$ sudo i2cdetect -l
[sudo] password for bpi: 
i2c-1   i2c             mv64xxx_i2c adapter                     I2C adapter
i2c-2   i2c             mv64xxx_i2c adapter                     I2C adapter
i2c-0   i2c             DesignWare HDMI                         I2C adapter
bpi@bananapim2ultra:~$ sudo i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
bpi@bananapim2ultra:~$ ls /dev/vid*
/dev/video0
bpi@bananapim2ultra:~$ ls /dev/med*
/dev/media0
bpi@bananapim2ultra:~$ media-ctl --print-topology
Command 'media-ctl' not found, but can be installed with:
sudo apt install v4l-utils
bpi@bananapim2ultra:~$ sudo apt-install v4l-utils
sudo: apt-install: command not found
bpi@bananapim2ultra:~$ sudo apt install v4l-utils
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes adicionales:
  libjpeg62-turbo libv4l-0 libv4l2rds0 libv4lconvert0
Se instalarán los siguientes paquetes NUEVOS:
  libjpeg62-turbo libv4l-0 libv4l2rds0 libv4lconvert0 v4l-utils
0 actualizados, 5 nuevos se instalarán, 0 para eliminar y 3 no actualizados.
Se necesita descargar 1.032 kB de archivos.
Se utilizarán 2.477 kB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Des:1 http://deb.debian.org/debian bullseye/main armhf libjpeg62-turbo armhf 
1:2.0.6-4 [123 kB]
Des:2 http://deb.debian.org/debian bullseye/main armhf libv4lconvert0 armhf 
1.20.0-2 [128 kB]
Des:3 http://deb.debian.org/debian bullseye/main armhf libv4l-0 armhf 1.20.0-2 
[102 kB]
Des:4 http://deb.debian.org/debian bullseye/main armhf libv4l2rds0 armhf 
1.20.0-2 [75,9 kB]
Des:5 http://deb.debian.org/debian bullseye/main armhf v4l-utils armhf 1.20.0-2 
[604 kB]
Descargados 1.032 kB en 10s (98,8 kB/s)
Seleccionando el paquete libjpeg62-turbo:armhf previamente no seleccionado.
(Leyendo la base de datos ... 40961 ficheros o directorios instalados 
actualmente.)
Preparando para desempaquetar .../libjpeg62-turbo_1%3a2.0.6-4_armhf.deb ...
Desempaquetando libjpeg62-turbo:armhf (1:2.0.6-4) ...
Seleccionando el paquete libv4lconvert0:armhf previamente no seleccionado.
Preparando para desempaquetar .../libv4lconvert0_1.20.0-2_armhf.deb ...
Desempaquetando libv4lconvert0:armhf (1.20.0-2) ...
Seleccionando el paquete libv4l-0:armhf previamente no seleccionado.
Preparando para desempaquetar .../libv4l-0_1.20.0-2_armhf.deb ...
Desempaquetando libv4l-0:armhf (1.20.0-2) ...
Seleccionando el paquete libv4l2rds0:armhf previamente no seleccionado.
Preparando para desempaquetar .../libv4l2rds0_1.20.0-2_armhf.deb ...
Desempaquetando libv4l2rds0:armhf (1.20.0-2) ...
Seleccionando el paquete v4l-utils previamente no seleccionado.
Preparando para desempaquetar .../v4l-utils_1.20.0-2_armhf.deb ...
Desempaquetando v4l-utils (1.20.0-2) ...
Configurando libjpeg62-turbo:armhf (1:2.0.6-4) ...
Configurando libv4lconvert0:armhf (1.20.0-2) ...
Configurando libv4l2rds0:armhf (1.20.0-2) ...
Configurando libv4l-0:armhf (1.20.0-2) ...
Configurando v4l-utils (1.20.0-2) ...
Procesando disparadores para libc-bin (2.31-13+deb11u3) ...
Procesando disparadores para man-db (2.9.4-2) ...
bpi@bananapim2ultra:~$ media-ctl --print-topology
Media controller API version 5.15.55

Media device information
------------------------
driver          cedrus
model           cedrus
serial          
bus info        platform:cedrus
hw revision     0x0
driver version  5.15.55

Device topology
- entity 1: cedrus-source (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Source
                -> "cedrus-proc":0 [ENABLED,IMMUTABLE]

- entity 3: cedrus-proc (2 pads, 2 links)
            type Node subtype Unknown flags 0
        pad0: Sink
                <- "cedrus-source":0 [ENABLED,IMMUTABLE]
        pad1: Source
                -> "cedrus-sink":0 [ENABLED,IMMUTABLE]

- entity 6: cedrus-sink (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "cedrus-proc":1 [ENABLED,IMMUTABLE]

bpi@bananapim2ultra:~$

Reply via email to