
FriendlyElec Smart6818 Dev Kit Owner’s Manual

7 Get Started
7.1 Essentials You Need
Before starting to use your Smart6818 get the following items ready
- Smart6818 CPU board and Smart4418/6818 SDK carrier board
- Standard SD card: Class10 or above 8GB SDHC card
- A DC 12V/2A power is a must
- HDMI monitor or LCD
- USB keyboard and mouse
- A host computer running Ubuntu 14.04 64 bit system
7.2 Boot from SD Card
Get the following files from here download link:
- Get a 8G SDHC card and backup its data if necessary.
Image Files s5p6818-sd-friendlycore-xenial-4.4-armhf-YYYYMMDD.img.zip FriendlyCore(32bit) with Qt 5.10.0 (base on Ubuntu core) image file s5p6818-sd-friendlycore-xenial-4.4-arm64-YYYYMMDD.img.zip FriendlyCore(64bit) with Qt 5.10.0 (base on Ubuntu core) image file s5p6818-sd-lubuntu-desktop-xenial-4.4-armhf-YYYYMMDD.img.zip LUbuntu Desktop image file with X Window s5p6818-sd-friendlywrt-4.4-YYYYMMDD.img.zip FriendlyWrt image file (base on OpenWrt) s5p6818-sd-android7-YYYYMMDD.img.zip Android7 image file s5p6818-sd-android-lollipop-YYYYMMDD.img.zip Android5.1 image file s5p6818-eflasher-lubuntu-desktop-xenial-4.4-armhf-YYYYMMDD.img.zip SD card image, which is used to install a lubuntu desktop to eMMC s5p6818-eflasher-friendlywrt-4.4-YYYYMMDD.img.zip SD card image, which is used to install a FriendlyWrt to eMMC s5p6818-eflasher-android7-YYYYMMDD.img.zip SD card image, which is used to install a android7 to eMMC s5p6818-eflasher-android-lollipop-YYYYMMDD.img.zip SD card image, which is used to install an Android to eMMC s5p6818-eflasher-friendlycore-xenial-4.4-arm64-YYYYMMDD.img.zip SD card image, which is used to install a FriendlyCore-arm64 to eMMC s5p6818-eflasher-friendlycore-xenial-4.4-armhf-YYYYMMDD.img.zip SD card image, which is used to install a FriendlyCore-armhf to eMMC Flash Utility: win32diskimager.rar Windows utility. Under Linux users can use “dd” - Uncompress these files. Insert an SD card(at least 4G) into a Windows PC and run the win32diskimager utility as administrator. On the utility’s main window select your SD card’s drive, the wanted image file and click on “write” to start flashing the SD card.
- Insert this card into your board’s boot slot, press and hold the boot key (only applies to a board with onboard eMMC) and power on (with a 5V/2A power source). If the PWR LED is on and LED1 is blinking this indicates your board has successfully booted.
7.3 Flash image to eMMC with eflasher
- Download eflasher image file
- An image file’s name is as : s5p6818-eflasher-OSNAME-YYYYMMDD.img.zip The “OSNAME” is the name of an OS e.g. android, friendlycore and etc; This image file is used for making an installation SD card and it contains a Ubuntu core system and a utility EFlasher; Download s5p6818-eflasher-OSNAME-YYYYMMDD.img.zip to a host PC and get a windows utility win32diskimager.rar as well;
- Make Installation SD Card with eflasher
- Extract the package with a 7z utility and you will get a file with an extension “.img”. Insert an SDHC card(minimum 8G or above) to a PC running Windows, run the Win32DiskImager utility as administrator, click on “Image File” to select your wanted file, select your SD card and click on “Write” to start flashing the Image to your SD card;If your PC runs Linux you can command “dd” to extract the package and get an “.img” file and write it to your SD card;
- Operate in GUI Window: Flash OS to eMMC
- Insert your SD card to Smart6818, connect an HDMI monitor or LCD to your board, press and hold the “boot” key beside the Ethernet port, power on the board you will see a popup window asking you to select an OS for installation. Select your wanted OS and start installation.
- Operate in Commandline Utility: Flash OS to eMMC
- Insert an installation SD card to Smart6818, log into or SSH to your board and run the following command to start EFlasher:
sudo eflasher
- Insert an installation SD card to Smart6818, log into or SSH to your board and run the following command to start EFlasher:
7.3.1 Make Installation Card under Linux Desktop
- Insert your SD card into a host computer running Ubuntu and check your SD card’s device name
dmesg | tail- Search the messages output by “dmesg” for similar words like “sdc: sdc1 sdc2”. If you can find them it means your SD card has been recognized as “/dev/sdc”. Or you can check that by commanding “cat /proc/partitions”
- Downlaod Linux script
- git clone https://github.com/friendlyarm/sd-fuse_s5p6818.git
cd sd-fuse_s5p6818
- git clone https://github.com/friendlyarm/sd-fuse_s5p6818.git
- Here is how to make a Lubuntu desktop SD card
sudo ./fusing.sh /dev/sdx lubuntu
(Note: you need to replace “/dev/sdx” with the device name in your system) When you run the script for the first time it will prompt you to download an image you have to hit “Y” within 10 seconds otherwise you will miss the download. - Run this command to make a complete image file:
sudo ./mkimage.sh lubuntu
More content please refre: Assembling the SD card image yourself
7.4 Extend SD Card Section
- When Debian/Ubuntu is loaded the SD card’s section will be automatically extended.
- When Android is loaded you need to run the following commands on your host PC to extend your SD card’s section:
sudo umount /dev/sdx?
sudo parted /dev/sdx unit & resizepart 4 100 resizepart 7 100 unit MB print
sudo resize2fs -f /dev/sdx7
(Note: you need to replace “/dev/sdx” with the device name in your system)
7.5 LCD/HDMI Resolution
When the system boots our uboot will check whether it is connected to an LCD or to an HDMI monitor. If it recognizes an LCD it will configure its resolution. Our uboot defaults to the HDMI 720P configuration.
If you want to modify the LCD resolution you can modify file “arch/arm/plat-s5p6818/nanopi3/lcds.c” in the kernel and recompile it.
If your Smart6818 is connected to an HDMI monitor and it runs Android it will automatically set the resolution to an appropriate HDMI mode by checking the “EDID”. If your Smart6818 is connected to an HDMI monitor and it runs Debian by default it will set the resolution to the HDMI 720P configuration. If you want to modify the HDMI resolution to 1080P modify your kernel’s configuration as explained above.
7.6 Update SD Card’s boot parameters From PC Host
- Insert your SD card into a host PC running Linux, if you want to change your kernel command line parameters you can do it via the fw_setevn utility.
- Check the current Command Line:
git clone https://github.com/friendlyarm/sd-fuse_s5p6818.git
cd sd-fuse_s5p6818/tools
./fw_printenv/dev/sdx | grep bootargs
For example, to disable android SELinux, You can change it this way:
./fw setenv /dev/sdc bootargs XXX androidboot.selinux=permissive
The “XXX” stands for the original bootargs’ value.
Documents / Resources
![]() | Smart6818 Dev Kit |
References
- download.friendlyelec.com/Smart6818download.friendlyelec.com
- fusing.shfusing.sh
- github.com/friendlyarm/sd-fuse_s5p6818.gitgithub.com
- mkimage.shmkimage.sh
- wiki.friendlyelec.com/wiki/index.php/Assembling_the_SD_card_image_yourselfwiki.friendlyelec.com
- wiki.friendlyelec.com/wiki/index.php/EFlasherwiki.friendlyelec.com
- wiki.friendlyelec.com/wiki/index.php/How_to_Build_FriendlyWrtwiki.friendlyelec.com
- User Manualmanual.tools
