Browse Source

Add files via upload

master
kenmartin-unix 4 years ago
committed by GitHub
parent
commit
7f4fe83e72
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 133 additions and 0 deletions
  1. +36
    -0
      BBB-PC-Internet.txt
  2. +52
    -0
      Duplicating-Working-SD-Image.txt
  3. +21
    -0
      Relay-Cape-Setup.txt
  4. +10
    -0
      Ubuntu-to-BBB-Serial-Console.txt
  5. +14
    -0
      disable-HDMI.txt

+ 36
- 0
BBB-PC-Internet.txt View File

@@ -0,0 +1,36 @@
First on BBB check 'route' and set default gateway address to 192.168.147.1.
See postboot.sh script.
From BBB;
ping -c2 www.cnn.com if it continues to fail continue otherwise your done.
Check P.C. Windows Host side
GoTo Control Panel, Network and Sharing Center
Click on Change Adapter Settings
Hightlight (ONE Click) BBB USB Adapter (Your Adapter may have a different name)
Click on Disable BBB USB Adapter
Pause
Click on Enable BBB USB Adapter
Pause
Respond OK to warning about change to 192.168.137.1 (Your display may differ)
Double click on BBB USB Adapter
Click Properities
Click IPv4
Click Properities
==> Make sure IP Address is set to 192.168.147.1 (It's probably set to 192.168.137.1)
And Preferred Name Server is set to 8.8.8.8
If the address won't stick Click Advanced
See if incorrect address is shown
If it is Click on it and Click Remove then Click Save
Click Save
Click Save
Double Click on WiFi Adapter
Click Properities
Click Sharing (On the top)
Make sure BBB USB is Detected, If not select.
Click Save
Click Save
Close all open Network windows
From BBB try ping -c2 www.cnn.com again. It should work.

+ 52
- 0
Duplicating-Working-SD-Image.txt View File

@@ -0,0 +1,52 @@
BBB New Duplicating Image
# 3-25-2020 Ken. Thank you zmatt.
# For example, if the source is /dev/mmcblk0 and destination is /dev/sda
# Source being SD-Card in BBB and destination being hung off USB port
# ===> Boot off eMMc <===
# Shrink the source:
# First become superuser
sudo -s
e2fsck -f /dev/mmcblk0p1
resize2fs -M /dev/mmcblk0p1
# ^^^ It will tell you how big the filesystem now is in 4K blocks.
# Divide by 1024 and round up to get the size of the filesystem in 4M blocks.
echo 'start=8192,bootable' | sfdisk /dev/sda
# Copy the filesystem to the destination.
# Fill in the correct number of 4M blocks for COUNT from above
dd if=/dev/mmcblk0p1 of=/dev/sda1 bs=4M count=.... conv=fdatasync
# Expand filesystem on destination
resize2fs /dev/sda1
# Copy bootloader
dd if=/dev/mmcblk0 of=/dev/sda skip=1 seek=1 count=8191 conv=fdatasync
# If you want to continue using the old filesystem, Expand it again
resize2fs /dev/mmcblk0p1
# ===> Remove externally mounted SD-Card on USB adapter
# Give the new filesystem a new unique identifier if needed
yes | tune2fs -U random /dev/sda1
# If you want to reboot off internal SD-Card use command
reboot
# All done

+ 21
- 0
Relay-Cape-Setup.txt View File

@@ -0,0 +1,21 @@
Relay Cape notes
Initialize (relays to out) after an install
echo 20 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio20/direction
echo out > /sys/class/gpio/gpio7/direction
echo out > /sys/class/gpio/gpio112/direction
echo out > /sys/class/gpio/gpio115/direction
BBGW Note
Well I set the default directory to
/sys/class/gpio
and issued the command
echo 112 > export
and like magic the gpio112 appeared. It works now. Don't know why gpio112 was not automatically created however.

+ 10
- 0
Ubuntu-to-BBB-Serial-Console.txt View File

@@ -0,0 +1,10 @@
Ubuntu to Serial Console on BBB
In the VB window where your guest is running,
click on Devices -> USB -> Prolific Technology Inc (or whatever) USB device you want to share to your guest.
Once you do that, Ubuntu will "see" the USB connection and automatically create the necessary /dev/ttyUSB0 device.
Then you can use any of the normal tools to open up /dev/ttyUSB0. Screen, minicom, gtkterm, etc.

+ 14
- 0
disable-HDMI.txt View File

@@ -0,0 +1,14 @@
3-17-2020
To disable HDMI video & HDMI audio at boot add
sudo nano /boot/uEnv.txt
enable_uboot_overlays=1 <=== ??
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
Control/O Enter Control/X

Loading…
Cancel
Save