Is it possible to mount u-boot.imx?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to mount u-boot.imx?

2,151 Views
rahul44
Contributor II

Hi,

I have flashed u-boot.imx in emmc keeping 0x400 as offset. Now I want to read u-boot.imx from another uboot (loaded from USB). It is not showing up in any of the existing partition. Tried mounting "/dev/${EMMC_DEV}boot0" with no success. 


Thanks

0 Kudos
Reply
6 Replies

2,113 Views
rahul44
Contributor II

I don't have this partition /dev/mmcblk0boot0 mounted. Tried below command to mount but gave error. Can you correct it?

/sbin/mkfs.vfat -n boot /dev/${EMMC_DEV}boot0 && mkdir -pv /mnt/storage && mount /dev/${EMMC_DEV}boot0 /mnt/storage && sleep 1 && sync && umount /mnt/storage" "${UBOOT_BIN}

0 Kudos
Reply

2,100 Views
b36401
NXP Employee
NXP Employee

It looks strange. There should be /dev/mmcblk0boot0 partition.

Which way you burned the image?

0 Kudos
Reply

2,093 Views
rahul44
Contributor II

Used below command to flash uboot. 

dd if=/dev/zero of=/dev/${EMMC_DEV}boot0 bs=1024 count=510 seek=1

0 Kudos
Reply

2,080 Views
b36401
NXP Employee
NXP Employee

You can refer to chapter "Booting Linux OS" of i.MX Linux User Guide:
https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

0 Kudos
Reply

2,126 Views
b36401
NXP Employee
NXP Employee

u-boot.imx is placed on eMMC in raw blocks, not over the filesystem.
You can use something like "hexdump -C /dev/mmcblk0boot0 | less" to see it and "dd" to get it as a file.

0 Kudos
Reply

2,094 Views
rahul44
Contributor II

This partition is not showing in kernel. 

0 Kudos
Reply