LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-11-2017, 04:41 PM   #1
wilhe_jo
LQ Newbie
 
Registered: Dec 2015
Posts: 2

Rep: Reputation: Disabled
Raspberry Pi Compute Module Serial Console


Hi there!

I have a little problem with my CM3(l) giving me no serial console...

Ok, that's not totally correct... I get serial output until a certain point (see log below)...

I followed http://elinux.org/RPi_Serial_Connection which seems not totally correct for the CM3... the serial port seems to be ttyAMA0 not ttyS0...

anyhow, I tried

AMA::respawn:/sbin/getty -L ttyAMA0 115200 vt100

just to be sure

S0::respawn:/sbin/getty -L ttyS0 115200 vt100

and since it works for the RPi tinyCore port

tty1::respawn:/sbin/getty 38400 tty1

cmdline.txt seems to be OK since i get kernel output...

any idea what could be the problem? oh, I did try 38400 baud

regards,
Johann


Code:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000
000] Linux version 4.9.12-v7-arm (root@drie) (gcc version 5.4.0 (GCC) ) #1 SMP Sun Feb 26 13:45:27 GMT 2017
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi Compute Module 3 Rev 1.0
[    0.000000] cma: Reserved 8 MiB at 0x3b400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @bbeb1000 s25548 r8192 d23604 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 243346
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=646 bcm2708_fb.fbheight=406 bcm2709.boardrev=0xa220a0 bcm2709.serial=0x635fd238 smsc95xx.macaddr=B8:27:EB:5F:D2:38 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 nofont root=/dev/mmcblk0p3 rootfstype=ext4 rootwait ro initrd=0xf00000,0x39E5A34
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 892236K/982016K available (7168K kernel code, 483K rwdata, 2044K rodata, 1024K init, 778K bss, 81588K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xbc000000 - 0xff800000   (1080 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbbf00000   ( 959 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80800000   (8160 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c78ebc   ( 484 kB)
[    0.000000]        .bss : 0x80c7a000 - 0x80d3c994   ( 779 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] \0x09Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000025] Switching to timer-based delay loop, resolution 52ns
[    0.000322] Console: colour dummy device 80x30
[    0.001244] console [tty1] enabled
[    0.001293] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001362] pid_max: default: 32768 minimum: 301
[    0.001723] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001765] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002778] Disabling cpuset control group subsystem
[    0.002964] CPU: Testing write buffer coherency: ok
[    0.003035] ftrace: allocating 22268 entries in 66 pages
[    0.056208] CPU0: update cpu_capacity 1024
[    0.056273] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.056373] Setting up static identity map for 0x100000 - 0x100034
[    0.058497] CPU1: update cpu_capacity 1024
[    0.058504] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.059150] CPU2: update cpu_capacity 1024
[    0.059157] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.059764] CPU3: update cpu_capacity 1024
[    0.059770] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.059851] Brought up 4 CPUs
[    0.060023] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.060053] CPU: All CPU(s) started in HYP mode.
[    0.060079] CPU: Virtualization extensions available.
[    0.060896] devtmpfs: initialized
[    0.071971] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.072286] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.072348] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.072914] pinctrl core: initialized pinctrl subsystem
[    0.073841] NET: Registered protocol family 16
[    0.076279] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.085224] hw-breakpoint: found 5 (+1 reserved) breakpoint 
and 4 watchpoint registers.
[    0.085272] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.085444] Serial: AMBA PL011 UART driver
[    0.089210] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.089833] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.527870] console [ttyAMA0] enabled
[    0.599074] bcm2835-dma 3f007000.dma: DMA legacy API manager at bc011000, dmachans=0x1
[    0.608901] SCSI subsystem initialized
[    0.612810] usbcore: registered new interface driver usbfs
[    0.618398] usbcore: registered new interface driver hub
[    0.623809] usbcore: registered new device driver usb
[    0.638934] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-02-17 20:37
[    0.648693] clocksource: Switched to clocksource arch_sys_counter
[    0.702288] VFS: Disk quotas dquot_6.6.0
[    0.706309] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.713513] FS-Cache: Loaded
[    0.716652] CacheFiles: Loaded
[    0.731750] NET: Registered protocol family 2
[    0.736969] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.744167] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.750813] TCP: Hash tables configured (established 8192 bind 8192)
[    0.757282] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.763264] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.769864] NET: Registered protocol family 1
[    0.774711] RPC: Registered named UNIX socket transport module.
[    0.780673] RPC: Registered udp transport module.
[    0.785389] RPC: Registered tcp transport module.
[    0.790121] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.796852] Trying to unpack rootfs image as initramfs...

