FRANK333

Members
  • Content Count

    49
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Applications

Everything posted by FRANK333

  1. jhoney, uboot finds the .cmd file on the hdd, but this file is not written correctly (it seems to be an exact copy of the one on the sd) and then repeats for about ten times the operation and then freezes. If I could write the .cmd file correctly as it happens for the orangePizero+ it would work.
  2. continues my battle with U-boats, and I appeal to anyone who knows anything. Reading on the forum I found this command to control U-boot strings /dev/mtd0 | grep U-Boot and the result I wrote it in the spoiler below. I did not understand exactly what it means surely is an error during the installation of U-boot that I did with these commands : flash_erase /dev/mtd0 0 128 flashcp /usr/lib/linux-u-boot-next-orangepizero_5.90_armhf/u-boot-sunxi-with-spl.bin /dev/mtd0 Last experiment I compared the script nand-sata install on OP0 and OP0+ but I did not notice differences so the lack of recognition of the spi is to be found upstream.
  3. I also have an OP0+ I checked nand-sata-install and the option SPI=> USB instead exists. attached under the screen . Mysteries!
  4. Yes, I restarted. Finds the mtd0 partition root@orangepizero:~# cat /proc/mtd dev: size erasesize name mtd0: 00200000 00001000 "spi0.0"
  5. I tried martin twice as you suggested, but now when I start nand-sata-install I no longer appear the installation options but only the indication /dev/sda1 the type of formatting and then starts writing armbian on HDD. Mysteries!!!
  6. I think not, I copied with administrator privileges (ubuntu) the whole boot directory from sd to disk
  7. here I copied the directory /boot and changed UUID (there was already written the UUID of the hdd)
  8. Hello Martinayotte , Departed from a clean installation, I cleaned up both hdd and µSD and installed armbian on hdd with the appropriate option in armbian-config. Of course if I restart the OP0 with the µSD inserted everything works fine. I gave the commands you wrote above these are the results (without µSD insertd).
  9. Hi, umiddelb, I tried to clean up the nor spi and recharge an old U-boat but I didn't notice any difference. I noticed a strange thing U-boot when it starts and finds the USB disk looks for a file boot.env not finding it continues finding boot.cmd processes it with error and restarts (this probably because boot.cmd is the one written on the sd card. Even if I recompiled and modified it) . The matter becomes more and more complicated ...
  10. SPI -> SATA/USB boot is just what I'm trying to do. You can tell me (if it's not too complicated) how to do it or where to read a recent tutorial. Below is all I could do.
  11. Hello igor, I tried to modify ArmbianEnv.txt adding setenv rootdev "/dev/sda1 "to boot from hdd without SD , recompiled boot.cmd but it does not work yet. I ask you you can boot completely from hdd (if you like) or I have to settle for boot on sd? P.S. I opened a dedicated post for the problem https://forum.armbian.com/topic/11514-opzero-boot-from-external-usb20-drive-hdd-without-any-sd/
  12. Hello, lanefu. if I understand correctly boot.cmd is generated based on armbianEnv.txt ; but how do you make it generate? I ask you this because I'm trying to start armbian from hhd usb without using the SD
  13. I used armbian-config (https://docs.armbian.com/User-Guide_Getting-Started/#how-to-install-to-emmc-nand-sata-usb) option no. 3 I have the impression that without the sd the boot files that are on the HDD are read but that later on they are discarded because they are not appropriate. The problem is how to edit them correctly (I tried to edit the cmd with /dev/sda1 and recompile, but it does not work) Below in the spoiler there is the boot log when I delete the SD
  14. hello guidol, I'd already read your post (and Martinayotte's) and tried your solutions. I can only start with the sd connected, if I take it off it crashes and goes into a loop as you see in the spoiler above.
  15. I have an orangepizero (https://www.armbian.com/wp-content/uploads/2018/02/orangepizero.png) I installed Armbian_5.90_Orangepizero_Ubuntu_bionic_next_4.19.57.7z on 32GB sd. The pi0 is powered via pin with a 5V/5A power supply, norflash mx25l1606e. The HDD is a new working 80gb maxtor powered by an external USB 2.0 box. I have also connected the serial and read the boot information. I used armbian-config and transferred armbian to HDD and it works, but I have to keep the miniSD plugged in. I ask you can boot from HDD and not use any SD? PS I read almost all posts here on the forum and tried the old procedures but it does not work.
  16. I tried to add at the end of the script, these 4 lines : def signal_term_handler(signal, frame): print 'got SIGTERM' sys.exit(0) signal.signal(signal.SIGTERM, signal_term_handler) but the relays maintain the status, even after the kill command.
  17. ok I corrected and added the lines to make the script a daemon, I noticed however that if I kill the script (kill 1234) or if I block the OPI0 the relays card remains in the last state in which it is, how could you do to reset it to off?
  18. Okay Martin I solved was just a tabulation problem as I could tell from your example. Now the rudimentary thermostat works, I would like to make sure that it remains in operation as a daemon, insert different temperatures at different times of the day, and finally make a decent GUI. But the road is uphill....
  19. here is the error it returns, it seems that I can't find the variable maxTemp, and yet I defined it with maxTemp = 22 root@orangepizero:~# python test.py File "test.py", line 32 if temperature > maxTemp: ^ IndentationError: unindent does not match any outer indentation level root@orangepizero:~# python -m tabnanny test.py 'test.py': Indentation Error: unindent does not match any outer indentation level (<tokenize>, line 32) root@orangepizero:~#
  20. Martin, I installed the library and your test works. When I try to insert an if else line, the script doesn't work. What's wrong? I don't know anything about Python ,I'm sorry.
  21. I'm looking for a software that through a web page (or an android app) makes the Opi 0 work as a thermostat or at least a software sketch. As for the test program I'll try, but that library is for A20 I have an H2 will work ?
  22. All right, now I do a clean installation and I start again, then I let you know. but I had decommented a few lines but the software did not start.Do you have any simple project to start from?
  23. hello martin , let me explain myself better , using this tutorial ( thank you the author ) http://davetsao.com/blog/2015-07-11-raspberry-pi-thermostat.html there is this command import RPi.GPIO as GPIO , which I replaced with OPi.GPIO (of course I loaded the libraries Opi) it seems that the commands setmode setup mode are not recognized
  24. I'm going to use an orange Pi zero to make a thermostat adjustable via lan; do you know how to point me to some easy to apply project? I tried several projects, with ds1820b sensors and relais card for raspberry, but I have problems for example with the libraries RPi.GPIO because they do not match those OPi.GPIO. I can currently turn the relays on and off with an android app or via terminal command.