fix i.mx27 boot

cancel
Showing results for 
Search instead for 
Did you mean: 

fix i.mx27 boot

249 Views
benoîtgogniat-b
Contributor II

Hi,

I think , I made a mistake when I tried to upgrade barebox on my i.mx27 board ( PCM-038/ Phytec)

before boot looks like :

barebox 2010.04.0-dirty (Aug 31 2010 - 16:35:39)

Board: Phytec phyCORE-i.MX27
NAND device: Manufacturer ID: 0x20, Chip ID: 0x36 (ST Micro NAND 64MiB 1,8V 8-b)
Bad block table found at page 131040, version 0x01
Bad block table found at page 131008, version 0x01
nand_read_bbt: Bad block at 0x01414000
Using environment in NAND Flash
initialising PLLs: 0xa7f197e0 0xa7f22e24
Malloc space: 0xa7a00000 -> 0xa7f00000 (size  5 MB)
Stack space : 0xa79f8000 -> 0xa7a00000 (size 32 kB)
running /env/bin/init...

But now this is what I have :

barebox 2010.07.0 (Jun 16 2011 - 11:07:20)

Board: Phytec phyCORE-i.MX27
cfi_probe: cfi_flash base: 0xc0000000 size: 0x02000000

I try to erase and program NAND Flash with ATK (1.67) but I do not manage to do it (Failed to initial flash ..)

Nota : my PhyCore board do not have NOR Flash (U17) only have NAND512RBA2BZA6 (U16)

any procedure to fix my case ?

do someone can explain what happened ?

how can I make working ATK (wine ) with my phyCore i.mx27 board

thanks

Benoit

Labels (2)
Tags (1)
3 Replies

68 Views
art
NXP TechSupport
NXP TechSupport

Try the latest ATK Toolkit software version attached.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

68 Views
benoîtgogniat-b
Contributor II

So the good practice i was looking for is to :

1> Generate a new Flash library, following steps in "I.MX Platform Advanced Toolkit Reference Manual"

2> then follow flashing step in one of "PDK documentation" to install new bootloader , then OS:

       - i.MX27 PDK 1.0 Linux Demo Image

       - Quick Start Instructions Linux-Kit phyCORE-i.MX27

68 Views
benoîtgogniat-b
Contributor II

Hello,

I edited the binary file "mx27_nand.bin"  with a hexa-editor and replaced a NAN flash definition by mime :

{0x20, 0x36, 8, 512,  16,0, 0,  2,  3,    ,4096,32, "NAND NAND512R3A" }

8e9e : 00 00 20 36 08 00 00 02 00 00 10 00 00 00 00

8ead:  00 01 03 00 10 00 00 20 00 00 00 4E 41 4E 44

8ebc:  20 4E 41 4E 44 35 31 32 52 33 41

(too leasy to compile ATK source under linux)

So ATK read my flash now , and I can restore  boot loader