Jump to content

martinayotte

Members
  • Posts

    3892
  • Joined

  • Last visited

Posts posted by martinayotte

  1. Wishing to having a Mainline running on this NanoPi-K2, I gave second tried using Armbian_5.32_S9xxx_Ubuntu_xenial_4.13.0-rc7-next-20170901_mate.img.xz and then dts.img copied and ran ./fusing.sh /dev/sdx.

    Still no chance : still stuck at "Starting kernel ...".

    About trying using a OrdoidC2 build, but they have some protection in their u-boot/bl1.bin.hardkernel, producing the following error :

     

    ***** Warning!! *****************************************************
    * This board have not been autorized or product keys are not valid. *
    * Please contact with Hardkernel or your distributor                *
    *********************************************************************

     

  2. It is opening /proc/cpuinfo there : https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c#L698

    Then it is checking if it is an Raspberry there : https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c#L723

    You need to tweak that port, either by skipping it or provide check for H3 SoC.

     

    Anyway, maybe someone already done that by forking this original WiringPi to make it compatible with NanoPiNeoAir ...

     

  3. If you check the routes, you should have default gateway for each of your interfaces.

    But several times, you will see that some of those default gateways are not present because they are duplicates of each others.

    This means that if you connect to one interfaces, maybe responses packets will come back from another interface.

    That why we say often in this forum, especially related to eth0/wlan0 same subnet conflicting each other, that if you are doing SSH on wlan0, and you are disconnecting eth0 cable, the SSH will freeze.

     

  4. Of course !

    dd if=/dev/zero of=/emmc-mount-point/newswap bs=1024 count=<what_ever_size_you_wish>
    mkswap /emmc-mount-point/newswap
    nano /etc/fstab
    swapon -a

    The "nano /etc/fstab" above is to add new entry for the second swap file.

     

    To extend existing swapfile, you first need to turn off swap using "swapoff -a", then do same kind of "dd"/"mkswap" and "swapon -a" on the existing /var/swap, but with larger block count.

     

  5. Assuming you have "dtc" installed (and keep a backup of the original /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb :

    dtc -I dtb -O dts -o sun8i-h2plus-orangepi-zero.dts-4.11.12 /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb

    Edit the DTS with "nano sun8i-h2plus-orangepi-zero.dts-4.11.12" and add 'ethernet0 = "/soc/ethernet@1c30000"; ' in the "aliases" section.

    Then, recompile the DTB :

    dtc -I dts -O dtb -o /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb sun8i-h2plus-orangepi-zero.dts-4.11.12

     

  6. @zador.blood.stained, I've discovered some thing funny ...

    In sun8i-h2-plus-orangepi-zero.dts, there is a comment in the alias section :

    /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */

    But it seems that it is not true any more, neither in sun8i-h3.dtsi or sunxi-h3-h5.dtsi !

    So, that is why we lost fix MAC on few boards when we switched from 4.10 to 4.11 ...

     

    I will prepare a patch in the following minutes ...

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines