Difference between revisions of "Template:S5Pxx18Android"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Work with Android==
 
==Work with Android==
===Work with 4G Module EC20 under Android===
+
===Work with 4G Module EC20 under Android5===
 
====Hardware Setup====
 
====Hardware Setup====
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
Line 20: Line 20:
 
}}
 
}}
 
Power on the board and you will be able to surf the internet with the 4G module like using an Android phone.<br />
 
Power on the board and you will be able to surf the internet with the 4G module like using an Android phone.<br />
 +
 +
{{#switch: {{{1}}}
 +
| Smart4418 =
 +
===Connect Smart4418 to 4G Module===
 +
* The Smart4418 can work with some 4G modules under Android 4.4. After you connect a 4G module (e.g. ME909u-521 which supports  FDD-LTE) to a Smart4418 power on the board the 4G module will be activated automatically
 +
[[File:4G Model-nanopc-t3.png|frameless|500px|4G Model]]
 +
| #default =
 +
}}
  
 
===Modify the Android boot Logo===
 
===Modify the Android boot Logo===
Replace the logo.bmp below and compile android:
+
Replace the logo.bmp:
 +
<syntaxhighlight lang="bash">
 +
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi3/boot/logo.bmp
 +
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi2/boot/logo.bmp
 +
</syntaxhighlight>
 +
Replace the bootanimation.zip:
 +
<syntaxhighlight lang="bash">
 +
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi3/bootanimation.zip
 +
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi2/bootanimation.zip
 +
</syntaxhighlight>
 +
Re-compile android.
 +
=== Use fastboot command to flash android firmware ===
 +
Enter the uboot command line mode on the serial terminal when powering on, and then enter the following command:
 +
<syntaxhighlight lang="bash">
 +
fastboot 0
 +
</syntaxhighlight>
 +
For S5P4418:
 +
<syntaxhighlight lang="bash">
 +
fastboot flash partmap partmap.txt
 +
fastboot flash 2ndboot bl1-mmcboot.bin
 +
fastboot flash fip-loader loader-mmc.img
 +
fastboot flash fip-secure bl_mon.img
 +
fastboot flash fip-nonsecure bootloader.img
 +
fastboot flash boot boot.img
 +
fastboot flash system system.img
 +
fastboot flash cache cache.img
 +
fastboot flash userdata userdata.img
 +
</syntaxhighlight>
 +
For S5P6818:
 +
<syntaxhighlight lang="bash">
 +
fastboot flash partmap partmap.txt
 +
fastboot flash 2ndboot bl1-mmcboot.bin
 +
fastboot flash fip-loader fip-loader.img
 +
fastboot flash fip-secure fip-secure.img
 +
fastboot flash fip-nonsecure fip-nonsecure.img
 +
fastboot flash boot boot.img
 +
fastboot flash system system.img
 +
fastboot flash cache cache.img
 +
fastboot flash userdata userdata.img
 +
</syntaxhighlight>
 +
===Android Keys===
 +
Android 5:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
# cd /opt/FriendlyARM/smart4418/android/device
+
  vendor/friendly-arm/nanopi3/security/
# find -name "*.bmp"
+
./friendly-arm/nanopi3/boot/logo.bmp
+
./friendly-arm/nanopi2/boot/logo.bmp
+
 
</syntaxhighlight>
 
</syntaxhighlight>
<br />
+
Android 7:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
# cd /opt/FriendlyARM/smart4418/android/device
+
  build/target/product/security/
# find -name bootanimation.zip
+
./friendly-arm/nanopi3/bootanimation.zip
+
./friendly-arm/nanopi2/bootanimation.zip
+
 
</syntaxhighlight>
 
</syntaxhighlight>
Need re-compile android.
 

Revision as of 09:20, 12 March 2021

1 Work with Android

1.1 Work with 4G Module EC20 under Android5

1.1.1 Hardware Setup

Connect an EC20 module to a USB to miniPCIe board and connect the board to an ARM board's USB Host. Here is a hardware setup:
T2-4G-EC20.jpg
Power on the board and you will be able to surf the internet with the 4G module like using an Android phone.


Replace the logo.bmp:

/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi3/boot/logo.bmp
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi2/boot/logo.bmp

Replace the bootanimation.zip:

/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi3/bootanimation.zip
/opt/FriendlyARM/smart4418/android/device/friendly-arm/nanopi2/bootanimation.zip

Re-compile android.

1.3 Use fastboot command to flash android firmware

Enter the uboot command line mode on the serial terminal when powering on, and then enter the following command:

fastboot 0

For S5P4418:

fastboot flash partmap partmap.txt
fastboot flash 2ndboot bl1-mmcboot.bin
fastboot flash fip-loader loader-mmc.img
fastboot flash fip-secure bl_mon.img
fastboot flash fip-nonsecure bootloader.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img

For S5P6818:

fastboot flash partmap partmap.txt
fastboot flash 2ndboot bl1-mmcboot.bin
fastboot flash fip-loader fip-loader.img 
fastboot flash fip-secure fip-secure.img 
fastboot flash fip-nonsecure fip-nonsecure.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img

1.4 Android Keys

Android 5:

  vendor/friendly-arm/nanopi3/security/

Android 7:

  build/target/product/security/