Jump to content

user_357

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by user_357

  1. Thank you very much.
    It works =)

    YEEEEE

     

    For all Orange pi h2&h3

    Step:

    1) Download nightly image!!!

    2) Connect
    PC0(GPIO Orange PI) MOSI - (MCP2515<->CAN) SI
    PC1(GPIO Orange PI) MISO - (MCP2515<->CAN) SO
    PC2(GPIO Orange PI) CLK   - (MCP2515<->CAN) SCK
    PC3(GPIO Orange PI) CS     - (MCP2515<->CAN) CS
    PA7(GPIO Orange PI)  INT    - (MCP2515<->CAN) INT
    3) Download overlay (zipped): sun8i-h3-spi0-mcp2515.zip (read up)

    4) connect for orange pi, and command: armbian-config

    Chose: System->Hardware-> spi0-mcp2515 and spi-spidev.
    5) reboot

    6) next login and
    modprobe can
    modprobe can-dev

    # set bitrate 125kbit

    ip link set can0 type can bitrate 125000 triple-sampling on
    ifconfig can0 up

    7) Testing

    apt-get install can-utils

    cangen can0 -I 5 -L 8 -D 11223344AABBCCDD

     

    Screenshot_20180401_065849.png

  2. Log loading board:
     

    Spoiler

    U-Boot 2017.03-armbian (Apr 15 2017 - 12:17:42 +0200) Allwinner Technology

    CPU:   Allwinner H3 (SUN8I 1680)
    Model: Xunlong Orange Pi Plus / Plus 2
    I2C:   ready
    DRAM:  2 GiB
    MMC:   SUNXI SD/MMC: 1, SUNXI SD/MMC: 0
    *** Warning - bad CRC, using default environment

    Setting up a 720x576i composite-pal console (overscan 32x20)
    In:    serial
    Out:   vga
    Err:   vga
    Net:   phy interface7
    eth0: ethernet@1c30000
    Hit any key to stop autoboot:  0
    6944 bytes read in 188 ms (35.2 KiB/s)
    switch to partitions #0, OK
    mmc0(part 0) is current device
    Scanning mmc 0:1...
    Found U-Boot script /boot/boot.scr
    2652 bytes read in 206 ms (11.7 KiB/s)
    ## Executing script at 43100000
    U-boot loaded from eMMC or secondary SD
    Boot script loaded from mmc
    312 bytes read in 81 ms (2.9 KiB/s)
    3944701 bytes read in 408 ms (9.2 MiB/s)
    5740384 bytes read in 477 ms (11.5 MiB/s)
    0 bytes read in 145 ms (0 Bytes/s)
    33467 bytes read in 360 ms (89.8 KiB/s)
    1647 bytes read in 525 ms (2.9 KiB/s)
    Applying DT overlay sun8i-h3-spi0-mcp2515.dtbo
    1215 bytes read in 435 ms (2 KiB/s)
    Applying DT overlay sun8i-h3-spi-add-cs1.dtbo
    ## Loading init Ramdisk from Legacy Image at 43300000 ...
       Image Name:   uInitrd
       Image Type:   ARM Linux RAMDisk Image (gzip compressed)
       Data Size:    3944637 Bytes = 3.8 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 43000000
       Booting using the fdt blob at 0x43000000
       Loading Ramdisk to 49c3c000, end 49fff0bd ... OK
       reserving fdt memory region: addr=43000000 size=9000
       Loading Device Tree to 49c30000, end 49c3bfff ... OK
    Using machid 0x1029 from environment

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.10.3-sun8i (root@devel) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #5 SMP Sat Apr 15 11:19:17 CEST 2017
    [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt:Machine model: Xunlong Orange Pi Plus / Plus 2
    [    0.000000] cma: Reserved 16 MiB at 0xbec00000
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] percpu: Embedded 14 pages/cpu @eeda5000 s26316 r8192 d22836 u57344
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522154
    [    0.000000] Kernel command line: root=UUID=4dfb914e-4904-424e-a0fb-2eb01eef10ae rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 cgroup_enable=memory swapaccount=1 hdmi.audio=EDID:0 d6
    [    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] allocated 2099624 bytes of page_ext
    [    0.000000] Memory: 2042652K/2095528K available (6144K kernel code, 340K rwdata, 2356K rodata, 1024K init, 328K bss, 36492K reserved, 16384K cma-reserved, 1292712K 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 : 0xbf800000 - 0xbfe00000   (   6 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
    [    0.000000]       .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
    [    0.000000]       .data : 0xc0b00000 - 0xc0b55180   ( 341 kB)
    [    0.000000]        .bss : 0xc0b57000 - 0xc0ba9088   ( 329 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (virt).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
    [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    [    0.000016] Switching to timer-based delay loop, resolution 41ns
    [    0.000192] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000500] Console: colour dummy device 80x30
    [    0.000964] console [tty1] enabled
    [    0.000997] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    [    0.001032] pid_max: default: 32768 minimum: 301
    [    0.001219] Security Framework initialized
    [    0.001242] AppArmor: AppArmor disabled by boot time parameter
    [    0.001301] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001323] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.002031] CPU: Testing write buffer coherency: ok
    [    0.002368] CPU0: update cpu_capacity 1024
    [    0.002392] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.002657] Setting up static identity map for 0x40100000 - 0x4010004c
    [    0.003479] smp: Bringing up secondary CPUs ...
    [    0.004611] smp: Brought up 1 node, 1 CPU
    [    0.004637] SMP: Total of 1 processors activated (48.00 BogoMIPS).
    [    0.004655] CPU: All CPU(s) started in SVC mode.
    [    0.005532] devtmpfs: initialized
    [    0.014679] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    [    0.014964] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.015006] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.015718] xor: measuring software checksum speed
    [    0.110018]    arm4regs  :  1263.200 MB/sec
    [    0.210071]    8regs     :   733.200 MB/sec
    [    0.310125]    32regs    :   787.600 MB/sec
    [    0.410178]    neon      :  1280.800 MB/sec
    [    0.410196] xor: using function: neon (1280.800 MB/sec)
    [    0.410296] pinctrl core: initialized pinctrl subsystem
    [    0.411250] NET: Registered protocol family 16
    [    0.412351] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.413450] cpuidle: using governor ladder
    [    0.413471] cpuidle: using governor menu
    [    0.414251] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.414283] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.590398] raid6: int32x1  gen()   176 MB/s
    [    0.760569] raid6: int32x1  xor()   134 MB/s
    [    0.930809] raid6: int32x2  gen()   248 MB/s
    [    1.100809] raid6: int32x2  xor()   180 MB/s
    [    1.271149] raid6: int32x4  gen()   255 MB/s
    [    1.441180] raid6: int32x4  xor()   185 MB/s
    [    1.611226] raid6: int32x8  gen()   247 MB/s
    [    1.781442] raid6: int32x8  xor()   171 MB/s
    [    1.951540] raid6: neonx1   gen()   483 MB/s
    [    2.121634] raid6: neonx1   xor()   349 MB/s
    [    2.291696] raid6: neonx2   gen()   645 MB/s
    [    2.461854] raid6: neonx2   xor()   471 MB/s
    [    2.631998] raid6: neonx4   gen()   785 MB/s
    [    2.802159] raid6: neonx4   xor()   522 MB/s
    [    2.972382] raid6: neonx8   gen()   686 MB/s
    [    3.142462] raid6: neonx8   xor()   471 MB/s
    [    3.142479] raid6: using algorithm neonx4 gen() 785 MB/s
    [    3.142496] raid6: .... xor() 522 MB/s, rmw enabled
    [    3.142513] raid6: using intx1 recovery algorithm
    [    3.142749] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc/pinctrl@01f02c00/usb0_vbus_pin@0, deferring probe
    [    3.142810] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
    [    3.143425] reg-fixed-voltage usb3-vbus: could not find pctldev for node /soc/pinctrl@01c20800/usb3_vbus_pin@0, deferring probe
    [    3.143477] reg-fixed-voltage gmac-3v3: could not find pctldev for node /soc/pinctrl@01c20800/gmac_power_pin@0, deferring probe
    [    3.143985] SCSI subsystem initialized
    [    3.144455] usbcore: registered new interface driver usbfs
    [    3.144523] usbcore: registered new interface driver hub
    [    3.144592] usbcore: registered new device driver usb
    [    3.144771] media: Linux media interface: v0.10
    [    3.144823] Linux video capture interface: v2.00
    [    3.144911] pps_core: LinuxPPS API ver. 1 registered
    [    3.144931] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    3.144972] PTP clock support registered
    [    3.145340] Advanced Linux Sound Architecture Driver Initialized.
    [    3.146448] clocksource: Switched to clocksource arch_sys_counter
    [    3.146606] VFS: Disk quotas dquot_6.6.0
    [    3.146673] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    3.147267] simple-framebuffer bfe79000.framebuffer: framebuffer at 0xbfe79000, 0x178e00 bytes, mapped to 0xf0880000
    [    3.147303] simple-framebuffer bfe79000.framebuffer: format=x8r8g8b8, mode=656x536x32, linelength=2880
    [    3.154203] Console: switching to colour frame buffer device 82x33
    [    3.160721] simple-framebuffer bfe79000.framebuffer: fb0: simplefb registered!
    [    3.168694] NET: Registered protocol family 2
    [    3.169413] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    3.174173] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    3.179009] TCP: Hash tables configured (established 8192 bind 8192)
    [    3.183807] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    3.188588] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    3.193468] NET: Registered protocol family 1
    [    3.198571] RPC: Registered named UNIX socket transport module.
    [    3.203127] RPC: Registered udp transport module.
    [    3.207579] RPC: Registered tcp transport module.
    [    3.211843] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    3.216328] Trying to unpack rootfs image as initramfs...
    [    3.449347] Freeing initrd memory: 3856K
    [    3.455139] audit: initializing netlink subsys (disabled)
    [    3.459917] Initialise system trusted keyrings
    [    3.464204] audit: type=2000 audit(3.450:1): initialized
    [    3.468867] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    3.480999] zbud: loaded
    [    3.488825] NFS: Registering the id_resolver key type
    [    3.493267] Key type id_resolver registered
    [    3.497654] Key type id_legacy registered
    [    3.501892] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    3.506243] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [    3.511807] JFS: nTxBlock = 8192, nTxLock = 65536
    [    3.524790] SGI XFS with ACLs, security attributes, realtime, no debug enabled
    [    3.536948] Key type asymmetric registered
    [    3.541413] bounce: pool size: 64 pages
    [    3.545935] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    3.554617] io scheduler noop registered
    [    3.558845] io scheduler deadline registered
    [    3.563265] io scheduler cfq registered (default)
    [    3.568436] sun4i-usb-phy 1c19400.phy: could not find pctldev for node /soc/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
    [    3.580475] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
    [    3.586318] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
    [    3.644520] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
    [    3.651309] console [ttyS0] disabled
    [    3.675544] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 39, base_baud = 1500000) is a U6_16550A
    [    4.565944] console [ttyS0] enabled
    [    4.577362] brd: module loaded
    [    4.590428] loop: module loaded
    [    4.600111] libphy: Fixed MDIO Bus: probed
    [    4.609390] usbcore: registered new interface driver catc
    [    4.618984] usbcore: registered new interface driver kaweth
    [    4.628609] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    4.644159] usbcore: registered new interface driver pegasus
    [    4.653991] usbcore: registered new interface driver rtl8150
    [    4.663734] usbcore: registered new interface driver r8152
    [    4.673198] usbcore: registered new interface driver lan78xx
    [    4.682784] usbcore: registered new interface driver asix
    [    4.692065] usbcore: registered new interface driver ax88179_178a
    [    4.701945] usbcore: registered new interface driver cdc_ether
    [    4.711457] usbcore: registered new interface driver cdc_eem
    [    4.720671] usbcore: registered new interface driver dm9601
    [    4.729666] usbcore: registered new interface driver sr9700
    [    4.738537] usbcore: registered new interface driver CoreChips
    [    4.747631] usbcore: registered new interface driver smsc75xx
    [    4.756520] usbcore: registered new interface driver smsc95xx
    [    4.765225] usbcore: registered new interface driver gl620a
    [    4.773709] usbcore: registered new interface driver net1080
    [    4.782259] usbcore: registered new interface driver plusb
    [    4.790593] usbcore: registered new interface driver rndis_host
    [    4.799249] usbcore: registered new interface driver cdc_subset
    [    4.807761] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
    [    4.820041] usbcore: registered new interface driver cdc_ncm
    [    4.828198] usbcore: registered new interface driver huawei_cdc_ncm
    [    4.836891] usbcore: registered new interface driver cdc_mbim
    [    4.844891] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    4.853662] ehci-platform: EHCI generic platform driver
    [    4.861444] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    4.869990] ohci-platform: OHCI generic platform driver
    [    4.877787] usbcore: registered new interface driver cdc_wdm
    [    4.885923] usbcore: registered new interface driver usb-storage
    [    4.895044] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
    [    4.904374] sun6i-rtc 1f00000.rtc: RTC enabled
    [    4.911263] i2c /dev entries driver
    [    4.920531] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
    [    4.934566] sunxi-mmc 1c0f000.mmc: Got CD GPIO
    [    4.996471] sunxi-mmc 1c0f000.mmc: base:0xf0fc7000 irq:24
    [    5.006095] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
    [    5.066458] sunxi-mmc 1c10000.mmc: base:0xf0fcb000 irq:25
    [    5.079823] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 8, RTO !!
    [    5.098730] mmc1: new high speed SDIO card at address 0001
    [    5.126465] sunxi-mmc 1c11000.mmc: base:0xf0fcf000 irq:26
    [    5.136016] ledtrig-cpu: registered to indicate activity on CPUs
    [    5.145191] hidraw: raw HID events driver (C) Jiri Kosina
    [    5.153861] usbcore: registered new interface driver usbhid
    [    5.162644] usbhid: USB HID core driver
    [    5.170200] Initializing XFRM netlink socket
    [    5.178510] NET: Registered protocol family 10
    [    5.191162] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 8, RTO !!
    [    5.204504] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !!
    [    5.214599] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !!
    [    5.224622] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !!
    [    5.234579] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !!
    [    5.252688] Segment Routing with IPv6
    [    5.259735] NET: Registered protocol family 17
    [    5.267481] NET: Registered protocol family 15
    [    5.275189] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    5.294839] 8021q: 802.1Q VLAN Support v1.8
    [    5.302376] Key type dns_resolver registered
    [    5.310305] Registering SWP/SWPB emulation handler
    [    5.319106] registered taskstats version 1
    [    5.326546] Loading compiled-in X.509 certificates
    [    5.334656] zswap: loaded using pool lzo/zbud
    [    5.343629] Btrfs loaded, crc32c=crc32c-generic
    [    5.357821] Key type encrypted registered
    [    5.372423] sun8i-emac 1c30000.ethernet: PHY regulator found
    [    5.382414] ehci-platform 1c1a000.usb: EHCI Host Controller
    [    5.391226] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
    [    5.405700] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
    [    5.421488] mmc2: new DDR MMC card at address 0001
    [    5.430426] mmcblk2: mmc2:0001 DB4016 14.7 GiB
    [    5.438460] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
    [    5.448473] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    5.458765] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.469462] usb usb1: Product: EHCI Host Controller
    [    5.477773] usb usb1: Manufacturer: Linux 4.10.3-sun8i ehci_hcd
    [    5.487136] usb usb1: SerialNumber: 1c1a000.usb
    [    5.495463] mmcblk2boot0: mmc2:0001 DB4016 partition 1 4.00 MiB
    [    5.505227] mmcblk2boot1: mmc2:0001 DB4016 partition 2 4.00 MiB
    [    5.515375] hub 1-0:1.0: USB hub found
    [    5.522723]  mmcblk2: p1
    [    5.528898] hub 1-0:1.0: 1 port detected
    [    5.538458] ehci-platform 1c1b000.usb: EHCI Host Controller
    [    5.547818] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 2
    [    5.563137] ehci-platform 1c1b000.usb: irq 30, io mem 0x01c1b000
    [    5.596454] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
    [    5.606557] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    5.617164] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.628171] usb usb2: Product: EHCI Host Controller
    [    5.636823] usb usb2: Manufacturer: Linux 4.10.3-sun8i ehci_hcd
    [    5.646551] usb usb2: SerialNumber: 1c1b000.usb
    [    5.655443] hub 2-0:1.0: USB hub found
    [    5.663015] hub 2-0:1.0: 1 port detected
    [    5.671252] ehci-platform 1c1d000.usb: EHCI Host Controller
    [    5.680658] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 3
    [    5.696101] ehci-platform 1c1d000.usb: irq 31, io mem 0x01c1d000
    [    5.726460] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
    [    5.736572] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
    [    5.747216] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.758263] usb usb3: Product: EHCI Host Controller
    [    5.766914] usb usb3: Manufacturer: Linux 4.10.3-sun8i ehci_hcd
    [    5.776647] usb usb3: SerialNumber: 1c1d000.usb
    [    5.785497] hub 3-0:1.0: USB hub found
    [    5.792977] hub 3-0:1.0: 1 port detected
    [    5.801100] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
    [    5.811455] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 4
    [    5.826612] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
    [    5.900595] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
    [    5.911311] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.922448] usb usb4: Product: Generic Platform OHCI controller
    [    5.932320] usb usb4: Manufacturer: Linux 4.10.3-sun8i ohci_hcd
    [    5.942225] usb usb4: SerialNumber: 1c1a400.usb
    [    5.951225] hub 4-0:1.0: USB hub found
    [    5.958947] hub 4-0:1.0: 1 port detected
    [    5.967307] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
    [    5.979219] of_cfs_init
    [    5.985570] of_cfs_init: OK
    [    5.992193] vcc3v0: disabling
    [    5.998827] vcc5v0: disabling
    [    6.005316] gmac-3v3: disabling
    [    6.011953] ALSA device list:
    [    6.018369]   No soundcards found.
    [    6.027014] Freeing unused kernel memory: 1024K
    Loading, please wait...
    [    6.073590] systemd-udevd[156]: starting version 215
    [    6.098429] random: systemd-udevd: uninitialized urandom read (16 bytes read)
    [    6.156538] usb 2-1: new high-speed USB device number 2 using ehci-platform
    [    6.266633] usb 3-1: new high-speed USB device number 2 using ehci-platform
    [    6.341405] random: fast init done
    [    6.397248] usb 2-1: New USB device found, idVendor=1a40, idProduct=0101
    [    6.407582] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    6.418270] usb 2-1: Product: USB 2.0 Hub
    [    6.515945] hub 2-1:1.0: USB hub found
    [    6.526049] usb 3-1: New USB device found, idVendor=05e3, idProduct=0718
    [    6.536369] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=2
    [    6.547082] usb 3-1: Product: USB Storage
    [    6.554659] usb 3-1: SerialNumber: 000000000033
    [    6.583410] hub 2-1:1.0: 4 ports detected
    [    6.681379] usb-storage 3-1:1.0: USB Mass Storage device detected
    [    6.735373] scsi host0: usb-storage 3-1:1.0
    [    6.976885] usbcore: registered new interface driver uas
    Begin: Loading essential drivers ... done.
    Begin: Running /scripts/init-premount ... done.
    Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
    Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
    done.
    Begin: Will now check root file system ... fsck from util-linux 2.25.2
    [/sbin/fsck.ext4 (1) -- /dev/mmcblk2p1] fsck.ext4 -a -C0 /dev/mmcblk2p1
    /dev/mmcblk2p1: clean, 57646/952848 files, 385182/3808440 blocks
    done.
    [    7.216316] EXT4-fs (mmcblk2p1): mounted filesystem with ordered data mode. Opts: (null)
    done.
    Begin: Running /scripts/local-bottom ... done.
    Begin: Running /scripts/init-bottom ... done.
    [    7.423774] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
    [    7.444863] systemd[1]: Detected architecture 'arm'.

    Welcome to Debian GNU/Linux 8 (jessie)!

    [    7.490894] systemd[1]: Set hostname to <orangepiplus>.
    [    7.767999] scsi 0:0:0:0: Direct-Access     USB TO I DE/SATA Device   0009 PQ: 0 ANSI: 0
    [    7.785278] sd 0:0:0:0: Attached scsi generic sg0 type 0
    [    7.796973] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
    [    7.807174] sd 0:0:0:0: [sda] 0-byte physical blocks
    [    7.820433] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
    [    7.832053] sd 0:0:0:0: [sda] Asking for cache data failed
    [    7.841683] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [    7.858564] sd 0:0:0:0: [sda] Attached SCSI disk
    [    7.874206] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
    [    7.904164] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [    7.920874] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    7.937385] systemd[1]: Expecting device dev-ttyS0.device...
             Expecting device dev-ttyS0.device...
    [    7.976569] systemd[1]: Starting Remote File Systems (Pre).
    [  OK  ] Reached target Remote File Systems (Pre).
    [    8.016509] systemd[1]: Reached target Remote File Systems (Pre).
    [    8.027199] systemd[1]: Starting Encrypted Volumes.
    [  OK  ] Reached target Encrypted Volumes.
    [  OK  ] Reached target Paths.
    [  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
    [  OK  ] Created slice Root Slice.
    [  OK  ] Listening on Delayed Shutdown Socket.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Listening on Journal Socket.
    [  OK  ] Created slice System Slice.
             Starting Increase datagram queue length...
             Starting Restore / save the current clock...
             Mounting Debug File System...
             Starting udev Coldplug all Devices...
             Starting Create list of required static device nodes...rrent kernel...
             Mounting POSIX Message Queue File System...
             Starting LSB: Set keymap...
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-getty.slice.
             Starting Load Kernel Modules...
    [  OK  ] Reached target Slices.
    [    8.651295] fuse init (API version 7.26)
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Debug File System.
    [  OK  ] Started Increase datagram queue length.
    [  OK  ] Started Restore / save the current clock.
    [  OK  ] Started Create list of required static device nodes ...current kernel.
    [  OK  ] Started LSB: Set keymap.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started udev Coldplug all Devices.
             Mounting Configuration File System...
             Starting Apply Kernel Variables...
             Mounting FUSE Control File System...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Listening on Syslog Socket.
             Starting Journal Service...
    [  OK  ] Started Journal Service.
    [  OK  ] Mounted FUSE Control File System.
    [  OK  ] Mounted Configuration File System.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
             Starting udev Kernel Device Manager...
    [  OK  [    9.487376] systemd-udevd[251]: starting version 215
    ] Started udev Kernel Device Manager.
             Starting Copy rules generated while the root was ro...
             Starting LSB: Tune IDE hard disks...
             Starting LSB: Set preliminary keymap...
    [  OK  ] Started Copy rules generated while the root was ro.
    [  OK  ] Started LSB: Tune IDE hard disks.
    [    9.867429] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
    [   10.057139] thermal thermal_zone0: failed to read out thermal zone (-16)
    [  OK  ] Found device /dev/ttyS0.
    [   10.124164] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01f015c0 not registered
    [   10.139787] sun4i-codec 1c22c00.codec: Failed to register our card
    [   10.161069] CAN device driver interface
    [   10.358654] mcp251x spi0.0: Cannot initialize MCP2515. Wrong wiring?
    [   10.368960] mcp251x spi0.0: Probe failed, err=19
    [   10.439255] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
    [   10.450443] Registered IR keymap rc-empty
    [   10.458500] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input1
    [   10.469459] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0
    [  OK  ] Created slice system-ifup.slice.
    [   10.524433] lirc_dev: IR Remote Control driver registered, major 244
    [   10.604381] IR LIRC bridge handler initialized
    [   10.686825] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
    [   10.702558] sunxi-ir 1f02000.ir: initialized sunXi IR driver
    [  OK  ] Started LSB: Set preliminary keymap.
    [  OK  ] Reached target Sound Card.
             Starting Remount Root and Kernel File Systems...
    [   11.768849] EXT4-fs (mmcblk2p1): re-mounted. Opts: commit=600,errors=remount-ro
    [  OK  ] Started Remount Root and Kernel File Systems.
             Activating swap /var/swap...
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /tmp...
    [   11.947654] Adding 131068k swap on /var/swap.  Priority:-1 extents:1 across:131068k SSFS
    [  OK  ] Activated swap /var/swap.
    [  OK  ] Mounted /tmp.
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
             Starting LSB: Raise network interfaces....
    [  OK  ] Reached target Remote File Systems.
             Starting Trigger Flushing of Journal to Persistent Storage...
             Starting LSB: Prepare console...
    [  OK  ] Reached target Swap.
    [  OK  ] Started Create Volatile Files and Directories.
    [   12.367188] systemd-journald[250]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started LSB: Prepare console.
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
             Starting LSB: Set console font and keymap...
    [   12.927308] libphy: 1c30000.ethernet: probed
    [   12.958907] RTL8211E Gigabit Ethernet 1c30000.ethernet:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=1c30000.ethernet:00, irq=-1)
    [   12.981061] sun8i-emac 1c30000.ethernet: device MAC address slot 0 02:81:28:45:ae:78
    [   13.033544] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started LSB: Set console font and keymap.
    [   15.127236] sun8i-emac 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   15.143209] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started LSB: Raise network interfaces..
             Starting ifup for eth0...
    [  OK  ] Started ifup for eth0.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Network is Online.
             Starting LSB: RPC portmapper replacement...
    [  OK  ] Started LSB: RPC portmapper replacement.
    [  OK  ] Reached target RPC Port Mapper.
             Starting LSB: NFS support files common to client and server...
    [  OK  ] Started LSB: NFS support files common to client and server.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Timers.
             Starting Restore Sound Card State...
    [  OK  ] Reached target Basic System.
             Starting Entropy daemon using the HAVEGE algorithm...
    [  OK  ] Started Entropy daemon using the HAVEGE algorithm.
             Starting System Logging Service...
             Starting OpenBSD Secure Shell server...
    [  OK  ] Started OpenBSD Secure Shell server.
             Starting Regular background program processing daemon...
    [  OK  ] Started Regular background program processing daemon.
             Starting Network Manager...
             Starting /etc/rc.local Compatibility...
             Starting Login Service...
             Starting D-Bus System Message Bus...
    [  OK  ] Started D-Bus System Message Bus.
             Starting Permit User Sessions...
             Starting LSB: Starts LIRC daemon....
             Starting LSB: Armbian gathering hardware information...
             Starting LSB: Start NTP daemon...
             Starting LSB: Start/stop sysstat's sadc...
             Starting LSB: Advanced IEEE 802.11 management daemon...
             Starting LSB: Load kernel modules needed to enable cpufreq scaling...
             Starting LSB: disk temperature monitoring daemon...
    [  OK  ] Started System Logging Service.
    [  OK  ] Started Restore Sound Card State.
    [  OK  ] Started /etc/rc.local Compatibility.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started LSB: Start/stop sysstat's sadc.
    [  OK  ] Started LSB: Advanced IEEE 802.11 management daemon.
    [  OK  ] Started LSB: Starts LIRC daemon..
    [  OK  ] Started LSB: disk temperature monitoring daemon.
    [  OK  ] Started LSB: Start NTP daemon.
    [  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
    [  OK  ] Started Login Service.
             Starting Authenticate and Authorize Users to Run Privileged Tasks...
             Starting LSB: set CPUFreq kernel parameters...
             Starting Serial Getty on ttyS0...
    [  OK  ] Started Serial Getty on ttyS0.
             Starting Getty on tty1...
    [  OK  ] Started Getty on tty1.
    [  OK  ] Reached target Login Prompts.
    [  OK  ] Started LSB: set CPUFreq kernel parameters.
             Starting LSB: Set sysfs variables from /etc/sysfs.conf...
    [  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
    [  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
    [  OK  ] Started Network Manager.
    [  OK  ] Started LSB: Armbian gathering hardware information.
    [  OK  ] Reached target Multi-User System.
    [  OK  ] Reached target Graphical Interface.
             Starting Update UTMP about System Runlevel Changes...
    [  OK  ] Started Update UTMP about System Runlevel Changes.

     

     

  3. Download image: https://www.armbian.com/orange-pi-plus-2/ .
    Next:

    sed -i "s/apt/beta/" /etc/apt/sources.list.d/armbian.list
    apt-get update
    apt-get upgrade

    Next:
    To make sure you won’t run into conflicts within newly installed packages, remove them all before upgrade:

     

     

    1
    2
    aptitude remove ~nlinux-dtb ~nlinux-u-boot ~nlinux-image ~nlinux-headers
    aptitude remove ~nlinux-firmware ~narmbian-firmware ~nlinux-$(lsb_release -cs)-root

    Proceed with install:

    1
    2
    3
    4
    apt-get install linux-image-dev-sun8i linux-dtb-dev-sun8i linux-headers-dev-sun8i
    apt-get install linux-u-boot-orangepiplus-dev linux-$(lsb_release -cs)-root-dev-orangepiplus
    apt-get install armbian-firmware sunxi-tools swconfig a10disp
    reboot

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

    I do not know from where else you can download

  4. Just now, zador.blood.stained said:

    More like "no".

    You are not using a fresh enough nightly image (implied by

    • Latest versions of the u-boot and the boot script is required

    Please start with a fresh image (this also means not old image updated with apt) and try again

     

    I installed everything today.

  5. 42 minutes ago, Igor said:

    Yes.
     

    armbianEnv.txt
    3 version:
    1)

    Quote

    verbosity=7
    console=both
    machid=1029
    bootm_boot_mode=sec
    rootdev=UUID=4dfb914e-4904-424e-a0fb-2eb01eef10ae
    rootfstype=ext4
    overlays=sun8i-h3-spi0-mcp2515 sun8i-h3-spi-add-cs1
    param_mcp2515_spi_bus=0
    param_mcp2515_spi_cs=0
    param_mcp2515_max_freq=10000000
    param_mcp2515_clk_freq=8000000
    param_mcp2515_int_pin=PA7

    2)

    Quote

    verbosity=7
    console=both
    machid=1029
    bootm_boot_mode=sec
    rootdev=UUID=4dfb914e-4904-424e-a0fb-2eb01eef10ae
    rootfstype=ext4
    overlays=sun8i-h3-spi-mcp2515 sun8i-h3-spi-add-cs1
    param_mcp2515_spi_bus=0
    param_mcp2515_spi_cs=0
    param_mcp2515_max_freq=10000000
    param_mcp2515_clk_freq=8000000
    param_mcp2515_int_pin=PA7

    3)

    Quote

    verbosity=7
    console=both
    machid=1029
    bootm_boot_mode=sec
    rootdev=UUID=4dfb914e-4904-424e-a0fb-2eb01eef10ae
    rootfstype=ext4
    overlays=sun8i-h3-spi0-mcp2515

     

    version 2, not working, no error,no drivers mcp2515

    version 1 and 2:
    [   10.378603] mcp251x spi0.0: Cannot initialize MCP2515. Wrong wiring?
    [   10.388743] mcp251x spi0.0: Probe failed, err=19

  6. Hello.
    I tried to do the same with mcp2515.
    Distr : Armbian 5.27.170416 nightly
    Kernel : 4.10.3-sun8i
    My board: Orange Pi plus 2.
    Error:
    [   11.874772] mcp251x spi0.0: Cannot initialize MCP2515. Wrong wiring?
    [   11.885334] mcp251x spi0.0: Probe failed, err=19

    Pin connect:

    Spoiler

    PC0(GPIO Orange PI) MOSI - (MCP2515<->CAN) SO
    PC1(GPIO Orange PI) MOSI - (MCP2515<->CAN) SI
    PC2(GPIO Orange PI) CLK   - (MCP2515<->CAN) SCK
    PC3(GPIO Orange PI) CS     - (MCP2515<->CAN) CS
    PA7(GPIO Orange PI)  INT    - (MCP2515<->CAN) INT

    I tried that too

    Spoiler

    PC0(GPIO Orange PI) MOSI - (MCP2515<->CAN) SI
    PC1(GPIO Orange PI) MOSI - (MCP2515<->CAN) SO
    PC2(GPIO Orange PI) CLK   - (MCP2515<->CAN) SCK
    PC3(GPIO Orange PI) CS     - (MCP2515<->CAN) CS
    PA7(GPIO Orange PI)  INT    - (MCP2515<->CAN) INT


    VCC = 5 V


    MCP2515<->SPI 9a29e38b-f47a-5475-5745-739694f7a6bf.jpg

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines