Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <https://htmlpreview.github.io/?https://pastebin.com/raw/EHCQ4BqD>
- <!DOCTYPE html>
- <html lang="pt-br">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Atualização de Firmware Mediatek no FydeOS</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- margin: 0;
- padding: 0;
- background-color: #f3f9f7;
- color: #333;
- }
- header {
- background-color: #3e8e41;
- color: white;
- padding: 10px;
- text-align: center;
- }
- .container {
- padding: 20px;
- max-width: 900px;
- margin: auto;
- }
- .button-container {
- text-align: center;
- margin-bottom: 20px;
- }
- .button-container button {
- background-color: #3e8e41;
- color: white;
- border: none;
- padding: 10px 15px;
- cursor: pointer;
- border-radius: 4px;
- margin: 0 5px;
- }
- .button-container button:hover {
- background-color: #45a049;
- }
- h2 {
- font-size: 1.5rem;
- color: #444;
- }
- .step {
- margin-bottom: 20px;
- }
- .code-block {
- position: relative;
- margin: 10px 0;
- }
- pre {
- background-color: #eee;
- padding: 10px;
- border-radius: 5px;
- overflow-x: auto;
- font-family: monospace;
- }
- .copy-btn {
- position: absolute;
- top: 5px;
- right: 5px;
- background: #3e8e41;
- color: white;
- border: none;
- padding: 5px 10px;
- font-size: 0.8rem;
- border-radius: 4px;
- cursor: pointer;
- }
- .copy-btn:hover {
- background: #45a049;
- }
- a.download-link {
- color: #3e8e41;
- text-decoration: none;
- font-weight: bold;
- }
- a.download-link:hover {
- text-decoration: underline;
- }
- footer {
- background-color: #3e8e41;
- color: white;
- text-align: center;
- padding: 10px;
- position: fixed;
- width: 100%;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 10px;
- }
- footer img {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- border: 2px solid white;
- }
- img {
- width: 100%;
- max-width: 600px;
- border: 1px solid #ccc;
- margin: 10px 0;
- }
- .alert {
- background-color: #ffe9b3;
- padding: 10px;
- border-left: 5px solid #ffa500;
- margin-bottom: 20px;
- border-radius: 5px;
- }
- </style>
- </head>
- <body>
- <header>
- <h1>Atualização de Firmware Mediatek no FydeOS</h1>
- </header>
- <div class="container">
- <div class="button-container">
- <button onclick="changeLanguage('pt')">Português</button>
- <button onclick="changeLanguage('en')">English</button>
- </div>
- <!-- Português -->
- <div id="pt">
- <div class="alert">
- <b>Resumo:</b> Se o Wi-Fi não aparece no FydeOS, é provável que a placa <b>Mediatek MT7921</b> não tenha drivers instalados. Este guia mostra como adicionar o firmware correto.
- </div>
- <img src="https://i.postimg.cc/L8H2zpB8/wifi-list.png" alt="Exemplo de lista de redes Wi-Fi não aparecendo no FydeOS">
- <h2>Passos para Atualizar o Firmware</h2>
- <div class="step">
- <h3>1. Ativar o Modo Desenvolvedor</h3>
- <p>Para começar, ative o modo desenvolvedor e reinicie o sistema.</p>
- <img src="https://i.postimg.cc/zf7NdP7F/fydeos-settings.png" alt="Ativar modo desenvolvedor no FydeOS">
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>Ctrl + Alt + T -> Abrir o terminal</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>shell</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo -i</pre></div>
- </div>
- <div class="step">
- <h3>2. Desabilitar a Verificação de Sistema</h3>
- <p>Desabilite a verificação do sistema para permitir modificações no firmware:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>/usr/sbin/crossystem_mode-switch.sh disable-rootfs-verification</pre></div>
- </div>
- <div class="step">
- <h3>3. Remontar o Sistema de Arquivos</h3>
- <p>Remonte o sistema de arquivos com permissão de leitura e escrita:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo mount -o remount,rw /</pre></div>
- </div>
- <div class="step">
- <h3>4. Baixar e Copiar os Arquivos de Firmware</h3>
- <p>Baixe os arquivos de firmware Mediatek no repositório oficial:</p>
- <p><a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek" class="download-link" target="_blank">Acessar repositório de firmware Mediatek</a></p>
- <p>Exemplo de arquivos:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>WIFI_MT7961_patch_mcu_1_2_hdr.bin</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>WIFI_RAM_CODE_MT7961_1.bin</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>BT_RAM_CODE_MT7961_1_2_hdr.bin</pre></div>
- <p>Entre na pasta onde estão os arquivos baixados:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>cd /home/chronos/user/MyFiles/Downloads</pre></div>
- <p>Copie os arquivos para o diretório <code>/lib/firmware/mediatek</code>:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo cp WIFI_MT7961_patch_mcu_1_2_hdr.bin /lib/firmware/mediatek</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo cp WIFI_RAM_CODE_MT7961_1.bin /lib/firmware/mediatek</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo cp BT_RAM_CODE_MT7961_1_2_hdr.bin /lib/firmware/mediatek</pre></div>
- <img src="https://i.postimg.cc/JnRn0k6P/files-folder.png" alt="Arquivos na pasta Downloads">
- </div>
- <div class="step">
- <h3>5. Ajustar Permissões</h3>
- <p>Ajuste as permissões dos arquivos para garantir o acesso correto:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo chown root:root /lib/firmware/mediatek/*</pre></div>
- </div>
- <div class="step">
- <h3>6. Reiniciar o Sistema</h3>
- <p>Reinicie o sistema para aplicar as alterações:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo reboot</pre></div>
- <img src="https://i.postimg.cc/fLHwbg0R/ethernet-connected.png" alt="Rede conectada">
- </div>
- </div>
- <!-- English -->
- <div id="en" style="display:none;">
- <div class="alert">
- <b>Summary:</b> If Wi-Fi is not detected in FydeOS, your <b>Mediatek MT7921</b> wireless card likely has no drivers installed. This guide shows how to install the proper firmware.
- </div>
- <img src="https://i.postimg.cc/L8H2zpB8/wifi-list.png" alt="Wi-Fi networks not showing on FydeOS">
- <h2>Steps to Update the Firmware</h2>
- <div class="step">
- <h3>1. Enable Developer Mode</h3>
- <p>To begin, enable developer mode and restart the system.</p>
- <img src="https://i.postimg.cc/zf7NdP7F/fydeos-settings.png" alt="Enable developer mode on FydeOS">
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>Ctrl + Alt + T -> Open the terminal</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>shell</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo -i</pre></div>
- </div>
- <div class="step">
- <h3>2. Disable System Verification</h3>
- <p>Disable system verification to allow modifications to the firmware:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>/usr/sbin/crossystem_mode-switch.sh disable-rootfs-verification</pre></div>
- </div>
- <div class="step">
- <h3>3. Remount the File System</h3>
- <p>Remount the file system with read and write permissions:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo mount -o remount,rw /</pre></div>
- </div>
- <div class="step">
- <h3>4. Download and Copy the Firmware Files</h3>
- <p>Download Mediatek firmware files from the official repository:</p>
- <p><a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek" class="download-link" target="_blank">Access Mediatek firmware repository</a></p>
- <p>Example files:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>WIFI_MT7961_patch_mcu_1_2_hdr.bin</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>WIFI_RAM_CODE_MT7961_1.bin</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>BT_RAM_CODE_MT7961_1_2_hdr.bin</pre></div>
- <p>Navigate to the folder where the files were downloaded:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>cd /home/chronos/user/MyFiles/Downloads</pre></div>
- <p>Copy the files to the <code>/lib/firmware/mediatek</code> directory:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo cp WIFI_MT7961_patch_mcu_1_2_hdr.bin /lib/firmware/mediatek</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo cp WIFI_RAM_CODE_MT7961_1.bin /lib/firmware/mediatek</pre></div>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo cp BT_RAM_CODE_MT7961_1_2_hdr.bin /lib/firmware/mediatek</pre></div>
- <img src="https://i.postimg.cc/JnRn0k6P/files-folder.png" alt="Firmware files in the Downloads folder">
- </div>
- <div class="step">
- <h3>5. Adjust Permissions</h3>
- <p>Adjust the file permissions to ensure proper access:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo chown root:root /lib/firmware/mediatek/*</pre></div>
- </div>
- <div class="step">
- <h3>6. Restart the System</h3>
- <p>Restart the system to apply the changes:</p>
- <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo reboot</pre></div>
- <img src="https://i.postimg.cc/fLHwbg0R/ethernet-connected.png" alt="Network connected">
- </div>
- </div>
- </div>
- <footer>
- <a href="https://pastebin.com/u/Juniordss" target="_blank">
- <img src="https://pastebin.com/cache/img/25/2/20/8453956.jpg" alt="Juniordss's profile on Pastebin">
- </a>
- <p><a href="https://pastebin.com/u/Juniordss" target="_blank" style="color: white; text-decoration: none;">Juniordss's profile on Pastebin</a></p>
- </footer>
- <script>
- function changeLanguage(lang) {
- document.getElementById('pt').style.display = lang === 'pt' ? 'block' : 'none';
- document.getElementById('en').style.display = lang === 'en' ? 'block' : 'none';
- }
- function copyCode(button) {
- const code = button.nextElementSibling.innerText;
- navigator.clipboard.writeText(code);
- button.innerText = langText(button.innerText);
- setTimeout(() => button.innerText = resetText(), 2000);
- }
- function langText(current) {
- return (document.getElementById('pt').style.display === 'block') ? "Copiado!" : "Copied!";
- }
- function resetText() {
- return (document.getElementById('pt').style.display === 'block') ? "Copiar" : "Copy";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment