如题,请赐教,谢谢
离线
SPL中,需要跳1K,写1K
最近编辑记录 微凉VeiLiang (2020-07-15 18:32:51)
离线
不清不楚
SPL中,需要跳1K,写1K
离线
不清不楚
小伙子,请教问题要谦虚,这位是哇酷网大佬.
全志 soc 的 brom 读 spi nand, 为了兼容性考虑, 每page只读前面1K, 比如2K Page的芯片, 跳1K,写1K
离线
Some SoCs can also boot from SPI NAND flash. Here the BROM tries to read a valid first stage bootloader starting from page number 0, 32, 64, 96, 128, 160, 192 and 224. It only reads the first 1024 bytes from every page. Since it simply sends the standard SPI NAND flash commands, it is a good idea to use a flash with ECC turned on by default and is performed by the flash itself, since errors cannot otherwise be corrected.
社区很早就写着了只是不明显。
https://linux-sunxi.org/Bootable_SPI_flash
离线
Some SoCs can also boot from SPI NAND flash. Here the BROM tries to read a valid first stage bootloader starting from page number 0, 32, 64, 96, 128, 160, 192 and 224. It only reads the first 1024 bytes from every page. Since it simply sends the standard SPI NAND flash commands, it is a good idea to use a flash with ECC turned on by default and is performed by the flash itself, since errors cannot otherwise be corrected.
社区很早就写着了只是不明显。
https://linux-sunxi.org/Bootable_SPI_flash
嗯,这个不错,清晰明了.
离线
嗯,这个不错,清晰明了.
能加我QQ 1142726307 有问题请教你 实在是想不到办法了
离线
Some SoCs can also boot from SPI NAND flash. Here the BROM tries to read a valid first stage bootloader starting from page number 0, 32, 64, 96, 128, 160, 192 and 224. It only reads the first 1024 bytes from every page. Since it simply sends the standard SPI NAND flash commands, it is a good idea to use a flash with ECC turned on by default and is performed by the flash itself, since errors cannot otherwise be corrected.
社区很早就写着了只是不明显。
https://linux-sunxi.org/Bootable_SPI_flash
谢谢
离线
想问下,跳1K写1K,是不是就表明了利用率只有50%,也就是128MByte的Flash只能用64MByte?
离线
想问下,跳1K写1K,是不是就表明了利用率只有50%,也就是128MByte的Flash只能用64MByte?
按照上面那个英文介绍的话,只是说BROM读取的nand 的时候是每个页的前1024BYTES (1K)[It only reads the first 1024 bytes from every page]
如果你每页不是2K估计得跳更多。但是你可以把小部分得启动放在nand的第一页1K里面。启动之后你就可以自己去读取代码到ram上了。
总的来说也就是启动部分的代码放在nand前面的利用率只有50% 启动之后的因为是你自己操作那就是100%了。比如你的启动代码只有2K那么前面2个page
每个放1K浪费2K。后面你自己的东西就可以随便写了。
最近编辑记录 sprintf (2020-09-14 13:29:31)
离线
阿黄 说:想问下,跳1K写1K,是不是就表明了利用率只有50%,也就是128MByte的Flash只能用64MByte?
按照上面那个英文介绍的话,只是说BROM读取的nand 的时候是每个页的前1024BYTES (1K)[It only reads the first 1024 bytes from every page]
如果你每页不是2K估计得跳更多。但是你可以把小部分得启动放在nand的第一页1K里面。启动之后你就可以自己去读取代码到ram上了。
总的来说也就是启动部分的代码放在nand前面的利用率只有50% 启动之后的因为是你自己操作那就是100%了。比如你的启动代码只有2K那么前面2个page
每个放1K浪费2K。后面你自己的东西就可以随便写了。
对的,只是spl部分这样。
离线