i.MX233 NAND

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

i.MX233 NAND

1,654 Views
federicodevitii
Contributor II

Hi,

i've build a i.Mx233 (128-QFP) based board with a 29F8G08ABABA NAND. I connected  GPMI_CLE, GPMI_ALE, GPMI_CE0# (pulled up via 47k resistor), GPMI_RE#, GPMI_WE#, GPMI_WP# (pulled down via 47k resistor), GPMI_R/B0# (pulled up via 47k resistor) from soc to nand, and on the nand i connected VSS1&VSS2 to gnd and VCC1&VCC2 to 3v3.

When i try write the flash via mfgtools, the nand is not recognized.

PowerPrep start initialize power...

Battery Voltage = 0.80V

No battery or bad battery                                       detected!!!.Disabling battery                                   voltage measurements./r/nLLCJul  1 201017:35:57

EMI_CTRL 0x1C084040

FRAC 0x92926152

init_ddr_mt46v32m16_133Mhz

power 0x00820710

Frac 0x92926152

start change cpu freq

hbus 0x00000003

cpu 0x00010002

LLLLLLLFCLFLJUncompressing Linux...................................................................................... done, booting the kernel.

[    0.000000] Linux version 2.6.31-680-g9eb6b19-updater-00015-ga63ad47-dirty (b29397@shlinux1) (gcc version 4.1.2) #1 PREEMPT Thu Jul 1 17:21:44 CST 2010

