Jump to content

brianddk

Members
  • Posts

    5
  • Joined

  • Last visited

  1. Found some more information that may be missing... LLMNR (RFC 4795). Here's the config I have right now. apt-get install avahi-autoip winbind libnss-winbind "dns proxy = yes" => /etc/samba/smb.conf "hosts: files wins ... dns" => /etc/nsswitch.conf and this gets me most of what I need, but with the above config, I can only find the SoC server from Windows using NetBios utilities. Conventional TCP/IP resolutions don't work. Looks like there is an LLMNR option in resolved.conf. So perhaps adding this will allow the SoC server to broadcast its information better... "LLMNR=yes" => /etc/*/resolved.conf I'll update if it works.
  2. OK... figured it out apt-get install avahi-autoip winbind libnss-winbind then edit /etc/samba/smb.conf dns proxy = yes then add `wins` /etc/nsswitch.conf hosts: files wins myhostname mdns4_minimal [NOTFOUND=return] dns Now when the SoC comes up, it is easy to find with netbios without having to nmap 65,000 address (replace hostname with 'raspberrypi' or 'odroidc1' or whatever the board name is. nbtstat -a hostname nbtstat -c arp -a This should be enough to get me started. It pulls in a lot more software than needed, but it does meet my needs. PS.. admins, feel free to change the subject from '[REQ]' to '[SOLVED]', though this one easily falls into RTFM.
  3. Yep, that works great... got that working straight off the bat. Just seams like Link-local addressing should be possible. Just curious how to make it happen.
  4. Any idea how to register a trigger provider? I'd be interested registering some code to strobe the led in a kind of morse-code. Specifically I wanted to strobe the 32bit IPv4 address for fun. Basically 1-blink for a zero-bit, 2-blink for a one-bit, with 1-beat rest between each bit and a 5-beat rest between each message/word. # 'b' = blink # '_' = no-blink # '-' = rest # 1-bit = 'b-b' # 0-bit = 'b-_' # stop = '_-_-_-_-_' # # IPv4 Addr: 10.10.10.10 # Binary: 0000 1010 0000 1010 0000 1010 0000 1010 # Msg: b-_-b-_-b-_-b-_-b-b-b-_-b-b-b-_-b-_-b-_-b-_-b-_-b-b-b-_-b-b-b-_-b-_-b-_-b-_-b-_-b-b-b-_-b-b-b-_-b-_-b-_-b-_-b-_-b-b-b-_-b-b-b-_-_-_-_-_-_ I'd image the 'blink-clock' to be at ether 2hz or 4hz. This could obviously be fitted for reading out any register or combination of GPOs. Some other encoding scheme may work. Morse code is a good base 36 code and slightly more compact, but harder to decode for bit bangers. Q: Real question is how does one register their script/binary as a 'trigger-provider' A: Like this apparently. kmod-ledtrig-morse. Update: Tacked onto this reply as not to bloat the tutorial with chatter.
  5. I have a project where I would like to connect two project boards together with an Ethernet cable. No router, no hub, just two boards with a patch of cat5 between them. In order to make this work I need to get a Link-local IPv4 address on each (RFC 3927). I believe this is done with avahi, but I'm unsure if avahi is simply name resolution or if it performs the link-local address allocation as well. Anyway here's what I've tried: sudo apt-get install avahi-daemon avahi-discover libnss-mdns # sudo reboot -r now # systemctl script on reboot to log IP to file with `hostname -I` What I find is that when I'm hooked up to my router `hostname -I` reports what I'd expect from my DHCP server, but when I hook up board-to-board or board-to-laptop, all I get is an IPv6 address (no IPv4) and moreover the IPv6 address I do get does not reply to pings. Here's my config: Odroid-C1+ Armbian_5.25_Odroidc1_Debian_jessie_default_3.10.104.7z Apt/Got : avahi-daemon, avahi-discover, libnss-mdns As a final thought, I don't have to use Jessie. Xenial or Desktop would be fine as well. At this point I'm just curious what else is needed to make it work. Any thoughts?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines