How to turn on the serial console on Parallella

A forum for documenting the Parallella and Epiphany . (Not Q&A!)

How to turn on the serial console on Parallella

Postby aolofsson » Tue Nov 10, 2015 3:14 pm

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
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: How to turn on the serial console on Parallella

Postby nickoppen » Tue Nov 10, 2015 10:00 pm

Thanks Andreas,

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

nick
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia


Return to Quick Start Guides , Documentation, Examples (Start Here!)

Who is online

Users browsing this forum: No registered users and 2 guests

cron