Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DNola
Beginner
30 Views

Can't getr CAN CONTROLLER working on linux 5.4.84

Good evening everybody,

I'm trying to enable the CAN controller inside my DE10nano soc (in the HPS). I can get it working on Linux 4.1.33 but it wont work on the new version (5.4.84) ? Can you help me ? 

My logs : 


U-Boot SPL 2013.01.01 (Feb 19 2021 - 14:52:56)
BOARD : Altera SOCFPGA Cyclone V Board
CLOCK: EOSC1 clock 25000 KHz
CLOCK: EOSC2 clock 25000 KHz
CLOCK: F2S_SDR_REF clock 0 KHz
CLOCK: F2S_PER_REF clock 0 KHz
CLOCK: MPU clock 800 MHz
CLOCK: DDR clock 400 MHz
CLOCK: UART clock 100000 KHz
CLOCK: MMC clock 50000 KHz
CLOCK: QSPI clock 3125 KHz
RESET: COLD
INFO : Watchdog enabled
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
SDRAM: 1024 MiB
ALTERA DWMMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.01.01-00126-g353283b6e7 (Feb 19 2021 - 15:23:44)

CPU : Altera SOCFPGA Platform
BOARD : Altera SOCFPGA Cyclone V Board
I2C: ready
DRAM: 1 GiB
MMC: ALTERA DWMMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Skipped ethaddr assignment due to invalid EMAC address in EEPROM
Net: mii0
Warning: failed to set MAC address

