BPI-R2 PRO ENABLE OTHER Serial Interfaces

Is this boot partition you mantioned about ? Or maybe boot partition deleted by banana pi when i plug in sd card for first time? Screenshot%20from%202022-09-29%2014-37-46

I guess it is similar,i do not know the bpi-way,only the rockchip mainline one :slight_smile:

I do not want to use outdated kernels and also unchecked code. (R2 mt6625 code is also not nice,but inside the mainline kernel it was a usable way to go).

Hello could you send me video about compiling kernel and sd card uploading for bpi-r2 pro? Best Regards

Screen 3.5inch RPI display. 430x320 pixel.XPT2046 Touch Controller.please help. How to connect with banana pi m2 zero?

Please post question in m2 zero section. It is not related to r2pro

Flashing my image to sdcard is 1 command (after unpacking in linux with dd,windows depends on application). What helps video about kernel compilation? Could you please try first my image and then step by step replace kernel/fdt.

Hello thank you for your help. I found my mistake and i flashed your image to sd card and i changed files . I compiled your repo and your image and dtb file worked for me. I set sataus uart0 ,uart7 and uart9 okay and i add uart5 like this in file https://github.com/frank-w/BPI-R2-4.14/blob/5.19-main/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts#L671:

&uart5 {
        /* pin 21 (TX) + 24 (RX) of header con2 */
        /* shared with pwm13 and pwm12/spi3 *
        pinctrl-0 = <&uart5m1_xfer>;
        status = "okay";
};

but I didn’t see 5 serial ports after dmesg | grep ttyS* command Best Regards Thank you

You can try dmesg|grep ‘serial\|uart’ or similar to check probing. Are you sure your dtb is loaded? Maybe you forgot to disable conflicting devices (see comments).

For serial devices there is a max-setting in kernel config. You can check it with zgrep -i ‘uart’ /proc/config.gz

How much serials do you have? Please post output of grepped dmesg and config.gz

Edit: you miss closing / at the end of second comment in uart5. Seems like you took uart9 and only changed reference to uart5…it should be pins 26+28, pinctrl m1 seems right and only depency seems spi (but only chip-enable which maybe no problem)

I wonder why this is missing in my code :thinking:

Hello outputs of commands ARE here 3102022 Ekran%20Al%C4%B1nt%C4%B1s%C4%B1 Best Regards

yes there are 4 uarts mapped because the CONFIG_SERIAL_8250_NR_UARTS/RUNTIME_UARTS are set to 4 :slight_smile:

increase this value to at least 5 and you should see all 5 if dts is right

Hello where should i change this parameter ?

running menuconfig

when using my repo:

./build.sh config

then compile again and update FIT

Hello I don’t understand . which file should i change or which kernel configuration setting should i change?

change kernel-configuration CONFIG_SERIAL_8250_NR_UARTS and CONFIG_SERIAL_8250_RUNTIME_UARTS to at least 5

4 are currently recognized which is the max currently defined

Hello i looked into kernel features,boot options and device drivers .But i could not find it could you give me an advice? Screenshot%20from%202022-10-03%2016-53-56

Best Regards

You can search for the options with / and then with the number in brackets to jump to it

Thank you very much . It works i tested it.

you can also change these 2 settings in defconfig (./build.sh defconfig) and import it again