From OpenSCADAWiki
Jump to: navigation, search
(LineageOS)
 
(33 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
'''Participants:''' [[User:RomanSavochenko|Roman Savochenko]]<br/>
 
'''Participants:''' [[User:RomanSavochenko|Roman Savochenko]]<br/>
 
'''Description:''' "Asus Nexus 7 II" — tablet computer of 2013 year edition with four-cores ARM-processor and sensor screen 7", released in conjunction of [http://en.wikipedia.org/wiki/Asus Asus] and [http://en.wikipedia.org/wiki/Google Google]. Purchased for tasks of OpenSCADA and [[Special:MyLanguage/Sub-projects/Adaption_to_Android|adapting it to work into the environment]] of [http://en.wikipedia.org/wiki/Android_(operating_system) OS Android] and hardware of modern multicore CPU of ARM-architecture.<br/>
 
'''Description:''' "Asus Nexus 7 II" — tablet computer of 2013 year edition with four-cores ARM-processor and sensor screen 7", released in conjunction of [http://en.wikipedia.org/wiki/Asus Asus] and [http://en.wikipedia.org/wiki/Google Google]. Purchased for tasks of OpenSCADA and [[Special:MyLanguage/Sub-projects/Adaption_to_Android|adapting it to work into the environment]] of [http://en.wikipedia.org/wiki/Android_(operating_system) OS Android] and hardware of modern multicore CPU of ARM-architecture.<br/>
 +
'''Managing task:''' [http://oscada.org/en/development/tasks/posts/tasks_forming_formirovanie_zadach/openscada_adapting_to_the_android_os_tablet_asus_nexus_7_ii_workout by the link]<br/>
 +
'''Materials:''' http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/<br/>
 
'''State of the support, related to [[Special:MyLanguage/Sub-projects/Adaption_to_Android|the Android sub-project]]:'''
 
'''State of the support, related to [[Special:MyLanguage/Sub-projects/Adaption_to_Android|the Android sub-project]]:'''
 
* packs manually to the APK generic packages by [ftp://ftp.oscada.org/OpenSCADA/Work/Android CrystaxNDKr10 (ABI 19, Android = 4.4) and NDKr13 (ABI 21, Android >= 5)], starts and works for both Web and Qt5
 
* packs manually to the APK generic packages by [ftp://ftp.oscada.org/OpenSCADA/Work/Android CrystaxNDKr10 (ABI 19, Android = 4.4) and NDKr13 (ABI 21, Android >= 5)], starts and works for both Web and Qt5
* the free distribution are going to be limited to the demo mode implementing and building after the OpenSCADA LTS 0.9 releasing and to compensate the direct investment time and to motivate the further expansions for the developers, by the fullfeatured packages providing together with packages of the technical support!
 
 
* VCA primitive "Document" displays XHTML only by QTextBrowser but WebKit and Qt WebEngine are not implemented for Android and QtWebView is complex and QML one.
 
* VCA primitive "Document" displays XHTML only by QTextBrowser but WebKit and Qt WebEngine are not implemented for Android and QtWebView is complex and QML one.
 
| [[File:AsusNexus7.png|x200px]]
 
| [[File:AsusNexus7.png|x200px]]
Line 35: Line 36:
 
|}
 
|}
  
The tracing task of the work out opened [http://oscada.org/en/development/tasks/posts/implementation_vnedrenie/openscada_adapting_to_the_android_os_tablet_asus_nexus_7_ii_workout/ here].
+
{| class="wikitable"
 +
|-
 +
! [[Special:MyLanguage/Sub-projects/Embedding_and_PLC#PerfSystems|Hardware]] !! CPU !! Entry into JavaLikeCalc, us !! Operation sin(Pi) [in JavaLikeCalc], us !! Operation pow(Pi,2) [in JavaLikeCalc], us !! Model AGLKS [Vision, main mnemo], %(core) !! Extra tests and notes
 +
|-
 +
<section begin=Nexus7 />
 +
| Google Asus Nexus7 II || ARM Cortex-A15, Qualcomm Snapdragon APQ8064-1AA, 28nm, 1.5 GHz, 4 Cores || 0.321 || 0.134 [0.239] || 0.122 [0.264] || 54 [82] ||
 +
armv7-a, Soft, VFP, [[Special:MyLanguage/Sub-projects/Adaption_to_Android#Tests|Extra tests]].<br/>'''''Updated:''''' 15.05.2023<br/>
 +
'''''Starting time, seconds:''''' 10+21+6(AGLKS), 49(Boiler)
 +
<section end=Nexus7 />
 +
|}
  
''' [[Special:MyLanguage/Sub-projects/Adaption_to_Android|Assembling and starting OpenSCADA into the environment of OS Android]] '''
+
<u>''Remote access''</u> can be performed whether through a SSH-server or the debugging command {{InLineCode|<nowiki>adb shell</nowiki>}}.
  
''' Installing of full-featured OS Linux and OpenSCADA starting '''<br/>
+
<u>''Enabling the debug mode''</u>:
For different OS installing you need to unlock the loader and for original Android saving you need ensure multiboot.
+
* [DEVICE] Enable the debug mode of Android: "Configuration" -> "About the device", seven times click into item "Building number".
 
+
* [DEVICE] Set up of debugging through USB: "Configuration" -> "Developers parameters", set proper property.
The loader unlock and ROOT, from a Linux environment:
+
* Enable the debug mode of Android: "Configuration" -> "About the device", five times click into item "Building number".
+
* Set debug through USB: "Configuration" -> "Developers parameters", set proper property.
+
 
* Install the utility "adb" (Android Debug Bridge).
 
* Install the utility "adb" (Android Debug Bridge).
* Check for connection to the tablet: connect USB-cable to PC, call command "$ adb devices".
+
* Check for connection to the tablet:
* Unlock the device:
+
:* connect USB-cable to PC
** Enable the tablet with connection to PC by the USB-cable and holding by buttons "Power" and "Sound lower" up to the bootloader screen appear.
+
:* call the command — {{InLineCode|<nowiki>adb devices</nowiki>}}
** Check for the boot-loader visibility: "$ fastboot devices".
+
 
** Unlock: "$ fastboot oem unlock".
+
<u>''The loader unlocking''</u> [AS NEEDED] must be performed before ROOTing or flashing and causes for WIPING the user data:
* Load and flash "TWRP recovery": load [http://techerrata.com/browse/twrp2/flo here], then flash it by command "$ fastboot flash recovery /Path-to-TWRP.img"
+
* [DEVICE] Enable the tablet with connection to PC by the USB-cable and with holding by the button "Power" and "Sound lower" up to the bootloader screen appearing.
* Enter to the "Recovery" mode of the loader and provide access ROOT: select "Reboot" -> "Recovery" -> "ROOT", then "Reboot" -> "Sytem".
+
* Check for the boot-loader visibility — {{InLineCode|<nowiki>sudo fastboot devices</nowiki>}}
* Install "SuperSU" for you will be proposed.
+
* Unlock — {{InLineCode|<nowiki>sudo fastboot oem unlock</nowiki>}}
 +
 
 +
<u>''Factory reset''</u> [AS NEEDED] the device, what can be needed even after flashing if your data partition in not proper size:
 +
* [DEVICE] Enable the tablet with connection to PC by the USB-cable and with holding by the button "Power" and "Sound lower" up to the bootloader screen appearing.
 +
* [DEVICE] Navigate, select and enter to the "Recovery mode".
 +
* [DEVICE] At appearance an icon with droid under the exclamation mark press the Power" button and next the "Sound upper" button.
 +
* [DEVICE] Navigate, select and enter to the item "Wipe data/factory reset".
 +
 
 +
<u>''ROOTing''</u> [AS NEEDED] can be needed for some packages like to BusyBox and some packages need this for full features.
 +
* Load TWRP recovery for FLO (Nexus 7 2013) from Internet or [http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/twrp-3.7.0_9-0-flo.img get one] from the OpenSCADA Server.
 +
* Flash TWRP recovery — {{InLineCode|<nowiki>sudo fastboot flash recovery twrp-3.7.0_9-0-flo.img</nowiki>}}
 +
* [DEVICE] Enter to the "Recovery mode" of the loader: "Reboot" -> "Recovery" -> "ROOT", then "Reboot" -> "Sytem".
 +
* [DEVICE] Install "SuperSU" for you will be proposed.
 +
 
 +
<u>''To provide multiboot''</u> [AS NEEDED] you can install MultiROM Manager from Play Market.
 +
 
 +
=== Original Google firmware ===
 +
<u>''Flashing''</u> [AS NEEDED] the device, only at the restoring need:
 +
* Download of proper image from the [https://developers.google.com/android/images Factory Images for Nexus and Pixel Devices] page or the [http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/razor-mob30x-factory-52684dff.zip last one] from the OpenSCADA Server.
 +
* Unpack the archive — {{InLineCode|<nowiki>unzip razor-mob30x-factory-52684dff.zip</nowiki>}}
 +
* Change directory to the firmware one — {{InLineCode|<nowiki>cd razor-mob30x</nowiki>}}
 +
* Unpack the subarchive (the last '''fastboot''' misunderstand already the direct ZIP flashing) — {{InLineCode|<nowiki>unzip image-razor-mob30x.zip</nowiki>}}
 +
* Flash all the images:
 +
<syntaxhighlight lang="BASH">
 +
sudo fastboot flash boot boot.img
 +
sudo fastboot flash bootloader bootloader-flo-flo-04.08.img
 +
sudo fastboot reboot-bootloader
 +
sudo fastboot flash recovery recovery.img
 +
sudo fastboot flash system system.img
 +
sudo fastboot erase userdata
 +
sudo fastboot flash userdata userdata.img
 +
sudo fastboot erase cache
 +
sudo fastboot flash cache cache.img
 +
sudo fastboot reboot
 +
</syntaxhighlight>
 +
* Manually update package of the Google Play Market since it doesn't work from the box now (2023), which APK-package you can find yourself or [http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/Google-Play-Store-38118-21-0-PR-575289603-DivxLand.apk get one] from the OpenSCADA Server.
 +
: [[file:at.png]] When Android say "Impossible to open the file", you can install-reinstall it through adb — {{InLineCode|<nowiki>adb install -r Google-Play-Store-38118-21-0-PR-575289603-DivxLand.apk</nowiki>}} and next update the Chromium Web-browser from the new Google Play Store which will allow you the APK-packages installation.
 +
 
 +
=== [https://lineageos.org/ LineageOS] ===
 +
The Linux Age OS releases and support new Android builds for [https://wiki.lineageos.org/devices/ many old devices], that is it allows their refresh for running modern applications.
 +
 
 +
In case of this device, it was officially supported up to 2024-03-06 and now you are proposed to build it yourself on the [https://wiki.lineageos.org/devices/flox/ device page], nevertheless you can still get the last official build from the [https://wiki.oddsolutions.us/devices/flox/ mirrored old site] or even install a unofficial build with GApps and Pixel goodies by  [https://xdaforums.com/m/npjohnson.5848265/ npjohnson] from [https://xdaforums.com/t/official-lineageos-18-1-for-the-nexus-7-2013-wi-fi-lte-repartition-only-flox-debx.4255325/ xdaforums.com], so to update this device up to Android 11. All you need for flashing last LineageOS you can also obtain from the [http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/Lineage18.1_GoogleNexus7_2013_flox.txz OpenSCADA Server].
  
To provide the multiboot let install "MultiROM Manager" from "Play Market".
+
<u>''Flashing''</u> the device:
 +
* Download of proper image and accompanied files from links above or the ready archive from the [http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/Lineage18.1_GoogleNexus7_2013_flox.txz OpenSCADA Server]
 +
* Unpack the archive — {{InLineCode|<nowiki>tar xvf Lineage18.1_GoogleNexus7_2013_flox.txz</nowiki>}}
 +
* Change directory to the firmware one — {{InLineCode|<nowiki>cd Lineage18.1_GoogleNexus7_2013_flox</nowiki>}}
 +
* [DEVICE] Remove all Google accounts from your device to avoid “Factory reset protection”.
 +
* Unlock the loader as above.
 +
* Reboot to the bootloader — {{InLineCode|<nowiki>adb -d reboot bootloader</nowiki>}}
 +
* Temporarily boot recovery on your device — {{InLineCode|<nowiki>fastboot boot recovery.img</nowiki>}}
 +
* EFS/Persist Backup:
 +
:* enter to the device shell {{InLineCode|<nowiki>adb -d shell</nowiki>}} and call here:
 +
<syntaxhighlight style="margin-left: 40px;" lang="BASH">
 +
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
 +
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
 +
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
 +
exit
 +
</syntaxhighlight>
 +
:* store the files locally:
 +
<syntaxhighlight style="margin-left: 40px;" lang="BASH">
 +
adb -d pull /sdcard/modemst1.img
 +
adb -d pull /sdcard/modemst2.img
 +
adb -d pull /sdcard/persist.img
 +
</syntaxhighlight>
 +
* Repartition:
 +
:* [DEVICE] choose “Apply Update”, then “From ADB”.
 +
:* Upload the repartition script — {{InLineCode|<nowiki>adb -d sideload /{full path to}/flo-deb_clamor_repartition_20201203.zip</nowiki>}}
 +
:* enter to the device shell {{InLineCode|<nowiki>adb -d shell</nowiki>}} and call here:
 +
<syntaxhighlight style="margin-left: 40px;" lang="BASH">
 +
modify
 +
</syntaxhighlight>
 +
:* ... wait up to 10 minutes
 +
:* [DEVICE] reboot the device holding the volume down and power keys;
 +
:* format your data partition — {{InLineCode|<nowiki>fastboot -w</nowiki>}}
 +
:* flash recovery — {{InLineCode|<nowiki>fastboot flash recovery recovery.img</nowiki>}}
 +
:* [DEVICE] reboot the device holding the volume down and power keys;
 +
:* [DEVICE] go to the menu “RECOVERY” where call:
 +
::* ”Factory Reset” > “Format system partition” > “Yes”;
 +
::* ”Factory Reset” > “Format cache partition” > “Yes”.
 +
* Installing LineageOS:
 +
:* [DEVICE] go to the menu “RECOVERY” where call: "Factory Reset" > "Format data / factory reset";
 +
:* [DEVICE] return to the main menu and call: “Apply Update” > “Apply from ADB”;
 +
:* sideload the firmware package — {{InLineCode|<nowiki>adb -d sideload lineage-18.1-20250423-UNOFFICIAL-flox.zip</nowiki>}};
 +
:* [DEVICE] go to the main menu “Reboot system now”.
  
Due to this device is supported by Google, you are allowed to update the Android OS up to versions 5 and 6 for this you can read and download suitable image from the "[https://developers.google.com/android/images Factory Images for Nexus and Pixel Devices]" page.
+
== Links ==
 +
* [https://developers.google.com/android/images Factory Images for Nexus and Pixel Devices]
 +
* [[Special:MyLanguage/Sub-projects/Adaption_to_Android|Assembling and starting OpenSCADA in the environment of OS Android]]
 
</translate>
 
</translate>

Latest revision as of 09:03, 2 June 2025

Tablet computer Asus Nexus 7 II (2013)
Begin: 08 (August) 2014
Participants: Roman Savochenko
Description: "Asus Nexus 7 II" — tablet computer of 2013 year edition with four-cores ARM-processor and sensor screen 7", released in conjunction of Asus and Google. Purchased for tasks of OpenSCADA and adapting it to work into the environment of OS Android and hardware of modern multicore CPU of ARM-architecture.
Managing task: by the link
Materials: http://ftp.oscada.org/OpenSCADA/Devices/Nexus7-2013/
State of the support, related to the Android sub-project:

AsusNexus7.png
Image. OpenSCADA in Web and Qt5 for the native building.

Key specification of the tablet:

Hardware platform: ARM Cortex-A15 [ARMv7]
Central processor: Four-core Qualcomm Snapdragon APQ8064-1AA 1500 MHz
Operational memory: 2 GiB DDR3
Permanent memory: 32 GiB
Video subsystem: 400 MHz quad-core Adreno 320
Screen: IPS, 1920x1200 px (323 ppi)
Hardware CPU Entry into JavaLikeCalc, us Operation sin(Pi) [in JavaLikeCalc], us Operation pow(Pi,2) [in JavaLikeCalc], us Model AGLKS [Vision, main mnemo], %(core) Extra tests and notes
Google Asus Nexus7 II ARM Cortex-A15, Qualcomm Snapdragon APQ8064-1AA, 28nm, 1.5 GHz, 4 Cores 0.321 0.134 [0.239] 0.122 [0.264] 54 [82]

armv7-a, Soft, VFP, Extra tests.
Updated: 15.05.2023
Starting time, seconds: 10+21+6(AGLKS), 49(Boiler)

Remote access can be performed whether through a SSH-server or the debugging command adb shell.

Enabling the debug mode:

  • [DEVICE] Enable the debug mode of Android: "Configuration" -> "About the device", seven times click into item "Building number".
  • [DEVICE] Set up of debugging through USB: "Configuration" -> "Developers parameters", set proper property.
  • Install the utility "adb" (Android Debug Bridge).
  • Check for connection to the tablet:
  • connect USB-cable to PC
  • call the command — adb devices

The loader unlocking [AS NEEDED] must be performed before ROOTing or flashing and causes for WIPING the user data:

  • [DEVICE] Enable the tablet with connection to PC by the USB-cable and with holding by the button "Power" and "Sound lower" up to the bootloader screen appearing.
  • Check for the boot-loader visibility — sudo fastboot devices
  • Unlock — sudo fastboot oem unlock

Factory reset [AS NEEDED] the device, what can be needed even after flashing if your data partition in not proper size:

  • [DEVICE] Enable the tablet with connection to PC by the USB-cable and with holding by the button "Power" and "Sound lower" up to the bootloader screen appearing.
  • [DEVICE] Navigate, select and enter to the "Recovery mode".
  • [DEVICE] At appearance an icon with droid under the exclamation mark press the Power" button and next the "Sound upper" button.
  • [DEVICE] Navigate, select and enter to the item "Wipe data/factory reset".

ROOTing [AS NEEDED] can be needed for some packages like to BusyBox and some packages need this for full features.

  • Load TWRP recovery for FLO (Nexus 7 2013) from Internet or get one from the OpenSCADA Server.
  • Flash TWRP recovery — sudo fastboot flash recovery twrp-3.7.0_9-0-flo.img
  • [DEVICE] Enter to the "Recovery mode" of the loader: "Reboot" -> "Recovery" -> "ROOT", then "Reboot" -> "Sytem".
  • [DEVICE] Install "SuperSU" for you will be proposed.

To provide multiboot [AS NEEDED] you can install MultiROM Manager from Play Market.

1 Original Google firmware

Flashing [AS NEEDED] the device, only at the restoring need:

  • Download of proper image from the Factory Images for Nexus and Pixel Devices page or the last one from the OpenSCADA Server.
  • Unpack the archive — unzip razor-mob30x-factory-52684dff.zip
  • Change directory to the firmware one — cd razor-mob30x
  • Unpack the subarchive (the last fastboot misunderstand already the direct ZIP flashing) — unzip image-razor-mob30x.zip
  • Flash all the images:
sudo fastboot flash boot boot.img
sudo fastboot flash bootloader bootloader-flo-flo-04.08.img
sudo fastboot reboot-bootloader
sudo fastboot flash recovery recovery.img
sudo fastboot flash system system.img
sudo fastboot erase userdata
sudo fastboot flash userdata userdata.img
sudo fastboot erase cache
sudo fastboot flash cache cache.img
sudo fastboot reboot
  • Manually update package of the Google Play Market since it doesn't work from the box now (2023), which APK-package you can find yourself or get one from the OpenSCADA Server.
At.png When Android say "Impossible to open the file", you can install-reinstall it through adb — adb install -r Google-Play-Store-38118-21-0-PR-575289603-DivxLand.apk and next update the Chromium Web-browser from the new Google Play Store which will allow you the APK-packages installation.

2 LineageOS

The Linux Age OS releases and support new Android builds for many old devices, that is it allows their refresh for running modern applications.

In case of this device, it was officially supported up to 2024-03-06 and now you are proposed to build it yourself on the device page, nevertheless you can still get the last official build from the mirrored old site or even install a unofficial build with GApps and Pixel goodies by npjohnson from xdaforums.com, so to update this device up to Android 11. All you need for flashing last LineageOS you can also obtain from the OpenSCADA Server.

Flashing the device:

  • Download of proper image and accompanied files from links above or the ready archive from the OpenSCADA Server
  • Unpack the archive — tar xvf Lineage18.1_GoogleNexus7_2013_flox.txz
  • Change directory to the firmware one — cd Lineage18.1_GoogleNexus7_2013_flox
  • [DEVICE] Remove all Google accounts from your device to avoid “Factory reset protection”.
  • Unlock the loader as above.
  • Reboot to the bootloader — adb -d reboot bootloader
  • Temporarily boot recovery on your device — fastboot boot recovery.img
  • EFS/Persist Backup:
  • enter to the device shell adb -d shell and call here:
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
exit
  • store the files locally:
adb -d pull /sdcard/modemst1.img
adb -d pull /sdcard/modemst2.img
adb -d pull /sdcard/persist.img
  • Repartition:
  • [DEVICE] choose “Apply Update”, then “From ADB”.
  • Upload the repartition script — adb -d sideload /{full path to}/flo-deb_clamor_repartition_20201203.zip
  • enter to the device shell adb -d shell and call here:
modify
  • ... wait up to 10 minutes
  • [DEVICE] reboot the device holding the volume down and power keys;
  • format your data partition — fastboot -w
  • flash recovery — fastboot flash recovery recovery.img
  • [DEVICE] reboot the device holding the volume down and power keys;
  • [DEVICE] go to the menu “RECOVERY” where call:
  • ”Factory Reset” > “Format system partition” > “Yes”;
  • ”Factory Reset” > “Format cache partition” > “Yes”.
  • Installing LineageOS:
  • [DEVICE] go to the menu “RECOVERY” where call: "Factory Reset" > "Format data / factory reset";
  • [DEVICE] return to the main menu and call: “Apply Update” > “Apply from ADB”;
  • sideload the firmware package — adb -d sideload lineage-18.1-20250423-UNOFFICIAL-flox.zip;
  • [DEVICE] go to the main menu “Reboot system now”.

3 Links