WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Enabling Serial Console  (Read 2218 times)

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 265
Enabling Serial Console
« on: February 25, 2021, 08:37:53 AM »
I can't seem to enable the serial console for PiCore 13 on a Raspberry Pi Zero or Raspberry Pi Zero W.

I've added enable_uart=1 to config.txt. In cmdline.txt I've tried:
console=ttyAMA0,115200
console=ttyS0,115200
console=/dev/ttyS0,115200
console=Serial0,115200

It's driving me nuts. I know everything's hooked up right because I had PiCore 11 working via serial on a Pi Zero, and can access Raspberry Pi OS over serial.

I hooked it up to a TV to confirm it is booting, but access via the serial console would be much more practical.

Offline Twist

  • Newbie
  • *
  • Posts: 41
Re: Enabling Serial Console
« Reply #1 on: February 25, 2021, 09:05:41 AM »
For a Pi0W:
- add to cmdline.txt: console=serial0,115200
- optionally, to catch early boot messages, also add: earlycon=pl011,mmio32,0x20201000
- in /opt/bootlocal.sh uncomment the line that starts serial console (think has been commented out since picore12)
- in config.txt add a section for PI0 towards the end:
Code: [Select]
[PI0]                                                                         
dtoverlay=disable-bt

This works for me on picore 12 on a Pi0W.

Did you see my ramblings from a while ago?

« Last Edit: February 25, 2021, 09:07:33 AM by Twist »

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 265
Re: Enabling Serial Console
« Reply #2 on: February 25, 2021, 06:18:31 PM »
Thanks, that works for my Pi Zero and Zero W. The only trouble is that eventually I do want to get Bluetooth working too, but I'll leave that headache for later.

Also I forgot to preserve permissions when I unpacked mydata.tgz to edit /opt/bootlocal.sh, so I'll have to do that again because now the "tc" user can't even enter /home/tc.

Thanks for the link. I think this is definately an area for improvement in PiCore.
« Last Edit: February 25, 2021, 06:21:26 PM by CNK »