Page 1 of 1

How to turn on the serial console on Parallella

PostPosted: Tue Nov 10, 2015 3:14 pm
by aolofsson
The serial port is disabled by default in the stock SD card images found here (https://www.parallella.org/create-sdcard)

To turn on the serial port for debugging, do the following (Ubuntu based instructions). This should be done on your regular machine (not Parallella) with a formatted SD card inserted in your SD reader slot.

Uncompile the binary Linux device tree:
Code: Select all
$ sudo apt-get install device-tree-compiler
$ cp /media/<username>/boot/devicetree.dtb
$ dtc -I dtb -O dts -o devicetree.dts devicetree.dtb


Open the devicetree.dts file and add console statement to bootargs:
Code: Select all
   chosen {
      bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait";
      linux,stdout-path = "/amba@0/serial@e0001000";
   };


Compile device tree:
Code: Select all
$ dtc -I dts -O dtb -o devicetree.dtb devicetree.dts
$ sudo cp devicetre.dtb  /media/<username>/boot
$ sync

Re: How to turn on the serial console on Parallella

PostPosted: Tue Nov 10, 2015 10:00 pm
by nickoppen
Thanks Andreas,

Is there any way of writing to the serial port from the Epiphany?

nick