littlekernel / lk

LK embedded kernel
MIT License
3.12k stars 613 forks source link

[lib][bio] sub device inherits parent device erase_byte #243

Closed PibbenTung closed 5 years ago

PibbenTung commented 5 years ago

Sub device inherits parent device erase_byte. Nand flash device is with erase_byte = 0xFF, but in bio_publish_subdevice, the sub device erase_byte will be with initial value 0. When the image with the chunk of 0, the chunk is not written, but the read value is 0xFF.

Signed-off-by: Pibben pibben.tung@mediatek.com