You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

242 lines
7.8 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

1 sudo apt update
2 mkdir src/
3 cd src/
4 mkdir arcologos-infra
5 cd arcologos-infra/
6 uname -m && cat /etc/*release
7 uname -a
8 dpkg -l | grep linux-image
9 dpkg -l | grep linux-headers
10 sudo apt purge linux-image-6.2.0-26-generic
11 sudo vi /etc/default/grub
12 sudo update-grub
13 sudo vi /etc/default/grub
14 sudo update-grub
15 sudo reboot
16 uname -a
17 sudo vi /etc/default/grub
18 lsb_release
19 lsb_release -i
20 lsb_release -a
21 sudo update-grub
22 sudo reboot
23 ls
24 uname -a
25 sudo apt purge linux-image-6.2.0-26-generic
26 sudo apt purge linux-headers-6.2.0-26-generic
27 lspci -a
28 # Make the directory if it doesn't exist yet.
29 # This location is recommended by the distribution maintainers.
30 sudo mkdir --parents --mode=0755 /etc/apt/keyrings
31 # Download the key, convert the signing-key to a full
32 # keyring required by apt and store in the keyring directory
33 wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
34 # Kernel driver repository for jammy
35 sudo tee /etc/apt/sources.list.d/amdgpu.list <<'EOF'
36 deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/latest/ubuntu jammy main
37 EOF
38 # ROCm repository for jammy
39 sudo tee /etc/apt/sources.list.d/rocm.list <<'EOF'
40 deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/debian jammy main
41 EOF
42 # Prefer packages from the rocm repository over system packages
43 echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600
44 sudo apt update
45 wget https://repo.radeon.com/amdgpu-install/5.6/ubuntu/jammy/amdgpu-install_5.6.50600-1_all.deb
46 sudo apt install ./amdgpu-install_5.6.50600-1_all.deb
47 apt install rocm-opencl-runtime
48 sudo apt install rocm-opencl-runtime
49 sudo amdgpu-install --no-dkms --usecase=opencl
50 lspci -a
51 lspci
52 clinfo
53 sudo reboot
54 ls
55 lspci
56 clinfo
57 clinfo -l
58 uname -a
59 cat /etc/OpenCL/vendors/amdocl64_50600_67.icd
60 sudo clinfo -l
61 uname -a
62 amdgpu-install -h
63 lsmod
64 lsmod | grep gpu
65 ls /etc/modules/
66 ls /etc/modules
67 cat /etc/modules
68 lsmod
69 id
70 sudo usermod -G video -a $USER
71 sudo usermod -G render -a $USER
72 sudo vi /etc/grub.d/10_linux
73 sudo vi /boot/grub/grub.cfg
74 vi /etc/default/grub
75 sudo apt install -y wget apt-transport-https
76
77 sudo wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
78
79 echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
80 sudo apt update
81 sudo apt install element-desktop
82 element-desktop
83 clinfo -l
84 sudo clinfo -l
85 lspci
86 sudo amdgpu-install --no-dkms --usecase=opencl
87 sudo apt autoremove
88 clinfo
89 sudo clinfo
90 sudo dmesg
91 sudo dmesg | grep amd
92 sudo vi /etc/grub.d/10_linux
93 sudo vi /etc/grub.d/README
94 sudo vi /etc/grub.d/10_linux_zfs
95 sudo vi /etc/default/grub
96 sudo update-grub
97 sudo reboot
98 clinfo -l
99 sudo clinfo -l
100 sudo dmesg
101 sudo dmesg | grep amd
102 ls /usr/lib/firmware/amdgpu
103 sudo amdgpu-uninstall
104 ls
105 cd ~/Downloads/
106 ls
107 sudo dpkg -i ./amdgpu-install_5.5.50502-1_all.deb
108 sudo amdgpu-install --usecase=workstation --opencl=legacy,rocr -y --vulkan=pro
109 sudo reboot
110 lspci -k | grep -EA3 'VGA|3D|Display'
111 lspci -k | less
112 htop
113 top
114 sudo dmesg | grep amd
115 lsmod -k
116 lsmod
117 lspci -k
118 cd ~/Downloads/
119 ls
120 unzip amdvbflash_linux_4.71.zip
121 ls
122 chmod +x ./amdvbflash
123 ./amdvbflash
124 sudo ./amdvbflash
125 cd ~/src/arcologos-infra/
126 ls
127 sudo ./amdvbflash -i
128 mv ~/Downloads/amdvbflash .
129 ls
130 touch README.md
131 git init
132 git checkout -b main
133 git add README.md
134 git commit -m "first commit"
135 git remote add origin http://199.170.132.91:3000/learner-long-life/arcologos-infra.git
136 git push -u origin main
137 sudo apt install git
138 ls
139 git status
140 touch README.md
141 git init
142 git checkout -b main
143 git add README.md
144 git commit -m "first commit"
145 git remote add origin http://199.170.132.91:3000/learner-long-life/arcologos-infra.git
146 git push -u origin main
147 git config --global user.email "paulpham@yahoo.com"
148 git config --global user.name "Paul Pham"
149 git commit --amend
150 git push -u origin main
151 git push
152 git push --set-upstream origin main
153 git commit -m "First commit"
154 git push -u origin main
155 ls
156 vi README.md
157 history
158 ls
159 ./amdvbflash -i
160 sudo ./amdvbflash -i
161 mkdir GPUs
162 sudo ./amdvbflash -i > GPUs/ai-gpu-01.txt
163 cd GPUs/
164 ls
165 mkdir infos
166 mkdir firmwares
167 mv ~/Downloads/Gigabyte.R9390.8192.150605_1.rom firmwares/
168 cd ..
169 ls
170 mv amdvbflash GPUs/
171 cd GPUs/
172 ls
173 mv amdvbflash amdvbflash-linux
174 ls
175 sudo ./amdvbflash-linux
176 sudo ./amdvbflash-linux -pcie
177 sudo ./amdvbflash-linux -ai
178 sudo ./amdvbflash-linux -ai > infos/ai-gpu-01.txt
179 sudo ./amdvbflash-linux -h
180 sudo ./amdvbflash-linux -h | grep dump
181 sudo ./amdvbflash-linux -h | grep save
182 sudo ./amdvbflash-linux -h | grep output
183 ls
184 mkdir firmwares/originals
185 mkdir firmwares/current
186 sudo ./amdvbflash-linux -p 0 firmwares/current/ai-gpu-01.bin
187 sudo ./amdvbflash-linux -h | less
188 sudo ./amdvbflash-linux -s 0 firmwares/current/ai-gpu-01.bin
189 cat infos/ai-gpu-01.txt
190 cat ai-gpu-01.txt
191 mkdir runs
192 vi runs/ai-gpu-01.log
193 ls
194 cat ai-gpu-01.txt
195 rm ai-gpu-01.txt
196 git status
197 git add ../README.md
198 cd ..
199 git add GPUs/
200 git status
201 git commit -m "Add amdvbflash binary and BIOS dump and stats from ai-gpu-01."
202 git push
203 ls
204 cd GPUs/
205 ls
206 ls ..
207 ls firmwares/
208 git mv firmwares/Gigabyte.R9390.8192.150605_1.rom firmwares/originals/
209 ls
210 ls infos/
211 ls runs/
212 # sudo ./amdvbflash-linux -f 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom
213 ls firmwares/current/
214 ls -lh firmwares/current/
215 git status
216 sudo ./amdvbflash-linux -f 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend
217 sudo ./amdvbflash-linux ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend -f 0
218 sudo ./amdvbflash-linux ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend -f
219 sudo ./amdvbflash-linux -f
220 sudo ./amdvbflash-linux -p 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom
221 sudo ./amdvbflash-linux -p 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom -fv --logappend
222 ls
223 vi runs/ai-gpu-01.log
224 git add -u .
225 git status
226 git commit -m "Commit log of flashing ai-gpi-01.txt"
227 git push
228 git status
229 sudo reboot
230 cd src/
231 ls
232 cd arcologos-infra/
233 ls
234 cd GPUs/
235 ls
236 sudo dmesg
237 sudo dmesg | grep amd
238 which clinfo
239 sudo amdgpu-install --usecase=workstation --opencl=legacy,rocr -y --vulkan=pro
240 sudo apt install opencl
241 history > ~/src/arcologos-infra/bash_history.txt