10-07-2018, 06:12 AM
Hi,
I'm using Ayufan's 3.40 kernel, and I find out that UART2 is disabled by default in data tree file. It's possibility that it's also disabled on anarsoul's kernel, so this is a way how to enable it:
Now, open devicetree.dts in your favorite editor, search for uart@01c28800, and there should be status = "disabled"; , replace "disabled" with "okay", and save (maybe you will have problems with permissions, so chown the file).
Then:
Now, restart your SOPINE. You should get /dev/ttyS2 here, this is your UART2 :-) .
- gamiee
I'm using Ayufan's 3.40 kernel, and I find out that UART2 is disabled by default in data tree file. It's possibility that it's also disabled on anarsoul's kernel, so this is a way how to enable it:
PHP Code:
sudo apt-get install device-tree-compiler
sudo dtc -I dtb -O dts -o devicetree.dts /boot/pine64/sun50i-a64-pine64-sopine.dtb
Then:
PHP Code:
sudo mv /boot/pine64/sun50i-a64-pine64-sopine.dtb /boot/pine64/sun50i-a64-pine64-sopine.o.dtb
sudo dtc -I dts -O dtb -o /boot/pine64/sun50i-a64-pine64-sopine.dtb devicetree.dts
Now, restart your SOPINE. You should get /dev/ttyS2 here, this is your UART2 :-) .
- gamiee
Also known as gamiee