[    4.326273] Freeing initrd memory: 59288K (80f00000 - 848
e6000)
[    4.333261] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    4.343752] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    4.366045] FS-Cache: Netfs 'nfs' registered for caching
[    4.372352] NFS: Registering the id_resolver key type
[    4.377439] Key type id_resolver registered
[    4.381657] Key type id_legacy registered
[    4.388141] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    4.395702] io scheduler noop registered
[    4.399659] io scheduler deadline registered
[    4.404212] io scheduler cfq registered (default)
[    4.413973] BCM2708FB: allocated DMA memory fb510000
[    4.418999] BCM2708FB: allocated DMA channel 0 @ bc011000
[    4.432971] Console: switching to colour frame buffer device 80x25
[    4.447216] KGDB: Registered I/O driver kgdboc
[    4.489388] bcm2835-rng 3f104000.rng: hwrng registered
[    4.496942] vc-cma: Videocore CMA driver
[    4.503129] vc-cma: vc_cma_base      = 0x00000000
[    4.510062] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    4.517581] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    4.525188] vc-mem: phys_addr:0x00000000 mem_base=0x3eb00000 mem_size:0x3ff00000(1023 MiB)
[    4.552595] brd: module loaded
[    4.566464] loop: module loaded
[    4.571595] Loading iSCSI transport class v2.0-870.
[    4.579128] usbcore: registered new interface driver smsc95xx
[    4.586850] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)

[    4.820568] Core Release: 2.80a
[    4.825605] Setting d
efault values for core params
[    4.832401] Finished setting default values for core params

[    5.040377] Using Buffer DMA mode
[    5.045675] Periodi
c Transfer Interrupt Enhancement - disabled
[    5.053619] Multiprocessor Interrupt Enhancement - disabled
[    5.061297] OTG VER PARAM: 0, OTG VER FLAG: 0
[    5.067703] Dedicated Tx FIFOs mode
[    5.073551] WARN::dwc_otg_hcd_init:1053: FIQ DMA bounce buffers: virt = 0xbb504000 dma = 0xfb504000 len=9024
[    5.087662] FIQ FSM acceleration enabled for :
[    5.087662] Non-periodic Split Transactions
[    5.087662] Periodic Split Transactions
[    5.087662] High-Speed Isochronous Endpoints
[    5.087662] Interrupt/Control Split Transaction hack enabled
[    5.120944] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058e888
[    5.129100] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058ebec length 36
[    5.137590] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbc07e000
[    5.145845] dwc_otg 3f980000.usb: DWC OTG Controller
[    5.153025] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    5.164676] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    5.172550] Init: Port Power? op_state=1
[    5.178671] Init: Power Port (0)
[    5.184236] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.193281] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.204877] usb usb1: Product: DWC OTG Controller
[    5.211809] usb usb1: Manufacturer: Linux 4.9.12-v7-arm dwc_otg_hcd
[    5.220275] usb usb1: SerialNumber: 3f980000.usb
[    5.227836] hub 1-0:1.0: USB hub found
[    5.233792] hub 1-0:1.0: 1 port detected
[    5.240770] usbcore: registered new interface driver usb-storage
[    5.249241] mousedev: PS/2 mouse device common for all mice
[    5.258022] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    5.267463] bcm2835-cpufreq: min=600000 max=1200000
[    5.275033] sdhci: Secure Digital Host Controller Interface driver
[    5.283588] sdhci: Copyright(c) Pierre Ossman
[    5.292518] sdhost: log_buf @ bb507000 (fb507000)
[    5.378726] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    5.408804] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    5.416901] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    5.458787] Indeed it is in
 host mode hprt0 = 00021501
