DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-allwinner
<DC-IRC> <juanesf91> Hello everyone, I want to generate and test the ov5640 camera overlay on sun8i-r40. Should I generate an overlay for the camera and another for i2c4? Or generate one with both elements?
<DC-IRC> <juanesf91> I want to convert precisely that same one into an overlay. The question is to separate i2c4?
<DC-IRC> <viraniac> if you are going to put that ov5640 block in i2c4, then keep them as one, otherwise you can create two different overlays. Honestly, I think its up to you how you want to structure them as long as it works fine
<DC-IRC> <juanesf91> The csi connector of the bananapi m2 ultra is connected to csi-0 and i2c4, there is no other option. so I should do the camera overlay with i2c4 included
<DC-IRC> <Tonymac32> Yeah if the hardware is linked and there's no other use for that I2C I would say it is included
<DC-IRC> <juanesf91> I found that overlay by wens, how can I add it to the compilation to test how it works
<DC-IRC> <juanesf91> It must be added to:
<DC-IRC> <viraniac> I don't think that repository is not under use
<DC-IRC> <juanesf91> I have to create a folder for sun8i-r40 and add inside
<DC-IRC> <viraniac> we now add things as a patch to kernel/archive/sunxi-<kernel_version>/patches.armbian
<DC-IRC> <viraniac> run ./compile.sh board=bananapim2ultra branch=current kernel-patch
<DC-IRC> <viraniac> go into cache/sources/linux-kernel-worktree/6.1__sunxi__armhf/arch/arm/boot/dts/overlay place your overlay there and also add it to Makefile thats present in that directory
<DC-IRC> <viraniac> Then go back in the terminal window where you ran kernel-patch command and it should help you create a patch that you should be able to place in the either in patch/kernel/archive/sunxi-<kernel_version> directory or userpatches/kernel/archive/sunxi-<kernel_version>/ directory
<DC-IRC> <viraniac> I don't think that repository is under use
<DC-IRC> <juanesf91> Thanks