<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=AIMLinux%2FBSP%2FLinux%2FMT8395%2Frecover_ubuntu</id>
		<title>AIMLinux/BSP/Linux/MT8395/recover ubuntu - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=AIMLinux%2FBSP%2FLinux%2FMT8395%2Frecover_ubuntu"/>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=AIMLinux/BSP/Linux/MT8395/recover_ubuntu&amp;action=history"/>
		<updated>2026-04-17T22:21:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=AIMLinux/BSP/Linux/MT8395/recover_ubuntu&amp;diff=36350&amp;oldid=prev</id>
		<title>Winston.huang: Created page with &quot;{{DISPLAYTITLE:How to Recover Ubuntu}}   == Set Up Ubuntu Host PC == On the Ubuntu host PC, follow these steps to install tools and configure your host PC:  * Install genio-to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=AIMLinux/BSP/Linux/MT8395/recover_ubuntu&amp;diff=36350&amp;oldid=prev"/>
				<updated>2024-07-22T09:13:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:How to Recover Ubuntu}}   == Set Up Ubuntu Host PC == On the Ubuntu host PC, follow these steps to install tools and configure your host PC:  * Install genio-to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:How to Recover Ubuntu}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Set Up Ubuntu Host PC ==&lt;br /&gt;
On the Ubuntu host PC, follow these steps to install tools and configure your host PC:&lt;br /&gt;
&lt;br /&gt;
* Install genio-tool and its dependencies. This is used to flash Ubuntu images to the target board.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Ubuntu 22.04&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install python3-pip&lt;br /&gt;
pip3 install --upgrade pip&lt;br /&gt;
sudo apt install fastboot&lt;br /&gt;
pip3 install -U genio-tools&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Add two new udev rules and add your user account to the '''&amp;lt;code&amp;gt;plugdev&amp;lt;/code&amp;gt;''' &amp;amp; '''&amp;lt;code&amp;gt;dialout&amp;lt;/code&amp;gt;''' group:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat &amp;lt;&amp;lt; EOT | sudo tee /etc/udev/rules.d/96-genio-board.rules&lt;br /&gt;
SUBSYSTEM==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0e8d&amp;quot;, ATTR{idProduct}==&amp;quot;201c&amp;quot;, MODE=&amp;quot;0660&amp;quot;, $ GROUP=&amp;quot;plugdev&amp;quot;&lt;br /&gt;
EOT&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt; EOT | sudo tee /etc/udev/rules.d/72-aiot.rules&lt;br /&gt;
SUBSYSTEM==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0e8d&amp;quot;, ATTR{idProduct}==&amp;quot;201c&amp;quot;, MODE=&amp;quot;0660&amp;quot;, TAG+=&amp;quot;uaccess&amp;quot;&lt;br /&gt;
SUBSYSTEM==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0e8d&amp;quot;, ATTR{idProduct}==&amp;quot;0003&amp;quot;, MODE=&amp;quot;0660&amp;quot;, TAG+=&amp;quot;uaccess&amp;quot;&lt;br /&gt;
SUBSYSTEM==&amp;quot;usb&amp;quot;, ATTR{idVendor}==&amp;quot;0403&amp;quot;, MODE=&amp;quot;0660&amp;quot;, TAG+=&amp;quot;uaccess&amp;quot;&lt;br /&gt;
SUBSYSTEM==&amp;quot;gpio&amp;quot;, MODE=&amp;quot;0660&amp;quot;, TAG+=&amp;quot;uaccess&amp;quot;&lt;br /&gt;
EOT&lt;br /&gt;
&lt;br /&gt;
sudo udevadm control --reload-rules&lt;br /&gt;
sudo udevadm trigger&lt;br /&gt;
sudo usermod -a -G plugdev,dialout $USER&lt;br /&gt;
# completely logout then re-login, or just reboot immediately&lt;br /&gt;
loginctl terminate-user $USER # *** desktop will be terminated ***&lt;br /&gt;
# sudo reboot&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* check if '''&amp;lt;code&amp;gt;20(dialout)&amp;lt;/code&amp;gt;''' and '''&amp;lt;code&amp;gt;46(plugdev)&amp;lt;/code&amp;gt;''' are list in the effective group ID ...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
id&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* check if the genio-tools does work&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
genio-config&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:make sure every item's result is '''OK'''&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background-color: lightgrey&amp;quot;&amp;gt;&lt;br /&gt;
  fastboot: OK&lt;br /&gt;
  udev rules: OK (md5: a3b2767b42ee01d7c62bf394400528ae)&lt;br /&gt;
  Serial device write access: OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Get Ubuntu Recovery Pack Ready==&lt;br /&gt;
* Obtain this pack through your local Advantech representative and extract it first.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
tar xvf ${RECOVERY_PACK}.tgz&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connect the Target Board to the Host PC ==&lt;br /&gt;
&lt;br /&gt;
* Confirm the power adaptor has been connected to the board.&lt;br /&gt;
* Use one Type-A to Type-A USB cable to connect the host PC and the target board (DOWNLOAD supported USB port)&lt;br /&gt;
* (optional) Use debug console to monitor flashing process&lt;br /&gt;
* Turn the target board power on&lt;br /&gt;
&lt;br /&gt;
== Flash Ubuntu Recovery Pack to the Target Board ==&lt;br /&gt;
&lt;br /&gt;
* First change directory(cd) to the revoery pack directory, and run genio-flash:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ${RECOVERY_PACK}&lt;br /&gt;
genio-flash&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The tool should have the following output:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; highlight=&amp;quot;1-10&amp;quot; style=&amp;quot;border: 2px dashed blue;&amp;quot;&amp;gt;&lt;br /&gt;
Looking for MediaTek SoC matching USB device 0e8d:0003&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:The line Looking for MediaTek SoC matching USB device 0e8d:0003 shows that genio-flash tool is waiting for the board to be reset into download mode to start the flash programming procedure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Follow these steps to enter download mode:&amp;lt;br&amp;gt;&lt;br /&gt;
::Press the DOWNLOAD button and hold it ...&amp;lt;br&amp;gt;&lt;br /&gt;
::Press and release the RESET button.&amp;lt;br&amp;gt;&lt;br /&gt;
:The flash tool should output the following messages:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; highlight=&amp;quot;1-10&amp;quot; style=&amp;quot;border: 2px dashed blue;&amp;quot;&amp;gt;&lt;br /&gt;
Jumping to bootstrap at address 0x201000 in AArch64 mode&lt;br /&gt;
flashing writable=rootfs.img&lt;br /&gt;
&amp;lt; waiting for any device &amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Release the DOWNLOAD button after the tool outputs '''&amp;lt;code&amp;gt;&amp;lt; waiting for any device &amp;gt;&amp;lt;/code&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
:The flash tool should continue with the following message, which shows the progress of writing image content to the storage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background-color: lightgrey&amp;quot;&amp;gt;&lt;br /&gt;
Sending sparse 'writable' 1/17 (261712 KB)         OKAY [  6.936s]&lt;br /&gt;
Writing 'writable'                                 OKAY [ 19.022s]&lt;br /&gt;
Sending sparse 'writable' 2/17 (262016 KB)         OKAY [  6.959s]&lt;br /&gt;
Writing 'writable'                                 OKAY [ 17.793s]&lt;br /&gt;
Sending sparse 'writable' 3/17 (261922 KB)         OKAY [  6.852s]&lt;br /&gt;
Writing 'writable'                                 OKAY [ 15.435s]&lt;br /&gt;
Sending sparse 'writable' 4/17 (253224 KB)         OKAY [  6.600s]&lt;br /&gt;
Writing 'writable'                                 OKAY [ 11.948s]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Eventually, the flash tool would report the following logs once it finishes writing the onboard storage and reboot the board:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;background-color: lightgrey&amp;quot;&amp;gt;&lt;br /&gt;
Sending sparse 'writable' 16/17 (262143 KB)        OKAY [  6.692s]&lt;br /&gt;
Writing 'writable'                                 OKAY [  9.236s]&lt;br /&gt;
Sending sparse 'writable' 17/17 (112636 KB)        OKAY [  2.916s]&lt;br /&gt;
Writing 'writable'                                 OKAY [  5.021s]&lt;br /&gt;
Finished. Total time: 539.208s&lt;br /&gt;
flashing ubuntu-boot=efi.img&lt;br /&gt;
Sending 'ubuntu-boot' (12803 KB)                   OKAY [  0.331s]&lt;br /&gt;
Writing 'ubuntu-boot'                              OKAY [  0.534s]&lt;br /&gt;
Finished. Total time: 0.876s&lt;br /&gt;
Rebooting                                          OKAY [  0.002s]&lt;br /&gt;
Finished. Total time: 0.052s&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Winston.huang</name></author>	</entry>

	</feed>