Jump to content

sooperior

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by sooperior

  1. Hi All,

    Just wanted to share a good story using armbian. I have used in the past 1-wire probes for temperature, and the process included decompiling, editing and recompiling dtb for my Banana Pi M1, which was not easy at all. Every firmware update deleted by changes and had to redo de recompilation.

     

    With latest kernels and armbian version, the process is now extremely easy, just edit:

    /boot/armbianEnv.txt

     

    Adding this lines:

    overlays=w1-gpio

    param_w1_pin=PI3             # desired pin(7th pin (GCLK) or number 4 on first column where number 1 is +3V)

    param_w1_pin_int_pullup=1     # internal pullup-resistor: 1=on, 0=off

     

    I just struggled a little bit to find the GPIO code (decompiled dtb and checked possible candidates).

     

    Information about temperature is here:

    cat /sys/bus/w1/devices/XX-YYYYYYY[this is your probe serial, if you have more they will be in /sys/bus/w1/devices/] /w1_slave

     

    You have plenty of information here, but don't need to do all they explain, just my edition has been enough:

    http://linux-sunxi.org/1-Wire

     

     

     

  2. On 9/30/2019 at 8:58 PM, ozymandias892 said:

    I've noticed similar on 4.14.144 on a HC2, seems stable on 4.14.141.

     

    I narrowed it down to transmission that causes it to crash once a torrent is uploaded, it seemed to sit there happily with no torrent activity.  Transmission is currently running in a docker on the ext4 SD card with the torrents downloaded to/seeded from the btrfs data drive.  

     

    Same here on Odroid XU4, .144 crashes when a new torrent is added ("invalid inflight" as error). Installing latest armbian from today (with an older kernel) fixes issue.

  3. Same confirmation from me! I was driving me crazy trying to find what caused the system freeze. I have disabled most of the things that can be disabled and still occurs (even thought of log2ram because removing it gave me some more time to failure).

    The only difference in my case is sometimes it kernel panics and says something like "cpu 1 can not be stop". Some others it just freezes and I have to remove battery and power to restart.

     

    I have discarded power source: I have some cron tasks that peak cpu and temperature and seems to tolerate correctly, without voltage drops or simillar. It just happens... ramdomly.

     

    I'm running banana pi m1, latest kernel update.

  4. If you are using mainline kernel, you can use cron (for instance) to read every X minutes:

    /sys/power/axp_pmu/ac/connected >>To find out if connected to AC power or not (then it's battery)

    /sys/power/axp_pmu/battery/capacity >> To get a % of battery charge

     

    To me is easier to say at 20 (%) than 3.75 mV or similar

     

    I have a script that checks every 10 minutes, when ac is cut off it sends a warning mail. When battery is <20% it goes to self-shutdown

     

     

    Legacy kernel has something similar, but I can't check right now (google for that if you need it)

  5. Realise this is an old thread - but as it was one of the first results in Google for this topic, I thought I'd update it with my (rather blunt) solution.

     

    1) The script that produces the hardware info is located in /etc/update-motd.d - and is named "30-sysinfo".  Remove it (and if you like, the other scripts in there).  

     

    2) Edit /etc/pam.d/login and /etc/pam.d/ssh - comment out the line that reads "session    optional   pam_motd.so motd=/run/motd.dynamic"

     

    Result:  Editing /etc/motd now does the right thing - and my system no longer hangs for 30 seconds upon login simply to produce a colour ASCII art banner that tells me what CPU I'm running and what IP I'm logging in from.  

    Alternatively, you can do chmod -x 30-sysinfo or any other script you want to disable. The effect is the same as removing but you keep the file in case you want it in the future

  6. It is possible. At least for banana pi M1 (A20) it can handle a 3TB hdd with no issues.

    Just remember that you have to change your disk partition table to GPT instead of standard MBR because the latter is limited to 2.2 gb.

    This is regarding SATA connection, if you use some kind of usb-to-sata adaptor, check that it is able to handle >2.2 TB

  7. That was it, you really hit the point.

    When i check history.log (.1 .2) there are traces of the updated packages. Thank you very much for the tip.

     

    And by the way, I'm gladly suprised that armbian has this feature turned on, I could never imagine that (and I love to keep my system updated)

     

    Hi,

     

    unattended-upgrade is active by default. So updates (except kernel) are installed automatically. Have a look at /var/log/apt/history.log* for the installation history.

     

    Bye,

    wahlm

     

    From my a20lime2 jessie headless server:

     

    Start-Date: 2016-12-14  06:31:10
    Commandline: /usr/bin/unattended-upgrade
    Upgrade: apt:armhf (1.0.9.8.3, 1.0.9.8.4), libapt-pkg4.12:armhf (1.0.9.8.3, 1.0.9.8.4), apt-utils:armhf (1.0.9.8.3, 1.0.9.8.4), libapt-inst1.5:armhf (1.0.9.8.3, 1.0.9.8.4), apt-transport-https:armhf (1.0.9.8.3, 1.0.9.8.4)
    End-Date: 2016-12-14  06:31:25

    Start-Date: 2016-12-24  06:38:47
    Commandline: /usr/bin/unattended-upgrade
    Upgrade: libxml2:armhf (2.9.1+dfsg1-5+deb8u3, 2.9.1+dfsg1-5+deb8u4)
    End-Date: 2016-12-24  06:38:49

     

  8. Hi!

    Is it only me or there are no updates to packages? Let me explain, I'm running jessie server on A20 latest stable kernel and when I run apt-get update, apt-get upgrade there are never updates available. I have experienced this for some of the latest releases and now I'm starting to thing that something is wrong with my system. Especially because I have a raspberry pi and that (yes, I know is raspbian) is getting updates to packages from time to time.

    I haven't modified or customized anything in the sources list.

    And the thing is that I'm getting updates for firmware/kernel when they are available.

     

    Any ideas? Is it something normal for armbian (/debian)?

  9. I know it is just shouting in the desert but nowbody should buy a board and then ask a third party for support.

    Instead we all should write the seller and say: You know what? Your product looks great but I will not buy a single one neither advice anyone to buy until third parties (sunxi, armbian...) say yes, this board has released all required docs to support it.

     

    Or if you have purchased one return it back: You sell it as open source. I have found your sources are missing. Here it is and give me my money back

  10. Interesting... but this thread is more or less about otg in "otg mode" or reliability issues, but I'm not able even to get anything detected.

    What is driving me crazy is this error:

    [    4.516751] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
    [    4.517180] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -16
    [    4.517230] musb-hdrc: probe of musb-hdrc.1.auto failed with error -16
     
    There is almost no info about that on google, I'm afraid it could be something armbian-specific
     
    PS: I'm not  using any custom kernel, just out of the box armbian 5.23 with kernel 4.8.4
  11. Hi All,

    I'm trying to get usb otg enabled as host mode to add, for instance, a keyboard with a powered hub (I know otg is not delivering power or at least I don't want to drain more power with the otg)

     

    I'm using vanilla kernel 4.8.4 so I kind of expect otg enabled as host mode by default.

     

    Anyway, I get into dts and make sure this section:

    usb@01c13000 {
    compatible = "allwinner,sun4i-a10-musb";
    reg = <0x1c13000 0x400>;
    clocks = <0x2 0x0>;
    interrupts = <0x0 0x26 0x4>;
    interrupt-names = "mc";
    phys = <0x30 0x0>;
    phy-names = "usb";
    extcon = <0x30 0x0>;
    allwinner,sram = <0x31 0x1>;
    status = "okay";
    dr_mode = "host";
    linux,phandle = <0x6e>;
    phandle = <0x6e>;
    };
     
    has status=okay and dr_mode=host
     
    Driver seems to be the problem, I get this message on dmesg
    [    4.516751] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
    [    4.517180] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -16
    [    4.517230] musb-hdrc: probe of musb-hdrc.1.auto failed with error -16
     
    #modprobe sunxi does nothing
    google shows only one result for this error
     
     
    Any ideas for troubleshooting?
     
     
    I've also been looking for ideas in this thread https://forum.armbian.com/index.php/topic/385-banana-pi-usb-otg/but it seems to show the steps I have followed
  12. I think as a new bug on the allwinner security system sun4i-ss kernel module (maybe new version in armbian) or something changed on the armbian kernel that conflicts with this module.

     

    I have come to the same problem with ecryptfs, which internally uses ss.

    sun4i-ss 1c15000.crypto-engine: ERROR: Empty IV

     

    I have tested the same solution (blacklisting module) and it works. You just lose hardware acceleration (=slower)

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines