Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"11/21 [DIRmnt/fat/tmp/mmcdev`; mount -t vfat ] FBK: ucp zImage t:/mnt/fat" appeared while running on M2 Mac #387

Open
LYC584520 opened this issue Aug 29, 2023 · 8 comments

Comments

@LYC584520
Copy link

LYC584520 commented Aug 29, 2023

Hello team,

Host machine: M2 Mac(macOS Ventura 13.5)
Target board: iMX6ull
Branch: master
brew info libusb: libusb: stable 1.0.26 (bottled), HEAD

USB connect successfully, but failed while flashing:

sudo ./uuu example_kernel_emmc.uuu
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.125-2-gbb9b769

Success 0    Failure 1

2:32 11/21 [DIRmnt/fat/tmp/mmcdev; mount -t vfat ] FBK: ucp  zImage t:/mnt/fat

There are some warings in the compile logs:

cmake -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl . && make
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at libuuu/CMakeLists.txt:63:
Syntax Warning in cmake code at column 159

Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Deprecation Warning at libuuu/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Checking for module 'libzstd'
-- Found libzstd, version 1.5.5
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenSSL: /opt/homebrew/opt/openssl/lib/libcrypto.dylib (found version "3.1.2")
CMake Deprecation Warning at uuu/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Checking for module 'zlib'
-- Found zlib, version 1.2.11
-- Configuring done (0.3s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/jasen/Desktop/workspace/imx6ull/uuu
[ 2%] Generating gitversion.h
build not in appveyor
[ 5%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/error.cpp.o
[ 8%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/buffer.cpp.o
[ 11%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/cmd.cpp.o
/Users/jasen/Desktop/workspace/imx6ull/uuu/libuuu/cmd.cpp:556:13: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
if (typeid(*p) != typeid(CfgCmd))
^
1 warning generated.
[ 14%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/config.cpp.o
[ 17%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/notify.cpp.o
[ 20%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/sdps.cpp.o
[ 22%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/trans.cpp.o
[ 25%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/usbhotplug.cpp.o
[ 28%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/version.cpp.o
[ 31%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/sdp.cpp.o
[ 34%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/fastboot.cpp.o
[ 37%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/zip.cpp.o
[ 40%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/fat.cpp.o
[ 42%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/tar.cpp.o
[ 45%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/rominfo.cpp.o
[ 48%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/http.cpp.o
[ 51%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/hidreport.cpp.o
[ 54%] Building CXX object libuuu/CMakeFiles/uuc_s.dir/sparse.cpp.o
[ 57%] Linking CXX static library libuuc_s.a
[ 57%] Built target uuc_s
[ 60%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/uuu.clst
[ 62%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/emmc_burn_all.clst
[ 65%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/emmc_burn_loader.clst
[ 68%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/fat_write.clst
[ 71%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/fspinand_burn_loader.clst
[ 74%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/nand_burn_loader.clst
[ 77%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/nvme_burn_all.clst
[ 80%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/qspi_burn_loader.clst
[ 82%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/sd_burn_all.clst
[ 85%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/sd_burn_loader.clst
[ 88%] Creating preprocessed clst file /Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/gen/spl_boot.clst
[ 91%] Building CXX object uuu/CMakeFiles/uuu.dir/uuu.cpp.o
[ 94%] Building CXX object uuu/CMakeFiles/uuu.dir/buildincmd.cpp.o
[ 97%] Building CXX object uuu/CMakeFiles/uuu.dir/autocomplete.cpp.o
[100%] Linking CXX executable uuu
ld: warning: directory not found for option '-L/Users/jasen/Desktop/workspace/imx6ull/uuu/uuu/libuuu'
[100%] Built target uuu
@LYC584520 LYC584520 changed the title “[DIRtmpcat /tmp/mmcdev`; echo 0 > /sys/] FBK: ucp x-loader.imx t:/tmp” appeared on M2 Mac “[DIRtmpcat /tmp/mmcdev`; echo 0 > /sys/] FBK: ucp x-loader.imx t:/tmp” appeared while running on M2 Mac Aug 29, 2023
@nxpfrankli
Copy link
Contributor

Can you try use sudo ./uuu -v example_kernel_emmc.uuu? I get more debug information about your problem

@LYC584520
Copy link
Author

Can you try use sudo ./uuu -v example_kernel_emmc.uuu? I get more debug information about your problem

./uuu -v example_kernel_emmc.uuu
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.125-2-gbb9b769

Build in config:
	Pctl	 Chip		 Vid	 Pid	 BcdVersion
	==================================================
	SDPS:	 MX8QXP		 0x1fc9	 0x012f	 [0x0002..0xffff]
	SDPS:	 MX8QM		 0x1fc9	 0x0129	 [0x0002..0xffff]
	SDPS:	 MX8DXL		 0x1fc9	 0x0147
	SDPS:	 MX28		 0x15a2	 0x004f
	SDPS:	 MX815		 0x1fc9	 0x013e
	SDPS:	 MX865		 0x1fc9	 0x0146
	SDPS:	 MX8ULP		 0x1fc9	 0x014a
	SDPS:	 MX8ULP		 0x1fc9	 0x014b
	SDPS:	 MX93		 0x1fc9	 0x014e
	SDP:	 MX7D		 0x15a2	 0x0076
	SDP:	 MX6Q		 0x15a2	 0x0054
	SDP:	 MX6D		 0x15a2	 0x0061
	SDP:	 MX6SL		 0x15a2	 0x0063
	SDP:	 MX6SX		 0x15a2	 0x0071
	SDP:	 MX6UL		 0x15a2	 0x007d
	SDP:	 MX6ULL		 0x15a2	 0x0080
	SDP:	 MX6SLL		 0x1fc9	 0x0128
	SDP:	 MX7ULP		 0x1fc9	 0x0126
	SDP:	 MXRT106X	 0x1fc9	 0x0135
	SDP:	 MX8MM		 0x1fc9	 0x0134
	SDP:	 MX8MQ		 0x1fc9	 0x012b
	SDPU:	 SPL		 0x0525	 0xb4a4	 [0x0000..0x04ff]
	SDPV:	 SPL1		 0x0525	 0xb4a4	 [0x0500..0x9998]
	SDPV:	 SPL1		 0x1fc9	 0x0151	 [0x0500..0x9998]
	SDPU:	 SPL		 0x0525	 0xb4a4	 [0x9999..0x9999]
	SDPU:	 SPL		 0x3016	 0x1001	 [0x0000..0x04ff]
	SDPV:	 SPL1		 0x3016	 0x1001	 [0x0500..0x9998]
	FBK:	 		 0x066f	 0x9afe
	FBK:	 		 0x066f	 0x9bff
	FBK:	 		 0x1fc9	 0x0153
	FB:	 		 0x0525	 0xa4a5
	FB:	 		 0x18d1	 0x0d02
	FB:	 		 0x3016	 0x0001
	FB:	 		 0x1fc9	 0x0152
	FB:	 		 0x0483	 0x0afb
Wait for Known USB Device Appear...
New USB Device Attached at 2:32
2:32>Start Cmd:SDP: boot -f u-boot-dtb.imx
100%2:32>Okay (0.861s)
New USB Device Attached at 2:32
2:32>Start Cmd:FB: ucmd setenv fastboot_dev mmc
:setenv fastboot_dev mmco2:32>Okay (0.007s)
2:32>Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}
:setenv mmcdev ${emmc_dev}o2:32>Okay (0.002s)
2:32>Start Cmd:FB: flash bootloader u-boot-dtb.imx
0x40000000nload-sizec_dev}o00095c0095c00ad-sizec_dev}oh:bootloader0ad-sizec_dev}o2:32>Okay (0.077s)
2:32>Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
:if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;2:32>Okay (0.001s)
2:32>Start Cmd:FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
:setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0i;2:32>Okay (0s)
2:32>Start Cmd:FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi
:if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi;2:32>Okay (0.001s)
2:32>Start Cmd:FB: ucmd setenv emmc_cmd mmc bootbus ${emmc_dev} 2 0 1;
:setenv emmc_cmd mmc bootbus ${emmc_dev} 2 0 1;mmc_cmd; fi;2:32>Okay (0s)
2:32>Start Cmd:FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi
:if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi;2:32>Okay (0.004s)
2:32>Start Cmd:FB: ucmd setenv fastboot_buffer ${loadaddr}
:setenv fastboot_buffer ${loadaddr}; then run emmc_cmd; fi;2:32>Okay (0s)
2:32>Start Cmd:FB: download -f zImage
2:32>Okay (0.275s)
2:32>Start Cmd:FB: ucmd setenv fastboot_buffer ${fdt_addr}
:setenv fastboot_buffer ${fdt_addr}t?
                                     m?]?L2:32>Okay (0s)
2:32>Start Cmd:FB: download -f imx6ull-14x14-evk.dtb
0000b1da0b1daoot_buffer ${fdt_addr}t?
                                     m?]?L2:32>Okay (0.006s)
2:32>Start Cmd:FB: ucmd setenv fastboot_buffer ${initrd_addr}
:setenv fastboot_buffer ${initrd_addr}
                                      m?]?L2:32>Okay (0s)
2:32>Start Cmd:FB: download -f fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot
00c6a3336a333oot_buffer ${initrd_addr}
                                      m?]?L2:32>Okay (0.382s)
2:32>Start Cmd:FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}
:${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}k${mmc}p1 /m2:32>Okay (0s)
New USB Device Attached at 2:32
2:32>Start Cmd:FBK: ucmd while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait for /dev/mmcblk*boot* appear"; done;
:while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait fo:while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait fo:while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait fo:while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait fo:while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait fo2:32>Okay (0.034s)
2:32>Start Cmd:FBK: ucmd dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=${dev#/dev/mmcblk}; dev=${dev%boot*}; echo $dev > /tmp/mmcdev;
:dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=:dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=:dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=:dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=:dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=2:32>Okay (0.031s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=512 count=1
:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}2:32>Okay (0.028s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; echo "$PARTSTR" | sfdisk --force /dev/mmcblk${mmc}
:mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; :mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk1: 7.28 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

>>> Created a new DOS disklabel with disk identifier 0xca06ec4a.
/dev/mmcblk1p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
 /dev/mmcblk1p2: Created a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' and of size 6.7 GiB.
ated a new partition 2 of type 'Linux' an?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????/dev/mmcblk1p3: Done.

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

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk1p1        20480  1044479  1024000  500M  c W95 FAT32 (LBA)
/dev/mmcblk1p2      1228800 15269887 14041088  6.7G 83 Linux

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

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table.
Syncing disks.

Calling ioctl() to re-read partition table2:32>Okay (0.451s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=1k seek=4096 count=1
:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}2:32>Okay (0.029s)
2:32>Start Cmd:FBK: ucmd sync
:sync`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:sync`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:sync`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:sync`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}:sync`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc}2:32>Okay (0.017s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; do sleep 1; done
:mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; :mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; 2:32>Okay (0.023s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1
:mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1 MiB.
 ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????mkfs.fat 4.2 (2021-01-31)
fs.vfat /dev/mmcblk${mmc}p1 MiB.
 mkfs.fat 4.2 (2021-01-31)
fs.vfat /dev/mmcblk${mmc}p1 MiB.
 mkfs.fat 4.2 (2021-01-31)
fs.vfat /dev/mmcblk${mmc}p1 MiB.
 2:32>Okay (0.084s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fat
:mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 :mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fatcblk${mmc}p1 MiB.
 2:32>Okay (0.026s)
2:32>Start Cmd:FBK: ucmd mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /mnt/fat
:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m:mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m2:32>Okay (0.039s)
2:32>Start Cmd:FBK: ucp  zImage t:/mnt/fat
DIRmnt/fat/tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m2:32>Fail DIRmnt/fat/tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /m(0s)

@LYC584520
Copy link
Author

LYC584520 commented Aug 30, 2023

And here is content of example_kernel_emmc.uuu:

Is commands of example_kernel_emmc.uuu matching uuu version? but it is worked on uuu_x86 1.5.21.

uuu_version 1.2.39

# Please Replace below items with actually file names
# @u-boot-dtb.imx			| boot loader
# @zImage			| kernel image, arm64 is Image, arm32 it is zImage
# @imx6ull-14x14-evk.dtb			| board dtb file
# @fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot	| mfgtool init ramfs
# @rootfs.tar.zst		| rootfs
# @_uTee.tar			| optee image, put dummy _uTee.tar file here if platform is not MX6/MX7*

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-dtb.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-dtb.imx

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-dtb.imx -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-dtb.imx -skipspl
SDPV: jump
# }

# use uboot burn bootloader to eMMC
# becaue difference chip, offset is difference
# you can use kernel to do that for specific boards
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: flash bootloader u-boot-dtb.imx

FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;

FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi
FB: ucmd setenv emmc_cmd mmc bootbus ${emmc_dev} 2 0 1;
FB: ucmd if test "${emmc_skip_fb}" != "yes"; then run emmc_cmd; fi

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f zImage
FB: ucmd setenv fastboot_buffer ${fdt_addr}
FB: download -f imx6ull-14x14-evk.dtb
FB: ucmd setenv fastboot_buffer ${initrd_addr}
FB: download -f fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.zst.u-boot
#FB: ucmd setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate}
FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}

# get mmc dev number from kernel command line
# Wait for emmc
FBK: ucmd while [ ! -e /dev/mmcblk*boot0 ]; do sleep 1; echo "wait for /dev/mmcblk*boot* appear"; done;

# serach emmc device number, if your platform have more than two emmc chip, please echo dev number >/tmp/mmcdev 
FBK: ucmd dev=`ls /dev/mmcblk*boot*`; dev=($dev); dev=${dev[0]}; dev=${dev#/dev/mmcblk}; dev=${dev%boot*}; echo $dev > /tmp/mmcdev;

# dd to clear the possible MBR
FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=512 count=1
# create partition
FBK: ucmd mmc=`cat /tmp/mmcdev`; PARTSTR=$'10M,500M,0c\n600M,,83\n'; echo "$PARTSTR" | sfdisk --force /dev/mmcblk${mmc}

FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/dev/zero of=/dev/mmcblk${mmc} bs=1k seek=4096 count=1
FBK: ucmd sync
# you can enable below command to write boot partition. but offset is difference at difference platform
#FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 0 > /sys/block/mmcblk${mmc}boot0/force_ro
#FBK: ucp  u-boot-dtb.imx t:/tmp
#FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/tmp/u-boot-dtb.imx of=/dev/mmc${mmc}boot0 bs=1K seek=32
#FBK: ucmd mmc=`cat /tmp/mmcdev`; echo 1 > /sys/block/mmcblk${mmc}boot0/force_ro
FBK: ucmd mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p1 ]; do sleep 1; done
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.vfat /dev/mmcblk${mmc}p1
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkdir -p /mnt/fat
FBK: ucmd mmc=`cat /tmp/mmcdev`; mount -t vfat /dev/mmcblk${mmc}p1 /mnt/fat
FBK: ucp  zImage t:/mnt/fat
FBK: ucp  imx6ull-14x14-evk.dtb t:/mnt/fat
#FBK: ucp  _uTee.tar t:/tmp/op.tar
#FBK: ucmd tar --no-same-owner -xf /tmp/op.tar -C /mnt/fat
FBK: ucmd umount /mnt/fat
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.ext3 -F -E nodiscard /dev/mmcblk${mmc}p2
FBK: ucmd mkdir -p /mnt/ext3
FBK: ucmd mmc=`cat /tmp/mmcdev`; mount /dev/mmcblk${mmc}p2 /mnt/ext3
FBK: acmd export EXTRACT_UNSAFE_SYMLINKS=1; tar --zstd --warning=no-timestamp -x -C /mnt/ext3
FBK: ucp  rootfs.tar.zst t:-
FBK: Sync
FBK: ucmd umount /mnt/ext3
FBK: DONE

@nxpfrankli
Copy link
Contributor

No idea yet, try -V, does it work at linux or windows machine?

@LYC584520
Copy link
Author

LYC584520 commented Aug 31, 2023

No idea yet, try -V, does it work at linux or windows machine?

Yes, i tested the above "example_kernel_emmc.uuu" script, it is worked on lastest release uuu v1.5.21 at linux machine.
And "No idea yet, try -V", do you mean also try -V for local compiled uuu_mac v1.5.125 at MAC? i'll do it.

@nxpfrankli
Copy link
Contributor

uuu -V example_kernel_emmc.uuu can dump libusb informaiton.

@LYC584520
Copy link
Author

uuu -V example_kernel_emmc.uuu can dump libusb informaiton.

uuu.txt

@LYC584520 LYC584520 changed the title “[DIRtmpcat /tmp/mmcdev`; echo 0 > /sys/] FBK: ucp x-loader.imx t:/tmp” appeared while running on M2 Mac "11/21 [DIRmnt/fat/tmp/mmcdev`; mount -t vfat ] FBK: ucp zImage t:/mnt/fat" appeared while running on M2 Mac Sep 6, 2023
@luizstarling
Copy link

@nxpfrankli @LYC584520 Any undocumented progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants