Off-Topic > Off-Topic - Tiny Core Lounge

artificial intelligence; automatic HW identification and driver download

<< < (3/7) > >>

Sashank999:
Well, I think AI looks like a too big thing for this. We could use lspci, lsusb, hwinfo, lshw to find them. But my question is how do you find what kind of the device it is when you don't have its driver ?
Once we know its category, then we can mess up the provides.db and then find the tczs required for the device to work.

xor:
physical hardware has a unique ID number that allows them to be identified on their connection ports.

it's not the operating system that reads it
usually defines motherboard bios.

to access these contents

lshw
lspci
lsusb
lsblk
lscpu

Even MS windows recognizes hardware and requests drivers.

this is a usb camera, etc. etc.

https://usb-ids.gowdy.us/read/UD/
https://usb-ids.gowdy.us/read/UC/

http://pci-ids.ucw.cz/read/PC/
http://pci-ids.ucw.cz/read/PD/

with a logically simple coding

lshw => ID Xyz123 (usb port) => = usb (Xyz123) wifi.tcz (download.)


--- Quote from: Sashank999 on September 29, 2020, 11:56:48 PM ---Well, I think AI looks like a too big thing for this. We could use lspci, lsusb, hwinfo, lshw to find them. But my question is how do you find what kind of the device it is when you don't have its driver ?
Once we know its category, then we can mess up the provides.db and then find the tczs required for the device to work.

--- End quote ---

Rich:
Hi xor

--- Quote from: xor on September 30, 2020, 01:23:54 AM --- ... with a logically simple coding ...
--- End quote ---
Since you think it's simple, go ahead and code it.

ladnar:
I am definitely an outsider, and just a lowly biologist, but YOUR UNIVERSE IS HUGE! I mean, the universe of computer scientists. But its MY UNIVERSE too!? Technically? I live here, and witness it, in all its insane glory.

What I mean to say, There is more hardware in heaven and earth than are dreamt of on your coffee break. So as long as, "ahem", "the free market" is in charge of , "ahem", "innovation", standards will be lax, and new standards will be invented  ('ahem", "pushed"), and perfect systems to identify perfect devices in a perfect world will remain elusive.

But, xor, as rich suggested, if it seems simple, give it a whirl.

(I am no coder" but I almost made a useful bash script today. Got hung up on some simple permissions stuff, but I ironed it out by violating Asimov's Laws of Robotics--Androidics?Gynoidics?Anthropoidics? It seems, that if I just neglect the rights of Artificial Life, I can chmod 777 and let the whole world monkey with their code; manipulate their memories? Poor, AI? Can't exist without giving up its freedoms through a simple chmod 777 command! But, then again, many of us Linux freaks are FOSS/GNU/Copyleft freedom fighters, so, permissions all around, I guess?!)

I see the thread has moved for being OT. I blame myself. Here is my code; I tried it out on a fresh piCore11, today, and it works. I added it to my bootlist and filetool and ran the backup command. I don't really know what all that stuff means, but it helps it be persistent. Maybe I could learn that TCZ thing and make it an "extension", or whatever? Here is my code:


--- Code: ---
#! /bin/bash

cd /

sudo chmod 777 /

mkdir -m 777 /sai/misc

mkdir -m 777 /optic

mkdir -m 777 /aud

mkdir -m 777 /tact

mkdir -m 777 /olf

mkdir -m 777 /gust


--- End code ---

Natural intelligence has a "dedicated, standardized", "hardware" (of sorts), determined (partially) by DNA, and thus, cells, tissues, organs, systems, etc.

All the "fun" AI I want to deal with, already knows its hardware, even if I--and my more grandiose, less "driver" software--haven't got a clue.

(I'm so "green" I thought MAC addresses were always hardware specific; i.e. unique identifiers, to specific machines; but I forced two of my pi zeros to have the same ethernet/hw adress/MAC address (twelve hex characters, colon separated pairs) yesterday. Good thing I was alone when I figured it out, because I was kind of embarrassed  I didn't know this?)

[Edit: Nope. I checked my notes. I forced one board to have a different ethernet/hwaddr/MACaddr, for two separate sessions. The other board kept its MAcaddr. for several boots. Bad memory; my wet chemistry. Data, data, everywhere, yet not a thought to think!]

ladnar:
Here is an On-Topic comment. "cat /proc/cpuinfo" tells me my serial number on my pi zero boards.

And, come to think of it, I think I did read about IP spoofing, and maybe MAC address spoofing too? So maybe I am not as "green" as I thought?

Is there no blkid on piCore? And isn't lspci for a pci bus? I guess for tinycore thats useful, but I am a piCore guy.

(Maybe it's time I commit to Tiny Core. I have an extra laptop that is collecting dust with its crappy, constantly updating Windows 10; constantly threatening to freeze the device with every new and useless, forced upload. A scam to get me to buy a new laptop? Perhaps? Maybe I could look into a dual boot: Windows 10 and tinycore?). Oh look., I'm OT again. It doesn't take much!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version