Jump to content

av4625

Members
  • Posts

    6
  • Joined

  • Last visited

  1. I will have to check for you. It will be after the weekend as I need it for then and I have to take it out of an enclosure to get at the serial debug pins
  2. It wouldn’t boot. I put the SD card back in the original Pi and it was fine. I flashed a new SD card with the exact same image and it booted straight away. I have a script to setup new images, setup the new one the same as the old one and its working fine. just can’t seem to swap SD cards
  3. Should it be possible to take a working SD card out of one OrangePi Zero and put it in a new one? Same board and amount of RAM and everything.
  4. Sync has done the trick! I agree that some sort of battery that that has enough capacity to let it shutdown properly is the better solution, but a phone power bank is too big and bulky. It needs to be mounted in a car so needs to be as neat and small as possible
  5. Hi, I use an OrangePi Zero as a race timer for a car. It is powered from the car. So when the car starts the OrangePi gets power and boots and when the car is turned off the OrangePi loses power and "turns off". This isn't ideal but I don't have a lot of options. I feel like this is a fairly common use case for electronics in cars especially ones like race timers etc. Unless I have a battery as well. I was wondering what are the best things to do to protect against the sudden power loss so that I don't corrupt anything? Is it possible to make parts of the file system read only maybe? All I do with the OrangePi is run a C++ application, it uses two serial ports and runs a server on port 80. The application does read and write its own configuration files and log files. But these are not OS files, only files that the application created itself. I have noticed that after writing or appending to a file from C++, if the power is pulled and then plugged back in the change to the file does not persist. I can ssh on before the power is pulled and `cat` the file and see that it is updated. Seems that the file data is held in RAM for a little while before actually writing. Is there anyway to force file writes to actually be flushed and written straight away?
  6. Hi, This will be my first time using Armbian and OrangePi, sorry if theres stupid questions. I want to write a C++ application that uses LVGL to display information on a USB screen and have a few questions. 1) Will I be able to this screen in this setup. It uses the frame buffer (/dev/fb0). There are instructions for RaspberryPi, where its just plugged in and the frame buffer is available to use. 2) If I just use the latest Armbian Ubuntu version for this board what is the newest version of C++ I can use? (C++11/14/17 etc) 3) Is there a tool chain available to be able to cross compile my application (specifically from MacOS) then put the binary on the OrangePi? Or will I have to use something like docker and build for ARM? Thanks!
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines