Jump to content

chradev

Members
  • Posts

    224
  • Joined

  • Last visited

Everything posted by chradev

  1. Thanks Zador, It works fine on my custom build for Lime2-eMMC. Even thanks to your proposal I succeed to move all installation and customization staff to customize-image.sh: echo -e "Updating packages. It will take some time." apt-get -qq -y update >/dev/null 2>$1 apt-get -qq -y upgrade >/dev/null >/dev/null 2>$1 echo -e "RPI Monitor instalation." apt-get -f -qq -y install perl librrds-perl libhttp-daemon-perl libwww-perl libjson-perl libipc-sharelite-perl libfile-which-perl >/dev/null 2>$1 wget -O rpimonitor_2.10-1_all.deb https://github.com/XavierBerger/RPi-Monitor-deb/blob/master/packages/rpimonitor_2.10-1_all.deb?raw=true >/dev/null 2>$1 dpkg -i rpimonitor_2.10-1_all.deb >/dev/null 2>$1 /usr/share/rpimonitor/scripts/updatePackagesStatus.pl >/dev/null 2>$1 # RPI Monitor customization tar -zxvf /tmp/overlay/armbianmonitor.tar.gz -C / >/dev/null 2>$1 cp /tmp/overlay/axp209_template_battery.conf /etc/armbianmonitor/templates/ sed -i 's/storage=\/dev\/sda1/storage=\/dev\/sda2/g' /etc/update-motd.d/30-sysinfo # Disable RPI Monitor embedded web server sed -i 's/#daemon.noserver=1/daemon.noserver=1/g' /etc/rpimonitor/daemon.conf # Setup to access RPI Monitor via nginx server default site ln -sf /usr/share/rpimonitor/web /var/www/html/rmon Best regards Chris
  2. I have just run a new build and get the same error: W: Failed to fetch https://github.com/XavierBerger/RPi-Monitor-deb/raw/master/repo/Packages Bad header line E: Some index files failed to download. They have been ignored, or old ones used instead. provoked by the 'next apt-get update' command in customize-image.sh. Best regards Chris
  3. Thanks wildcat_paris, I will try it again today. @dony71 I have the same problem and solve it by using 'raw' to download it. Best regards Chris
  4. Hi to All, After some time without problems around RPI-Monitor I get into installation one. There is a view changes after my last build: Armbian rev. from 5.12 to 5.14; Kernel rev. from 4.5.5 to 4.6.2. When in firstrun script RPI-Minitor has to be installed apt-get rises following errors: Get:46 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:47 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:48 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Err https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Packages Bad header line Get:49 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:50 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:51 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Fetched 11.5 MB in 18s (625 kB/s) W: Failed to fetch https://github.com/XavierBerger/RPi-Monitor-deb/raw/master/repo/Packages Bad header line E: Some index files failed to download. They have been ignored, or old ones used instead. and the package and its dependencies can not be installed. I did not find a way to solve the problem so install them manually. Any ideas how to install RPI-Minitor at the customization process preferably or using apt-get at the firstrun script? Best regards Chris
  5. Hi to All, After pause I have tried to build Armbian with little changes in customization. I have started from the scratch with idea to keep latest build as-is. There is a view changes: Armbian rev. from 5.12 to 5.14; Kernel rev. from 4.5.5 to 4.6.2. After first start a new set of compilers have been updated as well. First try to build the kernel fails without any reason and errors. Second Armbian build finished with 2 problems. Command 'svn' I am using was not recognized. After some search I found that subversion package was omitted and I have to add it to lib.config. The second problem was very strange and related to RPI-Monitor installation. Procedure to add RPI-Monitor repository to the aptitude source list was successful but apt-get update rise following errors: Get:46 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:47 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:48 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Err https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Packages Bad header line Get:49 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US Get:50 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en Get:51 https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Ign https://github.com XavierBerger/RPi-Monitor-deb/raw/master/repo/ Translation-en_US.UTF-8 Fetched 11.5 MB in 18s (625 kB/s) W: Failed to fetch https://github.com/XavierBerger/RPi-Monitor-deb/raw/master/repo/Packages Bad header line E: Some index files failed to download. They have been ignored, or old ones used instead. and the package and its dependencies can not be installed. I did not find a way to solve the problem so install them manually. Any ideas how to install RPI-Minitor at the customization process preferably or using apt-get at the firstrun script? EDIT: I have found another package omitted : firmware-ralink - where to find the list of changes? Best regards Chris
  6. Hi to All, These days I have finished Lime2-eMMC based prototype with aluminum box (160x165x51 mm). It was applied already tested solution for heat dissipation from all chips (CPU, PMU, DDR and Flash) to the box walls. All connectors, buttons etc. used are humidity and dust resistant. STM32-H405 board used is only simulator of final low level peripheral staff. Series of tests ware also done at close to working conditions, high CPU and network load and higher environment temperature. All tests done include full battery discharge / charge cycle. See attached file for the results. The most important conclusions are: The temperatures of CPU and PMU chips are less than 50°C for all tests done; DDR and Flash chips temperatures are probably close to the CPU one; The temperature difference between the cooler and external air is less than 2°C; The temperature difference between the cooler and CPU/PMU is less than 7°C; There is no even a single hang at all tests done. Unfortunately, uncertainty about CPU and PMU temperature measurement is still present so any comments about test results are welcome. Best regards Chris Lime2-rev-C-E-comp-06-7p.pdf
  7. Hi to All, These days I have succeed to build my first Lime2-4GB based prototype with aluminum box (160x125x30 mm). It was applied interesting solution for heat dissipation from all chips to the box wall. The first test shows good results at close to working conditions (see attachment). It is on its way the real prototype based on Lime2-eMMC with aluminum box (160x155x50 mm). All system staff will be mounted into the box for outside usage (humidity and dust resistant). Best regards Chris Lime2-rev-C-E-comp-02.pdf
  8. 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: and customized version of RPI Monitor as described here. Best regards Chris
  9. Thanks tkaiser, Today I have got OneWire and DS18B20 temperature sensors working with my Lime2-eMMC with Armbian 5.12 and kernel 4.5.5. They were also added as data sources to RPI Minitor for forthcoming new series of power and thermal tests in hermetic metal box. As a beginning I test the board in open air use case with 2 DS18B20 sensors measuring ambient and PMU temperatures. I find a strange temperature difference between internal and external PMU sensors: Internal (°C) External (°C) PMU Consumption (W) Ambient 24(*) load < 0.3 1.2 CPU 46 PMU 31 35(*) load ~2.3 2.0 CPU 53 PMU 38 40(*) Notes: * the variations (not errors) of all above figures are less than 10% * the temperatures marked with (*) are verified (less than 5% difference) with precise infrared thermometer * DS18B20 sensor is mounted on top of PMU via 1mm adhesive thermal pad with 3 W/mK conductivity I have had a filling for a system error in PMU (and probably CPU) temperature measures but for the first time I have a proof on it. Could you point how and where to look for eventual measurement and/or calculation error sources? It will also be helpful to post some links for assessment results or methodology if any. Best regards Chris
  10. Hi to All, After a whole night fighting I finally succeed to find how to patch Lime2-eMMC device tree to support OneWire devices: http://forum.armbian.com/index.php/topic/853-armbian-customization/#entry9570 Best regards Chris
  11. Hi to All, Following http://linux-sunxi.org/1-Wire, thanks to http://forum.armbian.com/index.php/topic/1267-armbian-511-fails-to-build-kernel/ and after a whole night fighting I finally succeed to find how to patch Lime2-eMMC device tree to support OneWire devices in Armbian 5.12 with kernel 4.5.5: and the result is: There are 2x DS18B20 devices measuring ambient (24.2°C) and PMU (34.9°C) temperatures. Following http://rpi-experiences.blogspot.bg/2013/06/rpi-monitor-version-20-advance-usage.html I have also added them to status and statistics of RPI Monitor: Best regards Chris
  12. Thanks Zador, I find an error in the first patch I have used so make a series of tests because it really interference with other changes. The final patch I have used is: diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index d5c796c..93f3f62 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts @@ -235,6 +235,20 @@ allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; + + w1_pin: w1_pin@0 { + allwinner,pins = "PC21"; + allwinner,function = "gpio_in"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; + }; +}; + +&onewire_device { + compatible = "w1-gpio"; + gpios = <&pio 2 21 GPIO_ACTIVE_HIGH>; /* PC21 */ + pinctrl-names = "default"; + pinctrl-0 = <&w1_pin>; }; &reg_ahci_5v { It is applied as a first patch to the fresh file from the repository but it is rejected. Best regards Chris
  13. Thanks Zador, You are right - disabling the patch makes kernel build possible. It is strange because the patch is very simple and adds a few lines to arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts. Probably the problem comes from interference with other changes made by other patches to the same file. I have added last changes into the file already patched by other patches and run 'git diff file > file.patch'. After that I split the content to different files to be able to enable and disable changes separately. Is there some rules or good practice how to split changes in one file into different patches? Best regards Chris
  14. Hi Igor, After a new try to build image a big amount of changes were added and new error is printed: [ o.k. ] Preparing [ host ] findmnt: unknown column: AVAIL /data/armbian-cust/lib/general.sh: line 406: / 1024 / 1024 / 1024 : syntax error: operand expected (error token is "/ 1024 / 1024 / 1024 ") The process is continued but stops again on the same place while compiling the kernel. Could you point me a way to go back to the repository branch where Armbian build is possible? Best regards Chris
  15. Hi Igor, No, I have made a small change adding a patch to enable OneWire in Lime2 dts following http://linux-sunxi.org/1-Wire. Try to compile 4.5.4 fails in the same way.
  16. Hi to All, I have just tried to compile Armbian after a few days pause and get error in: │ LD [M] drivers/usb/serial/usbserial.o │ │ LD drivers/usb/built-in.o │ │ LD drivers/built-in.o [ error ] ERROR in function compile_kernel [ common.sh:188 ] [ error ] Kernel was not built [ @host ] I test different ways including previous kernel branch (4.5.4). Even starting from scratch was with no success. Where could be a problem? Best regards Chris
  17. Hi to All, Meanwhile I have fond a semi-solution of none working USB OTG in mainline kernel. Thanks to a help from sunxi form I find a solution to make USB OTG to work in Host only mode. Any ideas how to make it to work in OTG mode are welcome. Best regards Chris
  18. Thanks tkaiser, Probably this is the reason to get such a strange results for A20 CPU. But what about PMU temperature readouts? I plan to put the board inside a hermetic metal box with effective thermal conduction to its wall from all CPU, PMU, DRAM and eMMC chips. In my experience PMU is the most loaded thermally mainly because of its small size. On the other hand my expectation is all chips temperatures to be equalized with this design. But any way I have to ensure against overheating. Can PMU (AXP209) temperature sensor be used for overheating protection? Best regards Chris
  19. Hi to All, After many hours of testing today I have found a strange phenomenon with SoC temperature on A20-Olinuxino-Lime2-eMMC falling with 19°C (from 52°C to 33°C). A20 CPU has 20x20 Olimex heat sink. PMU temperature measured is 33°C. All temperatures are measured by RPI Monitor customized to work with AXP209. Measuring the SoC and PMU temperatures with infrared thermometer shows 34°C and 39°C. The test of heat sink with a hand definitely shows temperatures higher than 40°C. The time when temperature has been changed (8:40 on 16 May) I test fresh build (all updated) for a while and then returns back to the build a few days old without removing the board power. That is why I stopped the board for 15 minutes (21:15 on 16 May) with removing all power sources (DC-IN and battery). The result is restoration of previous CPU temperature figures. Before starting the board I measured CPU (heat sink) and PMU temperatures of 27°C with infrared thermometer at environment temperature 25°C. Immediately after starting the board CPU and PMU temperatures shown by RPI monitor are 45°C and 23°C and been very unlike the real once. You can find PRI Monitor snapshot showing above observations. There are another strange facts observed more then a month before: * 15°C CPU temperature difference between A20-Olinuxino-Lime2-eMMC (52°C) and A20-Olinuxino-Lime2-4GB (37°C) having the similar PCB design around CPU and * 18°C PMU temperature difference between A20-Olinuxino-Lime2-eMMC (27°C) and A20-Olinuxino-Lime2-4GB (45°C) having the similar PCB design around PMU Temperatures ware measured by RPI Monitor with legacy kernel (3.4) for Lime2-4GB and with mainline one (4.4) for Lime2-eMMC. Olimex answered that there is no reason for such differences because of PCB design similarity of both HW revisions. All above temperatures are approximate because of a few degrees variation. They are measured at idle mode with boards placed horizontally CPU up with heat sink in open ear. All these observations rise some questions around accuracy of temperature measurements and possibility for verification. Is there any assessment or ideas on how to do that? Best regards Chris
  20. Thanks Zador, I have already tried it but your suggestion has additional pair of quotation marks and will probably work so will report after testing. You are right about possibility to remove the packages by syntax substitution especially is the changes are more than a single package. Best regards Chris
  21. Thanks Igor and Zador, I found the problem. I overwrite PACKAGE_LIST_ADDITIONAL in lib.config because of need to add some additional packages. Unfortunately, this way is not clean and brings the problems when the package staff is changed in main code base. Is it possible to add an empty PACKAGE_LIST_USERS for using by the users to customize the package staff? Of course it is semi solution because the user may need to remove some of the packages used by default in Armbian. Are there any suggestions how to proceed in such a cases? Best regards Chris
  22. Hi to All, I have also get errors trying to build the image after today's scrips updates. The process stopped by error: [ o.k. ] Building deb [ sunxi-tools ] [ o.k. ] ... downloading sources [ sunxi-tools ] [ o.k. ] ... downloading sources [ temper ] [ o.k. ] ... downloading sources [ BT utils ] [ o.k. ] ... compiling [ sunxitools ] [ error ] Not built [ tools ] [ error ] ERROR in function unmount_on_exit [ debootstrap-ng.sh:522 ] [ error ] debootstrap-ng was interrupted [ o.k. ] Process terminated and debug logs where fail: root@chr-vm-yocto:/data/armbian-cust/output/debug# cat tools-build.log cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -o sunxi-fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -o sunxi-bootinfo bootinfo.c cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ `pkg-config --cflags libusb-1.0` -o sunxi-fel fel.c progress.c `pkg-config --libs libusb-1.0` cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -c -o nand-part-main.o nand-part-main.c cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -o sunxi-pio pio.c Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb-1.0' found Package libusb-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb-1.0' found fel.c:18:20: fatal error: libusb.h: No such file or directory #include <libusb.h> ^ compilation terminated. cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -c -o nand-part-a10.o nand-part.c -D A10 cc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -c -o nand-part-a20.o nand-part.c -D A20 Makefile:105: recipe for target 'sunxi-fel' failed make: *** [sunxi-fel] Error 1 make: *** Waiting for unfinished jobs.... cc -o sunxi-nand-part nand-part-main.o nand-part-a10.o nand-part-a20.o I try to remove all output staff and rebuild all but the result is the same. Next I try to remove sources for sunxi-tools and the result is the same. And finally I have start from scratch and the result is the same. Where is the problem? Best regards Chris
  23. Hi to All, I have extend performance tests with measurement of eMMC, SD/MMC and SATA SSD R/W speed with kernel 4.6-rc7. Interesting phenomenon is up to 87% eMMC read speed increase with kernel 4.6-rc7 (38.9 vs. 20.8 MB/s at iozone read with 512+ kB buffer). Olliver Schinagl has reported the similar result for eMMC read speed with kernel 4.6-rc7 explaining it with added advances driver features. Unfortunately, the better write speed of 17 MB/s reported by him is not observed in my tests. A possible reason for that could be multiply writes of big files to eMMC in my case. Best regards Chris eMMC-RW-speed-1.pdf
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines