-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation.txt
More file actions
120 lines (77 loc) · 3.79 KB
/
installation.txt
File metadata and controls
120 lines (77 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Test setup installation
BuildBot & LabGrid:
Clone Linux-Driver-Testing repository:
git clone https://github.com/RohmSemiconductor/Linux-Driver-Testing.git
Install BuildBot master:
cd Linux-Driver-Testing/buildbot/master_root/
python3 -m venv sandbox
source sandbox/bin/activate
pip install --upgrade pip
pip install 'buildbot[bundle]'
pip install labgrid
buildbot upgrade-master /home/linuxtest/src/Linux-Driver-Testing/buildbot/master_root/master
Comment out 'c['services'].append(irc)', in 'master_root/master/master.cfg':
# c['services'].append(irc)
Change buildbot URL to localhost, in 'master_root/master/master.cfg':
# c['buildbotURL'] = ...
c['buildbotURL'] = "http://localhost:8010/"
NFS setup:
Install packages:
sudo dnf install nfs-utils libnfsidmap sssd-nfs-idmap
To configure a new BeagleBone Black used with test:
Create a file, f.ex 'beaglebone.yaml' with following content:
targets:
main:
resources:
USBSerialPort:
match:
ID_SERIAL_SHORT: "A800HGAQ"
drivers:
ManualPowerDriver:
name: "example"
SerialDriver: {}
ShellDriver:
prompt: '.*(debian|root)@arm:.*'
login_prompt: ' login: '
login_timeout: 75
username: 'root'
password: 'a'
Replace “A800HGAQ” with what is found with “lsusb -v” at the iSerial field
Test success of LabGrid / beaglebone.yaml with:
pytest --lg-env=beaglebone.yaml test_000_login.py --power_port=1 --beagle=beaglebone
Note: test_000_login.py requires the BeagleBone to be connected to IP power unit.
Note: tests are currently located at: … /Linux-Driver-Testing/buildbot/worker_root/worker1/tests/pmic
and this is about to change.
To try tests without having the IP power available, you can skip this step
by asserting the boot and logging in manually and try next step which installs “mva_overlay.ko” kernel module.
pytest --lg-env=beaglebone.yaml test_001_init_overlay.py
IMPORTART: Configure paths.py
Configure paths.py at “ … /Linux-Driver-Testing/buildbot/master_root/master/configs/ “
This file contains absolute paths to imporant directories! These must be defined correctly, and all must be defined
F.Ex:
dir_compiler_arm32="/home/kale/Linux-Driver-Testing/compilers/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf/bin/" <-- point to “bin/”
dir_nfs="/home/kale/nfs/"
dir_tftpboot="/var/lib/tftpboot/"
dir_worker_root="/home/kale/Linux-Driver-Testing/buildbot/worker_root/"
Modify startsbuildbot.sh and stopbuildbot.sh at … /Linux-Driver-Testing:
Change lines 4 and 8 to specify where the git repository is cloned to and
where the ‘sandbox’ virtual enviroments are installed to in eariler steps,
followed by '/bin/activate'.
Example: startbuildbot.sh:
#!/bin/bash
# Start master
source ~/Linux-Driver-Testing/buildbot/master_root/sandbox/bin/activate
buildbot start buildbot/master_root/master/
sleep 1
# Start worker
source ~/Linux-Driver-Testing/buildbot/worker_root/sandbox/bin/activate
buildbot-worker start buildbot/worker_root/worker1
Start BuildBot by running the script: $ ./startbuildbot.sh
Stop BuildBot by running the script: $ ./stopbuildbot.sh
Additional information can be found here: buildbot_doc.txt
Compiler for ARM32:
Compiler can be found here: https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Under:
x86_64 Linux hosted cross toolchains
AArch32 bare-metal target (arm-none-eabi)
At the moment server is using the Version 14.2.Rel1, Released: December 10, 2024.