Writing mmcblk0boot0 partition from linux command line

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Writing mmcblk0boot0 partition from linux command line

27,668 次查看
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 项奖励
回复
1 回复

17,269 次查看
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 项奖励
回复