AnsweredAssumed Answered

Question about SocketCAN in lastest buildroot

Question asked by HoJuly on Sep 24, 2013
Latest reply on Oct 11, 2013 by Aaronwu


    I download the buildroot from sourceforge.


    git:// adi-buildroot-code


To configure socket-can according to:


And make the new Image, download into bf609-board.

Now the new Image boots up:


U-Boot 2012.07-rc2 (ADI-2012R2) (Jul 25 2013 - 15:54:46)

CPU:   ADSP bf609-0.0 (Detected Rev: 0.0) (parallel flash boot)
Board: ADI BF609 EZ-Kit board
Clock: VCO: 500 MHz, Core: 500 MHz, System0: 125 MHz, System1: 125 MHz, Dclk: 250 MHz
RAM:   104 MiB
Flash: 64 MiB
In:    serial
Out:   serial
Err:   serial
KGDB:  [on serial] ready
other init
Net:   mii0
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at b0100000 ...
   Image Name:   bf609-0.0-3.10.0-ADI-2013R1-pre
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    4852819 Bytes = 4.6 MiB
   Load Address: 00001000
   Entry Point:  002a79ec
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 002a79ec
Linux version 3.10.0-ADI-2013R1-pre (ho@ubuntu) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #11 Tue Sep 24 09:37:57 CST 2013
register early platform devices
bootconsole [early_shadow0] enabled
ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 128MB
Kernel Managed Memory: 104MB
Memory map:
  fixedcode = 0x00000400-0x00000490
  text      = 0x00001000-0x001cd268
  rodata    = 0x001cd28c-0x002662cc
  bss       = 0x00267000-0x0027c33c
  data      = 0x0027c340-0x002a4000
    stack   = 0x002a2000-0x002a4000
  init      = 0x002a4000-0x009ea000
  available = 0x009ea000-0x06700000
  DMA Zone  = 0x06700000-0x06800000
Hardware Trace active and enabled
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF609 Rev 0.0
Blackfin Linux support by
Processor Speed: 500 MHz core clock, 125 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
  External memory: cacheable in instruction cache
  L2 SRAM        : uncacheable in instruction cache
Data Cache Enabled for CPU0
  External memory: cacheable (write-through) in data cache
  L2 SRAM        : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 26162
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttyBF0,57600 mem=104M@0 max_mem=128M$# ip=
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Sorting __ex_table...
Memory available: 94152k/106496k RAM, (7448k init code, 1840k kernel code, 860k data, 1024k dma, 1172k reserved)
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (9 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (51 KB free)
Blackfin L2 SRAM: 256 KB (256 KB free)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <>
PTP clock support registered
NET: Registered protocol family 23
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
msgmni has been set to 183
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 88) is a BFIN-UART
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
bfin-uart.1: ttyBF1 at MMIO 0xffc02400 (irq = 91) is a BFIN-UART
physmap platform flash device: 04000000 at b0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008964
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000100000 : "bootloader(nor)"
0x000000100000-0x000000900000 : "linux kernel(nor)"
0x000000900000-0x000004000000 : "file system(nor)"
CAN device driver interface
stmmac - user ID: 0x10, Synopsys ID: 0x36
Enhanced/Alternate descriptors
        Enabled extended descriptors
Ring mode enabled
DMA HW capability register supported
RX Checksum Offload Engine supported (type 2)
Wake-Up On Lan supported
Enable RX Mitigation via HW Watchdog Timer
libphy: stmmac: probed
eth0: PHY ID 20005ce1 at 1 IRQ 0 (stmmac-0:01) active
usbcore: registered new interface driver usb-storage
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c /dev entries driver
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
icc icc.0: initialized
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
rtc-pcf8563 0-0051: setting system clock to 2007-01-14 05:05:07 UTC (1168751107)
eth0: device MAC address 02:80:ad:20:31:e8
dma_alloc_init: dma_page @ 0x0492a000 - 256 pages at 0x06700000
IP-Config: Complete:
     device=eth0, hwaddr=02:80:ad:20:31:e8, ipaddr=, mask=, gw=
     host=bf609-ezkit, domain=, nis-domain=(none)
     bootserver=, rootserver=, rootpath=
Freeing unused kernel memory: 7448K (2a4000 - 9ea000)
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
libphy: stmmac-0:01 - Link is Up - 100/Full



BusyBox v1.21.1 (2013-09-17 15:03:02 CST) hush - the humble shell



But, when I try to enable CAN-driver, there are something wrong:


root:/> ip link set can0 type can bitrate 500000
ip: either "dev" is duplicate, or "type" is garbage
root:/> ifconfig can0 up
ifconfig: SIOCGIFFLAGS: No such device
root:/> ifconfig
eth0      Link encap:Ethernet  HWaddr 02:80:AD:20:31:E8
          inet addr:  Bcast:  Mask:
          RX packets:464 errors:0 dropped:0 overruns:0 frame:0
          TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33065 (32.2 KiB)  TX bytes:11051 (10.7 KiB)

lo        Link encap:Local Loopback
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)




It seems that socket-can couldn't be linked to cmd "ip".  I upload the ".confg" file in "adi-buildroot-code" directory.

Is there something wrong with my configeration or others?


Thanks and Best Regards.