Jump to content

StuxNet

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by StuxNet

  1. From start to finish, here's how I did it. Go to the following link, download build root, unzip it and 'cd' into the directory: https://git.busybox.net/buildroot/ Then issue the following commands that are in italics and follow the bullet point directions. make friendlyarm_nanopi_neo_defconfig - Where friendlyarm_nanopi_neo_defconfig is the name of your board's def config located in the /buildroot/config/ folder make menuconfig - A UI will pop up and you can add/remove packages or libraries from here. ie: Python, nano, libgpiod, etc... (Use "/" key to search) make uboot-menuconfig - This is the direct answer to OP's question - From this prompt, scroll all the way to the bottom - Device drivers --> USB Support --> Uncheck all boxes - There's also another option to reduce boot time. Go all the way back to the first page of uboot-menuconfig - Change delay in seconds before automatically booting to 0 make This will output /output/images/sdcard.img. use Etcher or w/e to write to sd card like usual. Make command took ~1hr to compile the first time so... The link below is a NanoPi Neo image, with no password. It boots in 4 seconds and has Python, libgpiod and nano installed and nothing else. No USB or Ethernet. https://fastupload.io/2vykAzhretXuft1/file
  2. pcdoodle. That name rings a bell to a local comp rep shop. You local to mn? I could def teach you a thing or two. Hit me up if interested.
  3. The script I gave you was a very loose example and it includes things I was using for my specific project. Things that you don't necessarily need to use for your own. trigPin in this situation is just an 'empty' pin that I use as an LED trigger. If temperature is above X, turn on LED. If temp below X, turn LED off. If you just want a temp and humidity readout, remove every function, set pins how you'd like and just print tempOut() Then go here: https://www.codecademy.com/learn/learn-python Or here: https://www.codewars.com/?language=python Or here: https://www.youtube.com/watch?v=apACNr7DC_s
  4. Got this same wrapper, as well as others to work on an NPiNeo and an OPiZ recently (defining outside ) but you're right it's prolly redundant. I got it working using this wrapper (forked/updated within 1 year opposed to 2yr on the one u link to) https://github.com/jingl3s/DHT11-DHT22-Python-library-Orange-PI and the following script. What happens when you print(instance) after it's defined? from pyA20.gpio import gpio from pyA20.gpio import port import dht import time import datetime # initialize GPIO temPin = port.PG11 trigPin = port.PG7 gpio.init() gpio.setcfg(trigPin, gpio.OUTPUT) # read data using pin 14 instance = dht.DHT(pin=temPin, sensor=22) def tempOut(): celToFar = result.temperature * 1.8 + 32 print("Last valid input: " + str(datetime.datetime.now())) print("Celsius: {0:0.1f} C".format(result.temperature)) print("Fahrenheit: {0:0.1f} F".format(celToFar)) print("Humidity: {0:0.1f} %%".format(result.humidity)) print("\n") def trigPinState(trigPin): trigState = gpio.input(trigPin) # What is state of trigger pin? if trigState == 0: #Then it's low return 'Low: %s' % trigState elif trigState == 1: # then its high return 'High: %s' % trigState else: print('error!) while True: result = instance.read() if result.is_valid(): tempOut() if celToFar < 75: gpio.output(trigPin, gpio.HIGH) elif celToFar > 75: gpio.output(trigPin, gpio.LOW) time.sleep(.2)
  5. You have a problem with the dht22 working. You never specify what the problem actually is. What's the error code you're getting? Ima go ahead and take a wild guess that you don't initiate a configuration for that port. put the following after gpio.init() PIN2 =gpio.setcfg(PIN2, gpio.OUTPUT)
  6. Which is easier to say? Every post previous, or run this? Attached is a bash script that will install and make various dtbo/dts edits automagically in order to install and interface with ds18b20 Thermometer connected to a NPiNeo running Armbian 5.69. I've also attached an image for how the module needs to be physically connected (using 10k resistor between 1 wire and PWR). If you do not have a physical 10k resistor you may use the internal pullup to do so (do not use on long connections?) This is done by adding param_w1_pin_int_pullup 1 on a newline after param_w1_pin=PG11 in the /boot/armbianEnv.txt file. The picture is for a raspi connection. Simply connect blue wire to PG11 on NanoPi Neo, Red to 3.3v PWR. Black wire to GND. All of which are actually located on the exact same pins if you flip the picture 90 degrees clockwise and cross reference it to FriendlyArms standard schematic. Also attached. WARNING: I created the attached script from a default installation of Armbian. It will erase current /boot/armbianEnv.txt file. Use sed or edit printf command to customize. - physical bash script attached - gist copy of script here: https://gist.github.com/BiTinerary/0ab5f3c7bf118456fc02bb0b876dc172 ds18b20ThermoNPiNeoInstall.sh
  7. You guys are awesome. I love you but I also hate you. That is a joke btw. Remember, threads/emails are not ideal communication. When you finalize a thread, maybe wrap it all up in a single coherent, command by command tutorial? Just spent the last hour trying to hodge podge the meaning of this thread + this All I needed to know is that param_w1_pin=PG11 shoulda been on a seperate line while a simple dump of the full amrbianEnv.txt woulda sufficed... verbosity=1 logo=disabled console=serial disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=armbian-add-overlay usbhost1 usbhost2 w1-gpio param_w1_pin=PG11 rootdev=UUID=41c3101b-b077-456b-b9cd-a7717422b4b3 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u Not to mention how to actually de/recompile dbto's and dts's. I would love to post back here those simple commands that were just glossed over in this thread but I can't guarantee I'll be able to do that. Anyone with a life outside themselves would understand how valuable 1 hour of uninterrupted time to decompiling text based gibberish is, all the while knowing it could legit, be automated. If there's any doubt to the tone of this message. I prove my point and thank you guys.
  8. Which Armbian kernel and version? When this happens to me, I typically just revert to a previous version that has the support and/or features I'm looking for. I would recommend doing the same, in addition to making an image of SD card (if you've spent a good deal of time setting it up) before updating to the latest kernel. This is one fix. Without booting up my own device with latest version, and taking your word for it that it's not available in armbian-config menu. It's likely because the armbian-config is being worked on, and you will not be able to enable specifically through armbian-config menu temporarily. You may need to either, do as suggested above (easiest) or setup manually, here's a post with 2 tutorials towards the end that may help in doing so.
  9. For when the link goes dead and for those looking to buy on the english version of Aliexpress. FFC FPC Ribbon cable 0.5mm pitch 24 pin 24PIN Front Length 250mm Width 12.5mm Ribbon Flex Cable
  10. I've gotten higher than 1A ratings from a USB port (usb 3.0) before and absolutely gotten less than 1A from a similarly rated 'ac/dc module' Can never go wrong with getting an appropriate, reliable setup. In my experience, FriendlyArm boards are no where near as fickle (power wise) than OPi boards. I can boot any of them from just about any power source I connect them to. For this reason I prefer the Neo. OPiZ's are absolutely a different case. For me, they rarely work just from USB, unless I use a specific, good quality cable. Forget compiling/installing more robust libraries. I can't speak too much on the relays you mention. I can tell you though that I've purchased 4+ OPiZ boards, all serve a purpose. Require dependable power supply setup. I have a Powerstrip that genuinely pumps out 2 amps + to USB port. So I use that with a good cord and I've never had a power issue since. Tl,DR; OPiZ over all design quality isn't the best but it's still proven to be a working product. I've purchased many of them, the only power issue I've really run into has been at fault of my own setup.
  11. The actual better ending to this story is not a post of the working camera but actually the underlying issue in the first place. I'm not a newb but I also don't know every schema of every board I own. Does the cable connect N/E/S/W on OPi/NPi/RPi/BPi? Perhaps include a picture of the correct orientation of the connected camera's ribbon cable? No one seems to ever talk about that. Not going to spend the next 4 hours yakshaving the cam across 6+ boards, 3 OS's in an attempt to port, decipher posts and problem solve. Multiply every attempt by 3 because I wonder "is the camera actually connected properly?". Just to document [accurately on GitHub] a more universal method for all. Moderators hate it when they go out of their way to provide software solutions to newbs with simple hardware problems. Strike that, reverse it.
  12. @Larry Bank hit up this guy >>> https://github.com/rm-hull <<< He has very similar projects to what your working on, ie: universal SBC's wrappers, except mainly for screens. He has one repo "OPi.GPIO" that aims to accomplish something similar to ArmbianIO project but is limited to OPi as you can imagine. He has recent commits that suggest branching out into NanoPi (Duo) territory though. I talked to him awhile back, pretty cool dude but seems pretty busy and the OPi.GPIO isn't his main focus. In any case this is all to say, without looking at your source and knowing what you do/don't have, maybe he has some goods you can snag. All in all. Awesome work. Had this idea for a long time, but lack the hardware/expertise to do it (this was as far as I could go) but it's awesome to see you follow up bitbank with ArmbianIO. Keep it up. I'll absolutely be sending you some beer money when I get the chance.
  13. Yea I get that. Totally understandable. In some situations, especially bigger companies, you would want to go with a more professional solution like you describe. Of course people forget to stamp, isn't that going to be an issue regardless of the device though? I don't think you need to be a mathematician, to do a timeclock. Let a spreadsheet do that for you. All that aside, as a whole SBC's represent (to me) the option and freedom to do without those kinds of proprietary (usually expensive) devices that offer zero control. On top of doing without the service fees and support. At the end of the day everyone (company) is different. This solution works excellently for my situation. Another good situation I've been in previously, was working for a fairly large company (as in multiple local locations) that had hours averaging 1, maybe 2, employees per location. I imagine it would be cost prohibitive to buy 6-7 devices, for a grand total of 8 employees. Granted, some of these positions were salary and timecards were based on the honor system but I could see an SBC making an appearance here.
  14. Welp. It currently works for...more than a couple employees and has been tested using various means/devices for months. I could go into more detail but your opinion does not apply to my specific circumstance. Regardless, thanks for the criticism. (seriously) In my experience every 'small business' solution to this has been to simply, not have a time clock. Again, I could go into details but I'm not the trend that every local business owner I've met, has set. I don't know what you mean by terribly complicated but I beg to differ. Let OPiZ offer RFID interface to a Gsheet. Let Gsheet functions calculate all the math. This solution in tandem with a 'profession' timeclock that costs several hundred not $25 dollars, to create a physical timecard that needs to be digitized later, produces (dare I say) foolproof results.
  15. Wanted to automate payroll. Needed to be as simple/easy on the eyes as possible for your run of the mill user. General functionality is that it makes digital timecards for every employee action/swipe of an RFID tag. Every swipe also punches a Google Sheet based on company department, by utilizing regex to find column associated with employee name, then the row based on today's date. It then punches current military time to corresponding clock in/out offset. The timecard math is all done using the Google spreadsheet functions to discern overtime, total hours, etc... More will be included later to automate even the spreadsheet template even though copy/pasting once every 15 days is trivial. It's comprised of a OPi-Zero, MFRC522 RFID Module (for employee badges) a modified case, multi LED for clock in/out prompting, Google Sheet API and several existing dependencies/repos on GitHub. The most important 'juicy', details are documented on GitHub which will get you installed and running with the API, Module, LED, etc.... With more details to come, including step by step instructions on setting up Google Sheet API, etc.... Let me know what the community thinks. https://github.com/BiTinerary/TimeClockPi Installation >> Connect MFRC522 Module and run >> git clone https://github.com/BiTinerary/TimeClockPi && bash ./TimeClockPi/requirements.sh
  16. Not exactly sure what you mean by some of your post but "sometimes it does it gets stuck and then he turn off" Sounds like a power issue. OPiZeros commonly 'halt' when big power/usage demands are put on the SBC. How are you powering the OPi? I've successfully installed both xvfb and wkhtmltopdf on an OPiZ, so... xhtml2pdf and weasyprint might be some alternatives to look into. Depending on the unspecified language/methods you're using for wkhtmltopdf.
  17. My bad. This is the entire reason for this post. I wasn't sure at all if/how any of this stuff works across the world and I had my doubts from the get go. Review previous posts. This is disheartening honestly. I shoulda read the user agreement but I really don't read those things. From a USA stand point, the option is zero risk, surely you can understand why I said that. All things considered, it's not. This would not be known however if the conversation never deviates beyond reasons why not. At the end of the day the responses were no, no, no because the actual answers were in fact no, no, no. We at least got the creative juices going, are that much wiser. Lets (by that I mean @Igor) throw up a paypal.me link and call it good? Except not cuz I think thats only PayPal to PayPal soo.... entireConvo == False. Just glad to be having it. It's honestly one of the few ways I could think to contribute beyond the standard crap. Just glad to be having the discussion, so thanks @zador.blood.stained
  18. @zador.blood.stained That's prolly true about Patreon. Idk, Not at all familiar. However, I do know of someone/thing that uses patreon just to release new content and be notified of it. Maybe kickstarter, patreon, indiegogo are all wrong mediums for Armbian's 'product' model, I'm legit just trying to brain storm. "Patreon won't bring new donation methods because it's still either CC or PayPal." You prefaced this with AFAIK so I can't rag on ya too much xD but you're fundamentally wrong dude. This isn't an insult, this is encouragement to be more open minded. I could break down the psychology behind facets of of donation mediums. ie: 'separation' from payment, provide empirical evidence, etc... but I'm not going to. TL;DR: I could rebuttal all day long as to why I think there could be improvement. Especially in cases regarding finances because I wouldn't make the 'suggestion' unless there was some strong factual basis. So here they are, applicable to all but mainly for adding Cash.me. Zero risk: Requires < 5 minutes to setup and I already offered my time, where possible. 100% of Zero, is still Zero in the event nothing happens. Guaranteed results: Easier to donate = more donations. Fact. Visibility: Whether we are on all of the above platforms, one or none. Expansion is visibility and asking questions is not stagnation. Perhaps there is no interest in regards to donations. In which case, no skin off my teeth. Stux out.
  19. Heck yea dude. I'll give it a try on a brand new imaged NPNA. Thanks for the script/service. That's what it is all about! As far as correct conf files for hostapd and dnsmasq, can I/would these be setup with NMTUI, then disable network manager after the fact? This might be a really dumb question but I have limited experience with the network stack in linux. Also, you've given more than enough info so you don't even have to answer that 'give a mouse a cookie' question. I'm sure I can figure it out regardless. Thanks again.
  20. Lol. Naw. I'm almost 100% of the time running as root and redundantly use sudo. I double checked before posting. That's not it, but reasonable assumption. Step by step would be really appreciated.
  21. @digitalsuper8 I'll have to try this out soon. I've abandoned the project for quite awhile now but I always figured it was just missing something simple (like below) related to dnsmasq and not simply a matter of modprobe dhd op_mode=2 which kept coming up again and again /bin/systemctl disable hostapd /bin/systemctl disable dnsmasq Just to be clear you ran FergusL's script, then applied what you mention in your post? or vice-versa? Looking to get a little more detail into the step by step you've taken. Also, what version you running? I just went ahead and plugged in my NPNA and /bin/systemctl disable dnsmasq command errors with Failed to start dnsmasq.service: Unit dnsmasq.service failed to load: No such file or directory. Ima keep hacking away at it, if you have any pointers or step by step directions in the meantime, I'd appreciate it. Prolly just my current setup, since as mentioned the project was abandoned awhile back and I have no recollection of how much/lil I biffed my network settings and configs xD
  22. I have no idea what you're talking about, your ideas, what your plans are etc... but sounds like you're not a total script kiddie with 'grand ideas' but no idea of what it would actually involve. So I'll bite. Again IDK what you wanna do, if tkaiser and reverand are right/wrong or if you're living a pipedream but what I do know is the common scripted logistic responses of... "no, that won't work", "it doesn't work how you think", "Pah! good luck!" then crickets for any actual constructive feedback. Personally? You mentioned "I'm being cryptic" and I think this is accurate enough to the point that (at least I) can make any assumption on whether it will/won't work or is worth pursuing. So I'm not going to, that doesn't mean I can help you though. I know a guy though He's messed with rust and I've seen him do cool things with custom kernels. Again, I have no idea if he would even be capable of w/e it is you want but it's the connection I can offer which is better than "no" imo. He's at least super smart, will tell you if you're off your rocker or not and perhaps qualm some curiosity. Maybe run your kernel ideas on his post over here or message @MitchD directly with specifics. Good luck. Later.
  23. @chwe Good catch on the specific board. Guess that answers that. I think what I was trying to get at was insight on board donation from vendors or not. Igor provided some light on that in his response. @zador.blood.stained You're not wrong about 'finish-line' kinda deal but I've seen some that were support based. @finally's suggestion about https://www.patreon.com/ would be more applicable. I always forget about that one. Regarding donation methods, I stand by what I said. I really doubt the number of bank transfers and bitcoin donations received. At the very least those methods are angled towards those truly commited to making a donation. Not my family and friends. So I just wonder if there's a small group of people who want to but it's not dead simple so they just don't. You are right about the CC in paypal though. I always forget/overlook that tiny continue button when I go there. Also, I was mostly thinking paypal.me I believe is paypal to paypal whereas Cashme is not. I like the amazon wish list thing, even if the stuff I've seen on there have been outside my budget. Don't think I didn't see that someone bought you all that beer you're talking about Igor @Igor I feel you 100% about the money thing. "Mo Money Mo Problems." It's for the community first, everything else next. So maybe hiring devs/PR/others is outta the question, especially considering relatively small user base. Having a lil extra donations to throw at developers in their spare time might bring some more around? Also, good point on the support vs maintenance thing. "If you build it, they will come" First you gotta build it xD. Alls Im tryin to say is that people generally aren't inclined to give their money away. So when they do, it's that much more important for the process to be dead simple. I can think of three people I could get to donate but if I don't have a link to send them. Might as well be a wash. What am I gunna say? Google armbian, click donate, click paypal, click tiny button on bottom labeled continue, fill out info, review donation, then complete donation? This? https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=nmmct0-t07CFndB9yxP3F3HhCEKrKd-flV_qJUGp696Ag8HvtGk_M0r70q8&dispatch=5885d80a13c0db1f8e263663d3faee8d795bb2096d7a7643a72ab88842aa1f54&rapidsState=Donation__DonationFlow___StateDonationBilling&rapidsStateSignature=b2c1a9b1988c851788d6ef4629dd49b7b0199f8b Or this? www.cash.me/$Armbian hell don't do anything and just add a paypal.me thingy to make it so that the word can be sent succinctly I ain't trying to make nobody rich, just think there's opportunity being missed. "Never underestimate a small amount of money." ~ Joe Ades. This guy literally died a millionaire based on micro transactions and it's proved true in my own life. Not the millionaire part, the micro transactions xD
  24. @Igor @zador.blood.stained @tkaiser + any other mods, devs and users. I'll try and keep this brief and to the point but I probably won't succeed. Donations and campaigns We ever thought about doing a kickstarter or indiegogo campaign for donations? I'm not sure of the exact differences between them but I know you can do campaigns for non profit means and donations. ie: Employing more devs, buying boards with donations, etc... w/e it is you guys might need. I'd be willing to set up the campaign with basics like pictures, description outline and what not with some more input. Then hand the 'keys' to the profile over to Igor or whoever, for financials on where the money will go. Whoever can set it up if that's to questionable, I'm just saying I'm willing to donate my time. I think Armbian donations could be helped by adding https://cash.me/ donation options. I'm pretty sure the fees are exactly the same as PayPal. However, anyone with a credit card can pay via donations. Just put in amount to donate, input CC info and that's literally it. No log in. No forgotten password, just hassle free donations. AFAIK Armbian only (really) accept donations via paypal. Which require people to have a paypal account. This can be a crucial hurdle that turns people away. I know personally it's been a whole deal trying to get family and friends to send donations to Armbian after I made them some Opi box. Those are nightmare stories for another day, I can't be the only one. Here's a cashme example: https://cash.me/$BiTinerary/9999 Lastly, I've got my eye on this new FriendlyArm board >> http://www.friendlyarm.com/index.php?route=product%2Fproduct&product_id=197 Gunna buy two as soon as I get paid. I know you guys have your hands full, don't expect any kind of support any time soon but would it help at least put it `in the queue,` so to speak, if I bought one and had it delivered to a dev? How does that work? Cash donation might be easier but having a tangible item would inspire more motivation. Maybe I'm missing something in consideration to the rest of the world and money transfers or w/e but just some things I've been thinking about. Lemme know if any of this resonates or if I'm off my rocker. TL;DR: You should get a https://cash.me account. CC --> Donation != Paypal --> Paypal. At the very least add a https://www.paypal.me/ link to make donating slightly more simple. Kickstarter or indiegogo campaign for non profit donations and at least visibility? Does it make sense to buy a board and have it shipped to a dev? Or is that overly complicated and/or not necessary?
  25. Don't apologize for being a newb. If I had 30 years of professional Windows exp I'd probably have been hired in my last interview for a major local corp. We were all newbs once, still are and forever will be. Just understand that I don't think @David DeLong was talking to you but rather @zador.blood.stained. In regards to 'condescension'. Furthermore it's important to understand that some people are here as script kiddies, some as mods, some as developers. Everyone approaches issues/reports/questions in a different light but it's the collective that helps you solve your problem! I wasn't part of that and neither was David but glad we could at least spur each other on. Happy hacking! P.s. Way to really dive right into Linux. Took you Thirty years but way to go.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines