Identifying the file system of an img file and mount it

I have downloaded an SD image loader from nxp website. The name of image is O8.1.0_1.4.0_ANDROID_TOOL_7ULP_GA (This is not an Android question btw).

The image loaded on my SD is inside the zipped file under the name of

imx7ulp_m4_demo.img 

I would like to modify this image before I load SD with this file. What software should I use to open this image? I cannot identify the filesystem.

This .img file could be a raw image. But, still I have no idea how to mount it.


Here are my tries.

mount

sudo mount -t auto imx7ulp_m4_demo.img ./img -o loop 
mount: wrong fs type, bad option, bad superblock on /dev/loop0,        missing codepage or helper program, or other error         In some cases useful info is found in syslog - try        dmesg | tail or so. 
dmesg | tail 
[  429.631985] UDF-fs: warning (device loop0): udf_load_vrs: No VRS found [  429.631986] UDF-fs: Scanning with blocksize 1024 failed [  429.632174] UDF-fs: warning (device loop0): udf_load_vrs: No VRS found [  429.632175] UDF-fs: Scanning with blocksize 2048 failed [  429.632402] UDF-fs: warning (device loop0): udf_load_vrs: No VRS found [  429.632404] UDF-fs: Scanning with blocksize 4096 failed [ 1308.968702] IPv6: ADDRCONF(NETDEV_UP): ens33: link is not ready [ 1308.973839] IPv6: ADDRCONF(NETDEV_UP): ens33: link is not ready [ 1308.975665] e1000: ens33 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [ 1308.976521] IPv6: ADDRCONF(NETDEV_CHANGE): ens33: link becomes ready 

fdisk

fdisk -l imx7ulp_m4_demo.img 
Disk imx7ulp_m4_demo.img: 68 KiB, 69632 bytes, 136 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 
fdisk -lu imx7ulp_m4_demo.img 
Disk imx7ulp_m4_demo.img: 68 KiB, 69632 bytes, 136 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 

file

file imx7ulp_m4_demo.img 
imx7ulp_m4_demo.img: data 

parted

sudo parted imx7ulp_m4_demo.img  
GNU Parted 3.2 Using /home/tmp/imx7ulp_m4_demo.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) u                                                                 Unit?  [compact]? B                                                        (parted) print                                                             Error: /home/tmp/imx7ulp_m4_demo.img: unrecognised disk label Model:  (file)                                                             Disk /home/tmp/imx7ulp_m4_demo.img: 69632B Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags:  (parted) ^C                                                                

losetup

losetup -P imx7ulp_m4_demo.img  
losetup: imx7ulp_m4_demo.img: failed to use device: Success 
sudo losetup --offset 512 /dev/loop2 imx7ulp_m4_demo.img 
losetup: imx7ulp_m4_demo.img: failed to set up loop device: Device or resource busy 

blkid

blkid -o value -s TYPE imx7ulp_m4_demo.img 
(empty output) 

disktype

sudo disktype  imx7ulp_m4_demo.img  
--- imx7ulp_m4_demo.img Regular file, size 68.43 KiB (70077 bytes) 

gparted

sudo gparted imx7ulp_m4_demo.img 
====================== libparted : 3.2 ====================== /home/tmp/imx7ulp_m4_demo.img: unrecognised disk label