This was posted on the linksprite forums by Bharath Rao.
Original discussion can be found here.
I have enabled 2 serial ports, UART 5 and UART 6.
http://www.rs-online…b-host-pcduino3 This link has the steps to extract script.bin file and edit it and repack it.
http://jbvsblog.blog…to-4-uarts.html This has the procedure to enable UARTs in the script.fex file
After editing the script.bin and copying it to your /boot partition, reboot.
To check whether the UARTs are enabled run the command
$ dmesg | grep uart
[ 2.359573] [uart]: used uart info.: 0x65
To enable UART 5(ttyS2) we first need to set the pin mode.
GPIO10 – UART5_TX
GPIO13 – UART5_RX
$ echo “3” > /sys/device/virtual/misc/gpio/mode/gpio10
$ echo “3” > /sys/device/virtual/misc/gpio/mode/gpio13
Similarly for UART 6 (ttyS3)
GPIO11 – UART6_TX
GPIO12 – UART6_RX
$ echo “3” > /sys/device/virtual/misc/gpio/mode/gpio11
$ echo “3” > /sys/device/virtual/misc/gpio/mode/gpio12
I have attached the script.fex file I used to enable them. You could just rename it to script.fex and use it.
Leave a Reply
You must be logged in to post a comment.