Power & Source of Big Ideas

How do you flash to it's eMMC?

Moderators: chensy, FATechsupport

I installed the "nanopi-air-eflasher-sd8g-20161213.img" on a 32GB SD card.

I thought I could then flash to the eMMC like this:

Ubuntu 15.10 FriendlyARM ttyS0

FriendlyARM login: root
Password:
root@FriendlyARM:~# eflasher
-bash: eflasher: command not found
root@FriendlyARM:~# find / -name eflasher
root@FriendlyARM:~#


There is no eflasher find any place on the hole / system. I did a find and it did not find any thing. How do you do it?

-Raymond Day
Basically i do these steps:

1) Prepare an image with working wifi.
2) Copy this image to an SD card and to an NFS share
3) Boot from SD card and mount the NFS share
4) dd if=image of=/dev/mmcblk1 bs=10M
where <image> is located at the NFS share. Constraint: The image has to be smaller than 8 GB (size of emmc).

Hope this helps.
Thank you.

On the 128GB it only was using like 4GB. I just could not expand it. I put the SD card in my other server and did parted command on it and made a new partition. Formatted it with Webmin. Then booted it back in the Nano Pi air. Mounted that partition to /media/tmp.

Trying to copy the image to there was so slow so I did it with a wget over RS-232.

Here is the hole command line of me doing this and it my help others.

Put what I typed in Bold.

root@FriendlyARM:/media/tmp# ls
lost+found nanopi-air-eflasher-sd8g-20161213.img.filepart
root@FriendlyARM:/media/tmp# rm nanopi-air-eflasher-sd8g-20161213.img.filepart
root@FriendlyARM:/media/tmp# ls
lost+found
root@FriendlyARM:/media/tmp# wget www.mediafire.com/file/bll0t950hiylc5l/ ... 13.img.zip
--2017-02-06 14:40:21-- http://www.mediafire.com/file/bll0t950h ... 13.img.zip
Resolving www.mediafire.com (www.mediafire.com)... 205.196.120.6, 205.196.120.8
Connecting to www.mediafire.com (www.mediafire.com)|205.196.120.6|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://download1892.mediafire.com/k8fiw ... 13.img.zip [following]
--2017-02-06 14:40:22-- http://download1892.mediafire.com/k8fiw ... 13.img.zip
Resolving download1892.mediafire.com (download1892.mediafire.com)... 199.91.153.139
Connecting to download1892.mediafire.com (download1892.mediafire.com)|199.91.153.139|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 646482332 (617M) [application/zip]
Saving to: 'nanopi-air-eflasher-sd8g-20161213.img.zip'

nanopi-air-eflasher 100%[=====================>] 616.53M 2.14MB/s in 4m 50s

2017-02-06 14:45:11 (2.13 MB/s) - 'nanopi-air-eflasher-sd8g-20161213.img.zip' saved [646482332/646482332]

root@FriendlyARM:/media/tmp# ls
lost+found nanopi-air-eflasher-sd8g-20161213.img.zip
root@FriendlyARM:/media/tmp# unzip nanopi-air-eflasher-sd8g-20161213.img.zip
-bash: unzip: command not found
root@FriendlyARM:/media/tmp# apt install zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
unzip
The following NEW packages will be installed:
unzip zip
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 281 kB of archives.
After this operation, 1004 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports/ wily-updates/main unzip armhf 6.0-17ubuntu1.2 [136 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ wily/main zip armhf 3.0-11 [146 kB]
Fetched 281 kB in 1s (198 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package unzip.
(Reading database ... 23903 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-17ubuntu1.2_armhf.deb ...
Unpacking unzip (6.0-17ubuntu1.2) ...
Selecting previously unselected package zip.
Preparing to unpack .../archives/zip_3.0-11_armhf.deb ...
Unpacking zip (3.0-11) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up unzip (6.0-17ubuntu1.2) ...
Setting up zip (3.0-11) ...
root@FriendlyARM:/media/tmp# unzip nanopi-air-eflasher-sd8g-20161213.img.zip
Archive: nanopi-air-eflasher-sd8g-20161213.img.zip
inflating: nanopi-air-eflasher-sd8g-20161213.img
root@FriendlyARM:/media/tmp# ls
lost+found
nanopi-air-eflasher-sd8g-20161213.img
nanopi-air-eflasher-sd8g-20161213.img.zip
root@FriendlyARM:/media/tmp# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.6G 925M 2.7G 26% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.5M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
/dev/mmcblk0p4 44G 8.3G 33G 21% /media/tmp
root@FriendlyARM:/media/tmp# ls
lost+found
nanopi-air-eflasher-sd8g-20161213.img
nanopi-air-eflasher-sd8g-20161213.img.zip
root@FriendlyARM:/media/tmp# fdiks -l
-bash: fdiks: command not found
root@FriendlyARM:/media/tmp# fdisk -l
Disk /dev/mmcblk0: 119.1 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe1171a1c

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 7617185 7486114 3.6G 83 Linux
/dev/mmcblk0p4 64452608 156250111 91797504 43.8G 83 Linux


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@FriendlyARM:/media/tmp# ls
lost+found
nanopi-air-eflasher-sd8g-20161213.img
nanopi-air-eflasher-sd8g-20161213.img.zip
root@FriendlyARM:/media/tmp# dd if=nanopi-air-eflasher-sd8g-20161213.img of=/dev/mmcblk1 bs=10M
dd: error writing '/dev/mmcblk1': No space left on device
746+0 records in
745+0 records out
7818182656 bytes (7.8 GB) copied, 1000.43 s, 7.8 MB/s
root@FriendlyARM:/media/tmp#

No space left I guess used the wrong image?

Going to take the SD card out and see if it boots from the eMMC. now. Maybe it worked.

-Raymond Day
Wow it worked!

Look at this:

Ubuntu 15.10 FriendlyARM ttyS0

FriendlyARM login: root
Password:
root@FriendlyARM:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 886M 873M 14M 99% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.4M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
/dev/mmcblk0p3 6.5G 923M 5.6G 15% /mnt/sdcard
root@FriendlyARM:~#


But 99% of /dev/root I don't know does that mean can't install any thing else? But partition 3 on it has 6.5G nice for the 8GB left.

Now to see if I can get my WiFi working on this eMMC image.

-Raymond Day
Hi, All

We have made a super easy flashing tools into eMMC already, the new "elfasher", the new ROM is uploading, will take about 1week. Please wait.

Or, you can download it from the China BaiDuYun, some slow.

Thank you

Mindee
Don't know how to download it from that link. It's not in English!

-Raymond Day
What junk that they have it so it has no room left!

I used my 128GB card and put it in a live Gparted and I decreased the 3rd partition so it made room for the 2nd partition.

Now copying it to the eMMC now. Here is how it looks now.

Ubuntu 15.10 FriendlyARM ttyS0

FriendlyARM login: root
Password:
Last login: Wed Mar 9 10:56:19 UTC 2016 on ttyS0
root@FriendlyARM:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 6.1G 874M 5.2G 15% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.5M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
/dev/mmcblk0p3 1.2G 909M 300M 76% /mnt/sdcard
root@FriendlyARM:~# fdisk -l
Disk /dev/mmcblk0: 119.1 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb34d63f9

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 12951551 12820480 6.1G 83 Linux
/dev/mmcblk0p3 12951552 15431679 2480128 1.2G 83 Linux


Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d55659d

Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk1p2 131072 1974271 1843200 900M 83 Linux
/dev/mmcblk1p3 1974272 15429685 13455414 6.4G 83 Linux


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@FriendlyARM:~# dd if=/dev/mmcblk0 of=/dev/mmcblk1 bs=10M



Just copying it wile it's running. It should work then.

-Raymond Day
Raymond Day wrote:
I installed the "nanopi-air-eflasher-sd8g-20161213.img" on a 32GB SD card.

I thought I could then flash to the eMMC like this:

Ubuntu 15.10 FriendlyARM ttyS0

FriendlyARM login: root
Password:
root@FriendlyARM:~# eflasher
-bash: eflasher: command not found
root@FriendlyARM:~# find / -name eflasher
root@FriendlyARM:~#


There is no eflasher find any place on the hole / system. I did a find and it did not find any thing. How do you do it?

-Raymond Day


you can use the command: flash_eMMC.sh -d /mnt/sdcard/Ubuntu-Core-qte/
thindcna wrote:
Raymond Day wrote:
I installed the "nanopi-air-eflasher-sd8g-20161213.img" on


you can use the command: flash_eMMC.sh -d /mnt/sdcard/Ubuntu-Core-qte/


They should put that on the wiki then. All they have is eflasher then "select your wanted OS and type "yes to start flashing" But if you type it just get -bash: eflasher: command not found So they should update the http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air page.

It's like if you look for help on google that's the place it take you to the wiki. But it don't help what your looking for.

-Raymond Day
Never got it to work with the eflasher 8GB image to flash it's self to the eMMC. So like I said in another post I used Gparted to edit the SD card and made partition 3 the one it puts on /mnt/sdcard to only 1.18GB in size to the end of that partition then made the main / or the rest of the size so 6.03GB got it.

Now it don't say 99% full or even 100% used.

Here is a phpsysinfo screen of min how it looks now. Neat info to see on it.

screenshot-nanopi-air 2017-02-08 04-50-24.png
screenshot-nanopi-air 2017-02-08 04-50-24.png (136.55 KiB) Viewed 2094 times


Can see the Mountpoint on this good how it's using the 8GB eMMC now.

-Raymond Day
hi,All

We just uploaded the file in mediafire, please go to download. NanoPi NEO Air ROM with the lastest eflasher

Notice:
Step 1: burn this rom into a blank tf card with win32image (in windows) or dd(in Linux)
Step 2: boot your board with tf card
Step 3: login with root:fa, and run eflasher

Enjoy it and thank for your patience.

-- Mindee
Mindee wrote:
hi,All

We just uploaded the file in mediafire, please go to download. NanoPi NEO Air ROM with the lastest eflasher

Notice:
Step 1: burn this rom into a blank tf card with win32image (in windows) or dd(in Linux)
Step 2: boot your board with tf card
Step 3: login with root:fa, and run eflasher

Enjoy it and thank for your patience.

-- Mindee


I tired this but all you get in the terminal is:

Code: Select all

----------------------------------------------------------------------
  eflasher-console running on NanoPi-Air
----------------------------------------------------------------------
  Select an OS:
    1) ubuntu-core-qte
----------------------------------------------------------------------
>>> Please choose (1) :


The wiki says: "Select your wanted OS and type "yes" to start flashing. After it is done take off the card, reboot your board it will boot from eMMC. "

When I press 1, nothing happens.
Raymond Day wrote:
thindcna wrote:
Raymond Day wrote:
I installed the "nanopi-air-eflasher-sd8g-20161213.img" on


you can use the command: flash_eMMC.sh -d /mnt/sdcard/Ubuntu-Core-qte/


They should put that on the wiki then. All they have is eflasher then "select your wanted OS and type "yes to start flashing" But if you type it just get -bash: eflasher: command not found So they should update the http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air page.

It's like if you look for help on google that's the place it take you to the wiki. But it don't help what your looking for.

-Raymond Day


Did the command help you?
Thank you, running flash_eMMC.sh -d /mnt/sdcard/Ubuntu-Core-qte/
worked.
Hi, All

Here I post what I do successfully.

I use this ROM


[img]
01-login.jpg
[/img]

[img]
02-SelectOS.jpg
[/img]

[img]
03-YesGo.jpg
[/img]

Attachments

continued...

Attachments

Hi, I went to the site for the first time. I thank you with advice.
Hi all,
You can refer to this video that introduce how to flash the image to eMMC:https://www.youtube.com/watch?v=Jy2YX8FSo9s&t=2s

thank you!
Hi, all

Thanks for the video maker.

Here is the video link : A very detailed video on how to flash OS into eMMC with the NanoPi NEO Air board for dummies

Enjoy it and good luck!

-- Mindee

Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 5 minutes)
Most users ever online was 2865 on Sun Nov 10, 2019 5:27 am

Users browsing this forum: No registered users and 10 guests