Tool/software: Linux
Hi,
Please see my kernel log, I have correctly configured my CAN balls in dts file and in kernel configuration
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_TCPPROBE is not set
# CONFIG_HAMRADIO is not set
CONFIG_CAN=m
CONFIG_CAN_RAW=m
CONFIG_CAN_BCM=m
CONFIG_CAN_GW=m
#
# CAN Device Drivers
#
# CONFIG_CAN_VCAN is not set
# CONFIG_CAN_SLCAN is not set
CONFIG_CAN_DEV=m
CONFIG_CAN_CALC_BITTIMING=y
# CONFIG_CAN_LEDS is not set
# CONFIG_CAN_TI_HECC is not set
# CONFIG_CAN_FLEXCAN is not set
# CONFIG_CAN_GRCAN is not set
# CONFIG_CAN_RCAR is not set
# CONFIG_CAN_SJA1000 is not set
CONFIG_CAN_C_CAN=m
CONFIG_CAN_C_CAN_PLATFORM=m
# CONFIG_CAN_C_CAN_PCI is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_CC770 is not set
Kernel Log:
In kernel log also I am not getting errors related to CAN. I have also listed the modules, I have tested canloopback functionality it is working, but when I am trying to send on the bus I am not getting anything on bus, I have connected my CAN1 H,L signals to CAN2 H_L signals. Please let me if I am missing anything related to configuration or modules .
Starting Medha kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.13-g8dc6617 (medha@medha) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #38 SMP PREEMPT7
[ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine model: TI AM571x IDK
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
[ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 24 MiB at 0x00000000be400000
[ 0.000000] Forcing write-allocate cache policy for SMP
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] DRA722 ES1.0
[ 0.000000] PERCPU: Embedded 11 pages/cpu @eee4e000 s16128 r8192 d20736 u45056
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 210514
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=18e1dc9e-02 rw rootfstype=ext4 rootwait
[ 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: 650192K/848896K available (6315K kernel code, 291K rwdata, 2188K rodata, 332K init, 254K bss, 18480K reserved, 180224K )
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0856074 (8505 kB)
[ 0.000000] .init : 0xc0857000 - 0xc08aa000 ( 332 kB)
[ 0.000000] .data : 0xc08aa000 - 0xc08f2f88 ( 292 kB)
[ 0.000000] .bss : 0xc08f5000 - 0xc093480c ( 255 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000000] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000457] Architected cp15 timer(s) running at 6.14MHz (virt).
[ 0.000457] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[ 0.000462] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[ 0.000473] Switching to timer-based delay loop, resolution 162ns
[ 0.000980] Console: colour dummy device 80x30
[ 0.000994] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.001001] This ensures that you still see kernel messages. Please
[ 0.001006] update your kernel commandline.
[ 0.001018] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[ 0.001030] pid_max: default: 32768 minimum: 301
[ 0.001112] Security Framework initialized
[ 0.001150] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001160] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001682] Initializing cgroup subsys blkio
[ 0.001697] Initializing cgroup subsys memory
[ 0.001722] Initializing cgroup subsys devices
[ 0.001734] Initializing cgroup subsys freezer
[ 0.001746] Initializing cgroup subsys perf_event
[ 0.001767] CPU: Testing write buffer coherency: ok
[ 0.002022] /cpus/cpu@0 missing clock-frequency property
[ 0.002034] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002066] Setting up static identity map for 0x80008380 - 0x800083d8
[ 0.040731] Brought up 1 CPUs
[ 0.040743] SMP: Total of 1 processors activated (12.29 BogoMIPS).
[ 0.040749] CPU: All CPU(s) started in SVC mode.
[ 0.041102] devtmpfs: initialized
[ 0.064528] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.065335] omap_hwmod: l3_main_2 using broken dt data from ocp
[ 0.078296] omap_hwmod: tptc0 using broken dt data from edma-controller
[ 0.078761] omap_hwmod: tptc1 using broken dt data from edma-controller
[ 0.153749] omap_hwmod: dcan2: _wait_target_disable failed
[ 0.246931] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.250819] pinctrl core: initialized pinctrl subsystem
[ 0.251611] NET: Registered protocol family 16
[ 0.252514] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.260546] OMAP GPIO hardware version 0.1
[ 0.285563] No ATAGs?
[ 0.285587] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.285596] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.288028] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.288037] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.288601] OMAP DMA hardware revision 0.0
[ 0.327968] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.330696] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
[ 0.335446] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[ 0.335627] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[ 0.335782] omap-iommu 58882000.mmu: 58882000.mmu registered
[ 0.335943] omap-iommu 55082000.mmu: 55082000.mmu registered
[ 0.336214] vgaarb: loaded
[ 0.336570] SCSI subsystem initialized
[ 0.338234] palmas 0-0058: IRQ missing: skipping irq request
[ 0.351021] palmas 0-0058: Muxing GPIO 51, PWM 0, LED 2
[ 0.391483] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[ 0.391665] media: Linux media interface: v0.10
[ 0.391722] Linux video capture interface: v2.00
[ 0.391770] pps_core: LinuxPPS API ver. 1 registered
[ 0.391777] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.391807] PTP clock support registered
[ 0.392443] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
[ 0.392734] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
[ 0.393015] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[ 0.393085] omap-mailbox: probe of 48842000.mailbox failed with error -22
[ 0.393308] Advanced Linux Sound Architecture Driver Initialized.
[ 0.393938] Switched to clocksource arch_sys_counter
[ 0.403608] NET: Registered protocol family 2
[ 0.404191] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.404255] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.404380] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.404434] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.404465] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.404662] NET: Registered protocol family 1
[ 0.404900] RPC: Registered named UNIX socket transport module.
[ 0.404909] RPC: Registered udp transport module.
[ 0.404916] RPC: Registered tcp transport module.
[ 0.404922] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.405908] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[ 0.405937] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 0.407808] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.407879] audit: initializing netlink subsys (disabled)
[ 0.407911] audit: type=2000 audit(0.390:1): initialized
[ 0.414951] VFS: Disk quotas dquot_6.6.0
[ 0.415116] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.417119] NFS: Registering the id_resolver key type
[ 0.417146] Key type id_resolver registered
[ 0.417154] Key type id_legacy registered
[ 0.417207] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.419541] NET: Registered protocol family 38
[ 0.419619] bounce: pool size: 64 pages
[ 0.419633] io scheduler noop registered
[ 0.419645] io scheduler deadline registered
[ 0.419683] io scheduler cfq registered (default)
[ 0.423168] pinctrl-single 4a003400.pinmux: 281 pins at pa fc003400 size 1124
[ 0.423280] pinctrl-single 4a002e8c.pinmux: 1 pins at pa fc002e8c size 4
[ 0.456364] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[ 0.456377] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 0.456387] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[ 0.456397] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.456517] pci 0000:00:00.0: IOMMU is currently not supported for PCI
[ 0.456780] PCI: bus0: Fast back to back transfers disabled
[ 0.456900] PCI: bus1: Fast back to back transfers enabled
[ 0.456996] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
[ 0.457011] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
[ 0.457023] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.458842] ldo5: supplied by evm_3v3_sd
[ 0.459365] OMAP DSS rev 6.1
[ 0.459633] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[ 0.474041] tlc59108 0-0040: Successfully initialized tlc59108
[ 0.476563] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.479478] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 299, base_baud = 3000000) is a 8250
[ 1.407620] console [ttyS0] enabled
[ 1.411780] 48068000.serial: ttyS5 at MMIO 0x48068000 (irq = 300, base_baud = 3000000) is a 8250
[ 1.421280] 48420000.serial: ttyS6 at MMIO 0x48420000 (irq = 301, base_baud = 3000000) is a 8250
[ 1.430756] 48422000.serial: ttyS7 at MMIO 0x48422000 (irq = 302, base_baud = 3000000) is a 8250
[ 1.440649] [drm] Initialized drm 1.1.0 20060810
[ 1.453576] brd: module loaded
[ 1.460615] loop: module loaded
[ 1.464763] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.472611] libphy: Fixed MDIO Bus: probed
[ 1.523968] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
[ 1.530094] davinci_mdio 48485000.mdio: detected phy mask fffffdff
[ 1.538671] libphy: 48485000.mdio: probed
[ 1.542701] davinci_mdio 48485000.mdio: phy[9]: device 48485000.mdio:09, driver unknown
[ 1.551304] cpsw 48484000.ethernet: Missing slave[1] phy_id property
[ 1.557738] cpsw 48484000.ethernet: Detected MACID = 74:da:ea:0c:dc:a2
[ 1.565871] mousedev: PS/2 mouse device common for all mice
[ 1.571525] i2c /dev entries driver
[ 1.576716] tmp102 0-0049: initialized
[ 1.581886] omap_hsmmc 4809c000.mmc: Got CD GPIO
[ 1.624603] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
[ 1.632043] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
[ 1.640474] omap_hsmmc 480b4000.mmc: no pinctrl state for ddr_1_8v mode
[ 1.647182] omap_hsmmc 480b4000.mmc: no pinctrl state for hs mode
[ 1.653349] omap_hsmmc 480b4000.mmc: no pinctrl state for hs200_1_8v mode
[ 1.694238] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.700630] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[ 1.710340] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[ 1.716705] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[ 1.723624] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[ 1.736143] davinci-mcasp 48468000.mcasp: ERRATA i868 workaround is enabled
[ 1.744452] oprofile: using timer interrupt.
[ 1.748954] Initializing XFRM netlink socket
[ 1.753266] NET: Registered protocol family 17
[ 1.757931] NET: Registered protocol family 15
[ 1.762491] Key type dns_resolver registered
[ 1.766954] omap_voltage_late_init: Voltage driver support not added
[ 1.773610] Power Management for TI OMAP4+ devices.
[ 1.778785] ThumbEE CPU extension supported.
[ 1.783138] Registering SWP/SWPB emulation handler
[ 1.789398] dmm 4e000000.dmm: workaround for errata i878 in use
[ 1.795434] mmc1: MAN_BKOPS_EN bit is not set
[ 1.800591] mmc1: new MMC card at address 0001
[ 1.805613] dmm 4e000000.dmm: initialized all PAT entries
[ 1.811497] mmcblk0: mmc1:0001 MMC04G 3.60 GiB
[ 1.816205] mmcblk0boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
[ 1.822263] mmcblk0boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
[ 1.829921] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.837071] [drm] No driver support for vblank timestamp query.
[ 1.843085] mmcblk0: p1 p2
[ 1.850583] [drm] Enabling DMM ywrap scrolling
[ 1.897630] Console: switching to colour frame buffer device 100x37
[ 1.907380] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[ 1.913324] omapdrm omapdrm.0: registered panic notifier
[ 1.944160] omapwb-m2m: Device registered as video10
[ 1.949148] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
[ 1.955461] hctosys: unable to open rtc device (rtc0)
[ 1.972337] ldo4: disabling
[ 1.975645] ldo2: disabling
[ 1.978741] aic_dvdd_fixed: disabling
[ 1.982419] vdd_3v3: disabling
[ 1.985702] ALSA device list:
[ 1.988680] No soundcards found.
[ 3.274072] EXT4-fs (mmcblk0p2): recovery complete
[ 3.281384] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.289556] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.304361] devtmpfs: mounted
[ 3.307543] Freeing unused kernel memory: 332K (c0857000 - c08aa000)
INIT: version 2.88 booting
Starting udev
[ 6.396422] udevd[100]: starting version 182
[ 7.500839] omap_rng 48090000.rng: OMAP Random Number Generator ver. 20
[ 7.618842] CAN device driver interface
[ 7.979081] omap_hwmod: dcan1: _wait_target_disable failed
[ 8.088207] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=347)
[ 8.209403] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
[ 8.236315] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 8.293038] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=348)
[ 8.318163] ldo4: supplied by evm_3v3_sd
[ 9.344200] vpe 489d0000.vpe: Device registered as /dev/video0
[ 10.529501] ldo1: supplied by evm_3v3_sd
[ 10.569309] vdd_3v3: supplied by ldo1
[ 10.600390] aic_dvdd_fixed: supplied by vdd_3v3
[ 10.607140] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
[ 13.056694] usbcore: registered new interface driver usbfs
[ 13.063748] usbcore: registered new interface driver hub
[ 13.069857] usbcore: registered new device driver usb
[ 13.587990] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 13.593747] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 13.601979] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00210010
[ 13.610958] xhci-hcd xhci-hcd.0.auto: irq 422, io mem 0x48890000
[ 13.617322] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 13.624294] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 13.631674] usb usb1: Product: xHCI Host Controller
[ 13.636717] usb usb1: Manufacturer: Linux 4.1.13-g8dc6617 xhci-hcd
[ 13.643049] usb usb1: SerialNumber: xhci-hcd.0.auto
[ 13.648961] hub 1-0:1.0: USB hub found
[ 13.652915] hub 1-0:1.0: 1 port detected
[ 13.657398] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 13.663060] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 13.670999] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 13.679416] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 13.686381] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 13.693783] usb usb2: Product: xHCI Host Controller
[ 13.698825] usb usb2: Manufacturer: Linux 4.1.13-g8dc6617 xhci-hcd
[ 13.705172] usb usb2: SerialNumber: xhci-hcd.0.auto
[ 13.710980] hub 2-0:1.0: USB hub found
[ 13.714961] hub 2-0:1.0: 1 port detected
[ 13.719476] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 13.725189] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 13.733327] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00210010
[ 13.742315] xhci-hcd xhci-hcd.1.auto: irq 423, io mem 0x488d0000
[ 13.749978] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 13.757038] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 13.764486] usb usb3: Product: xHCI Host Controller
[ 13.769512] usb usb3: Manufacturer: Linux 4.1.13-g8dc6617 xhci-hcd
[ 13.775826] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 13.785817] usb usb3: SerialNumber: xhci-hcd.1.auto
[ 13.791518] hub 3-0:1.0: USB hub found
[ 13.797167] hub 3-0:1.0: 1 port detected
[ 13.805096] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 13.810631] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 13.818573] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 13.826915] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 13.833752] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 13.841235] usb usb4: Product: xHCI Host Controller
[ 13.846201] usb usb4: Manufacturer: Linux 4.1.13-g8dc6617 xhci-hcd
[ 13.852564] usb usb4: SerialNumber: xhci-hcd.1.auto
[ 13.858680] hub 4-0:1.0: USB hub found
[ 13.862484] hub 4-0:1.0: 1 port detected
[ 13.974025] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 14.034024] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 14.054238] usb 2-1: New USB device found, idVendor=0451, idProduct=8140
[ 14.060972] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 14.089107] hub 2-1:1.0: USB hub found
[ 14.096756] hub 2-1:1.0: 4 ports detected
[ 14.124328] usb 1-1: New USB device found, idVendor=0451, idProduct=8142
[ 14.131063] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[ 14.138272] usb 1-1: SerialNumber: 09050069EE46
[ 14.151292] hub 1-1:1.0: USB hub found
[ 14.155128] hub 1-1:1.0: 4 ports detected
[ 14.319055] CMEMK module: reference Linux version 4.1.13
[ 14.326760] cmemk initialized
[ 14.615963] cryptodev: driver 1.6 loaded.
[ 14.722828] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
bootlogd: cannot allocate pseudo tty: No such file or directory
Starting random number generator daemon.
[ 14.892128] random: nonblocking pool is initialized
ALSA: Restoring mixer settings...
hwclock: can't open '/dev/misc/rtc': No such file or directory
Sat Jan 1 08:43:26 UTC 2000
INIT: Entering runlevel: 5misc/rtc': No such file or directory
Initializing the graphics driver ...
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~# lsmod
Module Size Used by
gdbserverproxy 4597 0
cryptodev 36093 0
cmemk 30509 0
xhci_plat_hcd 4517 0
xhci_hcd 102550 1 xhci_plat_hcd
usbcore 190641 2 xhci_plat_hcd,xhci_hcd
dwc3 60146 0
snd_soc_tlv320aic3x 41480 1
udc_core 11572 1 dwc3
snd_soc_simple_card 7015 0
omapdrm_pvr 341834 0
phy_omap_usb2 5557 2
omap_wdt 4121 0
ti_vpe 41905 0
c_can_platform 6642 0
c_can 9318 1 c_can_platform
ti_vpdma 14550 1 ti_vpe
dwc3_omap 4516 0
can_dev 11837 1 c_can
omap_rng 4533 0
rng_core 7786 2 omap_rng
debugss_kmodule 6626 0
extcon_usb_gpio 2842 0
extcon 13213 3 dwc3,dwc3_omap,extcon_usb_gpio
root@am57xx-evm:~# modprobe c_can
root@am57xx-evm:~# ip link set can0 type can bitrate 1000000 triple-sampling on
root@am57xx-evm:~# ip link set can1 type can bitrate 1000000 triple-sampling on
root@am57xx-evm:~# ip link set can0 up
[ 97.747096] c_can_platform 4ae3c000.can can0: setting BTR=4d00 BRPE=0000
root@am57xx-evm:~# ip link set can1 up
[ 100.927009] c_can_platform 48480000.can can1: setting BTR=4d00 BRPE=0000
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~# candump can0 &
[1] 715
interface = can0, family = 29, type = 3, proto = 1
root@am57xx-evm:~# [ 109.425448] can: controller area network core (rev 20120528 abi 9)
[ 109.431732] NET: Registered protocol family 29
[ 109.522156] can: raw protocol (rev 20120528)
root@am57xx-evm:~#
root@am57xx-evm:~# candump can1 &
[2] 720
interface = can1, family = 29, type = 3, proto = 1
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~# candump can0 &
[3] 721
interface = can0, family = 29, type = 3, proto = 1
root@am57xx-evm:~# cansend can0 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
interface = can0, family = 29, type = 3, proto = 1
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~#
I am getting this message, dcan1: _wait_target_disable failed for this I have changed u-boot pinmux file also, I am using G19,G20 for DCAN1 and E21,B20 for DCAN2.
{DCAN1_TX, (M15 | PULL_UP)}, /* dcan1_tx.safe for dcan1_tx */
{DCAN1_RX, (M15 | PULL_UP)}, /* dcan1_rx.safe for dcan1_rx */
{SPI1_CS3, (M15 | PULL_UP )}, /* spi1_cs3.dcan2_rx */
{GPIO6_14, (M15 | PULL_UP)}, /* gpio6_14.dcan2_tx */
Also verified the same in u-boot,
U-Boot# md 0x4A003688 0x4
4a003688: 0002000f 0002000f 0006000f 0004000f ................
U-Boot# md 0x4A0037D0 0x4
4a0037d0: 0002000f 0002000f 000e000f 000e000f ................
U-Boot# md 0x4A0037BC 0x4
4a0037bc: 0002000f 0004000f 000c000f 000c000f ................
Best Regards,
Ganesh