# How to test SMG V0.7
## item
A. login in and update test code!
B. function test on SMG
C. exit to test
D. appendix 1 :check CPU temperature you can check with this command!
E. appendix 2: HDMI pattern generator for testing
F. appendix 3: install SMG OS SOP
G. appendix 4: Burn in test
## A. login in and update test code!
login into system first.
Any time,If system ask you password and account name,the default account is ==pi== ans password is ==raspberry==
otherwise, if you don’t want to type account/password to login system every time,you can use following command to avoid ~ **this will be effective form next time booting.**
```
sudo cp /home/pi/test/getty@tty1.service.d/autologin.conf /etc/systemd/system/getty@tty1.service.d/noclear.conf
```
### (先確認網路可連線出去)
### 更新程式 0.61 to 0.7 並更新完成後帶起測試程式~請參考下圖照做

更新 指令:
1225 cd /home/pi/
1226 rm -rf test
1227 git clone https://github.com/hsiaojung/test
1229 cd /home/pi/
1257 sudo python3 test/test.py
---------
## B. function test on SMG
First, you should check SMG test program version
to latest version.
currently version is 0.7
#### Please input 98 to test all

#### it will show result after test done

# C.exit to test
#### Any time, if you don’t want to test unit,you just input “ctrl-c” to exit this Program .
# D. appendix 1
if you want to check CPU temperature you can check with this command!

# E appendix 2: HDMI pattern generator for testing
you can see this pattern

# F. appendix 3: install OS!
The original and detail OS install SOP is beside this file called rpi_compute_modules instruction.pdf.
Our aewin install OS is called “smg01_v061.img !!”
so, you just need to replace the raw_os_image_of_your_choice.img to smg01_v061.img !
sudo git clone --depth=1 https://github.com/raspberrypi/tools
Example : ==sudo dd if=./smg01_v061.img of=/dev/sdd status=progress==
==Aewin OS: smg01_v061.img==
==客人的 OS:smg4g_20190116.img==
都在 9998掃瞄上傳/SE00軟體研發處/02-Project/SMG 下
:::
:::info
following is Screenshot form rpi_compute_modules instruction.pdf for you to install OS !
:::



# G. appendix 4: Burn in test
in console, you can type command to do test!
##### sudo memtester ==800M== ==17== | tee /tmp/log
:::example:::

The "800M" is mean how much memory you want to test.
The 17 is for time parameter, and it takes 8 hours to run the test.