BSC9132 IFC NOR WARNING

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BSC9132 IFC NOR WARNING

1,546 Views
zengchanglong
Contributor I

hello :
when we use BSC9132 connect with PC28F512M29EWHD(MICORN NOR FLASH) though IFC,we find when we in jffs2 filesystern copy or remove some big file it come out a warning "erase at 0xxxxxx faild immediately",we try to some to avoid it,but it always come on.

you can help me?thank you!!!

changlong zeng;

0 Kudos
Reply
7 Replies

1,288 Views
zengchanglong
Contributor I

hi all:

     Anybody have the same problem!!!who can help me?

        

     I have tried everything I can think of but my system still occasionally spits out error messages like: Erase at 0x01cc0000 failed immediately: errno -5

0 Kudos
Reply

1,288 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello zeng changlong,

Please refine "NOR Flash Timing Params" in u-boot header file include/configs/BSC9132QDS.h.

The following is for your reference.

FTIM0

TACSE :

max{(tAA – tCE – tAAVDH – tEADC), (tOEH – (tCE - tOE) – tAAVDH - tEADC), (tRC – tCE – tAAVDH – tEADC), (tCEH – tAAVDH - tEADC), (tAS – tCS – tAAVDH - tEADC), (tGHEL – tAAVDH - tEADC), (tGHWL – tCS – tAAVDH - tEADC)}

tEADC = max {tAVDP, tAAVDS}

tEAHC = tAAVDH or tAH

FTIM1

tACO = (tCE – tOE)

tRAD_NOR = (tOE + Pad Delay)

tSEQRAD_NOR =  (tPACC + delta time)

FTIM2

tCS = tCS

tCH = max{tCH, tDH, (tAH – tWP)}

tWPH = max {tWPH, (tWC – tWP)}

tWP = {1, tWP, tDS, (tWC – tWPH)}

Please refine your calculation according to your NOR Flash data sheet.


Have a great day,
Yiping

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

0 Kudos
Reply

1,288 Views
zengchanglong
Contributor I

hello Yiping,

       I have follow you advice,to refine "NOR Flash Timing Params" in u-boot header file include/configs/BSC9132QDS.h and my NOR Flash data sheet.set the FTIM0,FTIM1,FTIM2 as below:

      

#define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x01) \

    | FTIM0_NOR_TEADC(0x03) \

    | FTIM0_NOR_TAVDS(0x00) \

    | FTIM0_NOR_TEAHC(0x0f))

#define CONFIG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x1d) \

    | FTIM1_NOR_TRAD_NOR(0x09) \

    | FTIM1_NOR_TSEQRAD_NOR(0x09))

#define CONFIG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x1) \

    | FTIM2_NOR_TCH(0x4) \

    | FTIM2_NOR_TWPH(0x7) \

    | FTIM2_NOR_TWP(0x1e))

   but there also have the error "Erase at 0x034c0000 failed immediately: errno -5" when I try to copy or remove some file.I want to know the above configuration whether correct.

Have a great day,

changlong zeng;

0 Kudos
Reply

1,288 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello changlong zeng,

Please check whether "Erase at 0x034c0000" could be executed in u-boot successfully, and write a big file to Flash in u-boot and read it back then use cmp.b command to do comparison.

If this problem exists in u-boot, please send your DDR datasheet to me.


Have a great day,
Yiping

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

0 Kudos
Reply

1,288 Views
zengchanglong
Contributor I

hello Yiping,

         The error addr is random,the uboot is good,the error only appear in filesystem.

Have a great day,

changlong zeng,

0 Kudos
Reply

1,288 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello changlong,

Which version Linux SDK do you use?

Which command do you use or how do you generate the jffs2 filesystem?

Would you please provide your Linux console log containing your test steps?  I will try to reproduce your problem on my target.


Have a great day,
Yiping

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

0 Kudos
Reply

1,288 Views
zengchanglong
Contributor I

Hello Yiping,
I'm sorry it's to late return your mail.

My SDK version is "913x_WUSDK_REL_1.4",I get it from freescale support.

My command when generate the jffs2 filesystem is "mkfs.jffs2 -r ./psc9132_jffs2/ -o psc9132_jffs2.jffs2 -e 0x10000 -b -n",I have try to add the flag "-s" with eth command of mkfs.jffs2,but I can't find the pagesize in eth flash datasheet.

The Linux console log is:
......
root@bsc913x:~# cp uImage uImage-1
root@bsc913x:~# cp uImage uImage-2
root@bsc913x:~# cp uImage uImage-3
root@bsc913x:~# cp uImage uImage-4
root@bsc913x:~# cp uImage uImage-5
root@bsc913x:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                55.5M     46.2M      9.3M  83% /
root@bsc913x:~# rm -rf uImage-*
Erase at 0x03740000 failed immediately: errno -5
Erase at 0x03720000 failed immediately: errno -5
Erase at 0x036e0000 failed immediately: errno -5
Erase at 0x03700000 failed immediately: errno -5
Erase at 0x036a0000 failed immediately: errno -5
Erase at 0x036c0000 failed immediately: errno -5
Erase at 0x03680000 failed immediately: errno -5
Erase at 0x03640000 failed immediately: errno -5
Erase at 0x03600000 failed immediately: errno -5
Erase at 0x03620000 failed immediately: errno -5
Erase at 0x03660000 failed immediately: errno -5
root@bsc913x:~#
......