[    5.478776] sdhci-pltfm: SDHCI platform and OF driver helper
[    5.526279] ledtrig-cpu: registered to indicate activity on CPUs
[    5.535089] hidraw: raw HID events driver (C) Jiri Kosina
[    5.543621] usbcore: registered new interface driver usbhid
[    5.551459] usbhid: USB HID core driver
[    5.559367] vchiq: vchiq_init_state: slot_zero = 0xbb580000, is_master = 0
[    5.578328] mmc0: host does not support reading read-only switch, assuming write-enable
[    5.589147] Initializing XFRM netlink socket
[    5.589167] NET: Registered protocol family 17
[    5.589289] Key type dns_resolver registered
[    5.589889] Registering SWP/SWPB emulation handler
[    5.590625] registered taskstats version 1
[    5.593775] vc-sm: Videocore shared memory driver
[    5.593784] [vc_sm_connected_init]: start
[    5.598144] [vc_sm_connected_init]: end - returning 0
[    5.598351] of_cfs_init
[    5.598432] of_cfs_init: OK
[    5.657627] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
[    5.662591] mmc0: new high speed SDHC card at address aaaa
[    5.667599] random: fast init done
[    5.669890] mmcblk0: mmc0:aaaa SS16G 14.8 GiB
[    5.685824]  mmcblk0: p1
[    5.690441] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    5.699457] Indeed it is in host mode hprt0 = 00001101
[    5.741743] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    5.791513] FS-Cache: Netfs 'cifs' registered for caching
[    5.799713] Key type cifs.spnego registered
[    5.805991] Key type cifs.idmap registered
[    5.861884] JFS: nTxBlock = 7505, nTxLock = 60046
[    5.9293
63] usb 1-1: New USB device found, idVendor=1a40, idProduct=0201
[    5.938319] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.947784] usb 1-1: Product: USB 2.0 Hub [MTT]
[    5.954162] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    5.967474] hub 1-1:1.0: USB hub found
[    5.973933] hub 1-1:1.0: 7 ports detected

[    6.182072] usbcore: registered new interface driver ums-
cypress
[    6.200633] usbcore: registered new interface driver ums-usbat
[    6.218569] usbcore: registered new interface driver ums-freecom
[    6.236718] usbcore: registered new interface driver ums-isd200
[    6.254877] usbcore: registered new interface driver ums-sddr09
[    6.272818] usbcore: registered new interface driver ums-sddr55
[    6.290818] usbcore: registered new interface driver ums-alauda
[    6.308410] usbcore: registered new interface driver ums-jumpshot
[    6.326241] usbcore: registered new interface driver ums-onetouch
[    6.408373] usbcore: registered new interface driver asix
 
Old 04-12-2017, 05:44 PM   #2
OldHolborn
Member
 
Registered: Jul 2012
Distribution: Slackware!
Posts: 130

Rep: Reputation: 96
Hi,

THis might help put some context round the ttyAMA0/ttyS0 difference, especially regarding the rpi3 ports. The CM3 not having Bluetooth may well have freed ttyAMA0 back

http://spellfoundry.com/2016/05/29/c...ncluding-pi-3/
 
Old 04-13-2017, 01:26 AM   #3
wilhe_jo
LQ Newbie
 
Registered: Dec 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
thank's for that...

I finally got it working in yesterdays very late-night debug session.

The problem seems to be very simple - the installer image for the RPi seems to spawn a shell on tty1.
This first console is used to display the "select-keyboard-layout script" and I think at that stage we're actually not multiuser yet.
So until the kernel shows debug data, everything's fine.
If tty0 is used as first console in a single-user-runlevel the output stops... at lest this seems logical to me.

If you remove "console tty1" from cmdline.txt, it seems that tty1 is not even created. This allows for a serial console on ttyAMA0 as first console and it works.

After installation I now do not get kernel debug output but a console.
maybe the kernel package has overwritten my cmdline.txt...I need to recheck that in todays (this time hopefully not so) late-night session
At least I get a login prompt

73
 
  


Reply


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
LXer: Industrial SBC builds on Raspberry Pi Compute Module LXer Syndicated Linux News 0 06-25-2016 05:33 AM
Raspberry Pi Compute Module Development Kit and RTC Click seprob Linux - Embedded & Single-board computer 1 08-20-2015 06:26 AM
LXer: Raspberry Pi Compute Module explained LXer Syndicated Linux News 0 07-10-2014 02:20 PM
LXer: Raspberry Pi Compute Module: new product! LXer Syndicated Linux News 0 04-08-2014 06:32 PM

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

All times are GMT -5. The time now is 11:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration