昨天下午被人问了个问题,说为什么在linux下边不能从A20 的 NAND读出系统的引导程序 boot0 和 boo1 。 于是我找到这段话,更加迷惑了。
Then there is the NAND hw randomizer that gets in the way. Allwinner uses one setting for the BROM and the second boot stage (boot0/SPL), and another setting for normal use. With this setup, it is currently not implemented to access both bits at the same time. This currently provides another barrier for implementation, as one first needs to be able to read/write this area. While this is not beyond fixing, these are quite a few hoops to jump through.
其中,NAND hw randonmizer是干嘛用的?
因为在linux sunxi里面关于NAND启动的资料,有一篇是说NAND的boot0跟boot1是写在NAND的头1M空间的,所以分区前最好备份头1M空间。事实上我们将/dev/nand 的头1M读出来,发现0地址开始的是MBR,并非boot0和boo1的代码。
|