[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: Freescale MX23EVK board

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

[    0.000000] Kernel command line: console=ttyAM0,115200 rdinit=/linuxrc rw gpmi

[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Memory: 64MB = 64MB total

[    0.000000] Memory: 57964KB available (2368K code, 271K data, 96K init, 0K highmem)

[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:224

[    0.000000] Console: colour dummy device 80x30

[    0.000000] console [ttyAM0] enabled

[    0.010000] Calibrating delay loop... 115.91 BogoMIPS (lpj=579584)

[    0.230000] Mount-cache hash table entries: 512

[    0.230000] CPU: Testing write buffer coherency: ok

[    0.250000] regulator: core version 0.5

[    0.270000] regulator: vddd: 800 <--> 1575 mV fast normal

[    0.270000] regulator: vddd_bo: 800 <--> 1575 mV fast normal

[    0.280000] regulator: vdda: 1500 <--> 2275 mV fast normal

[    0.280000] regulator: vddio: 2800 <--> 3575 mV fast normal

[    0.290000] regulator: overall_current: 0 <--> 2147483 mA fast normal

[    0.290000] regulator: mxs-duart-1: 0 <--> 2147483 mA fast normal

[    0.300000] regulator: mxs-bl-1: 0 <--> 2147483 mA fast normal

[    0.300000] regulator: mxs-i2c-1: 0 <--> 2147483 mA fast normal

[    0.310000] regulator: mmc_ssp-1: 0 <--> 2147483 mA fast normal

[    0.310000] regulator: mmc_ssp-2: 0 <--> 2147483 mA fast normal

[    0.320000] regulator: charger-1: 0 <--> 2147483 mA fast normal

[    0.320000] regulator: power-test-1: 0 <--> 2147483 mA fast normal

[    0.330000] regulator: cpufreq-1: 0 <--> 2147483 mA fast normal

[    0.340000] i.MX IRAM pool: 28 KB@0xc4808000

[    0.370000] bio: create slab <bio-0> at 0

[    0.380000] usbcore: registered new interface driver usbfs

[    0.380000] usbcore: registered new interface driver hub

[    0.390000] usbcore: registered new device driver usb

[    0.410000] Trying to unpack rootfs image as initramfs...

[    2.180000] Freeing initrd memory: 4096K

[    2.190000] Bus freq driver module loaded

[    2.190000] usb: DR gadget (utmi) registered

[    2.210000] mxs_cpu_init: cpufreq init finished

[    2.220000] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

[    2.230000] msgmni has been set to 121

[    2.250000] io scheduler noop registered

[    2.250000] io scheduler anticipatory registered

[    2.260000] io scheduler deadline registered

[    2.260000] io scheduler cfq registered (default)

[    3.660000] Console: switching to colour frame buffer device 60x34

[    3.940000] mxs-duart.0: ttyAM0 at MMIO 0x80070000 (irq = 0) is a DebugUART

[    3.950000] mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 24) is a mxs-auart.1

[    3.960000] Found APPUART 3.0.0

[    3.990000] brd: module loaded

[    4.000000] i.MX GPMI NFC

[    4.000000] NFC: Version 0, 4-chip GPMI and BCH

[    4.010000] Boot ROM: Version 0, Single/dual-chip boot area, no block mark swapping

[    4.010000] Scanning for NAND Flash chips...

[    4.020000] No NAND device found!!!

[    4.020000] gpmi-nfc gpmi-nfc.0: Chip scan failed

[    4.030000] ARC USBOTG Device Controller driver (1 August 2005)

[    4.060000] check_parameters:UTP settings are in place now, overriding defaults

[    4.060000] g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008

[    4.070000] g_file_storage gadget: Number of LUNs=1

[    4.180000] udc run

[    4.180000] fsl-usb2-udc: bind to driver g_file_storage

[    4.190000] MXS RTC driver v1.0 hardware v2.0.0

[    4.190000] mxs-rtc mxs-rtc.0: rtc core: registered mxs-rtc as rtc0

[    4.200000] mxs-mmc: MXS SSP Controller MMC Interface driver

[    4.310000] mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 14 ERRIRQ 15

[    4.320000] mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:19:02 UTC (1142)

[    4.320000] Freeing init memory: 96K

Starting UTP

disable turn off display

uuc 0.4 [built Jul  1 2010 16:13:58]

UTP: Waiting for device to appear

utp_mk_devnode: creating node '/dev/utp' with 10+222

The watchdog is not configured, needed by mx35/mx51/mx53

658, No such device

[    5.060000] g_file_storage gadget: high speed config #1

UTP: received command 'm[    6.580000] utp_exec: exit with status -22

knod class/mtd,mtd0,/dev/mtd0'

class = 'class/mtd'

item = 'mtd0'

node = /dev/mtd0

type = (null)

UTP: running utp_mk_devnode(class/mtd,mtd0,/dev/mtd0,0x2000)

UTP: sending Non-success

whats' wrong?

i wrote via bitburner in the HW_OCOTP_ROM1 register  the bit NUMBER_OF_NAND to1 and ENABLE_NAND0_CE_RDY_PULLUP to blown (it's redundant with the pull-up resistor, i know)

can someone help me, please

Thank you in advance

Labels (1)
0 Kudos
Reply
4 Replies

1,280 Views
igorpadykov
NXP Employee
NXP Employee

Hi Federico

one needs to add entries as shows attached file, so linux could recognize NAND.

Then mfg tools firmware should be rebuilt. For baremetal test one can reuse i.MX28 OBDS

GpmiNandReadId()  stmp_nand.c:

Lab and Test Software (1)

On-Board Diagnostic Suit for the i.MX28 (REV 1)

i.MX28 Evaluation Kit|Freescale

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,280 Views
federicodevitii
Contributor II

Hi igor,

i followed the istruction of User Guide for i.MX28 On-Board Diagnostics Suite (OBDS) for build a mx28-obds.sb file and flashed it on sd, but when boot a message appear on console

Undefined Instruction

r14_un

i tried to usb boot using sb_loader with the same results

after this i edited the build_mx28.sh script to chagne the elftosb option from "-f mx28" to "-f mx23" but at the end of building an error message say:

error: line 20: HAB features not supported with the selected family

thank you

0 Kudos
Reply

1,280 Views
igorpadykov
NXP Employee
NXP Employee

Hi Federico

one can run it with jtag

~igor

0 Kudos
Reply

1,280 Views
federicodevitii
Contributor II

Hi Igor,

loading other sb file (u-boot, linux kernel etc...) built for imx23 there is no problem with SD or USB. The problem is when i try to start MX28 OBDS on MX23 platform, because i think there is some instruction, like the HAB one, not supported from imx23

regards

Federico

0 Kudos
Reply