WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Disable the serial console and login session that uses /dev/ttyAMA0  (Read 2457 times)

Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Hi how do I do this?

Disable the serial console and login session that uses /dev/ttyAMA0

My dmesg outputs
Quote
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x78ebd8bf smsc95xx.macaddr=B8:27:EB:EB:D8:BF bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3ea00000 vc_mem.mem_size=0x3f000000  dwc_otg.fiq_fsm_enable=0 dwc_otg.speed=1 tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF host=piCorePlayer dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0 waitusb=2

I have read and read and unable to find a solution on how to fix this. Using latest picoreplayer (Tinycore v8.0).

There are none cmdline.txt files anywhere.

Thanks in advance.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Disable the serial console and login session that uses /dev/ttyAMA0
« Reply #1 on: February 06, 2017, 01:29:32 PM »
Hi bambadoo
Quote
There are none cmdline.txt files anywhere.
I think what happens on Raspberry Pi is that the bootable partition has that file and it gets unmounted once the Pi is up and running.
So try mounting that partition and looking there.

Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Re: Disable the serial console and login session that uses /dev/ttyAMA0
« Reply #2 on: February 06, 2017, 01:45:50 PM »
Thanks for quick response


Quote
tc@piCorePlayer:/mnt$ ls
mmcblk0p1/ mmcblk0p2/ sda1/
tc@piCorePlayer:/mnt$ mount mmcblk0p1
mount: /dev/mmcblk0p1 is already mounted or /mnt/mmcblk0p1 busy
       /dev/mmcblk0p1 is already mounted on /mnt/mmcblk0p1

But suddenly the files appear :) Made changes and it seems to work :) Once again thanks alot.
« Last Edit: February 06, 2017, 01:57:06 PM by bambadoo »

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Disable the serial console and login session that uses /dev/ttyAMA0
« Reply #3 on: February 06, 2017, 07:16:59 PM »
Hi bambadoo,

Because we do this kind of stuff all the time developing piCorePlayer (not piCore) we added a few aliases to piCorePlayer:

$ m1
$ c1
$ u1

to mount, cd and unmount partition 1.

Also, $ vicfg  might be useful.

Type $ pcp to get a list of other useful shutdown/backup commands.

regards
Greg



Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Re: Disable the serial console and login session that uses /dev/ttyAMA0
« Reply #4 on: February 07, 2017, 03:28:03 PM »
Thanks thats great tips :)

Best regards.
Those pcp commands for Squeezelite/LMS does not seem to work for me. Not to worry.
« Last Edit: February 07, 2017, 03:48:45 PM by bambadoo »

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Disable the serial console and login session that uses /dev/ttyAMA0
« Reply #5 on: February 07, 2017, 03:58:09 PM »
Standard piCore Linux command $ alias gives a list of the aliases.

Did you type "pcp bu" for backup?

It is not an aliases, though you could set one $ alias bu="pcp bu"