When I try restart eth system,the error will be reduce,the Linux console log is:
......
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
rtc-ds3232 0-0068: hctosys: unable to read the hardware clock
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
Empty flash at 0x03720020 ends at 0x037201e0
Empty flash at 0x03720220 ends at 0x037203e0
Empty flash at 0x03720420 ends at 0x037205e0
Empty flash at 0x03720620 ends at 0x037207e0
Empty flash at 0x03720820 ends at 0x037209e0
Empty flash at 0x03720a20 ends at 0x03720be0
Empty flash at 0x03720c20 ends at 0x03720de0
Empty flash at 0x03720e20 ends at 0x03720fe0
Empty flash at 0x03721020 ends at 0x037211e0
Empty flash at 0x03721220 ends at 0x037213e0
Empty flash at 0x03721420 ends at 0x037215e0
Empty flash at 0x03721620 ends at 0x037217e0
Empty flash at 0x03721820 ends at 0x037219e0
Empty flash at 0x03721a20 ends at 0x03721be0
Empty flash at 0x03721c20 ends at 0x03721de0
Empty flash at 0x03721e20 ends at 0x03721fe0
Empty flash at 0x03722020 ends at 0x037221e0
Empty flash at 0x03722220 ends at 0x037223e0
Empty flash at 0x03722420 ends at 0x037225e0
Empty flash at 0x03722620 ends at 0x037227e0
Empty flash at 0x03722820 ends at 0x037229e0
Empty flash at 0x03722a20 ends at 0x03722be0
Empty flash at 0x03722c20 ends at 0x03722de0
Empty flash at 0x03722e20 ends at 0x03722fe0
Empty flash at 0x03723020 ends at 0x037231e0
Empty flash at 0x03723220 ends at 0x037233e0
Empty flash at 0x03723420 ends at 0x037235e0
Empty flash at 0x03723620 ends at 0x037237e0
Empty flash at 0x03723820 ends at 0x037239e0
Empty flash at 0x03723a20 ends at 0x03723be0
Empty flash at 0x03723c20 ends at 0x03723de0
Empty flash at 0x03723e20 ends at 0x03723fe0
Empty flash at 0x03724020 ends at 0x037241e0
Empty flash at 0x03724220 ends at 0x037243e0
Empty flash at 0x03724420 ends at 0x037245e0
Empty flash at 0x03724620 ends at 0x037247e0
Empty flash at 0x03724820 ends at 0x037249e0
Empty flash at 0x03724a20 ends at 0x03724be0
Empty flash at 0x03724c20 ends at 0x03724de0
Empty flash at 0x03724e20 ends at 0x03724fe0
Empty flash at 0x03725020 ends at 0x037251e0
Empty flash at 0x03725220 ends at 0x037253e0
Empty flash at 0x03725420 ends at 0x037255e0
Empty flash at 0x03725620 ends at 0x037257e0
Empty flash at 0x03725820 ends at 0x037259e0
Empty flash at 0x03725a20 ends at 0x03725be0
Empty flash at 0x03725c20 ends at 0x03725de0
Empty flash at 0x03725e20 ends at 0x03725fe0
Empty flash at 0x03726020 ends at 0x037261e0
Empty flash at 0x03726220 ends at 0x037263e0
Empty flash at 0x03726420 ends at 0x037265e0
Empty flash at 0x03726620 ends at 0x037267e0
Empty flash at 0x03726820 ends at 0x037269e0
Empty flash at 0x03726a20 ends at 0x03726be0
Empty flash at 0x03726c20 ends at 0x03726de0
Empty flash at 0x03726e20 ends at 0x03726fe0
Empty flash at 0x03727020 ends at 0x037271e0
Empty flash at 0x03727220 ends at 0x037273e0
Empty flash at 0x03727420 ends at 0x037275e0
Empty flash at 0x03727620 ends at 0x037277e0
Empty flash at 0x03727820 ends at 0x037279e0
Empty flash at 0x03727a20 ends at 0x03727be0
Empty flash at 0x03727c20 ends at 0x03727de0
Empty flash at 0x03727e20 ends at 0x03727fe0
Empty flash at 0x03728020 ends at 0x037281e0
Empty flash at 0x03728220 ends at 0x037283e0
Empty flash at 0x03728420 ends at 0x037285e0
Empty flash at 0x03728620 ends at 0x037287e0
Empty flash at 0x03728820 ends at 0x037289e0
Empty flash at 0x03728a20 ends at 0x03728be0
Empty flash at 0x03728c20 ends at 0x03728de0
Empty flash at 0x03728e20 ends at 0x03728fe0
Empty flash at 0x03729020 ends at 0x037291e0
Empty flash at 0x03729220 ends at 0x037293e0
Empty flash at 0x03729420 ends at 0x037295e0
Empty flash at 0x03729620 ends at 0x037297e0
Empty flash at 0x03729820 ends at 0x037299e0
Empty flash at 0x03729a20 ends at 0x03729be0
Empty flash at 0x03729c20 ends at 0x03729de0
Empty flash at 0x03729e20 ends at 0x03729fe0
Empty flash at 0x0372a020 ends at 0x0372a1e0
Empty flash at 0x0372a220 ends at 0x0372a3e0
Empty flash at 0x0372a420 ends at 0x0372a5e0
Empty flash at 0x0372a620 ends at 0x0372a7e0
Empty flash at 0x0372a820 ends at 0x0372a9e0
Empty flash at 0x0372aa20 ends at 0x0372abe0
Empty flash at 0x0372ac20 ends at 0x0372ade0
Empty flash at 0x0372ae20 ends at 0x0372afe0
Empty flash at 0x0372b020 ends at 0x0372b1e0
Empty flash at 0x0372b220 ends at 0x0372b3e0
Empty flash at 0x0372b420 ends at 0x0372b5e0
Empty flash at 0x0372b620 ends at 0x0372b7e0
Empty flash at 0x0372b820 ends at 0x0372b9e0
Empty flash at 0x0372ba20 ends at 0x0372bbe0
Empty flash at 0x0372bc20 ends at 0x0372bde0
Empty flash at 0x0372be20 ends at 0x0372bfe0
Empty flash at 0x0372c020 ends at 0x0372c1e0
Empty flash at 0x0372c220 ends at 0x0372c3e0
Empty flash at 0x0372c420 ends at 0x0372c5e0
Empty flash at 0x0372c620 ends at 0x0372c7e0
Empty flash at 0x0372c820 ends at 0x0372c9e0
Empty flash at 0x0372ca20 ends at 0x0372cbe0
Empty flash at 0x0372cc20 ends at 0x0372cde0
Empty flash at 0x0372ce20 ends at 0x0372cfe0
Empty flash at 0x0372d020 ends at 0x0372d1e0
Empty flash at 0x0372d220 ends at 0x0372d3e0
Empty flash at 0x0372d420 ends at 0x0372d5e0
Empty flash at 0x0372d620 ends at 0x0372d7e0
Empty flash at 0x0372d820 ends at 0x0372d9e0
Empty flash at 0x0372da20 ends at 0x0372dbe0
Empty flash at 0x0372dc20 ends at 0x0372dde0
Empty flash at 0x0372de20 ends at 0x0372dfe0
Empty flash at 0x0372e020 ends at 0x0372e1e0
Empty flash at 0x0372e220 ends at 0x0372e3e0
Empty flash at 0x0372e420 ends at 0x0372e5e0
Empty flash at 0x0372e620 ends at 0x0372e7e0
Empty flash at 0x0372e820 ends at 0x0372e9e0
Empty flash at 0x0372ea20 ends at 0x0372ebe0
Empty flash at 0x0372ec20 ends at 0x0372ede0
Empty flash at 0x0372ee20 ends at 0x0372efe0
Empty flash at 0x0372f020 ends at 0x0372f1e0
Empty flash at 0x0372f220 ends at 0x0372f3e0
Empty flash at 0x0372f420 ends at 0x0372f5e0
Empty flash at 0x0372f620 ends at 0x0372f7e0
Empty flash at 0x0372f820 ends at 0x0372f9e0
Empty flash at 0x0372fa20 ends at 0x0372fbe0
Empty flash at 0x0372fc20 ends at 0x0372fde0
Empty flash at 0x0372fe20 ends at 0x0372ffe0
Empty flash at 0x03730020 ends at 0x037301e0
Empty flash at 0x03730220 ends at 0x037303e0
Empty flash at 0x03730420 ends at 0x037305e0
Empty flash at 0x03730620 ends at 0x037307e0
Empty flash at 0x03730820 ends at 0x037309e0
Empty flash at 0x03730a20 ends at 0x03730be0
Empty flash at 0x03730c20 ends at 0x03730de0
Empty flash at 0x03730e20 ends at 0x03730fe0
Empty flash at 0x03731020 ends at 0x037311e0
Empty flash at 0x03731220 ends at 0x037313e0
Empty flash at 0x03731420 ends at 0x037315e0
Empty flash at 0x03731620 ends at 0x037317e0
Empty flash at 0x03731820 ends at 0x037319e0
Empty flash at 0x03731a20 ends at 0x03731be0
Empty flash at 0x03731c20 ends at 0x03731de0
Empty flash at 0x03731e20 ends at 0x03731fe0
Empty flash at 0x03732020 ends at 0x037321e0
Empty flash at 0x03732220 ends at 0x037323e0
Empty flash at 0x03732420 ends at 0x037325e0
Empty flash at 0x03732620 ends at 0x037327e0
Empty flash at 0x03732820 ends at 0x037329e0
Empty flash at 0x03732a20 ends at 0x03732be0
Empty flash at 0x03732c20 ends at 0x03732de0
Empty flash at 0x03732e20 ends at 0x03732fe0
Empty flash at 0x03733020 ends at 0x037331e0
Empty flash at 0x03733220 ends at 0x037333e0
Empty flash at 0x03733420 ends at 0x037335e0
Empty flash at 0x03733620 ends at 0x037337e0
Empty flash at 0x03733820 ends at 0x037339e0
Empty flash at 0x03733a20 ends at 0x03733be0
Empty flash at 0x03733c20 ends at 0x03733de0
Empty flash at 0x03733e20 ends at 0x03733fe0
Empty flash at 0x03734020 ends at 0x037341e0
Empty flash at 0x03734220 ends at 0x037343e0
Empty flash at 0x03734420 ends at 0x037345e0
Empty flash at 0x03734620 ends at 0x037347e0
Empty flash at 0x03734820 ends at 0x037349e0
Empty flash at 0x03734a20 ends at 0x03734be0
Empty flash at 0x03734c20 ends at 0x03734de0
Empty flash at 0x03734e20 ends at 0x03734fe0
Empty flash at 0x03735020 ends at 0x037351e0
Empty flash at 0x03735220 ends at 0x037353e0
Empty flash at 0x03735420 ends at 0x037355e0
Empty flash at 0x03735620 ends at 0x037357e0
Empty flash at 0x03735820 ends at 0x037359e0
Empty flash at 0x03735a20 ends at 0x03735be0
Empty flash at 0x03735c20 ends at 0x03735de0
Empty flash at 0x03735e20 ends at 0x03735fe0
Empty flash at 0x03736020 ends at 0x037361e0
Empty flash at 0x03736220 ends at 0x037363e0
Empty flash at 0x03736420 ends at 0x037365e0
Empty flash at 0x03736620 ends at 0x037367e0
Empty flash at 0x03736820 ends at 0x037369e0
Empty flash at 0x03736a20 ends at 0x03736be0
Empty flash at 0x03736c20 ends at 0x03736de0
Empty flash at 0x03736e20 ends at 0x03736fe0
Empty flash at 0x03737020 ends at 0x037371e0
Empty flash at 0x03737220 ends at 0x037373e0
Empty flash at 0x03737420 ends at 0x037375e0
Empty flash at 0x03737620 ends at 0x037377e0
Empty flash at 0x03737820 ends at 0x037379e0
Empty flash at 0x03737a20 ends at 0x03737be0
Empty flash at 0x03737c20 ends at 0x03737de0
Empty flash at 0x03737e20 ends at 0x03737fe0
Empty flash at 0x03738020 ends at 0x037381e0
Empty flash at 0x03738220 ends at 0x037383e0
Empty flash at 0x03738420 ends at 0x037385e0
Empty flash at 0x03738620 ends at 0x037387e0
Empty flash at 0x03738820 ends at 0x037389e0
Empty flash at 0x03738a20 ends at 0x03738be0
Empty flash at 0x03738c20 ends at 0x03738de0
Empty flash at 0x03738e20 ends at 0x03738fe0
Empty flash at 0x03739020 ends at 0x037391e0
Empty flash at 0x03739220 ends at 0x037393e0
Empty flash at 0x03739420 ends at 0x037395e0
Empty flash at 0x03739620 ends at 0x037397e0
Empty flash at 0x03739820 ends at 0x037399e0
Empty flash at 0x03739a20 ends at 0x03739be0
Empty flash at 0x03739c20 ends at 0x03739de0
Empty flash at 0x03739e20 ends at 0x03739fe0
Empty flash at 0x0373a020 ends at 0x0373a1e0
Empty flash at 0x0373a220 ends at 0x0373a3e0
Empty flash at 0x0373a420 ends at 0x0373a5e0
Empty flash at 0x0373a620 ends at 0x0373a7e0
Empty flash at 0x0373a820 ends at 0x0373a9e0
Empty flash at 0x0373aa20 ends at 0x0373abe0
Empty flash at 0x0373ac20 ends at 0x0373ade0
Empty flash at 0x0373ae20 ends at 0x0373afe0
Empty flash at 0x0373b020 ends at 0x0373b1e0
Empty flash at 0x0373b220 ends at 0x0373b3e0
Empty flash at 0x0373b420 ends at 0x0373b5e0
Empty flash at 0x0373b620 ends at 0x0373b7e0
Empty flash at 0x0373b820 ends at 0x0373b9e0
Empty flash at 0x0373ba20 ends at 0x0373bbe0
Empty flash at 0x0373bc20 ends at 0x0373bde0
Empty flash at 0x0373be20 ends at 0x0373bfe0
Empty flash at 0x0373c020 ends at 0x0373c1e0
Empty flash at 0x0373c220 ends at 0x0373c3e0
Empty flash at 0x0373c420 ends at 0x0373c5e0
Empty flash at 0x0373c620 ends at 0x0373c7e0
Empty flash at 0x0373c820 ends at 0x0373c9e0
Empty flash at 0x0373ca20 ends at 0x0373cbe0
Empty flash at 0x0373cc20 ends at 0x0373cde0
Empty flash at 0x0373ce20 ends at 0x0373cfe0
Empty flash at 0x0373d020 ends at 0x0373d1e0
Empty flash at 0x0373d220 ends at 0x0373d3e0
Empty flash at 0x0373d420 ends at 0x0373d5e0
Empty flash at 0x0373d620 ends at 0x0373d7e0
Empty flash at 0x0373d820 ends at 0x0373d9e0
Empty flash at 0x0373da20 ends at 0x0373dbe0
Empty flash at 0x0373dc20 ends at 0x0373dde0
Empty flash at 0x0373de20 ends at 0x0373dfe0
Empty flash at 0x0373e020 ends at 0x0373e1e0
Empty flash at 0x0373e220 ends at 0x0373e3e0
Empty flash at 0x0373e420 ends at 0x0373e5e0
Empty flash at 0x0373e620 ends at 0x0373e7e0
Empty flash at 0x0373e820 ends at 0x0373e9e0
Empty flash at 0x0373ea20 ends at 0x0373ebe0
Empty flash at 0x0373ec20 ends at 0x0373ede0
Empty flash at 0x0373ee20 ends at 0x0373efe0
Empty flash at 0x0373f020 ends at 0x0373f1e0
Empty flash at 0x0373f220 ends at 0x0373f3e0
Empty flash at 0x0373f420 ends at 0x0373f5e0
Empty flash at 0x0373f620 ends at 0x0373f7e0
Empty flash at 0x0373f820 ends at 0x0373f9e0
Empty flash at 0x0373fa20 ends at 0x0373fbe0
Empty flash at 0x0373fc20 ends at 0x0373fde0
Empty flash at 0x0373fe20 ends at 0x0373ffe0
VFS: Mounted root (jffs2 filesystem) on device 31:2.
Freeing unused kernel memory: 240k init
INIT: version 2.86 booting
Erase at 0x028a0000 failed immediately: errno -5
Termination device set in bootargs is eth1
IEEE1588: External reference clock not detected. You may want to review
the board's jumper/switch settings; however, driver will try to
switch to system-clock.
PRIO SCH for [eth0]
ADDRCONF(NETDEV_UP): eth0: link is not ready
Erase at 0x02880000 failed immediately: errno -5
PHY: mdio@ff724000:03 - Link is Up - 100/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
INIT: Entering runlevel: 5
Starting OpenBSD Secure Shell server: sshd
done.
Starting syslogd/klogd: done
Device file created for "het_mgr"
Device file created for "het_ipc"
Device file 0 created for rfdev
Device file 1 created for rfdev
Device file 2 created for rfdev
Device file created for "fsl_shm"
OpenEmbedded Linux bsc913x ttyS0
System Builder 3.0-release-20111018 bsc913x ttyS0
bsc913x login: root
...

The different between with the board from freescale and mine is we change the flash chip,we used PC28F512M29EWHD as the nor flash.

Have a great day,
changlong zeng,

0 Kudos
Reply