Writing mmcblk0boot0 partition from linux command line

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

Writing mmcblk0boot0 partition from linux command line

21,148 Views
dougbailey
Contributor III

I am trying to update the u-boot on my iMX6 board without having to open the packaging.  I have access to unit via network and the android adb tool so I can get console access and can stage the u-boot binary in the mounted MMC partition. 

I see that the u-boot is programmed into the /dev/block/mmcblk0boot0 and /dev/block/mmcblk0boot1 block devices.   However, when I try to dd the new image to those partitions I get the following response:

# dd if=/sdcard/uboot.bin of=/dev/block/mmcblk0boot0 seek=1024

/dev/block/mmcblk0boot0: write error: Operation not permitted

1+0 records in

0+0 records out

I tried opening up the permissions on the /dev/block/mmcblk0boot0 device with no luck. 

Is this even possible?  Do I need to change something in how the kernel image is built or how it is initially programmed? 

Regards,

Doug Bailey

0 Kudos
1 Reply

10,749 Views
dougbailey
Contributor III

It appears that the answer would be in the linux documentation.

https://www.kernel.org/doc/Documentation/mmc/mmc-dev-parts.txt 

0 Kudos