Difference between revisions of "BeagleBoardV-Ahead/Getting started"

From Teknologisk videncenter
Jump to: navigation, search
(Created page with "=Without SD-Card - new= Plug ethernet to your network and power up the board from either USB-micro or the power plug. 5 volt 2 amps at least in documentation. But use 3 amps P...")
 
m (Flashing eMMC)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Plug ethernet to your network and power up the board from either USB-micro or the power plug. 5 volt 2 amps at least in documentation. But use 3 amps PSU at least.
 
Plug ethernet to your network and power up the board from either USB-micro or the power plug. 5 volt 2 amps at least in documentation. But use 3 amps PSU at least.
  
Locate BeagleV-Ahead IP address from your DHCP server or use '''nmap''' to locate the boards IP address.
+
==Locate Boards IP address==
<source lang=cli>
+
Locate BeagleV-Ahead IP address from your DHCP server or use '''nmap''' on another computer to locate the boards IP address.
 +
*nmap exists for Linux, Windows and Mac OS.
 +
<source lang=bash>
 
heth@h5:~$ nmap -sP 192.168.1.0/24
 
heth@h5:~$ nmap -sP 192.168.1.0/24
 
Starting Nmap 7.80 ( https://nmap.org ) at 2024-04-06 05:59 UTC
 
Starting Nmap 7.80 ( https://nmap.org ) at 2024-04-06 05:59 UTC
Nmap scan report for _gateway (192.168.1.1)
 
 
....
 
....
 
Nmap scan report for BeagleV.home (192.168.1.78)
 
Nmap scan report for BeagleV.home (192.168.1.78)
Line 13: Line 14:
 
Nmap done: 256 IP addresses (15 hosts up) scanned in 2.53 seconds
 
Nmap done: 256 IP addresses (15 hosts up) scanned in 2.53 seconds
 
</source>
 
</source>
nmap exists for Linux, Windows and Mac OS.
+
 
 
[[Category:Beagleboard]]
 
[[Category:Beagleboard]]
 +
 +
==Connecting to a new board==
 +
Login as root - no password
 +
<source lang=bash>
 +
heth@h5:~$ ssh -l root 192.168.1.78
 +
Last login: Sat Apr  6 05:53:52 2024 from 192.168.1.84
 +
root@BeagleV:~# uname -a
 +
Linux BeagleV 5.10.113-yocto-standard #1 SMP PREEMPT Sat Jun 10 03:53:19 UTC 2023 riscv64 GNU/Linux
 +
root@BeagleV:~# cat /etc/os-release
 +
ID=thead-c910
 +
NAME="THEAD C910 Release Distro"
 +
VERSION="1.1.2"
 +
VERSION_ID=1.1.2
 +
PRETTY_NAME="THEAD C910 Release Distro 1.1.2"
 +
BUILD_ID="20230609164851"
 +
HOME_URL="https://occ.t-head.cn/"
 +
root@BeagleV:~#
 +
</source>
 +
=Flashing eMMC=
 +
*See: https://docs.beagleboard.org/latest/boards/beaglev/ahead/02-quick-start.html#flashing-emmc
 +
Dowload latest Software Image from [https://www.beagleboard.org/boards/beaglev-ahead BeagleV-Ahead] to anotther computer and follow the instructions below. (I used my Linux computer to flash the BeagleV)
 +
#unzip image
 +
#install Android flash tools
 +
#run '''./fastboot_emmc.sh''' (In the unzipped image)
 +
#When script report it is waiting - boot beagleV-Ahead with USB botton down, until process starts.
 +
#Locate boards - perhaps new - IP address with nmap
 +
#Login with username '''beagle''' and password '''temppwd'''
 +
<source lang=bash>
 +
# cat /etc/os-release
 +
PRETTY_NAME="Ubuntu 23.04"
 +
NAME="Ubuntu"
 +
VERSION_ID="23.04"
 +
VERSION="23.04 (Lunar Lobster)"
 +
VERSION_CODENAME=lunar
 +
ID=ubuntu
 +
ID_LIKE=debian
 +
HOME_URL="https://www.ubuntu.com/"
 +
SUPPORT_URL="https://help.ubuntu.com/"
 +
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
 +
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
 +
UBUNTU_CODENAME=lunar
 +
LOGO=ubuntu-logo
 +
</source>
 +
==Upgrading image==
 +
<source lang=bash>
 +
# apt -y update
 +
# apt -y upgrade
 +
...
 +
dpkg: error processing archive /tmp/apt-dpkg-install-YBdbXw/01-libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb (--unpack):
 +
trying to overwrite '/usr/lib/riscv64-linux-gnu/libusbgx.so.2.0.0', which is also in package libusbgx 0.2.0-git20210811.3-0~lunar+20221228
 +
...
 +
Errors were encountered while processing:
 +
/tmp/apt-dpkg-install-YBdbXw/01-libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb
 +
E: Sub-process /usr/bin/dpkg returned an error code (1)
 +
</source>
 +
To resolve above issue see solution on [https://forum.beagleboard.org/t/beaglev-ahead-and-other-ideas-ubuntu-lunar-libusbgx/35697 BeagleV-Ahead and Other Ideas/Ubuntu Lunar/libusbgx]
 +
<source lang=bash>
 +
# dpkg -r libusbgx # remove the conflicting package
 +
# apt --fix-broken install # continue upgrade
 +
# apt upgrade
 +
Reading package lists... Done
 +
Building dependency tree... Done
 +
Reading state information... Done
 +
Calculating upgrade... Done
 +
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 +
# shutdown -r now
 +
</source>
 +
==Installing development packages==
 +
See [[C_linux_development]]

Latest revision as of 08:27, 7 April 2024

Without SD-Card - new

Plug ethernet to your network and power up the board from either USB-micro or the power plug. 5 volt 2 amps at least in documentation. But use 3 amps PSU at least.

Locate Boards IP address

Locate BeagleV-Ahead IP address from your DHCP server or use nmap on another computer to locate the boards IP address.

  • nmap exists for Linux, Windows and Mac OS.
heth@h5:~$ nmap -sP 192.168.1.0/24
Starting Nmap 7.80 ( https://nmap.org ) at 2024-04-06 05:59 UTC
....
Nmap scan report for BeagleV.home (192.168.1.78)
Host is up (0.0012s latency).
...
Nmap done: 256 IP addresses (15 hosts up) scanned in 2.53 seconds

Connecting to a new board

Login as root - no password

heth@h5:~$ ssh -l root 192.168.1.78
Last login: Sat Apr  6 05:53:52 2024 from 192.168.1.84
root@BeagleV:~# uname -a
Linux BeagleV 5.10.113-yocto-standard #1 SMP PREEMPT Sat Jun 10 03:53:19 UTC 2023 riscv64 GNU/Linux
root@BeagleV:~# cat /etc/os-release
ID=thead-c910
NAME="THEAD C910 Release Distro"
VERSION="1.1.2"
VERSION_ID=1.1.2
PRETTY_NAME="THEAD C910 Release Distro 1.1.2"
BUILD_ID="20230609164851"
HOME_URL="https://occ.t-head.cn/"
root@BeagleV:~#

Flashing eMMC

Dowload latest Software Image from BeagleV-Ahead to anotther computer and follow the instructions below. (I used my Linux computer to flash the BeagleV)

  1. unzip image
  2. install Android flash tools
  3. run ./fastboot_emmc.sh (In the unzipped image)
  4. When script report it is waiting - boot beagleV-Ahead with USB botton down, until process starts.
  5. Locate boards - perhaps new - IP address with nmap
  6. Login with username beagle and password temppwd
# cat /etc/os-release
PRETTY_NAME="Ubuntu 23.04"
NAME="Ubuntu"
VERSION_ID="23.04"
VERSION="23.04 (Lunar Lobster)"
VERSION_CODENAME=lunar
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=lunar
LOGO=ubuntu-logo

Upgrading image

# apt -y update
# apt -y upgrade
...
dpkg: error processing archive /tmp/apt-dpkg-install-YBdbXw/01-libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb (--unpack):
 trying to overwrite '/usr/lib/riscv64-linux-gnu/libusbgx.so.2.0.0', which is also in package libusbgx 0.2.0-git20210811.3-0~lunar+20221228
...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-YBdbXw/01-libusbgx2_0.2.0-2bbbio0~lunar+20230817_riscv64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

To resolve above issue see solution on BeagleV-Ahead and Other Ideas/Ubuntu Lunar/libusbgx

# dpkg -r libusbgx # remove the conflicting package
# apt --fix-broken install # continue upgrade
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# shutdown -r now

Installing development packages

See C_linux_development