Difference between revisions of "Beaglebone Black/Flashing"

From Teknologisk videncenter
Jump to: navigation, search
m (Applying new 2023 image)
m (Applying new 2023 image)
 
(13 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
#Indsæt microSD kort  
 
#Indsæt microSD kort  
 
#Check at filen /dev/mmcblk0 eksisterer (Undgå at lave en fil)
 
#Check at filen /dev/mmcblk0 eksisterer (Undgå at lave en fil)
#wget --no-check-certificate -qO- http://mars.tekkom.dk/data/bbb/bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz | xzcat | dd bs=10M of=/dev/mmcblk0 status=progress
+
#wget --no-check-certificate -qO- https://mars.merhot.dk/data/bbb/bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz | xzcat | dd bs=10M of=/dev/mmcblk0 status=progress
 
#shutdown  -r 0
 
#shutdown  -r 0
 
#login
 
#login
Line 27: Line 27:
 
#shutdown -h 0
 
#shutdown -h 0
 
#Remove power from board
 
#Remove power from board
#Press down boot-switch - The lonely switch in the USB-A end of the board and apply power
+
#Apply power and boot
## The board now boots from the new image on the Micro-SD card and flashes the onboard flash. (Take 15 minutes or so)
+
#Login check with ''df -h'' that /dev/mmcblk0p1 is more than 7 GB - if not reboot and check again
## Recommend console while doing it.
+
#apt update and apt upgrade
#After board shuts down. remove power and reapply power. ??
+
#Install tmux, man-db
 +
==Flasher==
 +
Flasherimage can be used to install/upgrade eMMC flash on BBB boards
 +
#Install [https://mars.merhot.dk/data/bbb/am335x-eMMC-flasher-debian-12.2-iot-armhf-2023-10-07-4gb.img.xz Flasher Image] on microSD card.
 +
#Insert microSD card in BBB you wish to flash
 +
#Press boot switch (Single switch in USB-A end)
 +
#Apply power and hold switch down until LED's starts blinking
 +
#When the four LED's starts blinking in sequence, flashing is in progress
 +
##If one LED is on permanently there is an error, and you need the console to debug
 +
#Wait until it shuts down
 +
 
 +
==Adaption==
 +
*Missing config-pin get https://github.com/beagleboard/bb.org-overlays/blob/master/tools/beaglebone-universal-io/config-pin
 +
** Download with: ''wget https://raw.githubusercontent.com/beagleboard/bb.org-overlays/master/tools/beaglebone-universal-io/config-pin''
 +
*Missing X11 ssh forwarding
 +
=== Missing UART4 ===
 +
When updating image to version 5.10.168-ti-r77 UART4 4 is not operational. Enable UART4 by inserting this line in /boot/uEnv.txt
 +
    uboot_overlay_addr0=BB-UART4-00A0.dtbo
 +
P9_11 and P9_13 are removed from GPIO list - using config-pin, and placed in permanent UART4 mode.
 +
*See overlays in /lib/linux-image-5.10.168-ti-r77/overlays/
  
 
=Links=
 
=Links=

Latest revision as of 07:30, 11 June 2024

Flash microSD kort

Ved opstart af BBB er det vigtigt at du

  1. Ikke placerer boardet på ledende materiale (Metal fx)
  2. Tilslutter det serielle kabel - (Sort ledning skal vende op imod ethernet stikket)
    1. Se billede herunder
  3. Åbner terminalemulator for eksempel putty eller mobaXterm
    1. Find COM port nummeret og sæt baudRate til 115200
  4. Boot fra den indbyggede flash. (microSD kort ikke indsat)
  5. Login
  6. sudo bash
  7. Indsæt microSD kort
  8. Check at filen /dev/mmcblk0 eksisterer (Undgå at lave en fil)
  9. wget --no-check-certificate -qO- https://mars.merhot.dk/data/bbb/bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz | xzcat | dd bs=10M of=/dev/mmcblk0 status=progress
  10. shutdown -r 0
  11. login
  12. df -h (Check at det er /dev/mmcblk0p1 der er under /)
  13. kør /opt/scripts/tools/grow_partition.sh
  14. shutdown -r 0
  15. check med df -h at ”/” har cirka 8 GB
  16. Install debian C linux development tools

BBB serial.JPG

Applying new 2023 image

  1. Remove micro-SD card
  2. Boot from old-image on on-board flash (mmcblk1)
  3. insert micro-SD card
    1. new image: wget --no-check-certificate -qO- https://mars.merhot.dk/data/bbb/am335x-debian-12.2-iot-armhf-2023-10-07-4gb.img.xz | xzcat | dd bs=10M of=/dev/mmcblk0 status=progress
  4. shutdown -h 0
  5. Remove power from board
  6. Apply power and boot
  7. Login check with df -h that /dev/mmcblk0p1 is more than 7 GB - if not reboot and check again
  8. apt update and apt upgrade
  9. Install tmux, man-db

Flasher

Flasherimage can be used to install/upgrade eMMC flash on BBB boards

  1. Install Flasher Image on microSD card.
  2. Insert microSD card in BBB you wish to flash
  3. Press boot switch (Single switch in USB-A end)
  4. Apply power and hold switch down until LED's starts blinking
  5. When the four LED's starts blinking in sequence, flashing is in progress
    1. If one LED is on permanently there is an error, and you need the console to debug
  6. Wait until it shuts down

Adaption

Missing UART4

When updating image to version 5.10.168-ti-r77 UART4 4 is not operational. Enable UART4 by inserting this line in /boot/uEnv.txt

   uboot_overlay_addr0=BB-UART4-00A0.dtbo

P9_11 and P9_13 are removed from GPIO list - using config-pin, and placed in permanent UART4 mode.

  • See overlays in /lib/linux-image-5.10.168-ti-r77/overlays/

Links