Hit any key to stop autoboot: 0
reading u-boot.scr
590 bytes read in 4 ms (143.6 KiB/s)
## Executing script at 02000000
-- Programming FPGA --
reading soc_system.rbf
2079644 bytes read in 104 ms (19.1 MiB/s)
## Starting application at 0x3FF79524 ...
## Application terminated, rc = 0x0
-- Setting Env Variables --
reading zImage
6837096 bytes read in 327 ms (19.9 MiB/s)
reading soc_system.dtb
24311 bytes read in 8 ms (2.9 MiB/s)
## Flattened Device Tree blob at 00000100
Booting using the fdt blob at 0x00000100
Loading Device Tree to 03ff7000, end 03fffef6 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.84 (nolane@DESKTOP-51NC2K1) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #3 SMP Fri Feb 19 23:08:22 CET 2021
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Terasic DE10 NANO
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 19 pages/cpu s47688 r8192 d21944 u77824
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1023048K/1048576K available (11264K kernel code, 723K rwdata, 2292K rodata, 1024K init, 186K bss, 25528K reserved, 0K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] ftrace: allocating 36376 entries in 72 pages
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x46060001
[ 0.000000] random: get_random_bytes called from start_kernel+0x328/0x4e8 with crng_init=0
[ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.000007] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[ 0.000018] Switching to timer-based delay loop, resolution 10ns
[ 0.000351] GIC: PPI13 is secure or misconfigured
[ 0.000383] GIC: PPI13 is secure or misconfigured
[ 0.000548] Console: colour dummy device 80x30
[ 0.000583] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=1000000)
[ 0.000597] pid_max: default: 32768 minimum: 301
[ 0.000727] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.000741] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001445] CPU: Testing write buffer coherency: ok
[ 0.001476] CPU0: Spectre v2: using BPIALL workaround
[ 0.001724] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002335] Setting up static identity map for 0x100000 - 0x100060
[ 0.002464] rcu: Hierarchical SRCU implementation.
[ 0.002771] smp: Bringing up secondary CPUs ...
[ 0.003433] GIC: PPI13 is secure or misconfigured
[ 0.003445] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.003453] CPU1: Spectre v2: using BPIALL workaround
[ 0.003579] smp: Brought up 1 node, 2 CPUs
[ 0.003590] SMP: Total of 2 processors activated (400.00 BogoMIPS).
[ 0.003597] CPU: All CPU(s) started in SVC mode.
[ 0.004132] devtmpfs: initialized
[ 0.009133] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.009350] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.009370] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.010266] NET: Registered protocol family 16
[ 0.011187] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012145] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.012155] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.032087] vgaarb: loaded
[ 0.032445] SCSI subsystem initialized
[ 0.032633] usbcore: registered new interface driver usbfs
[ 0.032680] usbcore: registered new interface driver hub
[ 0.032747] usbcore: registered new device driver usb
[ 0.032939] usb_phy_generic sopc@0:usbphy@0: sopc@0:usbphy@0 supply vcc not found, using dummy regulator
[ 0.033973] pps_core: LinuxPPS API ver. 1 registered
[ 0.033984] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.034003] PTP clock support registered
[ 0.034169] FPGA manager framework
[ 0.034759] Bluetooth: Core ver 2.22
[ 0.034807] NET: Registered protocol family 31
[ 0.034816] Bluetooth: HCI device and connection manager initialized
[ 0.034829] Bluetooth: HCI socket layer initialized
[ 0.034839] Bluetooth: L2CAP socket layer initialized
[ 0.034859] Bluetooth: SCO socket layer initialized
[ 0.034874] NET: Registered protocol family 8
[ 0.034881] NET: Registered protocol family 20
[ 0.035059] nfc: nfc_init: NFC Core ver 0.1
[ 0.035124] NET: Registered protocol family 39
[ 0.035437] clocksource: Switched to clocksource timer
[ 0.570989] NET: Registered protocol family 2
[ 0.571793] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.571822] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.571898] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.572024] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.572141] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.572190] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.572401] NET: Registered protocol family 1
[ 0.572864] RPC: Registered named UNIX socket transport module.
[ 0.572874] RPC: Registered udp transport module.
[ 0.572881] RPC: Registered tcp transport module.
[ 0.572887] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.573306] NET: Registered protocol family 44
[ 0.573324] PCI: CLS 0 bytes, default 64
[ 0.574009] hw perfevents: no interrupt-affinity property for /sopc@0/pmu0, guessing.
[ 0.574222] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.575169] Initialise system trusted keyrings
[ 0.575345] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.582226] NFS: Registering the id_resolver key type
[ 0.582262] Key type id_resolver registered
[ 0.582270] Key type id_legacy registered
[ 0.582286] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.582911] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.583231] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.623496] Key type asymmetric registered
[ 0.623508] Asymmetric key parser 'x509' registered
[ 0.623571] bounce: pool size: 64 pages
[ 0.623586] io scheduler mq-deadline registered
[ 0.623594] io scheduler kyber registered
[ 0.630694] dma-pl330 ffe01000.dma: Loaded driver for PL330 DMAC-341330
[ 0.630710] dma-pl330 ffe01000.dma: DBUFF-512x8bytes Num_Chans-8 Num_Peri-32 Num_Events-8
[ 0.634159] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.635181] printk: console [ttyS0] disabled
[ 0.635237] ffc02000.serial: ttyS0 at MMIO 0xffc02000 (irq = 26, base_baud = 6250000) is a 16550A
[ 1.288099] printk: console [ttyS0] enabled
[ 1.292855] ffc03000.serial: ttyS1 at MMIO 0xffc03000 (irq = 27, base_baud = 6250000) is a 16550A
[ 1.303245] brd: module loaded
[ 1.313704] loop: module loaded
[ 1.316976] dma-buf: Running sanitycheck
[ 1.320883] dma-buf: Running dma_fence
[ 1.324614] sizeof(dma_fence)=48
[ 1.327971] dma-buf: Running dma_fence/sanitycheck
[ 1.332756] dma-buf: Running dma_fence/test_signaling
[ 1.337802] dma-buf: Running dma_fence/test_add_callback
[ 1.343093] dma-buf: Running dma_fence/test_late_add_callback
[ 1.348826] dma-buf: Running dma_fence/test_rm_callback
[ 1.354031] dma-buf: Running dma_fence/test_late_rm_callback
[ 1.359675] dma-buf: Running dma_fence/test_status
[ 1.364447] dma-buf: Running dma_fence/test_error
[ 1.369140] dma-buf: Running dma_fence/test_wait
[ 1.373740] dma-buf: Running dma_fence/test_wait_timeout
[ 1.425440] dma-buf: Running dma_fence/test_stub
[ 1.430054] dma-buf: Running dma_fence/race_signal_callback
[ 1.615438] thread_signal_callback[0] completed 114107 passes, 107875 misses
[ 1.622530] thread_signal_callback[1] completed 114067 passes, 107834 misses
[ 2.635447] thread_signal_callback[0] completed 600493 passes, 600493 misses
[ 2.642535] thread_signal_callback[1] completed 600555 passes, 600547 misses
[ 2.652432] libphy: Fixed MDIO Bus: probed
[ 2.657159] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[ 2.665120] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[ 2.673892] CAN device driver interface
[ 2.677829] usbcore: registered new interface driver usb_8dev
[ 2.683577] usbcore: registered new interface driver ems_usb
[ 2.689262] usbcore: registered new interface driver esd_usb2
[ 2.695011] usbcore: registered new interface driver gs_usb
[ 2.700604] usbcore: registered new interface driver kvaser_usb
[ 2.706550] usbcore: registered new interface driver mcba_usb
[ 2.712300] usbcore: registered new interface driver peak_usb
[ 2.718067] usbcore: registered new interface driver ucan

 

Basically it stop after registering the CANs drivers

And I enabled the CAN driver inside the Linux kernel. What should I do ?

thanks you for your help 

Nolane

0 Kudos
1 Reply
12 Views

Hi,

May I know how did you compiled the device tree of Linux for both?