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

From Teknologisk videncenter
Jump to: navigation, search
m (Installing development packages)
m (Installing development packages)
 
Line 148: Line 148:
 
         search: [hotdata]
 
         search: [hotdata]
 
         addresses: [8.8.8.8]
 
         addresses: [8.8.8.8]
</config>
+
</source>
 
See [[C_linux_development]]
 
See [[C_linux_development]]

Latest revision as of 13:39, 1 February 2025

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
    1. (Debian/Ubuntu): sudo apt-get install android-sdk-platform-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

vi /etc/apt/sources.list

deb https://old-releases.ubuntu.com/ubuntu lunar main universe multiverse
#deb-src http://ports.ubuntu.com/ lunar main universe multiverse

deb https://old-releases.ubuntu.com/ubuntu lunar-security main universe multiverse
#deb-src http://ports.ubuntu.com/ lunar-security main universe multiverse

deb https://old-releases.ubuntu.com/ubuntu lunar-updates main universe multiverse
#deb-src http://ports.ubuntu.com/ lunar-updates main universe multiverse

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp

#BeagleBoard.org Mirror on Cloudflare
deb [arch=riscv64 signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] https://debian.beagleboard.org/riscv64/ lunar main
#deb-src [arch=riscv64 signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] http://debian.beagleboard.org/riscv64/ lunar main

#Backup Mirror
deb [arch=riscv64 signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] https://repos.rcn-ee.com/debian-riscv64/ lunar main
#deb-src [arch=riscv64 signed-by=/usr/share/keyrings/rcn-ee-archive-keyring.gpg] http://repos.rcn-ee.com/debian-riscv64/ lunar main
# 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

From successfull installation

root@BeagleV:/home/beagle# history
    1  vi /etc/netplan/99_config.yaml
    2  chmod 600 /etc/netplan/99_config.yaml
    3  netplan apply
    4  vi /etc/apt/sources.list
    5  apt update
    6  apt upgrade
    7  apt --fix-broken install
    8  apt -f upgrade
    9  apt --fix-broken install
   10  apt --fix-missing install
   11  apt --fix-missing upgrade
   12  dpkg -r libusbgx
   13  apt --fix-broken install
   14  apt update
   15  apt upgrade
   16  apt install tmux
   17  history

99_config.yaml:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses:
        - 192.168.100.201/24
      routes:
        - to: default
          via: 192.168.100.1
      nameservers:
        search: [hotdata]
        addresses: [8.8.8.8]

See C_linux_development