Skip to content

NAND sub-pages: using size 512 instead of 2048 bytes #13

@arnysch

Description

@arnysch

Hi everybody, hi Qauge,

There is this commit "Sysupgrade: Deactivate subpages on nand". It contains this comment:
"Currently, subpages aren't working on the easybox 904 xdsl nand flash.
Allthough, The nand driver seems to report it is supported, which isn't".

I am wondering if this is really the case. Maybe UBI sub-page problems were caused by mixing old and new stuff?

For example for ages we use this kernel command line parameter "ubi.mtd=12,2048". And trying to access an existing 'old' UBI partition (which did not use sub-pages) with the current UBI driver results in errors, unless a VID header offset of 2048 is explicitly specified in the ubiattach command.

On the eb904, I played around with sub-page size of 512 bytes.
And I ran the "nandsubpagetest" program from the mtd-utils software.

To me it looks like 512 byte sub-page size works ok on the eb904.
I have documented my tests here.

I would like to hear opinions from OpenWrt-eb904 developers,
If you think it is a good idea, I would gladly provide a pull request to change the sub-page size back to 512.

BTW: my tests with U-Boot (Arcadian's version from 2010) show that UBI as part of U-Boot does not work at all. Neither with VID header offset 512 nor with 2048. U-Boot does not recognize an existing UBI partition and always reformats the partition when trying to access it with UBI commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions