In this lesson we are going to download and install 64-bit operating system on raspberry pi. Before we get started, 1
, 2
you need a raspberry pi 3 or 4, and a sd card. 3
We will write the os image into the sd card and boot the raspberry pi. To install the operating system, 4
, 5
we first download the image file. 6
For the time being, the 64-bit os is test version. 7
This is the download page. I will put the link into the resource of this lesson. 8
In this page, we are going to choose the latest version and click on the link. Here we choose zip file, 9
you can also download the torrent file if you like. Because I have downloaded the image, 10
I’m not going to download the image again. Once you are done, unzip the image file 11
and we will write the image into the sd card. 12
As you can see, this is os image 13
i've unzipped from zip file 14
Let's see how to install operating system. 15
The software we are going to use is called raspberry pi imager. 16
So I’m going to type raspberry pi imager in the search box, 17
and click on the link to go to the page. 18
Then we come down here and click on the link to download the imager. 19
Once you are done, we are going to install the imager. 20
So I'm going to run the program by double clicking it. 21
Click install to finish the installation. 22
Now we open the imager. 23
We click finish. 24
As you can see, this is the imager. First, Click choose os. I’m going to scroll down to the bottom 25
and click on use custom. Then we select the 64-bit os image we just downloaded 26
and click open. 27
Now we insert the sd card to the computer and click choose storage. Here shows the external storage 28
connected to the computer. 29
So we choose the correct device. 30
I’m going to click on write to start writing the image into the sd card. Again, 31
make sure this is the correct device and click yes to continue. 32
The process takes some time. I’m going to fast forward a little bit. 33
Once we are done writing, we are going to unplug the sd card and insert it to the raspberry pi. 34
Before we boot the raspberry pi, 35
we need to connect mouse, keyboard and monitor in order to install the os. 36
Then we are going to power it on. 37
Alright, 38
This is the first time we boot up the Raspberry Pi. 39
You may have a wizard window to configure the Raspberry Pi, such as adding a user and set password. 40
Since it's a quite simple process, I'm not going to show it here and also make sure that you have 41
internet connections. 42
since we are going to install some tools. The next thing is install gcc and debugger. 43
In this course, we are going to use gcc to assemble our programs and test them in the debugger. 44
To install gcc, 45
we open terminal and type sudo, install, gcc, 46
press enter. 47
As you can see, gcc is already installed. 48
I’m going to check the gcc version by typing gcc dash v, press enter. 49
you can see target is aarch64 linux gcc. 50
The next thing we are going to do is install the debugger. In this course, 51
I’m going to demonstrate the projects in the debugger. So we install ddd. 52
Press enter 53
Press y to continue. 54
Once we are done, we type ddd to launch the program. 55
So this is a debugger we are going to use in the following lectures. 56
We will talk about it in detail in the following lectures. 57
Now I’m going to display line numbers by clicking source and display line numbers. 58
If we want to issue commands, we come down to the bottom window and type commands here. 59
OK, now I'm going to close the debugger. 60
As for the text editor, I are going to be using visual studio code in this course. 61
You can choose other text editors you like. 62
To install visual studio code, we type install code and press enter. 63
The process takes some time. 64
Ok. The installation is done. To open the visual studio code. 65
We go to taskbar and click raspberry pi icon, then programming. 66
Here you can see visual studio code, 67
we click it to open visual studio code. 68
Since we need arm assembly syntax highlighting in the text editor, we come down to extensions 69
and install syntax highlighting. 70
So we type arm assembly in the search box. 71
There are lots of results here. 72
We are going to select arm. 73
And click install. 74
OK. 75
At this point, the configuration is done. In the next section, 76
we will start to create our first program. 77
I’ll see you in the next video.