Re: [yocto] Enabling Serial console via uart1(serial1) in cm3(rpi3) kernel 5.4. #cm3 #dunfell
Why am I (only, seems) always answering NON YOCTO issues in the YOCTO thread??? ;-) ___ OK. The good sign about what U R talking is shown here: [0.000885] printk: console [tty1] enabled > But now another issue I'm facing when I'm enabling console > via this ttsS0 port i.e. > [ 13.280639] ttyS ttyS0: 2 input overrun(s) It is on the several places: [6.480654] ttyS ttyS0: 2 input overrun(s) [7.962826] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 [7.973416] ttyS ttyS0: 2 input overrun(s) [ 11.883822] Installing knfsd (copyright (C) 1996 o...@monad.swb.de). [ 11.893705] ttyS ttyS0: 2 input overrun(s) [ 13.268076] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 13.280639] ttyS ttyS0: 2 input overrun(s) It seems that the solution for this problem is: https://www.linuxquestions.org/questions/linux-kernel-70/tty-usb-input-overruns-4175512707/ Namely: https://www.linuxquestions.org/questions/linux-kernel-70/tty-usb-input-overruns-4175512707/#post5215591 > I fixed the problem with increasing the N_TTY_BUF_SIZE from 4096 to 131072 > (file /include/linux/tty.h) and recompiled the linux kernel. I'm getting no > more tty > input overrun(s). Please, let us know. Zee ___ On Mon, Mar 22, 2021 at 10:19 AM wrote: > > Hi Zoran, > here is the cat /proc/cmdline output of my cm3- > > coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 > snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 > bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 > smsc95xx.macaddr=B8:27:EB:AD:85:CA vc_mem.mem_base=0x3ec0 > vc_mem.mem_size=0x4000 dwc_otg.lpm_enable=0 console=ttyS0,115200 > console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait > kgdboc=ttyAMA0,115200 > > Earlier my issue was that I was no getting /dev/ttyS0 terminal in my yocto > image for cm3. > But going through the web I got that setting 1 to > CONFIG_SERIAL_8250_RUNTIME_UARTS solved that issue and now I'm getting ttyS0 > in my /dev directory. > > But now another issue I'm facing when I'm enabling cosole via this ttsS0 port > i.e. > > [ 13.280639] ttyS ttyS0: 2 input > overrun(s) > > here is my dmesg output: > > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 5.4.64-v7 (oe-user@oe-host) (gcc version 9.3.0 > (GCC)) #1 SMP Fri Sep 11 12:57:30 UTC 2020 > [0.00] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d > [0.00] CPU: div instructions available: patching division code > [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing > instruction cache > [0.00] OF: fdt: Machine model: Raspberry Pi Compute Module 3 Rev 1.0 > [0.00] Memory policy: Data cache writealloc > [0.00] Reserved memory: created CMA memory pool at 0x3740, size > 64 MiB > [0.00] OF: reserved mem: initialized node linux,cma, compatible id > shared-dma-pool > [0.00] On node 0 totalpages: 242688 > [0.00] Normal zone: 2133 pages used for memmap > [0.00] Normal zone: 0 pages reserved > [0.00] Normal zone: 242688 pages, LIFO batch:63 > [0.00] percpu: Embedded 20 pages/cpu s50060 r8192 d23668 u81920 > [0.00] pcpu-alloc: s50060 r8192 d23668 u81920 alloc=20*4096 > [0.00] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 > [0.00] Built 1 zonelists, mobility grouping on. Total pages: 240555 > [0.00] Kernel command line: coherent_pool=1M > snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 > snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 > bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 > smsc95xx.macaddr=B8:27:EB:AD:85:CA vc_mem.mem_base=0x3ec0 > vc_mem.mem_size=0x4000 dwc_otg.lpm_enable=0 console=ttyS0,115200 > console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait > kgdboc=ttyAMA0,115200 > [0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 > bytes, linear) > [0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, > linear) > [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off > [0.00] Memory: 880444K/970752K available (9216K kernel code, 716K > rwdata, 2684K rodata, 1024K init, 849K bss, 24772K reserved, 65536K > cma-reserved) > [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 > [0.00] ftrace: allocating 29805 entries in 59 pages > [0.00] rcu: Hierarchical RCU implementation. > [0.00] rcu: RCU calculated value of scheduler-enlistment delay is 10 > jiffies. > [0.00] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 > [0.00] random: get_random_bytes called from start_kernel+0x328/0x508 > with crng_init=0 > [0.00] arch_timer: cp15 timer(s) running at 19.20MHz (phys). > [0.00] clocksource: arch_sys_counter: mask:
Re: [yocto] Enabling Serial console via uart1(serial1) in cm3(rpi3) kernel 5.4. #cm3 #dunfell
Hi Zoran, here is the cat /proc/cmdline output of my cm3- *coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:AD:85:CA vc_mem.mem_base=0x3ec0 vc_mem.mem_size=0x4000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait kgdboc=ttyAMA0,115200 * Earlier my issue was that I was no getting */dev/ttyS0* terminal in my yocto image for cm3. But going through the web I got that setting 1 to *CONFIG_SERIAL_8250_RUNTIME_UARTS* solved that issue and now I'm getting ttyS0 in my /dev directory. But now another issue I'm facing when I'm enabling cosole via this ttsS0 port i.e. *[ 13.280639] ttyS ttyS0: 2 input overrun(s) * here is my dmesg output: [ 0.00] Booting Linux on physical CPU 0x0 [ 0.00] Linux version 5.4.64-v7 (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP Fri Sep 11 12:57:30 UTC 2020 [ 0.00] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.00] CPU: div instructions available: patching division code [ 0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.00] OF: fdt: Machine model: Raspberry Pi Compute Module 3 Rev 1.0 [ 0.00] Memory policy: Data cache writealloc [ 0.00] Reserved memory: created CMA memory pool at 0x3740, size 64 MiB [ 0.00] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.00] On node 0 totalpages: 242688 [ 0.00] Normal zone: 2133 pages used for memmap [ 0.00] Normal zone: 0 pages reserved [ 0.00] Normal zone: 242688 pages, LIFO batch:63 [ 0.00] percpu: Embedded 20 pages/cpu s50060 r8192 d23668 u81920 [ 0.00] pcpu-alloc: s50060 r8192 d23668 u81920 alloc=20*4096 [ 0.00] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.00] Built 1 zonelists, mobility grouping on. Total pages: 240555 [ 0.00] Kernel command line: coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:AD:85:CA vc_mem.mem_base=0x3ec0 vc_mem.mem_size=0x4000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait kgdboc=ttyAMA0,115200 [ 0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.00] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.00] Memory: 880444K/970752K available (9216K kernel code, 716K rwdata, 2684K rodata, 1024K init, 849K bss, 24772K reserved, 65536K cma-reserved) [ 0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.00] ftrace: allocating 29805 entries in 59 pages [ 0.00] rcu: Hierarchical RCU implementation. [ 0.00] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.00] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.00] random: get_random_bytes called from start_kernel+0x328/0x508 with crng_init=0 [ 0.00] arch_timer: cp15 timer(s) running at 19.20MHz (phys). [ 0.00] clocksource: arch_sys_counter: mask: 0xff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.06] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.20] Switching to timer-based delay loop, resolution 52ns [ 0.000288] Console: colour dummy device 80x30 [ 0.000885] printk: console [tty1] enabled [ 0.000960] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [ 0.001009] pid_max: default: 32768 minimum: 301 [ 0.001232] LSM: Security Framework initializing [ 0.001477] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.001524] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.002936] Disabling memory control group subsystem [ 0.003081] CPU: Testing write buffer coherency: ok [ 0.003674] CPU0: thread -1, cpu 0, socket 0, mpidr 8000 [ 0.004651] Setting up static identity map for 0x10 - 0x100060 [ 0.004873] rcu: Hierarchical SRCU implementation. [ 0.005586] smp: Bringing up secondary CPUs ... [ 0.006748] CPU1: thread -1, cpu 1, socket 0, mpidr 8001 [ 0.008417] CPU2: thread -1, cpu 2, socket 0, mpidr 8002 [ 0.009943] CPU3: thread -1, cpu 3, socket 0, mpidr 8003 [ 0.010479] smp: Brought up 1 node, 4 CPUs [ 0.010528] SMP: Total of 4 processors activated (153.60 BogoMIPS). [ 0.010557] CPU: All CPU(s) started in HYP mode. [ 0.010582] CPU: Virtualization extensions available. [ 0.011597] devtmpfs: initialized [ 0.027564] VFP support v0.3:
Re: [yocto] Enabling Serial console via uart1(serial1) in cm3(rpi3) kernel 5.4. #cm3 #dunfell
Hello Prashant, Can you telnet to the target? And issue the following: cat /proc/cmdline And post it here? In the meantime, you can verify the issue with: https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md Hope this helps, Zee ___ On Thu, Feb 11, 2021 at 2:24 PM wrote: > > Dear Team, > > I'm using poky-dunfell to get os for my raspberrypi-cm3. > I need to get the stdout data to serial console via uart1(serial1). > > I given change in my cmdline.txt as: dwc_otg.lpm_enable=0 > console=serial1,115200 consol=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 > rootwait kgdboc=serial0,115200 > and in config.txt as: > > dtoverlay=pi3-disable-bt > dtparam=uart1=on > # Enable UART > enable_uart=1 > dtoverlay=uart1,txd1_pin=32,rxd1_pin=33 > core_freq=250 > force_turbo=1 > > then also I'm not getting the serial output in my serial1. > > Please help to resolve this issue. > > Thanks & Regards. > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#52295): https://lists.yoctoproject.org/g/yocto/message/52295 Mute This Topic: https://lists.yoctoproject.org/mt/80556996/21656 Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #cm3:https://lists.yoctoproject.org/g/yocto/mutehashtag/cm3 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] Enabling Serial console via uart1(serial1) in cm3(rpi3) kernel 5.4. #cm3 #dunfell
Dear Team, I'm using poky-dunfell to get os for my raspberrypi-cm3. I need to get the stdout data to serial console via uart1(serial1). I given change in my cmdline.txt as: dwc_otg.lpm_enable=0 console=serial1,115200 consol=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait kgdboc=serial0,115200 and in config.txt as: dtoverlay=pi3-disable-bt dtparam=uart1=on # Enable UART enable_uart=1 dtoverlay=uart1,txd1_pin=32,rxd1_pin=33 core_freq=250 force_turbo=1 then also I'm not getting the serial output in my serial1. Please help to resolve this issue. Thanks & Regards. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#52294): https://lists.yoctoproject.org/g/yocto/message/52294 Mute This Topic: https://lists.yoctoproject.org/mt/80556996/21656 Mute #cm3:https://lists.yoctoproject.org/g/yocto/mutehashtag/cm3 Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-