This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA756: dra756 custom board, c_can_platform 4ae3c000.can can0: bitrate error 1.0%

Part Number: DRA756

Tool/software: Linux

Hi,

I encounter a new problem with my dra756 custom board, the DCAN modules don't work. 

i set the bitrate is 500000, and the board return "c_can_platform 4ae3c000.can can0: bitrate error 1.0%"

========================================================================

default configurations of DCAN in connecttivity.cfg:

#CAN
CONFIG_CAN=y
CONFIG_CAN_C_CAN=y
CONFIG_CAN_C_CAN_PLATFORM=y
CONFIG_CAN_M_CAN=y

========================================================================

root@dra7xx-evm:~# ip link set can0 up type can bitrate 500000
[ 170.901476] c_can_platform 4ae3c000.can can0: bitrate error 1.0%
[ 170.907753] c_can_platform 4ae3c000.can can0: setting BTR=2e01 BRPE=0000
[ 170.914552] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@dra7xx-evm:~# ip -details link show can0
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0 
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 
bitrate 505263 sample-point 0.842 
tq 104 prop-seg 7 phase-seg1 8 phase-seg2 3 sjw 1
c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
clock 19200000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
root@dra7xx-evm:~#

========================================================================

 dra756-evm.dts:

dcan1_pins_default: dcan1_pins_default {

pinctrl-single,pins = <
		DRA7XX_CORE_IOPAD(0x37d4,	PIN_INPUT | MUX_MODE15) /* dcan1_rx.dcan1.rx */
		DRA7XX_CORE_IOPAD(0x37d0,	PIN_OUTPUT | MUX_MODE0) /* dcan1_tx.dcan1_tx */
	>;
};

dcan2_pins_default: dcan2_pins_default {
	pinctrl-single,pins = <
		DRA7XX_CORE_IOPAD(0x37bc,	PIN_INPUT | MUX_MODE15) /* dcan2_rx.dcan2_rx */
		DRA7XX_CORE_IOPAD(0x37b8,	PIN_OUTPUT | MUX_MODE4) /* dcan2_rx.dcan2_tx */
	>;
};


&dcan1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dcan1_pins_default>;
};

&dcan2 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dcan2_pins_default>;
};



dra7.dtsi:
dcan1: can@4ae3c000 {
compatible = "ti,dra7-d_can";
ti,hwmods = "dcan1";
reg = <0x4ae3c000 0x2000>;
syscon-raminit = <&scm_conf 0x558 0>;
interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&dcan1_sys_clk_mux>;
status = "disabled";
};

dcan2: can@48480000 {
compatible = "ti,dra7-d_can";
ti,hwmods = "dcan2";
reg = <0x48480000 0x2000>;
syscon-raminit = <&scm_conf 0x558 1>;
interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sys_clkin1>;
status = "disabled";
};
========================================================================

start log
U-Boot SPL 2019.04-rc1-00239-gb89074f-dirty (Jul 16 2019 - 09:19:51 +0800)
DRA752-GP ES2.0
Trying to boot from MMC1
no pinctrl state for default mode
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment



U-Boot 2019.04-rc1-00239-gb89074f-dirty (Jul 16 2019 - 09:19:51 +0800)

CPU : DRA752-GP ES2.0
Model: TI DRA742
Board: DRA74x EVM REV 
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment

Warning: fastboot.board_rev: unknown board revision
Net: No ethernet found.
Hit any key to stop autoboot: 0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
234 bytes read in 2 ms (114.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3965440 bytes read in 337 ms (11.2 MiB/s)
97828 bytes read in 11 ms (8.5 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffe5000, end 8ffffe23 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.133-01666-gaea8526-dirty (jeehong@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #63 SMP PREEMPT Tue Jul 16 08:19:34 CST 2019
[ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: TI DRA742
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 128 MiB at 0x00000000b0000000
[ 0.000000] OMAP4: Map 0x00000000fed00000 to fe600000 for dram barrier
[ 0.000000] DRA752 ES2.0
[ 0.000000] percpu: Embedded 15 pages/cpu s31372 r8192 d21876 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 517696
[ 0.000000] Kernel command line: console=ttyS0,115200n8 elevator=noop root=PARTUUID=631796c1-02 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=128M@0xB0000000 rootfstype=ext4 snd.slots_reserved=1,1
[ 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: 1911988K/2077696K available (8192K kernel code, 341K rwdata, 2508K rodata, 2048K init, 277K bss, 34636K reserved, 131072K cma-reserved, 1160192K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc1000000 (2048 kB)
[ 0.000000] .data : 0xc1000000 - 0xc1055730 ( 342 kB)
[ 0.000000] .bss : 0xc1057000 - 0xc109c4f0 ( 278 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] OMAP clockevent source: timer1 at 31475 Hz
[ 0.000000] arch_timer: cp15 timer(s) running at 5.90MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x15c70fb29, max_idle_ns: 440795202138 ns
[ 0.000005] sched_clock: 56 bits at 5MHz, resolution 169ns, wraps every 4398046511093ns
[ 0.000018] Switching to timer-based delay loop, resolution 169ns
[ 0.000357] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000366] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000752] Console: colour dummy device 80x30
[ 0.000784] Calibrating delay loop (skipped), value calculated using timer frequency.. 11.80 BogoMIPS (lpj=59016)
[ 0.000801] pid_max: default: 32768 minimum: 301
[ 0.000913] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000927] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001459] CPU: Testing write buffer coherency: ok
[ 0.001498] CPU0: Spectre v2: using ICIALLU workaround
[ 0.001692] /cpus/cpu@0 missing clock-frequency property
[ 0.001711] /cpus/cpu@1 missing clock-frequency property
[ 0.001723] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.039893] Setting up static identity map for 0x80200000 - 0x80200060
[ 0.059902] Hierarchical SRCU implementation.
[ 0.080096] EFI services will not be available.
[ 0.099961] smp: Bringing up secondary CPUs ...
[ 0.170299] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.170305] CPU1: Spectre v2: using ICIALLU workaround
[ 0.170419] smp: Brought up 1 node, 2 CPUs
[ 0.170430] SMP: Total of 2 processors activated (23.60 BogoMIPS).
[ 0.170438] CPU: All CPU(s) started in HYP mode.
[ 0.170446] CPU: Virtualization extensions available.
[ 0.171038] devtmpfs: initialized
[ 0.187888] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
[ 0.188239] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.188441] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.188458] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.191084] pinctrl core: initialized pinctrl subsystem
[ 0.191539] DMI not present or invalid.
[ 0.191787] NET: Registered protocol family 16
[ 0.192931] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.193889] omap_hwmod: l3_main_2 using broken dt data from ocp
[ 0.370383] cpuidle: using governor ladder
[ 0.370418] cpuidle: using governor menu
[ 0.377908] OMAP GPIO hardware version 0.1
[ 0.394860] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/nand_flash_x16, deferring probe
[ 0.399434] No ATAGs?
[ 0.399504] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.399518] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.399861] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.399872] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.400421] OMAP DMA hardware revision 0.0
[ 0.415215] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 0.416437] edma 43300000.edma: memcpy is disabled
[ 0.419632] edma 43300000.edma: TI EDMA DMA engine driver
[ 0.420235] reg-fixed-voltage fixedregulator-sd: Fixed regulator specified with variable voltages
[ 0.420259] reg-fixed-voltage: probe of fixedregulator-sd failed with error -22
[ 0.424755] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
[ 0.424797] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
[ 0.424834] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
[ 0.424938] media: Linux media interface: v0.10
[ 0.424972] Linux video capture interface: v2.00
[ 0.425018] pps_core: LinuxPPS API ver. 1 registered
[ 0.425027] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.425046] PTP clock support registered
[ 0.425074] EDAC MC: Ver: 3.0.0
[ 0.425343] dmi: Firmware registration failed.
[ 0.425672] Advanced Linux Sound Architecture Driver Initialized.
[ 0.426447] clocksource: Switched to clocksource arch_sys_counter
[ 0.433861] NET: Registered protocol family 2
[ 0.434376] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.434440] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.434566] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.434639] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.434672] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.434793] NET: Registered protocol family 1
[ 0.435080] RPC: Registered named UNIX socket transport module.
[ 0.435090] RPC: Registered udp transport module.
[ 0.435098] RPC: Registered tcp transport module.
[ 0.435106] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.436237] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 0.436414] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 0.438891] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 0.442929] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.443424] NFS: Registering the id_resolver key type
[ 0.443447] Key type id_resolver registered
[ 0.443456] Key type id_legacy registered
[ 0.443494] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.444794] bounce: pool size: 64 pages
[ 0.444834] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.444844] io scheduler noop registered (default)
[ 0.444853] io scheduler deadline registered
[ 0.444946] io scheduler cfq registered
[ 0.444957] io scheduler mq-deadline registered
[ 0.444966] io scheduler kyber registered
[ 0.448951] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[ 0.449487] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
[ 0.495042] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.497730] console [ttyS0] disabled
[ 0.497780] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 43, base_baud = 3000000) is a 8250
[ 1.303872] console [ttyS0] enabled
[ 1.308256] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 44, base_baud = 3000000) is a 8250
[ 1.318721] omap_rng 48090000.rng: Random Number Generator ver. 20
[ 1.319048] random: fast init done
[ 1.326907] Error: Driver 'tfp410' is already registered, aborting...
[ 1.328431] random: crng init done
[ 1.343555] brd: module loaded
[ 1.352048] loop: module loaded
[ 1.358950] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 1.365687] libphy: Fixed MDIO Bus: probed
[ 1.370600] CAN device driver interface
[ 1.375239] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=76)
[ 1.384710] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=77)
[ 1.394903] i2c /dev entries driver
[ 1.398884] IR NEC protocol handler initialized
[ 1.403437] IR RC5(x/sz) protocol handler initialized
[ 1.408527] IR RC6 protocol handler initialized
[ 1.413078] IR JVC protocol handler initialized
[ 1.417642] IR Sony protocol handler initialized
[ 1.422280] IR SANYO protocol handler initialized
[ 1.427018] IR Sharp protocol handler initialized
[ 1.431743] IR MCE Keyboard/mouse protocol handler initialized
[ 1.437613] IR XMP protocol handler initialized
[ 1.446073] sdhci: Secure Digital Host Controller Interface driver
[ 1.452309] sdhci: Copyright(c) Pierre Ossman
[ 1.458630] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.464887] leds-gpio: probe of leds failed with error -2
[ 1.470640] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.478458] NET: Registered protocol family 10
[ 1.483601] Segment Routing with IPv6
[ 1.487383] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.493754] NET: Registered protocol family 17
[ 1.498251] can: controller area network core (rev 20170425 abi 9)
[ 1.504507] NET: Registered protocol family 29
[ 1.509027] can: raw protocol (rev 20170425)
[ 1.513319] can: broadcast manager protocol (rev 20170425 t)
[ 1.519027] can: netlink gateway (rev 20170425) max_hops=1
[ 1.524765] Key type dns_resolver registered
[ 1.529255] omap_voltage_late_init: Voltage driver support not added
[ 1.535637] Power Management for TI OMAP4+ devices.
[ 1.540815] Registering SWP/SWPB emulation handler
[ 1.558790] dmm 4e000000.dmm: initialized all PAT entries
[ 1.564776] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.569985] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.577301] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 1.583686] nand: Macronix MX30LF2G18AC
[ 1.587560] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.595211] nand: using OMAP_ECC_BCH4_CODE_HW ECC scheme
[ 1.600652] 10 ofpart partitions found on MTD device omap2-nand.0
[ 1.606789] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.612217] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.618123] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.624617] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.631133] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.637634] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.644353] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.650817] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.657240] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.664344] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.673998] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 1.793281] palmas 0-0058: IRQ missing: skipping irq request
[ 1.826808] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
[ 1.833806] SMPS123: supplied by regulator-dummy
[ 1.840528] SMPS45: supplied by regulator-dummy
[ 1.847095] SMPS6: supplied by regulator-dummy
[ 1.853412] SMPS7: supplied by regulator-dummy
[ 1.859920] SMPS8: supplied by regulator-dummy
[ 1.866254] SMPS9: supplied by regulator-dummy
[ 1.871849] LDO1: supplied by regulator-dummy
[ 1.878294] LDO2: supplied by regulator-dummy
[ 1.884560] LDO3: supplied by regulator-dummy
[ 1.890828] LDO4: supplied by regulator-dummy
[ 1.896009] LDO5: supplied by regulator-dummy
[ 1.901208] LDO6: supplied by regulator-dummy
[ 1.906407] LDO7: supplied by regulator-dummy
[ 1.911623] LDO8: supplied by regulator-dummy
[ 1.916830] LDO9: supplied by regulator-dummy
[ 1.923273] LDOLN: supplied by regulator-dummy
[ 1.929660] LDOUSB: supplied by regulator-dummy
[ 1.938968] pcf857x 0-0020: probed
[ 1.942965] pcf857x 0-0023: probed
[ 1.946643] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[ 1.953051] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[ 1.971304] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[ 1.979875] evm_3v3_sw: supplied by sysen1
[ 2.037275] evm_1v8: supplied by smps9
[ 2.081837] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.089963] mmc0: new SDHC card at address 0001
[ 2.094790] mmcblk0: mmc0:0001 00000 7.44 GiB 
[ 2.099965] hctosys: unable to open rtc device (rtc0)
[ 2.101713] mmcblk0: p1 p2
[ 2.105735] aic_dvdd: supplied by evm_3v3_sw
[ 2.112391] vtt_fixed: supplied by sysen2
[ 2.116932] aic_dvdd: disabling
[ 2.120516] ldousb: disabling
[ 2.123764] ALSA device list:
[ 2.126757] No soundcards found.
[ 2.148517] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[ 2.160020] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.164512] mmc1: new high speed MMC card at address 0001
[ 2.168205] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.179723] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
[ 2.184544] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
[ 2.190865] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
[ 2.197232] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
[ 2.214644] devtmpfs: mounted
[ 2.218732] Freeing unused kernel memory: 2048K
[ 2.797304] systemd[1]: System time before build time, advancing clock.
[ 2.845840] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
[ 2.867549] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[ 2.927845] systemd[1]: Set hostname to <dra7xx-evm>.
[ 3.402954] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 3.454314] systemd[1]: Listening on Process Core Dump Socket.
[ OK ] Listening on Process Core Dump Socket.
[ 3.486673] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 3.516678] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 3.546692] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 3.576590] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 3.608261] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
Mounting Kernel Debug File System...
Starting Load Kernel Modules...
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
Starting Create list of required st…ce nodes for the current kernel...
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
Starting Remount Root and Kernel File Systems...
[ 3.912928] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
Starting Journal Service...
Mounting POSIX Message Queue File System...
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Journal Service.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Rebuild Hardware Database...
Starting Apply Kernel Variables...
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Create System Users.
[ OK ] Started Apply Kernel Variables.
[ 4.685671] systemd-journald[89]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Mounting /media/ram...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Rebuild Dynamic Linker Cache...
Starting Rebuild Journal Catalog...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Rebuild Journal Catalog.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Rebuild Hardware Database.
Starting udev Coldplug all Devices...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
Starting Network Service...
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting TI IPC Daemon...
Starting Print notice about GPLv3 packages...
[ OK ] Reached target Containers.
[ OK ] Started Periodic Command Scheduler.
Starting uim-sysfs.service...
[ OK ] Started D-Bus System Message Bus.
[ 8.559745] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[ 8.578970] omap-des 480a5000.des: will run requests pump with realtime priority
[ 8.730113] omap_rtc 48838000.rtc: already running
[ 8.738372] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc0
[ 8.981019] SCSI subsystem initialized
[ OK ] Started System Logging Service.
Starting Login Service...
[ OK ] Started Hardware RNG Entropy Gatherer Daemon.[ 9.056052] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3

[ OK ] Started Kernel Logging Service.
[ OK ] Started Job spooling tools.
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Timers.
[ OK ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[ 9.228644] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 9.256880] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
[ 9.262529] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
Starting RPC Bind Service...
[ OK ] Started Network Service.
[ OK ] Started TI IPC Daemon.
[ 9.317345] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
[ OK ] Found device /dev/ttyS0.
[ 9.425295] scsi host0: ahci
[ 9.428681] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 70
[ OK ] Started RPC Bind Service.
[ 9.486648] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[ 9.506545] omap-aes 4b500000.aes: will run requests pump with realtime priority
[ 9.625970] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[ 9.653429] omap-aes 4b700000.aes: will run requests pump with realtime priority
[ 9.795799] NET: Registered protocol family 15
[ 9.811200] ata1: SATA link down (SStatus 0 SControl 300)
[ 10.134374] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 10.264424] Initializing XFRM netlink socket
[ 11.371789] dwc3 48890000.usb: changing max_speed on rev 5533202a
[ OK ] Started uim-sysfs.service.
Starting rc.pvr.service...
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Reached target Network.
Starting Permit User Sessions...
Starting Lightning Fast Webserver With Light System Requirements...
Starting Enable and configure wl18xx bluetooth stack...
Starting Network Name Resolution...
[ OK ] Started Permit User Sessions.
[ OK ] Started Login Service.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
Starting Synchronize System and HW clocks...
[ OK ] Started Enable and configure wl18xx bluetooth stack.
[ OK ] Started Synchronize System and HW clocks.
[ 12.237518] pvrsrvkm: loading out-of-tree module taints kernel.
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started NFS status monitor for NFSv2/3 locking..
[ OK ] Started rc.pvr.service.
Starting weston.service...
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
autoconf
bash-dev
bash
binutils-dev
binutils
bison-dev
bison
cifs-utils
cpio
cpp-symlinks
cpp
dosfstools
elfutils-dev
elfutils
g++-symlinks
g++
gawk
gcc-symlinks
gcc
gdb
gdbc6x
gdbserver
gettext
glmark2
gstreamer1.0-libav
gzip
libasm1
libcairo-perf-utils
libdw1
libelf1
libgdbm-compat4
libgdbm-dev
libgdbm4
libgettextlib
libgettextsrc
libgmp10
libidn11
libmpc3
libmpfr4
libreadline-dev
libreadline7
libunistring2
m4-dev
m4
make
nettle
parted
python3-pycairo
swig-dev
swig
which

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
[ OK ] Started Print notice about GPLv3 packages.
[ OK ] Started weston.service.
Starting telnetd.service...
[ OK ] Started telnetd.service.
Starting thttpd.service...
[ OK ] Started thttpd.service.
Starting rng-tools.service...
[ OK ] Started rng-tools.service.
Starting userled.service...
[ OK ] Started userled.service.
Starting gdbserverproxy.service...
[ OK ] Started gdbserverproxy.service.
Starting matrix-gui-2.0.service...
[ OK ] Started matrix-gui-2.0.service.
Starting thermal-zone-init.service...
[ OK ] Started thermal-zone-init.service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

