This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8148 nor flash problem

I use norflash-writer.out to write uboot successfully.After that,I use tftp to download uImage to nor flash.But when I have written the uImage,I cannot boot from nor flash.

So I use norflash-writer.out to flash uboot again,then I use tftp to download uImage to nor flash,again.After I use cmp command to check the norflash where store the uboot, I find it is all 'FF' there.So I flash the uboot from the uboot that already runs.Then I turn off and turn on,the uImage boots successfully!

I wonder if the uboot of Norflash have bugs,when I write the Image,It erase other place which I don't want to erase.I totally follows the datasheet of uboot.

Another promblem is when I flash the file system image to noflash,It prints "flash not erased".What is wrong?

  • here is the command,I am confused!

    TI_8148_EVM#mw.b 0x81000000 0xff 0x100000
    TI_8148_EVM#tftp 0x81000000 u-boot.bin
    ...
    TI_8148_EVM#protect off 0x8000000 0x803ffff
    ...
    TI_8148_EVM#erase 0x8000000 0x803ffff
    ...
    TI_8148_EVM#cp.w 0x81000000 0x8000000 0x20000
    copy to flash...done
    TI_8148_EVM#protect on 0x8000000 0x803ffff
    ...
    TI_8148_EVM#mw.b 0x81000000 0xff 0x100000
    TI_8148_EVM#:cmp 0x81000000 0x8000000 0x4
    word at 0x81000000(0xffffffff)!= word at 0x8000000(0xea000012) ////the data here is correct
    Total of 0 words were the same

    TI_8148_EVM#mw.b 0x81000000 0xff 0x400000
    TI_8148_EVM#tftp 0x81000000 uImage
    ...
    TI_8148_EVM#protect off 0x8060000 0x845ffff
    ...
    TI_8148_EVM#erase 0x8060000 0x845ffff
    TI_8148_EVM#:cmp 0x81000000 0x8000000 0x4
    word at 0x81000000(0x56190527)!= word at 0x8000000(0xffffffff)////the data here has been erased
    Total of 0 words were the same