Camera not detected

This is for ARMv8 based devices

Camera not detected

Postby marktranter » Sat Mar 11, 2023 9:05 am

Hi, I have a RPi 4 running the ARMv7 installation.

I have a Camera Module 3 (IMX708)

I have read various guides online and I have got to the point where it says the camera is "supported" but it is not detected.

This is my config.txt

$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d
initramfs initramfs-linux.img followkernel
display_auto_detect=1

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
disable_splash=1

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
dtparam=audio=on
audio_pwm_mode=2
start_x=1

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Uncomment to enable bluetooth
dtparam=krnbt=on

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
gpu_mem=512
program_usb_boot_mode=1
over_voltage=6
arm_freq=2000
gpu_freq=750

')

I am not sure if I need to blacklist or load any modules as I couldn't find information specific to the RPi 4.

Many thanks

Mark
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby marktranter » Sat Mar 11, 2023 9:17 am

Sorry posted in wrong place.
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby graysky » Sat Mar 11, 2023 11:20 am

MOD NOTE - moved.

Re: your topic: which kernel are you running? Likely you need linux-rpi which ships the imx708 module with it whereas linux-armv7 does not support that.

As an aside, why are you running armv7h on RPi4? I can think of no use cases for this. Better to use 64-bit kernel/userland.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Camera not detected

Postby marktranter » Sat Mar 11, 2023 1:32 pm

Thank you.

I am not sure why I am running that version.
I followed the instructions on this page:
https://archlinuxarm.org/platforms/armv ... berry-pi-4

$this->bbcode_second_pass_code('', '
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz
bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root
sync
')

Should it be ... armv8-latest ...

Or should I use the other one:

$this->bbcode_second_pass_code('', '
http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
')
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby graysky » Sat Mar 11, 2023 2:49 pm

If you want 64-bit use the 64-bit tarball. ArchLinuxARM-rpi-aarch64-latest.tar.gz

If it ships with vanilla linux kernel (linux-aarch64) you can test with uname -a upon booting, you can replace to use the RPi Foundation kernel

viewtopic.php?f=9&t=16360
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Camera not detected

Postby marktranter » Sat Mar 11, 2023 3:10 pm

Thank you.
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby graysky » Sat Mar 11, 2023 4:03 pm

YW. Is it working as expected?
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Camera not detected

Postby marktranter » Sat Mar 11, 2023 4:22 pm

I am just reinstalling with correct version. I'll try the camera later.
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby marktranter » Sun Mar 12, 2023 8:49 pm

I've reinstalled using armv8. Still getting enabled 1 & detected 0
I changed gpu mem to 128 as startx wouldn't work when set to 512.
Do I need to load a module for the imx708 or should the overlay autodetect do that?
marktranter
 
Posts: 10
Joined: Fri Mar 10, 2023 9:56 am

Re: Camera not detected

Postby graysky » Mon Mar 13, 2023 11:46 am

linux-rpi kernel?
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Next

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 3 guests