![]() We stick the flash drive into the computer and run lsblk Now we need a clone of a working flash drive from raspberry. I use gcc-linaro-5.4.1–2017.05-x86_64_arm-linux-gnueabihf tested in battle, but you can try any one that suits the requirements of Qt. Unpack it somewhere.ĭownload the gcc compiler for ABI arm-linux-generic-elf-32bit. I put the paths used to build the process into a separate script with environment variables.ĭownload the *.tar.xz archive with Qt sources from here. Preparing the environment for me personally consists of creating directories with the Qt source code, a cross-compiler, a copy of the raspberry system section, and linking all this in scripts that make life easier. The Qt build consists of four parts: preparing the environment, configuring, building, and installing. It can be used on a wide range of OS and computer architectures ģ. Allows you to build very decent user interfaces (GUIs) Ģ. Well, now we proceed to the very essence of the process. ![]() In general, I was very pleased with the fact that the screen wound up with a half-kick and works well even without any calibration.Īfter the reboot, we see that the screen shows us the console, and then the graphical she Note that you can run the adafruit-pitft.sh script again at any time, it will just cause a screen reconfiguration. Next, the script downloads something, installs it, thinks about something, and asks for a reboot. In the third dialog, I noticed that I did not need HDMI. And later you have to pick out the turn that you need. For the first time, you can choose just something. The second dialog prompts you to select a screen rotation. The first dialogue gives us the choice between screen types. But tightly, nevertheless, electronics is the science of contacts.Īctually, the steps to turn on the screen in the software are described here, but it makes sense to bring them here briefly.Ī script is launched and offers us to pick settings for the screen driver. We will wait for the completion of these commands and the raspberry is ready for use. There is a couple of commands for this: sudo apt update sudo apt upgrade It also makes sense to update all the software on the raspberry. Next, go to the item “Advanced Options”, sub-item “Expand Filesystem”, we also answer in the affirmative in the appeared dialog. We choose the affirmative action in dialog. Use the arrows on the keyboard to select “Interfacing Options”, sub-item “Ssh”. Qt takes a lot of space and just cannot fit on default filesystem partitioning.Ī simple application appears. Next, to finish the configuration, you need to enable ssh access on an ongoing basis and expand the file system to the entire flash drive with the raspi-config utility. It is strongly recommended you to change it immediately. By default, raspberry is used as the password. Well, now we can connect to the RPi via ssh: ssh MAC Address: B8: 27: EB: A0: 50: 9E (Raspberry Pi Foundation) We will see a list of all the hosts on the network, and if the RPi has connected to WiFi, we will find something like this in the list: Nmap scan report for 192.168.20.49 Of course, you will need to substitute your own network in this command instead of mine. In order to find out the IP address of our RPi, we can use the nmap utility in this way: sudo nmap -sP 192.168.20.0/24 Be sure that there is no empty line at the end of the file (once the RPi was unable to boot precisely because of this). We add a description of our WiFi network with access credentials to the new network section (the first one can be used as an example). It describes the settings for connecting to wireless networks. We go into the system partition in the directory /etc/wpa_supplicant. You need slightly different witchcraft to make RPi to use Your WiFI. Seeing this file, RPi will allow us to log in via ssh, but only until the next reboot. In order for a single-board player to allow access via ssh, we create a file named ssh in the boot partition. The boot is small and has FAT32 file system partition and system partition with ext4 filesystem on it. It will be mounted as two partitions: boot and system. We insert the flash drive into the computer again. What’s next? The device doesn’t know our WiFi credentials, we don’t know its IP-address, and it will not allow us to access it via ssh even with a cable connection. ![]() The device victoriously blinks with LEDs. Insert the flash drive and turn the RPi on. Copy the image using the dd utility to the USB flash drive. Download the Raspbian image archive from the official site and unpack it.
0 Comments
Leave a Reply. |