Jump to content

svd93

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by svd93

  1. On 3/31/2019 at 9:41 AM, nopnop2002 said:

    Do you have terminator register??

     

    It's mine.

    
    $ cat /boot/armbianEnv.txt
    verbosity=1
    logo=disabled
    console=both
    disp_mode=1920x1080p60
    overlay_prefix=sun8i-h3
    rootdev=UUID=4c260e6c-6b83-490b-9c33-a1c61c5840a5
    rootfstype=ext4
    overlays=i2c0 i2c1 i2c2 spi-spidev
    extraargs=net.ifnames=0
    ##param_spidev_spi_bus=0
    user_overlays=spi-mcp251x
    usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
    
    $ dmesg| grep 'can\|mcp\|spi'
    [    5.578413] mcp251x spi0.0 can0: MCP2515 successfully initialized.
    [  137.204768] can: controller area network core (rev 20170425 abi 9)
    [  137.219630] can: raw protocol (rev 20170425)
    
    $ lsmod | grep can
    can_dev                20480  1 mcp251x
    
    $ ls /sys/bus/spi/devices/spi0.0
    driver  modalias  net  of_node  power  statistics  subsystem  uevent
    
    $ ls /sys/bus/spi/devices/spi0.0/net
    can0
    
    $ ls /sys/bus/spi/devices/spi0.0/net/can0
    addr_assign_type    dev_id             link_mode         proto_down
    address             dev_port           mtu               queues
    addr_len            dormant            name_assign_type  speed
    broadcast           duplex             netdev_group      statistics
    carrier             flags              operstate         subsystem
    carrier_changes     gro_flush_timeout  phys_port_id      tx_queue_len
    carrier_down_count  ifalias            phys_port_name    type
    carrier_up_count    ifindex            phys_switch_id    uevent 
    
    $ sudo ip link set can0 type can bitrate 125000 triple-sampling on
    
    $ sudo ifconfig can0
    can0: flags=128<NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    $ sudo ifconfig can0 up
    
    $ sudo ifconfig can0
    can0: flags=193<UP,RUNNING,NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

     

    Well, I have same problem. Seems that everything is correct but I don't have any candump output

     

     

    pasha@orangepipcplus:~$ sudo ifconfig can0
    can0: flags=193<UP,RUNNING,NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    pasha@orangepipcplus:~$ sudo ifconfig can0
    can0: flags=193<UP,RUNNING,NOARP>  mtu 16
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


    pasha@orangepipcplus:~$ lsmod | grep can
    can_raw                20480  0
    can_dev                20480  1 mcp251x
    can                    20480  1 can_raw

    pasha@orangepipcplus:~$ dmesg | grep "can\|mcp\|spi"
    [    6.236392] can: controller area network core (rev 20170425 abi 9)
    [    6.246062] can: raw protocol (rev 20170425)
    [    7.585019] mcp251x spi0.0 can0: MCP2515 successfully initialized.
    pasha@orangepipcplus:~$ 

     

    but:

    pasha@orangepipcplus:~$ candump can0  - no output

     

    resistor is OK, I connect Opi to existing can bus where one device sends data and second receive successfully

     

    Also I wonder why I can't compile overlay from example

    https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-mcp251x.dts

     

    sudo armbian-add-overlay spi-mcp251x.dts
    Compiling the overlay
    dtc: livetree.c:521: get_node_by_phandle: Assertion `(phandle != 0) && (phandle != -1)' failed.
    /usr/sbin/armbian-add-overlay: line 81:  2323 Aborted                 dtc -@ -q -I dts -O dtb -o ${temp_dir}/${fname}.dtbo $1
    Error compiling the overlay

     

    Device tree compiler is newest version (1.4.5-3)

    thanks for help...

     

     

     

     

     

  2. Hi to all. 

    I have Orange Pi PC+ and trying to use MCP2515. It worked well before, but some colleagues use my Orange and now I have "cannot find device can0" error

    Board and bootenv:

    Spoiler

    78814    BOARD=orangepipcplus
     78815    BOARD_NAME="Orange Pi PC +"
     78816    BOARDFAMILY=sun8i
     78817    VERSION=5.73
     78818    LINUXFAMILY=sunxi
     78819    BRANCH=next
     78820    ARCH=arm
     78821    IMAGE_TYPE=stable
     78822    BOARD_TYPE=conf
     78823    INITRD_ARCH=arm
     78824    KERNEL_IMAGE_TYPE=zImage

     

    78826    ### boot environment:
     78827    
     78828    verbosity=0
     78829    logo=/boot/boot.bmp
     78830    console=custom
     78831    stdout=both
     78832    disp_mode=1920x1080p60
     78833    overlay_prefix=sun8i-h3
     78834    rootdev=UUID=b674c5a6-e4bc-49c7-a23c-9ae6c54f55e0
     78835    rootfstype=ext4
     78836    overlays=spi0-mcp2515 spi-spidev
     78837    rootfstype=ext4
     78838    extraargs=vt.global_cursor_default=0 quiet splash plymouth.ignore-serial-consoles
     78839    usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

     

     

    I found that there is no sun8i-h3-spi0-mcp2515.dtbo file in overlay folders. I tried to compile this file  from https://github.com/armbian/sunxi-DT-overlays but I am receiving this error

     

    sudo armbian-add-overlay spi-mcp251x.dts
    Compiling the overlay
    dtc: livetree.c:521: get_node_by_phandle: Assertion `(phandle != 0) && (phandle != -1)' failed.
    /usr/sbin/armbian-add-overlay: line 81:  2323 Aborted                 dtc -@ -q -I dts -O dtb -o ${temp_dir}/${fname}.dtbo $1
    Error compiling the overlay

     

    Sadly I am noob in this, what does it mean?

  3. Dear colleagues!

     

    I think many of us are trying to use SBC boards with Armbian as server, control units etc. How do you handle instant power OFF, due to power loss, for example.

    I am thinking about small UPS development, it will contain battery for 30 seconds of Orange Pi Pc+ operation and set Orange Pi I/O as signal for correct shutdown.

    But is it actually needed? I keep switching my Orange power OFF from AC adapter  instead of shutting down for 1 year and still no problem there.

  4. Hi!

     

    I previously did Armbian boot and operation from EMMC of Orange Pi, all went OK.

    Now I have Banana Pi M1+ , download Armbian.

    After command nand-sata-install  I can get only this choice:

     

    image.png.29662b85042dfa13d79c6cfbad25cb58.png

     

    where is no "boot from eMMC — system on eMMC"

    What could be wrong?

    thanks!

     

     

    Welcome to ARMBIAN 5.85 stable Ubuntu 18.04.2 LTS 4.19.38-sunxi
    System load:   1.33 0.87 0.35   Up time:       2 min
    Memory usage:  17 % of 995MB    IP:            192.168.100.8
    CPU temp:      53°C
    Usage of /:    9% of 15G

     

  5. Dear sirs!

     

    Please, help with your HDMI experience.

     

    I have a project with a plenty of small linux boards which must be connected to the cheap displays. I’d like to use these:

    https://ru.aliexpress.com/item/Podofo-7-inch-LCD-Car-Monitor-Rearview-Screen-HDMI-VGA-DVD-Digital-Display-HD-Resolution-for/32788985703.html?spm=a2g0s.9042311.0.0.366833edyaa86f&aff_platform=aaf&cpt=1528348687239&aff_trace_key=e4fc4b8e1a624052ba5b93eac03716c5-1528348687239-01705-VnYZvQVf&terminal_id=6f98e3562e4f453c8baccee27367e3ab&dp=43b77dae0a3ae29c39e51463c1ea5190&af=139947&cv=47843&afref=http%3A%2F%2F4pda.ru%2Fforum%2Findex.php%3Fshowtopic%3D750921%26st%3D5240&mall_affr=pr3&aff_platform=aaf&cpt=1528365410096&sk=VnYZvQVf&aff_trace_key=84a6e5076bfc45e6a7fe76045d06fbb0-1528365410096-08679-VnYZvQVf&terminal_id=6f98e3562e4f453c8baccee27367e3ab

    This display works via HDMI with Raspberry but refuse to works with Orange Pi PC plus.  As I can understand it is same issue described by tkaiser.

     

    But this display has a casing and power adapter. It is very importand as I can receive ready device. 

    But I can choose another linux board.  My only demand from linux board is eMMC memory.

    Can you advice small linux board which can work (as raspberry pi) with all these "HDMI" displays but having eMMC memory onboard?

     

    Thanks!

     

  6. Hi to all!

     

    I am using Orange PC Plus and wanted to connect small display to it. I wanted to have display as ready device : in casing, with power etc. So I bought this one

     

    Aliexpress link

     

    It has HDMI, VGA and A/V input and for 35-45 USD only.  Resolution (described) - 1024*600/800*480

     

    Works with Raspberry Pi3 OK! But I need linux board with built-in eMMC memory.

    So I bought Orange PC plus. But it does not cooperate with this display in any modes, avaliable in h3disp (including 800*480). 

    Also it doesnt work via my HDMI to VGA converter and A/V input is not compatible too.

     

    May be somebody have some experience in cooperation with these cheap China monitors - it can be very useful solution if will work with Orange Pi etc. Because it is ready device with casing, buttons etc.

     

    I think about buy Banana Pi too, but afraid that can face same problem.

     

    thanks for your opinions!

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines