RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

over copy #131

Closed zhanglongqi closed 1 year ago

zhanglongqi commented 1 year ago

The file on my SD card only has 2.8 GB but the script will keep copy until the emmc is full and eventually the emmc will have some boot issue.

sudo /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

image

The full log:

================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20200709: Fix v5.4.x eeprom read...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Thu 06 Oct 2022 03:00:57 PM +08
----------------------------------------
==> Giving system time to stablize...
5 4 3 2 1 
==> Preparing /tmp
==> Preparing sysctl
==> sysctl: vm.min_free_kbytes=[3437]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet v
ideo=HDMI-A-1:1280x720@60e
----------------------------------------
==> root_drive=[/dev/mmcblk0p1]
====> Root drive identified at [/dev/mmcblk0p1]
==> Boot Drive [/dev/mmcblk0p1]
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk0]
====> Destination identified: [/dev/mmcblk1]
==> Figuring out machine
====> Machine is SanCloud_BeagleBone_Enhanced
====> Machine is compatible with BeagleBone Black
================================================================================
5 4 3 2 1 

========================================
Checking for Valid bbb-eeprom header
==> Valid bbb-eeprom header found [335]
========================================

================================================================================
Checking running system
==> Copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
==> lsblk:
----------------------------------------
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0  3.6G  0 disk 
└─mmcblk1p1  179:1    0  3.6G  0 part 
mmcblk1boot0 179:256  0    2M  1 disk 
mmcblk1boot1 179:512  0    2M  1 disk 
mmcblk0      179:768  0 29.7G  0 disk 
└─mmcblk0p1  179:769  0  7.2G  0 part /
----------------------------------------
==> df -h | grep rootfs:
----------------------------------------
==> Giving you time to check...
10 9 8 7 6 5 4 3 2 1 
================================================================================

================================================================================
Preparing drives

----------------------------------------
==> Erasing: /dev/mmcblk1
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 9.89037 s, 11.5 MB/s
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 2.77096 s, 40.9 MB/s
----------------------------------------
==> Erasing: /dev/mmcblk1 complete
----------------------------------------

----------------------------------------
==> Loading /boot/SOC.sh
************************************************************
#!/bin/sh
format=1.0

board=am335x_evm

bootloader_location=dd_spl_uboot_boot
bootrom_gpt=

dd_spl_uboot_count=2
dd_spl_uboot_seek=1
dd_spl_uboot_conf=notrunc
dd_spl_uboot_bs=128k
dd_spl_uboot_backup=/opt/backup/uboot/MLO

dd_uboot_count=4
dd_uboot_seek=1
dd_uboot_conf=notrunc
dd_uboot_bs=384k
dd_uboot_backup=/opt/backup/uboot/u-boot.img

boot_fstype=ext4
conf_boot_startmb=4
conf_boot_endmb=
sfdisk_fstype=L

boot_label=BOOT
rootfs_label=rootfs

#Kernel
dtb=
serial_tty=ttyO0
usbnet_mem=

#Advanced options
#disable_ssh_regeneration=true

************************************************************
==> Loaded

----------------------------------------

================================================================================
Writing bootloader to [/dev/mmcblk1]
----------------------------------------
==> Figuring out options for SPL U-Boot copy ...
===> Will use : count=2 seek=1 conv=notrunc bs=128k
==> Figuring out options for U-Boot copy ...
===> Will use : count=4 seek=1 conv=notrunc bs=384k
==> Copying SPL U-Boot with dd if=/opt/backup/uboot/MLO of=/dev/mmcblk1 count=2 seek=1 conv=notrunc bs=128k
------------------------------------------------------------
0+1 records in
0+1 records out
106028 bytes (106 kB, 104 KiB) copied, 0.0207613 s, 5.1 MB/s
------------------------------------------------------------
==> Copying U-Boot with dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk1 count=4 seek=1 conv=notrunc bs=384k
------------------------------------------------------------
2+1 records in
2+1 records out
987236 bytes (987 kB, 964 KiB) copied, 0.13283 s, 7.4 MB/s
------------------------------------------------------------
Writing bootloader completed
================================================================================

================================================================================
Partitionning /dev/mmcblk1
----------------------------------------
sfdisk: [2.26.x or greater]
==> sfdisk parameters:
sfdisk: [sfdisk from util-linux 2.36.1]
sfdisk: [sfdisk --force /dev/mmcblk1]
sfdisk: [4M,,L,*]
==> Partitionning
------------------------------------------------------------
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 3.64 GiB, 3909091328 bytes, 7634944 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

>>> Created a new DOS disklabel with disk identifier 0x519e4ea1.
/dev/mmcblk1p1: Created a new partition 1 of type 'Linux' and of size 3.6 GiB.
/dev/mmcblk1p2: Done.

New situation:
Disklabel type: dos
Disk identifier: 0x519e4ea1

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7634943 7626752  3.6G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
------------------------------------------------------------

==> Partitionning Completed
==> Generated Partitions:
------------------------------------------------------------
Disk /dev/mmcblk1: 3.64 GiB, 3909091328 bytes, 7634944 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: 0x519e4ea1

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7634943 7626752  3.6G 83 Linux
------------------------------------------------------------
================================================================================

================================================================================
Preparing future rootfs to receive files
----------------------------------------

==> Formatting rootfs with mkfs.ext4  /dev/mmcblk1p1 -L rootfs
--------------------------------------------------------------------------------

mke2fs 1.46.2 (28-Feb-2021)
Discarding device blocks: done                            
Creating filesystem with 953344 4k blocks and 238560 inodes
Filesystem UUID: fda05374-61ca-4a22-bf62-b7724c323cf2
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

--------------------------------------------------------------------------------
==> Formatting rootfs: /dev/mmcblk1p1 complete
==> Creating temporary rootfs directory (/tmp/rootfs)
==> Mounting /dev/mmcblk1p1 to /tmp/rootfs

================================================================================

================================================================================
Copying: Current rootfs to /dev/mmcblk1p1
----------------------------------------
==> rsync: / -> /tmp/rootfs
----------------------------------------
        [ 1968.869410] tda998x 0-0070: read edid timeoutir-chk=2108/23832)    817.74M  99%  532.09kB/s    0:25:00 (xfr#15780, ir-chk=1058/21387)064)
          3.01G  99%  453.99kB/s    1:47:57 (xfr#71014, ir-chk=1237/85640)          3.01G  99%  456.51kB/s    1:47:20 (xfr#70587, ir-chk=1087/84825)
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(703) [sender=3.2.3]
rsync error: received SIGUSR1 (code 19) at main.c(1595) [generator=3.2.3]
writing to [/dev/mmcblk1] failed...
==> Setting LEDs to 
----------------------------------------

Your foo is weak.

Your foo is weak.

Your foo is weak.
^C==> Setting LEDs to 

# debian @ bbe in ~
# debian @ bbe in ~ [16:50:56] 
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            465M     0  465M   0% /dev
tmpfs           100M   12M   88M  12% /run
/dev/mmcblk0p1  7.1G  2.8G  4.0G  41% /
tmpfs           496M     0  496M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           150M  4.3M  146M   3% /var/log
tmpfs           100M   32K  100M   1% /run/user/1000
tmpfs           496M  8.0K  496M   1% /tmp
/dev/mmcblk1p1  3.6G  3.1G  307M  91% /tmp/rootfs
RobertCNelson commented 1 year ago

Hi @zhanglongqi i've been transitioning things away from that script.

What's your goal or what do you want the script to accomplish?

Regards,

zhanglongqi commented 1 year ago

I was trying to copy my product-ready system from the SD card to the builtin EMMC, and the system size is only /dev/mmcblk0p1 7.1G 2.8G 4.0G 41% / but the final system in emmc is much bigger size.

I compared the system file using du. The strange part is that some folders in /usr/lib/arm-linux-gnueabihf become bigger. the left side in the screenshot is the one using EMMC.

image

image

zhanglongqi commented 1 year ago

so I should use the beagle-flasher mentioned here right https://forum.beagleboard.org/t/ubuntu-emmc-image/31628/2 I will try that.

zhanglongqi commented 1 year ago

I tried sudo beagle-flasher with the default config but the same thing happened again:

image

image

log for sudo beagle-flasher:

image

#############

image

RobertCNelson commented 1 year ago

Okay, so the jist of the problem, you have a microSD with 2.8GB of used space, which should fit on a 4GB eMMC with no issues, but when you run the script... It somehow fills it up the eMMC...

Can you share?

sudo /opt/scripts/tools/version.sh

trying to figure out how i'd go about testing this..

maybe add

dpkg --list > installed.log

and

systemctl status > running.log

Regards,

zhanglongqi commented 1 year ago
$ sudo /opt/scripts/tools/version.sh 

git:/opt/scripts/:[b63cfc92fcaa053450ec6d7e6c1bc461952c9876]
eeprom:[A335BNLTSE0A1420BBE3B690]
model:[SanCloud_BeagleBone_Enhanced]:WiFi AP Enabled:[https://github.com/lwfinger/rtl8723bu]
dogtag:[BeagleBoard.org Debian Bullseye Xfce Image 2022-09-02]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-gd0771d53 (Jul 21 2022 - 02:13:23 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-sancloud-bbe-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-NHDMI-TDA998x-00A0.kernel]
UBOOT: Loaded Overlay:[BB-UART2-00A0]
UBOOT: Loaded Overlay:[BB-UART4-00A0]
kernel:[5.10.131-ti-r50]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-UART2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr1=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[disable_uboot_overlay_wireless=1]
uboot_overlay_options:[disable_uboot_overlay_adc=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20220913.0-0~bullseye+20220913]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~bullseye+20220816]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~bullseye+20211222]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input bluetooth netdev i2c gpio admin tisdk weston-launch cloud9ide]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1280x720@60e]
dmesg | grep remote
[    9.141684] remoteproc remoteproc0: wkup_m3 is available
[   50.197234] remoteproc remoteproc0: powering up wkup_m3
[   50.197272] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[   50.197569] remoteproc remoteproc0: remote processor wkup_m3 is now up
[  112.554770] remoteproc remoteproc1: 4a334000.pru is available
[  112.582783] remoteproc remoteproc2: 4a338000.pru is available
[  148.273103] remoteproc remoteproc1: powering up 4a334000.pru
[  148.277848] remoteproc remoteproc1: Booting fw image am335x-pru0-fw, size 56368
[  148.277961] remoteproc remoteproc1: remote processor 4a334000.pru is now up
dmesg | grep pru
[  112.554770] remoteproc remoteproc1: 4a334000.pru is available
[  112.582783] remoteproc remoteproc2: 4a338000.pru is available
[  148.273103] remoteproc remoteproc1: powering up 4a334000.pru
[  148.277848] remoteproc remoteproc1: Booting fw image am335x-pru0-fw, size 56368
[  148.277961] remoteproc remoteproc1: remote processor 4a334000.pru is now up
dmesg | grep pinctrl-single
[    8.730914] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[    8.732246] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[    8.732274] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    9.343221] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    9.343456] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    9.343643] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    9.343820] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    9.344295] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    9.344493] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    9.344671] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    9.344844] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    9.345021] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    9.345191] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    9.345442] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[    9.345641] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[    9.345813] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[    9.345985] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[    9.346154] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[    9.346329] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[    9.346630] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[    9.346837] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[    9.347009] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[    9.347183] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[    9.347366] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[    9.347539] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[    9.347714] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[    9.347877] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[    9.348054] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[    9.348213] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[    9.348385] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[    9.348552] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[    9.348735] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[    9.348925] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[    9.349087] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[    9.349272] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[    9.349442] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[    9.349603] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[    9.349771] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[    9.349944] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[    9.350122] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[    9.350292] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[    9.350469] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[    9.350766] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[    9.350943] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[    9.351105] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[    9.351279] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[    9.351438] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[    9.351620] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[    9.351800] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[    9.351962] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[    9.352152] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[    9.352313] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[    9.352523] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[    9.352695] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[    9.352859] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[    9.353040] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[    9.353201] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[    9.353370] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[    9.353538] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[    9.353713] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[    9.353886] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[    9.354352] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[    9.354665] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[    9.354900] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[    9.355068] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[    9.355266] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[    9.355449] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[    9.355616] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[    9.355805] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[    9.355969] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[    9.356143] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[    9.356324] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[    9.356335] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 003: ID 0bda:b720 Realtek Semiconductor Corp. RTL8723BU 802.11b/g/n WLAN Adapter
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

installed.log running.log

zhanglongqi commented 1 year ago

It seems he also encounters the same issue. https://forum.beagleboard.org/t/debian-11-bullseye-testing-images/30542/19?u=longqi

RobertCNelson commented 1 year ago

Testing right now.. are you flashing via:

sudo beagle-flasher

Or

sudo enable-beagle-flasher
sudo reboot

I'm a little worried about firefox running, is that normal? Are you running the full desktop with firefox, and then 'flashing' or doing the reboot flashing method. (testing both..)

Regards,

RobertCNelson commented 1 year ago

Weird....

debian@BeagleBone:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            212M     0  212M   0% /dev
tmpfs            49M  1.5M   47M   4% /run
/dev/mmcblk0p1   15G  2.9G   12G  21% /
tmpfs           242M     0  242M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            49M   32K   49M   1% /run/user/1000
/dev/mmcblk1p1  3.5G  3.3G     0 100% /tmp/rootfs

(via: sudo beagle-flasher)

RobertCNelson commented 1 year ago
debian@BeagleBone:~$ sudo enable-beagle-flasher 
[sudo] password for debian: 
log: enable-beagle-flasher
log: media is now setup to flash other media
log: Shutdown system and this flasher will run on next startup

Next testing the RO only version...

RobertCNelson commented 1 year ago

hum.. also failed...

--------------------------------------------------------------------------------
INFO: Copying: Kernel modules
INFO: /usr/bin/rsync: /lib/modules/5.10.131-ti-r49/ -> /tmp/rootfs/lib/modules/5.10.131-ti-r49/
rsync: [receiver] write failed on "/tmp/rootfs/lib/modules/5.10.131-ti-r49/extra/qcacld2.ko": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(378) [receiver=3.2.3]
rsync: [sender] write error: Broken pipe (32)
ERROR: writing to [destination=/dev/mmcblk1] failed...
Debug: Setting Heartbeat
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
Error: Flash Failed please review log.
RobertCNelson commented 1 year ago

I think this might be hard-links..

sudo find / -xdev -type f -links +1 -ls | sort -n > hard-links-in-root.txt
debian@BeagleBone:~$ cat hard-links-in-root.txt 
     4913     28 -rwxr-xr-x   3 root     root        26052 Jul 20  2020 /bin/bunzip2
     4913     28 -rwxr-xr-x   3 root     root        26052 Jul 20  2020 /bin/bzcat
     4913     28 -rwxr-xr-x   3 root     root        26052 Jul 20  2020 /bin/bzip2
     4923      4 -rwxr-xr-x   2 root     root         2346 Apr 10  2022 /bin/gunzip
     4923      4 -rwxr-xr-x   2 root     root         2346 Apr 10  2022 /bin/uncompress
    16026     64 -rw-r--r--   3 root     root        63480 Aug 17 18:30 /opt/bb-code-server/app/node_modules/argon2/build-tmp-napi-v3/Release/argon2.node
    16026     64 -rw-r--r--   3 root     root        63480 Aug 17 18:30 /opt/bb-code-server/app/node_modules/argon2/build-tmp-napi-v3/Release/obj.target/argon2.node
    16026     64 -rw-r--r--   3 root     root        63480 Aug 17 18:30 /opt/bb-code-server/app/node_modules/argon2/lib/binding/napi-v3/argon2.node
    16035     48 -rw-r--r--   2 root     root        48832 Aug 17 18:30 /opt/bb-code-server/app/node_modules/argon2/build-tmp-napi-v3/Release/argon2.a
    16035     48 -rw-r--r--   2 root     root        48832 Aug 17 18:30 /opt/bb-code-server/app/node_modules/argon2/build-tmp-napi-v3/Release/obj.target/argon2.a
    17009     12 -rw-r--r--   2 root     root         8696 Aug 17 18:30 /opt/bb-code-server/app/lib/vscode/node_modules/native-watchdog/build/Release/obj.target/watchdog.node
    17009     12 -rw-r--r--   2 root     root         8696 Aug 17 18:30 /opt/bb-code-server/app/lib/vscode/node_modules/native-watchdog/build/Release/watchdog.node
    17215    320 -rw-r--r--   2 root     root       324516 Aug 17 18:31 /opt/bb-code-server/app/lib/vscode/node_modules/@parcel/watcher/build/Release/obj.target/watcher.node
    17215    320 -rw-r--r--   2 root     root       324516 Aug 17 18:31 /opt/bb-code-server/app/lib/vscode/node_modules/@parcel/watcher/build/Release/watcher.node
    17218      4 -rw-r--r--   2 root     root          908 Aug 17 18:30 /opt/bb-code-server/app/lib/vscode/node_modules/@parcel/watcher/build/Release/nothing.a
    17218      4 -rw-r--r--   2 root     root          908 Aug 17 18:30 /opt/bb-code-server/app/lib/vscode/node_modules/@parcel/watcher/build/node-addon-api/nothing.a
    17670    376 -rw-r--r--   2 root     root       382784 Aug 17 18:31 /opt/bb-code-server/app/lib/vscode/node_modules/spdlog/build/Release/obj.target/spdlog.node
    17670    376 -rw-r--r--   2 root     root       382784 Aug 17 18:31 /opt/bb-code-server/app/lib/vscode/node_modules/spdlog/build/Release/spdlog.node
    23012     48 -rwxr-xr-x   2 root     root        45262 Sep 24  2021 /usr/bin/perlbug
    23012     48 -rwxr-xr-x   2 root     root        45262 Sep 24  2021 /usr/bin/perlthanks
    23271    836 -rwxr-xr-x   2 root     root       852396 May 10 14:51 /usr/bin/pru-gcc
    23271    836 -rwxr-xr-x   2 root     root       852396 May 10 14:51 /usr/bin/pru-gcc-12.1.0
    23506    124 -rwxr-xr-x   2 root     root       125024 Aug  6 23:45 /usr/bin/unzip
    23506    124 -rwxr-xr-x   2 root     root       125024 Aug  6 23:45 /usr/bin/zipinfo
    23614    836 -rwxr-xr-x   2 root     root       852396 May 10 14:51 /usr/bin/pru-c++
    23614    836 -rwxr-xr-x   2 root     root       852396 May 10 14:51 /usr/bin/pru-g++
    23625   2724 -rwxr-xr-x   2 root     root      2788144 Sep 24  2021 /usr/bin/perl
    23625   2724 -rwxr-xr-x   2 root     root      2788144 Sep 24  2021 /usr/bin/perl5.32.1
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/armada-drm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/etnaviv_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/hx8357d_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/ili9225_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/ili9341_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/imx-dcss_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/imx-drm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/ingenic-drm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/kgsl_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/kirin_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/kms_swrast_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/komeda_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/lima_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/mali-dp_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/mcde_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/mediatek_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/meson_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/mi0283qt_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/msm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/mxsfb-drm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/nouveau_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/panfrost_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/pl111_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/r300_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/r600_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/radeonsi_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/rcar-du_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/repaper_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/rockchip_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/st7586_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/st7735r_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/stm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/sun4i-drm_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/tegra_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/v3d_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/vc4_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/virtio_gpu_dri.so
    24968  15060 -rw-r--r--  40 root     root     15418400 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/zink_dri.so
    24969   7608 -rw-r--r--   3 root     root      7788172 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/nouveau_drv_video.so
    24969   7608 -rw-r--r--   3 root     root      7788172 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/r600_drv_video.so
    24969   7608 -rw-r--r--   3 root     root      7788172 May 11 13:37 /usr/lib/arm-linux-gnueabihf/dri/radeonsi_drv_video.so
   142976   7800 -rw-r--r--   4 root     root      7985388 May 11 13:37 /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_nouveau.so.1.0.0
   142976   7800 -rw-r--r--   4 root     root      7985388 May 11 13:37 /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_r300.so.1.0.0
   142976   7800 -rw-r--r--   4 root     root      7985388 May 11 13:37 /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_r600.so.1.0.0
   142976   7800 -rw-r--r--   4 root     root      7985388 May 11 13:37 /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_radeonsi.so.1.0.0
   145625    748 -rwxr-xr-x   2 root     root       762556 Mar  4  2022 /usr/lib/pru/bin/ld
   145625    748 -rwxr-xr-x   2 root     root       762556 Mar  4  2022 /usr/lib/pru/bin/ld.bfd
   145640   1064 -rw-r--r--   2 root     root      1088316 May 10 14:51 /usr/lib/pru/lib/libc.a
   145640   1064 -rw-r--r--   2 root     root      1088316 May 10 14:51 /usr/lib/pru/lib/libg.a
RobertCNelson commented 1 year ago

Yeap, it was hardlinks... patching...

RobertCNelson commented 1 year ago

/usr/bin/rsync -aHAXx H fixes it..

zhanglongqi commented 1 year ago

It working now. Share my log here. Maybe it's useful for someone.

sudo beagle-flasher
--------------------------------------------------------------------------------
Version: [1.20221010.1, rsync add -H option for hardlinks, final image running out of space...]
--------------------------------------------------------------------------------
cat /etc/default/beagle-flasher:
--------------------------------------------------------------------------------
#debug_over_display=tty0
source=/dev/mmcblk0
destination=/dev/mmcblk1
rfs_partition=single
rfs_rootfs_type=ext4
rfs_rootfs_startmb=4
bootloader=/opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh
flash_back=beaglebone-black-emmc-to-microsd
--------------------------------------------------------------------------------
INFO: Preparing sysctl
INFO: [sysctl: vm.min_free_kbytes=[16384]
INFO: [sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
--------------------------------------------------------------------------------
INFO: [lsblk -i]
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0  3.6G  0 disk
`-mmcblk1p1  179:1    0  3.6G  0 part
mmcblk1boot0 179:256  0    2M  1 disk
mmcblk1boot1 179:512  0    2M  1 disk
mmcblk0      179:768  0 14.8G  0 disk
`-mmcblk0p1  179:769  0  3.6G  0 part /
--------------------------------------------------------------------------------
INFO: copying [/dev/mmcblk0] -> [/dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [source=/dev/mmcblk0] is a valid block device
INFO: [destination=/dev/mmcblk1] is a valid block device
INFO: [/boot/config-5.10.140-ti-r52]
INFO: Generating: [/boot/initrd.img-5.10.140-ti-r52]
update-initramfs: Generating /boot/initrd.img-5.10.140-ti-r52
W: Possible missing firmware /lib/firmware/xc3028L-v36.fw for built-in driver tuner_xc2028
W: Possible missing firmware /lib/firmware/xc3028-v27.fw for built-in driver tuner_xc2028
W: Possible missing firmware /lib/firmware/dvb-fe-xc4000-1.4.fw for built-in driver xc4000
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk1]
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=108 status=progress]
111149056 bytes (111 MB, 106 MiB) copied, 3 s, 36.7 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 10.17 s, 11.1 MB/s
--------------------------------------------------------------------------------
INFO: [dd if=/dev/mmcblk1 of=/dev/null bs=1M count=108 status=progress]
112197632 bytes (112 MB, 107 MiB) copied, 3 s, 37.2 MB/s
108+0 records in
108+0 records out
113246208 bytes (113 MB, 108 MiB) copied, 3.30155 s, 34.3 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Erasing: [/dev/mmcblk1] complete
--------------------------------------------------------------------------------
INFO: [/bin/bash /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh]
dd if=/opt/u-boot/bb-u-boot-am335x-evm/MLO of=/dev/mmcblk1 count=2 seek=1 bs=128k
0+1 records in
0+1 records out
106028 bytes (106 kB, 104 KiB) copied, 0.0230523 s, 4.6 MB/s
dd if=/opt/u-boot/bb-u-boot-am335x-evm/u-boot-dtb.img of=/dev/mmcblk1 count=4 seek=1 bs=384k
2+1 records in
2+1 records out
987236 bytes (987 kB, 964 KiB) copied, 0.160046 s, 6.2 MB/s
--------------------------------------------------------------------------------
INFO: Partitioning: /dev/mmcblk1
INFO: /sbin/sfdisk: [sfdisk from util-linux 2.36.1]
INFO: /sbin/sfdisk: [/sbin/sfdisk --force /dev/mmcblk1]
INFO: /sbin/sfdisk: [4M,,L,*]
--------------------------------------------------------------------------------
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 3.64 GiB, 3909091328 bytes, 7634944 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

>>> Created a new DOS disklabel with disk identifier 0xab72047a.
/dev/mmcblk1p1: Created a new partition 1 of type 'Linux' and of size 3.6 GiB.
/dev/mmcblk1p2: Done.

New situation:
Disklabel type: dos
Disk identifier: 0xab72047a

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *     8192 7634943 7626752  3.6G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk1
/sbin/mkfs.ext4  /dev/mmcblk1p1 -L rootfs
mke2fs 1.46.2 (28-Feb-2021)
Discarding device blocks: done
Creating filesystem with 953344 4k blocks and 238560 inodes
Filesystem UUID: 38c612ec-032d-4d01-90ee-2cfb33aa447d
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Formatting: /dev/mmcblk1 complete
--------------------------------------------------------------------------------
INFO: Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1
INFO: [mount /dev/mmcblk1p1 /tmp/rootfs/ -o async,noatime]
INFO: /usr/bin/rsync: (-aHAXx) [/ -> /tmp/rootfs/]
          2.64G  77%    2.09MB/s    0:20:06 (xfr#77612, to-chk=0/92186)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Copying: Kernel modules
INFO: /usr/bin/rsync: (-aHAXx) /lib/modules/5.10.140-ti-r52/ -> /tmp/rootfs/lib/modules/5.10.140-ti-r52/
         60.84M 100%    1.26MB/s    0:00:46 (xfr#2576, to-chk=0/2978)
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: Generating: /etc/fstab
INFO: [cat /tmp/rootfs/etc/fstab]
# /etc/fstab: static file system information.
#
/dev/mmcblk1p1  /  ext4  noatime,errors=remount-ro  0  1
debugfs  /sys/kernel/debug  debugfs  mode=755,uid=root,gid=gpio,defaults  0  0
--------------------------------------------------------------------------------
INFO: [cat /tmp/rootfs/boot/uEnv.txt]

#disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
disable_uboot_overlay_wireless=1
disable_uboot_overlay_adc=1
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (60000 = 384KB)
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###

console=ttyS0,115200n8
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1280x720@60e
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet video=HDMI-A-1:1920x1080@24e

#Use an overlayfs on top of a read-only root filesystem:
#cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet overlayroot=tmpfs

##enable Generic eMMC Flasher:
#cmdline=init=/usr/sbin/init-beagle-flasher
--------------------------------------------------------------------------------
INFO: [cp -v /etc/beagle-flasher/beaglebone-black-emmc-to-microsd /tmp/rootfs/etc/default/beagle-flasher]
'/etc/beagle-flasher/beaglebone-black-emmc-to-microsd' -> '/tmp/rootfs/etc/default/beagle-flasher'
--------------------------------------------------------------------------------
INFO: [cat /tmp/rootfs/etc/default/generic-sys-mods]
#This file is sourced by /usb/bin/bb-growpart
ROOT_DRIVE=/dev/mmcblk1
ROOT_PARTITION=1
ARCH_SOC_MODULES=am335x
--------------------------------------------------------------------------------
Copying: /dev/mmcblk0p1 -> /dev/mmcblk1p1 complete
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------
INFO: [umount /tmp/rootfs/ || umount -l /tmp/rootfs/ || write_failure]
--------------------------------------------------------------------------------
INFO: Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
INFO: [dd if=/dev/mmcblk1 of=/dev/null count=100000 status=progress]
42214912 bytes (42 MB, 40 MiB) copied, 5 s, 8.4 MB/s
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 6.18138 s, 8.3 MB/s
--------------------------------------------------------------------------------
INFO: flush_cache: [blockdev --flushbufs /dev/mmcblk1]
--------------------------------------------------------------------------------