SAMA5d3 Serial Error

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

randolfrobson
Contact:
Location: Kerala,India
Posts: 4
Joined: Mon Jun 10, 2019 7:44 am

SAMA5d3 Serial Error

Fri Jun 14, 2019 7:37 am

Hi,
i am working on sama5d3-xplained board.
the problem i am facing now is that my uart0 is not working .
The same uart was working on previous kernel(kernel version - 3.15)
the rest of the peripherals are all working just fine in the new kernel also.
i recently updated the kernel version to 4.14. and then i stumble upon this issue.
the uart i am using is uart 0.
the pins are PD16,PD17,PD18.

i have updated only the kernel image,
the rootfs,dtb,bootstatrap,uboot all remain the same.

please feel free to ask for more details.
i didn't want to vaguely put every information i find in the kernel.
wanted to keep this query as simple as possible.
blue_z
Location: USA
Posts: 1976
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5d3 Serial Error

Mon Jun 17, 2019 10:25 pm

randolfrobson wrote: the problem i am facing now is that my uart0 is not working .
"Not working" is your conclusion, and does not describe the symptoms.

randolfrobson wrote: i have updated only the kernel image,
the rootfs,dtb,bootstatrap,uboot all remain the same.
You cannot mix'n'match binaries.
The kernel image and dtb need to be built from the same source.

Regards
randolfrobson
Contact:
Location: Kerala,India
Posts: 4
Joined: Mon Jun 10, 2019 7:44 am

Re: SAMA5d3 Serial Error

Tue Jun 18, 2019 11:59 am

Hi,
Sorry for the inconvenience.

i am using two uarts in my application.
these two uarts are communicating with another device via rs485 .
the uart's are uart0 and uart1

uart-0 Pins are PD16,PD17,PD18.
uart-1 Pins are PB27,PB28,PB29.

uart-1 works fine with the new kernel
but uart-0 is not working.
i have connected it to the rs485 device and its not communicating.

also sorry for not specifically mentioning that dtb and kernel are build from
same source files.
then edited the dtb to match the same as that previous dtb file.
blue_z
Location: USA
Posts: 1976
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5d3 Serial Error

Thu Jun 20, 2019 1:57 am

randolfrobson wrote: the uart's are uart0 and uart1

uart-0 Pins are PD16,PD17,PD18.
uart-1 Pins are PB27,PB28,PB29.
You better check the SoC datasheet.
Those are not the pins assigned to UART0 nor UART1.

randolfrobson wrote: but uart-0 is not working.
i have connected it to the rs485 device and its not communicating.
"Not communicating" is not an improvement over "not working".

Regards
randolfrobson
Contact:
Location: Kerala,India
Posts: 4
Joined: Mon Jun 10, 2019 7:44 am

Re: SAMA5d3 Serial Error

Fri Jun 21, 2019 1:47 pm

Hi,
Sorry for mentioning it as uart,
its USART0.

Below i am giving the details of the dts file i am using.
We are using USART-0 for this application.

below i am listing the dts file data for usart0 and serial@f001c000.

usart0 {

usart0-0 {
atmel,pins = <0x3 0x11 0x1 0x0 0x3 0x12 0x1 0x1>;
phandle = <0x17>;
};

usart0_rts_cts-0 {
atmel,pins = <0x3 0xf 0x1 0x0 0x3 0x10 0x1 0x0>;
phandle = <0xb9>;
};
};


serial@f001c000 {

compatible = "atmel,at91sam9260-usart";
reg = <0xf001c000 0x100>;
interrupts = <0xc 0x4 0x5>;
dmas = <0x2 0x2 0x3 0x2 0x2 0x204>;
dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <0x17 0xb9>;
clocks = <0x18>;
clock-names = "usart";
status = "okay";
phandle = <0x89>;
};
nferre
Site Admin
Posts: 207
Joined: Wed Feb 14, 2007 11:17 am

Re: SAMA5d3 Serial Error

Tue Jun 25, 2019 3:08 pm

Hi,

I would advice to post the kernel boot log at least: it usually has crucial information.

Regards,
Nicolas
randolfrobson
Contact:
Location: Kerala,India
Posts: 4
Joined: Mon Jun 10, 2019 7:44 am

Re: SAMA5d3 Serial Error

Mon Aug 26, 2019 9:58 am

Hi,
Apologies for the late reply.
I was assigned for another task.

i am attaching the kernel logs below.
/*****************************************************************************************************
Poky (Yocto Project Reference Distro) 1.6.1 sama5d3_xplained /dev/ttyS0

sama5d3_xplained login: root
root@sama5d3_xplained:~# ls
root@sama5d3_xplained:~# RomBOOT


AT91Bootstrap 3.6.1-00078-g5415d4e (Tue Feb 4 15:36:46 CET 2014)

NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0x32
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 0x4, sector: 0x200
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x26f00000
NAND: Done to load image


U-Boot 2013.07 (Feb 04 2014 - 15:36:32)

CPU: SAMA5D36
Crystal frequency: 12 MHz
CPU clock : 528 MHz
Master clock : 132 MHz
DRAM: 256 MiB
NAND: 256 MiB
MMC: mci: 0, mci: 1
In: serial
Out: serial
Err: serial
Net: gmac0
Warning: failed to set MAC address
, macb0
Warning: failed to set MAC address

Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x180000, size 0xb60e
46606 bytes read: OK

NAND read: device 0 offset 0x200000, size 0x4023b0
4203440 bytes read: OK
Kernel image @ 0x22000000 [ 0x000000 - 0x4023b0 ]
## Flattened Device Tree blob at 21000000
Booting using the fdt blob at 0x21000000
Loading Device Tree to 2bb0c000, end 2bb1a60d ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.14.73-linux4sam-6.0-dirty (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 Tue Aug 20 12:22:30 UTC 2019
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: SAMA5D3 Xplained
Memory policy: Data cache writeback
cma: Reserved 16 MiB at 0x2f000000
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists, mobility grouping on. Total pages: 64960
Kernel command line: console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubw
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 232280K/262144K available (7168K kernel code, 282K rwdata, 1132K rodata, 1024K init, 173K bss, 13480K reserved, 16384K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0800000 (8160 kB)
.init : 0xc0a00000 - 0xc0b00000 (1024 kB)
.data : 0xc0b00000 - 0xc0b46a98 ( 283 kB)
.bss : 0xc0b46a98 - 0xc0b721ec ( 174 kB)
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14479245754 ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
Calibrating delay loop... 351.43 BogoMIPS (lpj=1757184)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20100000 - 0x20100060
devtmpfs: initialized
random: get_random_u32 called from 0xc03435e4 with crng_init=0
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
AT91: PM: standby: standby, suspend: ulp0
hw-breakpoint: found 2 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
gpio-at91 fffff200.gpio: at address d081c200
gpio-at91 fffff400.gpio: at address d081e400
gpio-at91 fffff600.gpio: at address d0841600
gpio-at91 fffff800.gpio: at address d0843800
gpio-at91 fffffa00.gpio: at address d0845a00
pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 115833966437 ns
at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels
at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy set slave ), 8 channels
AT91: Detected SoC family: sama5d3
AT91: Detected SoC: sama5d36, revision 2
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f0014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
at91_i2c f0014000.i2c: AT91 i2c bus driver (hw version: 0x402).
at91_i2c f0018000.i2c: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
at91_i2c f0018000.i2c: AT91 i2c bus driver (hw version: 0x402).
at91_i2c f801c000.i2c: can't get DMA channel, continue without DMA support
at91_i2c f801c000.i2c: AT91 i2c bus driver (hw version: 0x402).
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: no interrupt-affinity property for /pmu, guessing.
hw perfevents: enabled with armv7_cortex_a5 PMU driver, 3 counters available
workingset: timestamp_bits=14 max_order=16 bucket_order=2
io scheduler noop registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
DCDC_REG1: supplied by regulator-dummy
DCDC_REG2: supplied by regulator-dummy
DCDC_REG3: supplied by regulator-dummy
LDO_REG1: supplied by regulator-dummy
LDO_REG2: supplied by regulator-dummy
LDO_REG3: supplied by regulator-dummy
LDO_REG4: supplied by regulator-dummy
brd: module loaded
loop: module loaded
atmel_usart_serial.0.auto: ttyS1 at MMIO 0xf001c000 (irq = 23, base_baud = 4125000) is a ATMEL_SERIAL
atmel_usart_serial.1.auto: ttyS2 at MMIO 0xf0020000 (irq = 24, base_baud = 4125000) is a ATMEL_SERIAL
atmel_usart_serial.2.auto: ttyS5 at MMIO 0xf0024000 (irq = 25, base_baud = 4125000) is a ATMEL_SERIAL
atmel_usart_serial.3.auto: ttyS3 at MMIO 0xf8020000 (irq = 30, base_baud = 4125000) is a ATMEL_SERIAL
atmel_usart_serial.4.auto: ttyS0 at MMIO 0xffffee00 (irq = 38, base_baud = 8250000) is a ATMEL_SERIAL
console [ttyS0] enabled
atmel_spi f0004000.spi: Using dma0chan4 (tx) and dma0chan5 (rx) for DMA transfers
atmel_spi f0004000.spi: Atmel SPI Controller version 0x213 at 0xf0004000 (irq 19)
libphy: Fixed MDIO Bus: probed
CAN device driver interface
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin pioD15 already requested by f001c000.serial; cannot claim for f000c000.can
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin-111 (f000c000.can) status -22
pinctrl-at91 ahb:apb:pinctrl@fffff200: could not request pin 111 (pioD15) from group can0_rx_tx on device ahb:apb:pinctrl@fffff200
at91_can f000c000.can: Error applying setting, reverse things back
at91_can: probe of f000c000.can failed with error -22
macb f802c000.ethernet: invalid hw address, using random
libphy: MACB_mii_bus: probed
Micrel KSZ8081 or KSZ8091 f802c000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f802c000.ethernet-ffffffff:01, irq=POLL)
macb f802c000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xf802c000 irq 46 (8a:60:09:31:a2:f0)
usbcore: registered new interface driver rtl8187
usbcore: registered new interface driver rtl8192cu
clcd: lcd_init_module: Initializing 20x4 lcd driver
clcd: lcd_init_module: Obtained major no 247
clcd: lcd_hw_init: setting up gpio
clcd: lcd_hw_init: Initializing lcd..
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 700000.ehci: EHCI Host Controller
atmel-ehci 700000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 700000.ehci: irq 49, io mem 0x00700000
atmel-ehci 700000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.14.73-linux4sam-6.0-dirty ehci_hcd
usb usb1: SerialNumber: 700000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 600000.ohci: failed to request gpio "overcurrent" IRQ
at91_ohci 600000.ohci: failed to request gpio "overcurrent" IRQ
at91_ohci 600000.ohci: failed to request gpio "overcurrent" IRQ
at91_ohci 600000.ohci: failed to find sfr node
at91_ohci 600000.ohci: USB Host Controller
at91_ohci 600000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 600000.ohci: irq 49, io mem 0x00600000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.14.73-linux4sam-6.0-dirty ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver usb-storage
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fffffeb0.rtc: registered as rtc0
at91_rtc fffffeb0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after wakeup
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol ATH3K registered
Bluetooth: HCI UART protocol Intel registered
Bluetooth: HCI UART protocol AG6XX registered
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver bpa10x
usbcore: registered new interface driver btusb
Bluetooth: Generic Bluetooth SDIO driver ver 0.1
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin pioD7 already requested by f002c000.pwm; cannot claim for f0000000.mmc
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin-103 (f0000000.mmc) status -22
pinctrl-at91 ahb:apb:pinctrl@fffff200: could not request pin 103 (pioD7) from group mmc0_dat4_7 on device ahb:apb:pinctrl@fffff200
atmel_mci f0000000.mmc: Error applying setting, reverse things back
atmel_mci: probe of f0000000.mmc failed with error -22
atmel_mci f8000000.mmc: version: 0x505
atmel_mci f8000000.mmc: using dma1chan0 for DMA transfers
atmel_mci f8000000.mmc: Atmel MCI controller at 0xf8000000 irq 27, 1 slots
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
atmel_aes f8038000.aes: version: 0x135
atmel_aes f8038000.aes: Atmel AES - Using dma1chan1, dma1chan2 for DMA transfers
atmel_sha f8034000.sha: version: 0x410
atmel_sha f8034000.sha: using dma1chan3 for DMA transfers
atmel_sha f8034000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
atmel_tdes f803c000.tdes: version: 0x701
atmel_tdes f803c000.tdes: using dma1chan4, dma1chan5 for DMA transfers
atmel_tdes f803c000.tdes: Atmel DES/TDES
random: fast init done
nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
nand: Micron MT29F2G08ABAEAWP
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
usb 1-3: new high-speed USB device number 2 using atmel-ehci
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
8 cmdlinepart partitions found on MTD device atmel_nand
Creating 8 MTD partitions on "atmel_nand":
0x000000000000-0x000000040000 : "bootstrap"
0x000000040000-0x0000000c0000 : "uboot"
0x0000000c0000-0x000000100000 : "env"
0x000000100000-0x000000140000 : "env_redundant"
0x000000140000-0x000000180000 : "spare"
0x000000180000-0x000000200000 : "dtb"
0x000000200000-0x000000800000 : "kernel"
0x000000800000-0x000010000000 : "rootfs"
iio iio:device0: Resolution used: 12 bits
iio iio:device0: ADC Touch screen is disabled.
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP socket layer initialized
ubi0: default fastmap pool size: 95
ubi0: default fastmap WL pool size: 47
ubi0: attaching mtd7
usb 1-3: New USB device found, idVendor=0bda, idProduct=8176
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: 802.11n WLAN Adapter
usb 1-3: Manufacturer: Realtek
usb 1-3: SerialNumber: 00e04c000001
rtl8192cu: Chip version 0x10
rtl8192cu: Board Type 0
rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
usb 1-3: Direct firmware load for rtlwifi/rtl8192cufw_TMSC.bin failed with error -2
usb 1-3: Direct firmware load for rtlwifi/rtl8192cufw.bin failed with error -2
rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin
rtlwifi: Selected firmware is not available
ubi0: scanning is finished
ubi0: attached mtd7 (name "rootfs", size 248 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1980, bad PEBs: 4, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 998253895
ubi0: available PEBs: 0, total reserved PEBs: 1980, PEBs reserved for bad PEB handling: 36
input: gpio_keys as /devices/platform/gpio_keys/input/input0
ubi0: background thread "ubi_bgt0d" started, PID 84
at91_rtc fffffeb0.rtc: setting system clock to 2014-08-27 11:20:44 UTC (1409138444)
ALSA device list:
No soundcards found.
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 85
random: crng init done
UBIFS (ubi0:0): recovery needed
UBIFS (ubi0:0): recovery completed
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 244682752 bytes (233 MiB, 1927 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 554AB03B-5DF7-4802-A595-6A4180C98242, small LPT model
VFS: Mounted root (ubifs filesystem) on device 0:13.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
/etc/rcS.d/S04udev: line 100: /proc/sys/kernel/hotplug: No such file or directory
udevd[114]: starting version 182
Starting Bootlog daemon: bootlogd.
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1729: No soundcards found...
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
INIT: Entering runlevel: 5
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.22.1) started
Sending discover...
macb f802c000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
Sending select for ***.***.*.**...
Lease of ***.***.*.** obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS **.**.*.**
/etc/udhcpc.d/50default: Adding DNS **.**.*.**
done.
Starting system message bus: dbus.
Starting OpenBSD Secure Shell server: sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Starting rpcbind daemon...done.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
...done.
Starting Lighttpd Web Server: lighttpd.
Starting crond: OK
Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.6.1 sama5d3_xplained /dev/ttyS0

sama5d3_xplained login:


******************************************************************************************************/

Thanks in advance.
blue_z
Location: USA
Posts: 1976
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5d3 Serial Error

Wed Aug 28, 2019 8:50 pm

You need to scrutinize your kernel log for errors.
Several peripherals are failing their initialization.
The failure of CAN0 may be affecting USART0.
randolfrobson wrote: ...
CAN device driver interface
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin pioD15 already requested by f001c000.serial; cannot claim for f000c000.can
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin-111 (f000c000.can) status -22
pinctrl-at91 ahb:apb:pinctrl@fffff200: could not request pin 111 (pioD15) from group can0_rx_tx on device

ahb:apb:pinctrl@fffff200
at91_can f000c000.can: Error applying setting, reverse things back
at91_can: probe of f000c000.can failed with error -22
...
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin pioD7 already requested by f002c000.pwm; cannot claim for f0000000.mmc
pinctrl-at91 ahb:apb:pinctrl@fffff200: pin-103 (f0000000.mmc) status -22
pinctrl-at91 ahb:apb:pinctrl@fffff200: could not request pin 103 (pioD7) from group mmc0_dat4_7 on device

ahb:apb:pinctrl@fffff200
atmel_mci f0000000.mmc: Error applying setting, reverse things back
atmel_mci: probe of f0000000.mmc failed with error -22
...
rtl8192cu: Chip version 0x10
rtl8192cu: Board Type 0
rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
usb 1-3: Direct firmware load for rtlwifi/rtl8192cufw_TMSC.bin failed with error -2
usb 1-3: Direct firmware load for rtlwifi/rtl8192cufw.bin failed with error -2

rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin
rtlwifi: Selected firmware is not available
Regards

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 3 guests