Hello, do you succeed in writing u-boot-spl.bin to nand ? I tried but failed. I even erase the first 64MB space of nand, but the boot0 & boot1 still exists. Can you help me out? Thanks. On Wednesday, April 3, 2013 3:41:21 PM UTC+8, Qiang Yu wrote: > Hi guys, > > > Good news! The uboot can boot up on MTD nand. The boot0 is replaced by uboot > SPL, then load uboot directly. The SPL and uboot all use my MTD nand driver. > Code is here: > > https://github.com/yuq/u-boot-sunxi/commits/sunxi-current > > > > Let uboot use MTD driver is straight forword. But let SPL replace boot0 is > not. boot0 lays in the first 128 pages of the nand flash chip. The first 64 > pages are the same as the following 64 pages. I can't find raw boot0 in this > area, so guess it is encrypted which I can't crack. > > > > My tmp strategy is: replace boot0.bin in the pack tool provided by Allwinner > with uboot SPL. Pack a firmware and burn into flash using livesuit. Then read > out first 128 pages. The SPL will load the uboot image from the 1M offset. So > I burn the dumped SPL to the begginning of the new flash, the uboot image to > the 1M offset. > > > > Here attaches the dumped 1M SPL image which is for 8K page chips. Other page > size (2K, 4K) can use attached shell script to convert it. > > > Regards, > > Qiang
-- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
