LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 08-22-2017, 06:36 AM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 889

Rep: Reputation: 123Reputation: 123
enabling uart4 and uart7 on a Banana Pro


I spent several hours today trying to find a solution for this to no avail. Perhaps I didn't have the right search words.

There are three uart devices on my Banana Pro after boot. uart0, /dev/ttyS0, is reserved for terminal comm but I should be able to use uart4, /dev/ttyS1 and uart7, /dev/ttyS1, for other things, however, only /dev/ttyS0 is enabled at boot.
Code:
rick@bpro10:~$ dmesg | grep tty
[    0.000000] Kernel command line: console=ttyS0,115200n8 TERM=screen-256color root=/dev/sda1 waitforroot=3 rootfstype=ext4
[    0.954485] console [ttyS0] disabled
[    0.974724] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.671234] console [ttyS0] enabled
[    1.698214] 1c29000.serial: ttyS1 at MMIO 0x1c29000 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.730585] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 47, base_baud = 1500000) is a U6_16550A

root@bpro10:/home/rick# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:U6_16550A mmio:0x01C28000 irq:45 tx:8684 rx:0 RTS|DTR
1: uart:U6_16550A mmio:0x01C29000 irq:46 tx:0 rx:0
2: uart:U6_16550A mmio:0x01C29C00 irq:47 tx:0 rx:0
I decompiled sun7i-a20-bananapro.dtb with dtc and had a squiz. The nodes in the dts file for uart4 and uart7 seem complete and correct when compared with the corresponding uart0 nodes and all three are set "status = "okay"; and not "status = "disabled";"

This leads me to thinks that there is something else I need to do to enable /dev/ttyS1 and /dev/ttyS2 but I have yet to find or figure out what to do.

Last edited by justwantin; 08-26-2017 at 06:36 PM.
 
Old 08-22-2017, 06:43 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,497
Blog Entries: 2

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
did You try hard-coded inodes in /dev ?

Sometimes i copy an install "root to root" and I omit the usual suspects:

Code:
/dev
/syc
/proc
and on some occasions the boot (or whatever) fails until i manually copy the /dev in offline mode (while the OS has no generated/"mirrored" links in it)

get an live linux and compare the /dev/ of running and offline Slackware Your self (or examine one of the aaa*.tgz packages holding the root tree)

hope this helps?
 
Old 08-26-2017, 06:35 PM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 889

Original Poster
Rep: Reputation: 123Reputation: 123
This was a very trivial problem that I certainly did a good job complicating. I could enable uart1 using stty
Code:
root@bpro10:/home/rick# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:U6_16550A mmio:0x01C28000 irq:45 tx:8684 rx:0 RTS|DTR
1: uart:U6_16550A mmio:0x01C29000 irq:46 tx:0 rx:0
2: uart:U6_16550A mmio:0x01C29C00 irq:47 tx:0 rx:0
3: uart:unknown port:00000000 irq:0

root@bpro10:/home/rick# stty -F /dev/ttyS1 9600

root@bpro10:/home/rick# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:U6_16550A mmio:0x01C28000 irq:45 tx:8694 rx:0 RTS|DTR
1: uart:U6_16550A mmio:0x01C29000 irq:46 tx:30 rx:9377 fe:1 brk:9363 RTS|DTR
2: uart:U6_16550A mmio:0x01C29C00 irq:47 tx:0 rx:0
3: uart:unknown port:00000000 irq:0

Last edited by justwantin; 08-26-2017 at 06:37 PM. Reason: tyop
 
Old 08-27-2017, 04:39 AM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,497
Blog Entries: 2

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
so there merely was no tty connected?
 
  


Reply

Tags
/dev/ttys2, banana pro, uart


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install on a Lemaker Banana Pro justwantin Slackware - ARM 25 01-09-2016 09:26 PM
Enabling hardware acceleration for ATI Radeon 9600 Pro usr345 Linux - Hardware 9 04-12-2013 02:27 PM
Beagle Bone Rev A5 serial communication UART4 and UART5 mux settings mandar.nandale Linux - Embedded & Single-board computer 0 05-22-2012 07:11 AM
Enabling DRI on Radeon 9000 Pro Locura Slackware 3 07-08-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration