This code originated from https://pan.baidu.com/s/10ZlibhmVzezX7H5eWrBEYA Intital steps:
- unzip the newer sdk
- remove buildroot/build directory and replace it with the corresponding rep from the "older sdk"
- opened build.sh and uncommented the crap in line 778
To make the A201 board compatible with imx415 connected to csi0, I have created new .dts and .mk files \
- kernel/arch/arm/boot/dts created rv1126-openhd.dts
- device/rockchip/rv1126_rv1109 created BoardConfig-openhd (copy paste BoardConfig-aybering & specified to use the above .dts file)
- similar as described in the A201 doc, the 2 following commands have to performed once before building. NOTE: Use the openhd config file, as described in the following !
source envsetup.sh -> select 78 rockchip_rv1126_rv1109
build.sh lunch -> select 8 BoardConfig-openhd.mk
- once the above steps have been performed, you can build with ./build.sh
this might take a considerable amount of time the first time. After the build was successfull, you should see a new directory under "IMAGE" called "RV1126-OPENHD_20210727.0227_RELEASE_TEST" or similar.
After a succesfull build, you can flash the generated update.img file onto the dev board
- open the rkdev tool (windows onyl)
- change to bootloader mode
- flash the image by selecting the generated update.img file, then clicking flash. this should take not more than ~30 seconds.
NOTE: There are probably easier ways, figure them out ;)
Re-building and re-flashing the whole image is sometimes the only way, but not always. For example, if I modify code under the "external" directory, one can just re-build this part and manually update it on the running dev board either via ssh or adb (I prefer adb). Look at my 2 scripts in the root of how to do so (consti_flash_my_bin.sh / consti_rebuild_rkmedia.sh )
NOTE: to use adb, you have to have an usb connection - for ssh you need to have an ethernet connection.
- connect the sensor to the csi0 port
- Depending how the imx415.c driver is setup, you need different iqfiles to get an image. Ask in telegram for that.
- You can use the binaries under /oem/usr/bin to test and create a simple raw h264 udp stream (telegram).