WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: USB gadget kernel module with RPi zero  (Read 13463 times)

Offline bot

  • WikiUser
  • *
  • Posts: 1
Re: USB gadget kernel module with RPi zero
« Reply #30 on: November 01, 2018, 01:25:03 PM »
 can someone summarize the exact steps in the right sequence to enable the OTG serial access please? I'm fighting with this almost couple of hours without any success. It is so easy in Raspbian...
« Last Edit: November 01, 2018, 01:43:07 PM by bot »

Offline ladnar

  • WikiUser
  • *
  • Posts: 3
Re: USB gadget kernel module with RPi zero
« Reply #31 on: December 10, 2018, 11:05:52 AM »
Sorry, I am new too. I have no advice to give, but was worried that nobody responded yet? Have you tried the Rpi pages? Some of the threads on this forum reference things like SSH and "headless Pi" and OTG and USB Gadget.

My interest is in Pi Brambles, and, specifically, SD-card unmounted Pi zero Brambles. Here are a few other threads that might help.

http://forum.tinycorelinux.net/index.php/topic,21821.0.html

http://forum.tinycorelinux.net/index.php/topic,22341.0.html

http://forum.tinycorelinux.net/index.php/topic,20195.0.html

I think those threads might help, but I am too new to linux (the sum total of my coding ability is "DOS for idiots", "anatomy of hexadecimal JPEGs" and 6502-assembly language) to offer real advice.

Offline ladnar

  • WikiUser
  • *
  • Posts: 3
Re: USB gadget kernel module with RPi zero
« Reply #32 on: December 10, 2018, 11:12:28 AM »
Sorry, one link above is THIS PRESENT POST! You've  obviously been there/here. I meant to post this other one : http://forum.tinycorelinux.net/index.php/topic,22211.0.html

Offline ladnar

  • WikiUser
  • *
  • Posts: 3
Re: USB gadget kernel module with RPi zero
« Reply #33 on: December 10, 2018, 12:23:22 PM »
So, I have managed to (1) purchase 3 QTY raspberry Pi's (12 total QTY, envisioned), (2) purchase one SD card and 2 power supplies, (3) Install PiCore9.0.xsomething?, using?, maybe GParted (GUI) to zero the card and format and partition it, and , $dd if=PiCore-9.0.img of=/dev/sdb  to put the image onto the SDcard.

If I remember right, I did not really use GParted to partition; I think just to low-level format. I think the dd command I used is the one that determined the size, and shape, and flavor, and etc. of the partitions, and the "structure" of the file system(s). The vagueness of the above description reveals the extent of my ignorance. In short, so far, much of the process was automatic.

To my surprise, it booted, and I had a command line. The user name and password took a guess or two, because some website I was on told me the wrong info. I think it booted to tc@box:^$    as the username, and I think PiCore was the password. One website told me this was the default, and another said default was no-password? Perhaps the latter was for another version of PiCore and/or tinycore?

Anyhoo, @bot, I am sorry I cannot solve your problem yet, but I might be working on it soon. I will try the Raspbian instructions on my new PiCore machine (Pi Zero) and see if they work. I think I will be trying the Gadget Ethernet, not Gadget Serial, as I do not have the "TTL-USB console wire-thingy", and don't plan on purchasing one just yet.

newbielink:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/overview [nonactive]

newbielink:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/serial-gadget [nonactive]

newbielink:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget [nonactive]

newbielink:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-tweaks [nonactive]

newbielink:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/other-modules [nonactive]

@bot, I am, of course, without any ability to offer advice on these pages, as I lack perspective and wisdom in this area.

I am still learning the relevant linux commands, and the one time I had PiCore "fired up", i.e. booted, I couldn't even shut it down or unmount it, for lack of the proper terminology! I think I hacked  some solution that PROBABLY wouldn't corrupt the card on shutdown, but I forget since (my handwritten notes inform me) I was working on this back on 11/26/2018.

A couple more days poking around on various linux websites, and I found the relevant commands; (a) shutdown, (b) kill, (c) reset, (d) exit, (e) umount, (f) umount -l [lazy unmount] , (g) eject, (h) ps or pstree, followed by kill , (i) sudo shutdown -r now, (j) sudo reboot, and et cetra, et cetra ... (Also, perhaps, REISUB; How did I not know REISUB? Too many years on a windows computer, I am a Ctrl+Alt+Del man!).

So, the next steps in my plan, are (4) umount -l /dev/sdx , followed by (5) eject /dev/sdx ( I think sdx might be something more like mmcblkx?) . Hopefully this works without a hitch, but I have a feeling I will have to reference the thread : http://forum.tinycorelinux.net/index.php/topic,21821.0.html   in order to actually get the thing working properly. (I don't yet understand all this business about "loading extensions" and "creating persistence"; I assume that PiCore loads entirely to RAM, lives there while it is on, and disappears from RAM when the power goes off; leaving the SDcard to give a fresh boot next time? Safe assumption, or must I work to achieve this?).

Next step is to (6) fire up the second Raspberry Pi Zero, and boot PiCore9.0.? to it, (7) repeat above steps to remove the SD card, (8) buy a third power cord (or better yet, a multi-USB power hub module, of some kind), (9) Figure out how to Ethernet gadget them all, except the first one, which, like the mighty Sauron, will be "one USB Host, to rule them all, and in the Pi-ness bind them", and finally, (10) buy 9 more Pi-zeros (with appropriate power supplies and micro-USB-to-micro-USB comm. wires)

OK, that's my plan. @ bot, I hope you are not really a bot, as I have, thus, wasted much time speaking to imaginary things, of imaginary things. But my imagination has made a computer that my mind/hands can't quite build, so, perhaps, the writing of this post will organize my thoughts and make it happen?
« Last Edit: December 10, 2018, 12:42:28 PM by ladnar »