IMX6UL: generic_make_request: Trying to write to read-only block-device mmcblk1boot0

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6UL: generic_make_request: Trying to write to read-only block-device mmcblk1boot0

40 Views
sikumar3
Contributor III

I recently migrated from 4.1.15 kernel to 5.4.3 kernel.

the 5.4.3 kernel was built from the below repo.

      repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3- 2.0.0.xml

I am getting warning messages when I try to write the boot partition of eMMC.

# Enable writting to eMMC Boot0
echo 0 > /sys/block/mmcblk1boot0/force_ro

# Erase U-Boot IMX Image: ~250K @ 1K offset in eMMC Boot0
dd if=/dev/zero of=/dev/mmcblk1boot0 bs=512 seek=2 count=500

# Write U-Boot IMX Image: ~250K @ 1K offset in eMMC Boot0
dd if=$UBOOT_FILENAME of=/dev/mmcblk1boot0 bs=512 seek=2

# Disable writting to eMMC Boot0
echo 1 > /sys/block/mmcblk1boot0/force_ro

 

[ 586.620639] WARNING: CPU: 0 PID: 1810 at block/blk-core.c:797 generic_make_request_checks+0x2c4/0x49c
[ 586.632362] generic_make_request: Trying to write to read-only block-device mmcblk1boot0 (partno 0)
[ 586.642200] Modules linked in: 8021q imx_sdma
root@imx6uloib:~/upgrade/uboot# [ 586.647494] CPU: 0 PID: 1810 Comm: udevd Not tainted 5.4.3-2.0.0+gfd263a3 #1
[ 586.656947] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 586.663176] [<80110530>] (unwind_backtrace) from [<8010b644>] (show_stack+0x10/0x14)
[ 586.670950] [<8010b644>] (show_stack) from [<808ce64c>] (dump_stack+0x90/0xa4)
[ 586.678202] [<808ce64c>] (dump_stack) from [<8012ffa0>] (__warn+0xbc/0xd8)
[ 586.685101] [<8012ffa0>] (__warn) from [<80130054>] (warn_slowpath_fmt+0x98/0xc4)
[ 586.692612] [<80130054>] (warn_slowpath_fmt) from [<803fb820>] (generic_make_request_checks+0x2c4/0x49c)
[ 586.702119] [<803fb820>] (generic_make_request_checks) from [<803fbd08>] (generic_make_request+0x24/0x318)
[ 586.711795] [<803fbd08>] (generic_make_request) from [<803fc034>] (submit_bio+0x38/0x16c)
[ 586.719999] [<803fc034>] (submit_bio) from [<80264750>] (submit_bh_wbc.constprop.0+0x14c/0x168)
[ 586.728729] [<80264750>] (submit_bh_wbc.constprop.0) from [<802671c8>] (__block_write_full_page+0x35c/0x5b0)
[ 586.738581] [<802671c8>] (__block_write_full_page) from [<802675f4>] (block_write_full_page+0xe4/0xf0)
[ 586.747915] [<802675f4>] (block_write_full_page) from [<801dd1e4>] (__writepage+0x14/0x4c)
[ 586.756205] [<801dd1e4>] (__writepage) from [<801def24>] (write_cache_pages+0x194/0x3d8)
[ 586.764322] [<801def24>] (write_cache_pages) from [<801df1c0>] (generic_writepages+0x58/0x8c)
[ 586.772869] [<801df1c0>] (generic_writepages) from [<801dfab0>] (do_writepages+0x48/0xe8)
[ 586.781071] [<801dfab0>] (do_writepages) from [<801d8a64>] (__filemap_fdatawrite_range+0xb4/0xd4)
[ 586.789966] [<801d8a64>] (__filemap_fdatawrite_range) from [<801d8aec>] (filemap_write_and_wait+0x38/0x84)
[ 586.799644] [<801d8aec>] (filemap_write_and_wait) from [<80268410>] (__blkdev_put+0x90/0x220)
[ 586.808194] [<80268410>] (__blkdev_put) from [<8026870c>] (blkdev_close+0x18/0x20)
[ 586.815788] [<8026870c>] (blkdev_close) from [<8022dd10>] (__fput+0x88/0x218)
[ 586.822954] [<8022dd10>] (__fput) from [<8014c74c>] (task_work_run+0x90/0xac)
[ 586.830114] [<8014c74c>] (task_work_run) from [<8010b374>] (do_work_pending+0x584/0x590)
[ 586.838228] [<8010b374>] (do_work_pending) from [<8010106c>] (slow_work_pending+0xc/0x20)
[ 586.846417] Exception stack(0x891a1fb0 to 0x891a1ff8)
[ 586.851487] 1fa0: 00000000 7eb57b6c 00000000 00000000
[ 586.859683] 1fc0: 76f5f50c 76f5f4d0 00000008 00000006 0050b090 01971fd8 00000000 01962190
[ 586.867876] 1fe0: 00000006 7eb58368 76e77253 76e02d16 20030030 00000008
[ 586.886392] ---[ end trace f45cfa87d7725e34 ]---

 

0 Kudos
0 Replies