Jump to content

LarsN

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by LarsN

  1. I know the A20 isn't really build for OC, but I would still like to do some tests with it running at 1008Mhz.

     

    As far as I understand Kernel 4.X doesn't use the fex files anymore, but rely on the dts (dtsi) files.

     

    I edited sun7i-a20-bananapi.dts

    &cpu0 {
    	cpu-supply = <&reg_dcdc2>;
    	operating-points = <
    		/* kHz	  uV */
    		1008000	1425000
    		960000	1400000
    		912000	1400000
    		864000	1350000
    		720000	1250000
    		528000	1150000
    		312000	1100000
    		144000	1050000
    		>;
    };
    

    I made sure the build script doesn't overwrite the edited dts file.

    But BananaPi still says the max freq is 960 instead of 1008.

    root@bananapi:/tmp# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 
    960000
    

    I even double checked boot/dtb-4.8.12-sunxi/sun7i-a20-bananapi.dtb with device tree compiler to see if the values I set are there.

    The hexadecimal matches, so I don't understand why I can't get it working.

    		cpu@0 {
    			compatible = "arm,cortex-a7";
    			device_type = "cpu";
    			reg = <0x0>;
    			clocks = <0x7>;
    			clock-latency = <0x3b9b0>;
    			operating-points = <0xf6180 0x15be68 0xea600 0x155cc0 0xdea80 0x155cc0 0xd2f00 0x149970 0xafc80 0x1312d0 0x80e80 0x118c30 0x4c2c0 0x10c8e0 0x23280 0x100590>;
    			#cooling-cells = <0x2>;
    			cooling-min-level = <0x0>;
    			cooling-max-level = <0x6>;
    			cpu-supply = <0x8>;
    			linux,phandle = <0xb>;
    			phandle = <0xb>;
    		};
    

    What am I missing?

  2. @Igor thank you.  I thought it had something to do with that file.  The documentation is not very clear on specific commads that you can addk  to that file.  Do I put

    "apt-get install #packages"  in the file or do i just list the packages or do something along the lines of what zador is suggesting

     

    @zador  Thanks, I just tried what you suggested but it did not work.  I added a file lib.config in the userpatches folder with.  Do I have to reference that file in customize-image.sh?  if I do how do I do that?  

     

    again thanks you for the hep  

    You can also do this:

     

    Add:

    sudo apt-get install samba git-core apt-transport-https -y --force-yes
    

    to customize-image.sh after BUILD_DESKTOP=$4. If you want t add more exotic programs, then you need to add more sources.

  3. @LarsN

     

    zador.blood.stained just added quota for sunxi-next

     

    but you will need to compile your kernel with http://www.armbian.com/using-armbian-tools/

     

    Ah I see. Could we get it enabled by default, as OpenMediaVault bugs out because not being able to mount ext4 disks/partitions.

     

    I can't read :)

     

    These are the default mount values for OpenMediaVault:

    defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
    

    I'll try and compile the kernel with quota enabled and see if it fixes the problem.

     

    Thanks for the super fast replies from both of you.

  4. Hi,

     

    I can't seem to mount any drives with journaled user/group quota.

     

    I just get this error:

    root@bananapipro:~# mount -o rw,defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 UUID=56790abd-531d-43b7-8cf8-9bfc85105f6a /media/56790abd-531d-43b7-8cf8-9bfc85105f6a
    mount: wrong fs type, bad option, bad superblock on /dev/sda1,
           missing codepage or helper program, or other error
    
           In some cases useful info is found in syslog - try
           dmesg | tail or so.
    
    

    If I run the mount command without the quota stuff the drive mounts without any problems and is browseable.

  5. Hi tkaiser,

     

    Yes and this is the fact forced me to think for a system measurement or calculation error.

     

    I am using armbianmonitor you have helped me to install:

     

     

    root@egpr:~# ls -la /etc/armbianmonitor/datasources/
    total 8
    drwxrwxr-x 2 root root 4096 May 27 10:45 .
    drwxr-xr-x 4 root root 4096 May 11 16:30 ..
    lrwxrwxrwx 1 root root   30 Apr 17 16:50 ac_current -> /sys/power/axp_pmu/ac/amperage
    lrwxrwxrwx 1 root root   29 Apr 17 16:50 ac_voltage -> /sys/power/axp_pmu/ac/voltage
    lrwxrwxrwx 1 root root   33 Apr 17 16:50 battery_charge -> /sys/power/axp_pmu/battery/charge
    lrwxrwxrwx 1 root root   35 Apr 17 16:50 battery_charging -> /sys/power/axp_pmu/battery/charging
    lrwxrwxrwx 1 root root   36 Apr 17 16:50 battery_connected -> /sys/power/axp_pmu/battery/connected
    lrwxrwxrwx 1 root root   35 Apr 17 16:50 battery_current -> /sys/power/axp_pmu/battery/amperage
    lrwxrwxrwx 1 root root   35 Apr 17 16:50 battery_percent -> /sys/power/axp_pmu/battery/capacity
    lrwxrwxrwx 1 root root   34 Apr 17 16:50 battery_voltage -> /sys/power/axp_pmu/battery/voltage
    lrwxrwxrwx 1 root root   35 Apr 17 16:50 charger_current -> /sys/power/axp_pmu/charger/amperage
    -rwx--x--x 1 root root    0 Apr 13 17:14 disk-by-guid
    lrwxrwxrwx 1 root root   27 Apr 17 16:50 pmictemp -> /sys/power/axp_pmu/pmu/temp
    lrwxrwxrwx 1 root root   47 May 27 10:45 soctemp -> /sys/devices/virtual/thermal/thermal_zone0/temp
    lrwxrwxrwx 1 root root   32 Apr 17 16:50 usb_current -> /sys/power/axp_pmu/vbus/amperage
    lrwxrwxrwx 1 root root   31 Apr 17 16:50 usb_voltage -> /sys/power/axp_pmu/vbus/voltage
    

     

     

     

    and customized version of RPI Monitor as described here.

     

    Best regards

    Chris

    How did you get it to show all that info? I'm only able to see temp, when I run the same command.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines