Changeset 45669


Ignore:
Timestamp:
2015-05-10T18:09:58+02:00 (3 years ago)
Author:
nbd
Message:

mtd: remove the warning about read-only caused by size vs. block boundary mismatch

Since the kernel/rootfs split handling was modified 2 years ago by r37283 (
https://dev.archive.openwrt.org/changeset/37283.html ) and by the subsequent checkins,
users have seen rather scary mtd errors in the log at every boot. The message
ends "-- forcing read-only", which looks a bit error-like. That error has
been mentioned in some forum threads, when users have noticed this message
instead of some actual error.

[ 2.940000] 0x000000070000-0x000000ff0000 : "firmware"
[ 2.970000] 2 netgear-fw partitions found on MTD device firmware
[ 2.970000] 0x000000070000-0x000000188440 : "kernel"
[ 2.980000] mtd: partition "kernel" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[ 2.990000] 0x000000188440-0x000000ff0000 : "rootfs"

The patch removes the rather useless warning message.

signed-off-by: Hannu Nyman <hannu.nyman@…>

Location:
trunk/target/linux/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.18/411-mtd-partial_eraseblock_write.patch

    r43805 r45669  
    9898                        instr->fail_addr -= part->offset; 
    9999                instr->addr -= part->offset; 
    100 @@ -514,18 +582,24 @@ static struct mtd_part *allocate_partiti 
     100@@ -514,18 +582,21 @@ static struct mtd_part *allocate_partiti 
    101101        if ((slave->mtd.flags & MTD_WRITEABLE) && 
    102102            mtd_mod_by_eb(slave->offset, &slave->mtd)) { 
     
    126126+                       slave->mtd.erasesize = slave->mtd.size; 
    127127        } 
    128 +       if ((slave->mtd.flags & (MTD_ERASE_PARTIAL|MTD_WRITEABLE)) == MTD_ERASE_PARTIAL) 
    129 +               printk(KERN_WARNING"mtd: partition \"%s\" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only\n", 
    130 +                               part->name); 
    131128  
    132129        slave->mtd.ecclayout = master->ecclayout; 
  • trunk/target/linux/generic/patches-4.0/411-mtd-partial_eraseblock_write.patch

    r44511 r45669  
    9898                        instr->fail_addr -= part->offset; 
    9999                instr->addr -= part->offset; 
    100 @@ -513,18 +581,24 @@ static struct mtd_part *allocate_partiti 
     100@@ -513,18 +581,21 @@ static struct mtd_part *allocate_partiti 
    101101        if ((slave->mtd.flags & MTD_WRITEABLE) && 
    102102            mtd_mod_by_eb(slave->offset, &slave->mtd)) { 
     
    126126+                       slave->mtd.erasesize = slave->mtd.size; 
    127127        } 
    128 +       if ((slave->mtd.flags & (MTD_ERASE_PARTIAL|MTD_WRITEABLE)) == MTD_ERASE_PARTIAL) 
    129 +               printk(KERN_WARNING"mtd: partition \"%s\" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only\n", 
    130 +                               part->name); 
    131128  
    132129        slave->mtd.ecclayout = master->ecclayout; 
Note: See TracChangeset for help on using the changeset viewer.