Juniordss

mtk-update

Jul 25th, 2025 (edited)
1,815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.20 KB | None | 0 0
  1. <https://htmlpreview.github.io/?https://pastebin.com/raw/EHCQ4BqD>
  2. <!DOCTYPE html>
  3. <html lang="pt-br">
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Atualização de Firmware Mediatek no FydeOS</title>
  8.     <style>
  9.         body {
  10.             font-family: Arial, sans-serif;
  11.             margin: 0;
  12.             padding: 0;
  13.             background-color: #f3f9f7;
  14.             color: #333;
  15.         }
  16.         header {
  17.             background-color: #3e8e41;
  18.             color: white;
  19.             padding: 10px;
  20.             text-align: center;
  21.         }
  22.         .container {
  23.             padding: 20px;
  24.             max-width: 900px;
  25.             margin: auto;
  26.         }
  27.         .button-container {
  28.             text-align: center;
  29.             margin-bottom: 20px;
  30.         }
  31.         .button-container button {
  32.             background-color: #3e8e41;
  33.             color: white;
  34.             border: none;
  35.             padding: 10px 15px;
  36.             cursor: pointer;
  37.             border-radius: 4px;
  38.             margin: 0 5px;
  39.         }
  40.         .button-container button:hover {
  41.             background-color: #45a049;
  42.         }
  43.         h2 {
  44.             font-size: 1.5rem;
  45.             color: #444;
  46.         }
  47.         .step {
  48.             margin-bottom: 20px;
  49.         }
  50.         .code-block {
  51.             position: relative;
  52.             margin: 10px 0;
  53.         }
  54.         pre {
  55.             background-color: #eee;
  56.             padding: 10px;
  57.             border-radius: 5px;
  58.             overflow-x: auto;
  59.             font-family: monospace;
  60.         }
  61.         .copy-btn {
  62.             position: absolute;
  63.             top: 5px;
  64.             right: 5px;
  65.             background: #3e8e41;
  66.             color: white;
  67.             border: none;
  68.             padding: 5px 10px;
  69.             font-size: 0.8rem;
  70.             border-radius: 4px;
  71.             cursor: pointer;
  72.         }
  73.         .copy-btn:hover {
  74.             background: #45a049;
  75.         }
  76.         a.download-link {
  77.             color: #3e8e41;
  78.             text-decoration: none;
  79.             font-weight: bold;
  80.         }
  81.         a.download-link:hover {
  82.             text-decoration: underline;
  83.         }
  84.         footer {
  85.             background-color: #3e8e41;
  86.             color: white;
  87.             text-align: center;
  88.             padding: 10px;
  89.             position: fixed;
  90.             width: 100%;
  91.             bottom: 0;
  92.             display: flex;
  93.             align-items: center;
  94.             justify-content: center;
  95.             gap: 10px;
  96.         }
  97.         footer img {
  98.             width: 32px;
  99.             height: 32px;
  100.             border-radius: 50%;
  101.             border: 2px solid white;
  102.         }
  103.         img {
  104.             width: 100%;
  105.             max-width: 600px;
  106.             border: 1px solid #ccc;
  107.             margin: 10px 0;
  108.         }
  109.         .alert {
  110.             background-color: #ffe9b3;
  111.             padding: 10px;
  112.             border-left: 5px solid #ffa500;
  113.             margin-bottom: 20px;
  114.             border-radius: 5px;
  115.         }
  116.     </style>
  117. </head>
  118. <body>
  119.  
  120. <header>
  121.     <h1>Atualização de Firmware Mediatek no FydeOS</h1>
  122. </header>
  123.  
  124. <div class="container">
  125.     <div class="button-container">
  126.         <button onclick="changeLanguage('pt')">Português</button>
  127.         <button onclick="changeLanguage('en')">English</button>
  128.     </div>
  129.  
  130.     <!-- Português -->
  131.     <div id="pt">
  132.         <div class="alert">
  133.             <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.
  134.         </div>
  135.         <img src="https://i.postimg.cc/L8H2zpB8/wifi-list.png" alt="Exemplo de lista de redes Wi-Fi não aparecendo no FydeOS">
  136.         <h2>Passos para Atualizar o Firmware</h2>
  137.         <div class="step">
  138.             <h3>1. Ativar o Modo Desenvolvedor</h3>
  139.             <p>Para começar, ative o modo desenvolvedor e reinicie o sistema.</p>
  140.             <img src="https://i.postimg.cc/zf7NdP7F/fydeos-settings.png" alt="Ativar modo desenvolvedor no FydeOS">
  141.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>Ctrl + Alt + T -> Abrir o terminal</pre></div>
  142.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>shell</pre></div>
  143.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo -i</pre></div>
  144.         </div>
  145.         <div class="step">
  146.             <h3>2. Desabilitar a Verificação de Sistema</h3>
  147.             <p>Desabilite a verificação do sistema para permitir modificações no firmware:</p>
  148.             <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>
  149.         </div>
  150.         <div class="step">
  151.             <h3>3. Remontar o Sistema de Arquivos</h3>
  152.             <p>Remonte o sistema de arquivos com permissão de leitura e escrita:</p>
  153.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo mount -o remount,rw /</pre></div>
  154.         </div>
  155.         <div class="step">
  156.             <h3>4. Baixar e Copiar os Arquivos de Firmware</h3>
  157.             <p>Baixe os arquivos de firmware Mediatek no repositório oficial:</p>
  158.             <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>
  159.             <p>Exemplo de arquivos:</p>
  160.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>WIFI_MT7961_patch_mcu_1_2_hdr.bin</pre></div>
  161.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>WIFI_RAM_CODE_MT7961_1.bin</pre></div>
  162.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>BT_RAM_CODE_MT7961_1_2_hdr.bin</pre></div>
  163.             <p>Entre na pasta onde estão os arquivos baixados:</p>
  164.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>cd /home/chronos/user/MyFiles/Downloads</pre></div>
  165.             <p>Copie os arquivos para o diretório <code>/lib/firmware/mediatek</code>:</p>
  166.             <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>
  167.             <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>
  168.             <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>
  169.             <img src="https://i.postimg.cc/JnRn0k6P/files-folder.png" alt="Arquivos na pasta Downloads">
  170.         </div>
  171.         <div class="step">
  172.             <h3>5. Ajustar Permissões</h3>
  173.             <p>Ajuste as permissões dos arquivos para garantir o acesso correto:</p>
  174.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo chown root:root /lib/firmware/mediatek/*</pre></div>
  175.         </div>
  176.         <div class="step">
  177.             <h3>6. Reiniciar o Sistema</h3>
  178.             <p>Reinicie o sistema para aplicar as alterações:</p>
  179.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copiar</button><pre>sudo reboot</pre></div>
  180.             <img src="https://i.postimg.cc/fLHwbg0R/ethernet-connected.png" alt="Rede conectada">
  181.         </div>
  182.     </div>
  183.  
  184.     <!-- English -->
  185.     <div id="en" style="display:none;">
  186.         <div class="alert">
  187.             <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.
  188.         </div>
  189.         <img src="https://i.postimg.cc/L8H2zpB8/wifi-list.png" alt="Wi-Fi networks not showing on FydeOS">
  190.         <h2>Steps to Update the Firmware</h2>
  191.         <div class="step">
  192.             <h3>1. Enable Developer Mode</h3>
  193.             <p>To begin, enable developer mode and restart the system.</p>
  194.             <img src="https://i.postimg.cc/zf7NdP7F/fydeos-settings.png" alt="Enable developer mode on FydeOS">
  195.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>Ctrl + Alt + T -> Open the terminal</pre></div>
  196.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>shell</pre></div>
  197.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo -i</pre></div>
  198.         </div>
  199.         <div class="step">
  200.             <h3>2. Disable System Verification</h3>
  201.             <p>Disable system verification to allow modifications to the firmware:</p>
  202.             <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>
  203.         </div>
  204.         <div class="step">
  205.             <h3>3. Remount the File System</h3>
  206.             <p>Remount the file system with read and write permissions:</p>
  207.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo mount -o remount,rw /</pre></div>
  208.         </div>
  209.         <div class="step">
  210.             <h3>4. Download and Copy the Firmware Files</h3>
  211.             <p>Download Mediatek firmware files from the official repository:</p>
  212.             <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>
  213.             <p>Example files:</p>
  214.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>WIFI_MT7961_patch_mcu_1_2_hdr.bin</pre></div>
  215.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>WIFI_RAM_CODE_MT7961_1.bin</pre></div>
  216.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>BT_RAM_CODE_MT7961_1_2_hdr.bin</pre></div>
  217.             <p>Navigate to the folder where the files were downloaded:</p>
  218.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>cd /home/chronos/user/MyFiles/Downloads</pre></div>
  219.             <p>Copy the files to the <code>/lib/firmware/mediatek</code> directory:</p>
  220.             <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>
  221.             <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>
  222.             <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>
  223.             <img src="https://i.postimg.cc/JnRn0k6P/files-folder.png" alt="Firmware files in the Downloads folder">
  224.         </div>
  225.         <div class="step">
  226.             <h3>5. Adjust Permissions</h3>
  227.             <p>Adjust the file permissions to ensure proper access:</p>
  228.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo chown root:root /lib/firmware/mediatek/*</pre></div>
  229.         </div>
  230.         <div class="step">
  231.             <h3>6. Restart the System</h3>
  232.             <p>Restart the system to apply the changes:</p>
  233.             <div class="code-block"><button class="copy-btn" onclick="copyCode(this)">Copy</button><pre>sudo reboot</pre></div>
  234.             <img src="https://i.postimg.cc/fLHwbg0R/ethernet-connected.png" alt="Network connected">
  235.         </div>
  236.     </div>
  237. </div>
  238.  
  239. <footer>
  240.     <a href="https://pastebin.com/u/Juniordss" target="_blank">
  241.         <img src="https://pastebin.com/cache/img/25/2/20/8453956.jpg" alt="Juniordss's profile on Pastebin">
  242.     </a>
  243.     <p><a href="https://pastebin.com/u/Juniordss" target="_blank" style="color: white; text-decoration: none;">Juniordss's profile on Pastebin</a></p>
  244. </footer>
  245.  
  246. <script>
  247.     function changeLanguage(lang) {
  248.         document.getElementById('pt').style.display = lang === 'pt' ? 'block' : 'none';
  249.         document.getElementById('en').style.display = lang === 'en' ? 'block' : 'none';
  250.     }
  251.  
  252.     function copyCode(button) {
  253.         const code = button.nextElementSibling.innerText;
  254.         navigator.clipboard.writeText(code);
  255.         button.innerText = langText(button.innerText);
  256.         setTimeout(() => button.innerText = resetText(), 2000);
  257.     }
  258.  
  259.     function langText(current) {
  260.         return (document.getElementById('pt').style.display === 'block') ? "Copiado!" : "Copied!";
  261.     }
  262.  
  263.     function resetText() {
  264.         return (document.getElementById('pt').style.display === 'block') ? "Copiar" : "Copy";
  265.     }
  266. </script>
  267.  
  268. </body>
  269. </html>
  270.  
Advertisement
Add Comment
Please, Sign In to add comment