{"id":70828,"date":"2024-08-23T04:35:32","date_gmt":"2024-08-23T04:35:32","guid":{"rendered":"https:\/\/vladimirantonini.com\/?p=70828"},"modified":"2024-08-23T04:35:32","modified_gmt":"2024-08-23T04:35:32","slug":"boot-raspberry-pi-4-pela-usb","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=70828","title":{"rendered":"Boot Raspberry Pi 4 pela USB"},"content":{"rendered":"<p style=\"text-align: justify;\">Diferentemente dos modelos anteriores, a Raspberry Pi 4 Model B n\u00e3o suportava a inicializa\u00e7\u00e3o (boot) do sistema operacional pela USB (pen drive ou ssd externo). Recentemente, uma atualiza\u00e7\u00e3o de firmware (vers\u00e3o beta) com a corre\u00e7\u00e3o desse problema foi lan\u00e7ada permitindo usar a entrada USB 3.0, exclusiva da Raspberry Pi 4 Model B, para inicializar o sistema operacional.<!--more--><\/p>\n<p><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/Raspberyy-Pi-4.jpg.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70829 size-full\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/Raspberyy-Pi-4.jpg.webp\" alt=\"\" width=\"512\" height=\"220\"\/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Material necess\u00e1rio<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li>Raspberry Pi 4 Model B Anatel (4GB)<\/li>\n<li>Cart\u00e3o de Mem\u00f3ria Classe 10 32 GB MicroSd<\/li>\n<li>Pendrive Nano Preto Multilaser (16 GB ou 32 GB) (preferencialmente USB 3.0)<\/li>\n<li>Fonte DC Chaveada 5V 3A USB Tipo C<\/li>\n<li>Cabo HDMI-micro HDMI e\/ou Adaptador HDMI-micro HDMI (caso j\u00e1 possua cabo HDMI)<\/li>\n<li>Teclado<\/li>\n<li>Mouse<\/li>\n<li>TV ou monitor com entrada HDMI<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Primeira etapa: baixar e gravar o Raspberry Pi OS no cart\u00e3o microSD<\/strong><br \/>\nPara instalar a atualiza\u00e7\u00e3o de firmware \u00e9 preciso do sistema operacional. Como ainda n\u00e3o podemos usar a USB, iremos inicializar o sistema operacional pelo cart\u00e3o microSD.<\/p>\n<ol>\n<li style=\"text-align: justify;\">Baixe sua vers\u00e3o preferida do Raspberry Pi OS (antigo Raspbian). Usei o Raspberry Pi OS (32-bit) with desktop.<\/li>\n<li style=\"text-align: justify;\">Baixe e instale\/execute, de acordo com o sistema operacional, o aplicativo Balena Etcher.<\/li>\n<li style=\"text-align: justify;\">Insira o cart\u00e3o microSD no computador ou notebook. Abra o aplicativo Balena Etcher. Clique em Flash from file.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/2-balena_sdcard-e1593455594393.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70830 size-full\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/2-balena_sdcard-e1593455594393.png.webp\" alt=\"\" width=\"500\" height=\"324\"\/><\/a>Selecione o arquivo, no meu caso 2020-05-27-raspios-buster-armhf.zip. Clique em Abrir. Clique em Flash. Aguarde a conclus\u00e3o do processo.<\/p>\n<p><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/4-balena_sdcard-e1593455705676.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70831 size-full\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/4-balena_sdcard-e1593455705676.png.webp\" alt=\"\" width=\"500\" height=\"324\"\/><\/a><\/p>\n<p style=\"text-align: justify;\">Remova com seguran\u00e7a o cart\u00e3o microSD. Insira na Raspberry Pi 4.<\/p>\n<p style=\"text-align: justify;\"><strong>Segunda etapa: instalar atualiza\u00e7\u00e3o de firmware<\/strong><br \/>\nConecte: teclado, mouse, TV ou monitor (via HDMI), opcionalmente cabo de rede (Ethernet) e por \u00faltimo a fonte de energia. Ap\u00f3s algum tempo, voc\u00ea ver\u00e1 a tela a seguir.<\/p>\n<p style=\"text-align: justify;\">Caso n\u00e3o esteja usando cabo de rede, configure a rede WiFi dispon\u00edvel. Clique em Terminal.<\/p>\n<ol style=\"text-align: justify;\">\n<li>Digite o comando sudo apt update &amp;&amp; sudo apt full-upgrade -y. Pressione a tecla Enter.<\/li>\n<li>Digite o comando sudo nano \/etc\/default\/rpi-eeprom-update. Pressione a tecla Enter.<\/li>\n<li>Altere a linha para FIRMWARE_RELEASE_STATUS=\u201dbeta\u201d. Pressione a combina\u00e7\u00e3o de teclas CTRL + X para sair. Pressione a tecla Y seguida pela tecla Enter para salvar.<\/li>\n<li>Digite o comando\n<pre>sudo rpi-eeprom-update -d -f \/lib\/firmware\/raspberrypi\/bootloader\/beta\/pieeprom-2020-05-15.bin.<\/pre>\n<\/li>\n<li>Pressione a tecla Enter.<\/li>\n<li>Digite o comando reboot. Pressione a tecla Enter.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><strong>Terceira etapa: verificar vers\u00e3o do firmware<\/strong><br \/>\nAp\u00f3s algum tempo, voc\u00ea ver\u00e1 novamente a tela a seguir.<\/p>\n<ol>\n<li style=\"text-align: justify;\">Clique em Terminal.<\/li>\n<li style=\"text-align: justify;\">Digite o comando vcgencmd bootloader_version. Pressione a tecla Enter.<\/li>\n<li style=\"text-align: justify;\">A data do firmware deve corresponder a mesma do arquivo pieeprom-2020-05-15.bin. No nosso caso May 15 2020.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/12-rasp-e1593455764781.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70832 size-full\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/12-rasp-e1593455764781.png.webp\" alt=\"\" width=\"500\" height=\"280\"\/><\/a><\/p>\n<ul>\n<li style=\"text-align: justify;\">Digite o comando sudo halt. Pressione a tecla Enter.<\/li>\n<li style=\"text-align: justify;\">Remova o cart\u00e3o SD da Raspberry Pi 4.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Quarta etapa: gravar o Raspberry Pi OS no dispositivo USB (pen drive ou ssd externo)<\/strong><br \/>\nAgora que instalamos a atualiza\u00e7\u00e3o de firmware, podemos inicializar o sistema operacional pela USB. Usei um pen drive.<\/p>\n<p style=\"text-align: justify;\">Insira o pendrive no computador ou notebook. Abra o aplicativo Balena Etcher. Clique em Flash from file e repita os mesmo passos da primeira etapa<\/p>\n<p style=\"text-align: justify;\"><strong>Quinta etapa: atualizar arquivos de firmware<\/strong><br \/>\nFa\u00e7a o download dos arquivos de firmware atualizados no reposit\u00f3rio Raspberry Pi Firmware. Copie os arquivos *.elf e *.dat da pasta \/boot para a parti\u00e7\u00e3o de inicializa\u00e7\u00e3o (\/boot) do dispositivo USB.<\/p>\n<ol>\n<li style=\"text-align: justify;\">Acesse o <a href=\"https:\/\/github.com\/raspberrypi\/firmware\" target=\"_blank\" rel=\"noopener\">reposit\u00f3rio Raspberry Pi Firmware<\/a>.<\/li>\n<li style=\"text-align: justify;\">Clique em Clone or Download.<\/li>\n<li style=\"text-align: justify;\">Clique em Download ZIP.<\/li>\n<li style=\"text-align: justify;\">Descompacte o arquivo firmware-master.zip.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/17-download.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70833\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/17-download.png-300x121.webp\" alt=\"\" width=\"560\" height=\"225\"\/><\/a><br \/>\nCopie todos os arquivos <strong>*.elf e *.dat<\/strong> da pasta <strong>firmware-master\/boot<\/strong>.<\/p>\n<p><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/18-copy.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70834\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/18-copy.png-300x114.webp\" alt=\"\" width=\"559\" height=\"213\"\/><\/a><\/p>\n<p style=\"text-align: justify;\">Para a pasta <strong>\/boot<\/strong> do seu dispositivos <strong>USB<\/strong>, no meu caso pendrive.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/19-copy-e1593456040895.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70835\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/19-copy-e1593456040895.png-300x113.webp\" alt=\"\" width=\"559\" height=\"210\"\/><\/a><br \/>\nSubstitua os arquivos se perguntado.<\/p>\n<p><a href=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/20-copy.png.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-70836 size-full\" src=\"https:\/\/vladimirantonini.com\/wp-content\/uploads\/2024\/08\/20-copy.png.webp\" alt=\"\" width=\"511\" height=\"319\"\/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Remova<\/strong> com seguran\u00e7a o pendrive. Insira na Raspberry Pi 4.<\/p>\n<p style=\"text-align: justify;\"><strong>Sexta etapa: fazer o boot da Raspberry Pi 4 pela USB<\/strong><br \/>\nConecte: teclado, mouse, TV ou monitor (via HDMI), opcionalmente cabo de rede (Ethernet) e por \u00faltimo a fonte de energia. Ap\u00f3s algum tempo, voc\u00ea ver\u00e1 a tela a seguir.<\/p>\n<p style=\"text-align: justify;\"><strong>Conclus\u00e3o<\/strong><br \/>\nEmbora a atualiza\u00e7\u00e3o do firmware seja beta, ou seja, ainda n\u00e3o est\u00e1 pronta, n\u00e3o foi lan\u00e7ada oficialmente e possivelmente possua erros e falhas. Permite a inicializa\u00e7\u00e3o da Raspberry Pi 4 Model B pela USB 3.0. Interessante para quem busca uma op\u00e7\u00e3o mais r\u00e1pida (em teoria) de armazenamento.<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Diferentemente dos modelos anteriores, a Raspberry Pi 4 Model B n\u00e3o suportava a inicializa\u00e7\u00e3o (boot) do sistema operacional pela USB (pen drive ou ssd externo). Recentemente, uma atualiza\u00e7\u00e3o de firmware (vers\u00e3o beta) com a corre\u00e7\u00e3o desse problema foi lan\u00e7ada permitindo usar a entrada USB 3.0, exclusiva da Raspberry Pi 4 Model B, para inicializar o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-70828","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/70828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70828"}],"version-history":[{"count":0,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/70828\/revisions"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}