_____ _____ _ _ 
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ 
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| 
|___| |___|

Arago Project http://arago-project.org dra7xx-evm ttyS0

Arago 2018.10 dra7xx-evm ttyS0

dra7xx-evm login:

  • Hi,

    A few questions - 

    1. By "new problem with my dra756 custom board" - do you mean that this you never encountered before? Or did you never try this before?
    2. "DCAN modules don't work" - Did you try to send some CAN messages and then that failed?

    If you look at the following snippet you can see that this is not an error (drivers/net/can/dev.c) -

    if (best_bitrate_error) {
    		/* Error in one-tenth of a percent */
    		v64 = (u64)best_bitrate_error * 1000;
    		do_div(v64, bt->bitrate);
    		bitrate_error = (u32)v64;
    		if (bitrate_error > CAN_CALC_MAX_ERROR) {
    			netdev_err(dev,
    				   "bitrate error %d.%d%% too high\n",
    				   bitrate_error / 10, bitrate_error % 10);
    			return -EDOM;
    		}
    		netdev_warn(dev, "bitrate error %d.%d%%\n",
    			    bitrate_error / 10, bitrate_error % 10);
    	}

    If the bitrate_error > CAN_CALC_MAX_ERROR (50) then it becomes an error.

    Regards,
    Karan

  • 1. i am sorry to confuse you, i met a different problem before, i have never encountered this problem.

    2. i tried to send CAN messages but failed.

    i guess the clock is not correct because i checked the DCAN clock on a TDA2xx-evm-board, it is 20,000,000Hz. 

    the log above tells that DCAN clock is 19,200,000Hz on the custom board, should i modify the clock for DRA756? or is it correct?

  • Hi,

    1. You were able to send CAN messages before?
    2. If yes, did you update anything which led to this?
    3. Also, which processor SDK are you using?

    Regards,

    Karan

  • Jan1908 said:
    the log above tells that DCAN clock is 19,200,000Hz on the custom board, should i modify the clock for DRA756? or is it correct?

    Are you using a 19.2 MHz clock source for SYS_CLK1 (xi_osc0)?  Have you correspondingly configured SYSBOOT[9:8] = 0b11?

  • Hi, Karan,

    1.It never worked properly.

    2.processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01, but i am not using official version of the linux kernel.

    3. i just modified dra7-evm.dts, i will upload it tomorrow morning if it's necessary.

  • Hi, Brad,

    Good news, the clock source is 20MHz on board but our engineer gave a fault configuration(0b11) of sysboot, so it works preperly after remove pull-up resistor.

    thanks for your reminder.