[U-Boot] Karo TX25 environment variable

Hi,
My board is a Karo tx25 (imx25) and the purpose is to speedup the boot process. For thats reason i tried to change bootloader from Redboot to uboot. but i had some problem when save environment on nand.
When i save the environment variables the first time work but aftre reboot see a badblock.
Tanks in advance
Davide Doninelli
Redboot nand info:
RedBoot> nand info
Type: Samsung K9F1G08U0A 8-bit 2K page 128MB Total size: 0x08000000 bytes (128 MiB) Total blocks: 0x400 (1024) Block size: 0x20000 (131072) Page size: 0x800 (2048) Spare size: 0x40 (64) Pages per block: 0x40 (64)
block 253 at offset 0x01fa0000 is a factory bad block ================================== Found 1 bad block(s) out of 1024 RedBoot>
Here some output of prebuilt image for this card:
U-Boot 2009.11-00146-g7d259a1-dirty (Jan 07 2010 - 21:05:46)
CPU: Freescale i.MX25 at 532 MHz
DRAM: 32 MB NAND: 128 MiB No Valid Environment Area Found No Valid Reundant Environment Area Found *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial tx25_fec_init resetting phy Net: FEC_MXC Hit any key to stop autoboot: 0 => saveenv Saving Environment to NAND... Erasing redundant Nand... Skipping bad block at 0x00080000 Skipping bad block at 0x000a0000
Writing to redundant Nand... FAILED!
=> nand bad
Device 0 bad blocks: 00000000 00020000 00040000 00060000 00080000 000a0000 000c0000 000e0000 01fa0000 07f60000
Here some output of my uboot image for this card standard config: U-Boot 2010.09 (Dec 17 2010 - 14:35:56)
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => saveenv Saving Environment to NAND... Erasing redundant Nand... Erasing at 0x60000 -- 100% complete. Writing to redundant Nand... done => saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x40000 -- 100% complete. Writing to Nand... done
After reset:
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB MXC_NAND: HWECC uncorrectable ECC error in block 2 page 128 subpage 0 No Valid Environment Area Found No Valid Reundant Environment Area Found *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => => saveenv Saving Environment to NAND... Erasing redundant Nand... Skipping bad block at 0x00060000
Writing to redundant Nand... FAILED! => nand bad
Device 0 bad blocks: 00000000 00060000 00140000 00160000 01fa0000 07fc0000 07fe0000 =>

Hi, this is last scan result.
RedBoot> nand scan -r Force re-scan ... Doing low level scan to construct BBT Writing BBT to flash RedBoot> nand info
Type: Samsung K9F1G08U0A 8-bit 2K page 128MB Total size: 0x08000000 bytes (128 MiB) Total blocks: 0x400 (1024) Block size: 0x20000 (131072) Page size: 0x800 (2048) Spare size: 0x40 (64) Pages per block: 0x40 (64)
block 0 at offset 0x00000000 is a factory bad block block 1 at offset 0x00020000 is a factory bad block block 253 at offset 0x01fa0000 is a factory bad block ================================== Found 3 bad block(s) out of 1024 RedBoot>
Hi,
My board is a Karo tx25 (imx25) and the purpose is to speedup the boot process. For thats reason i tried to change bootloader from Redboot to uboot. but i had some problem when save environment on nand.
When i save the environment variables the first time work but aftre reboot see a badblock.
Tanks in advance
Davide Doninelli
Redboot nand info:
RedBoot> nand info
Type: Samsung K9F1G08U0A 8-bit 2K page 128MB Total size: 0x08000000 bytes (128 MiB) Total blocks: 0x400 (1024) Block size: 0x20000 (131072) Page size: 0x800 (2048) Spare size: 0x40 (64) Pages per block: 0x40 (64)
block 253 at offset 0x01fa0000 is a factory bad block
Found 1 bad block(s) out of 1024 RedBoot>
Here some output of prebuilt image for this card:
U-Boot 2009.11-00146-g7d259a1-dirty (Jan 07 2010 - 21:05:46)
CPU: Freescale i.MX25 at 532 MHz
DRAM: 32 MB NAND: 128 MiB No Valid Environment Area Found No Valid Reundant Environment Area Found *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial tx25_fec_init resetting phy Net: FEC_MXC Hit any key to stop autoboot: 0 => saveenv Saving Environment to NAND... Erasing redundant Nand... Skipping bad block at 0x00080000 Skipping bad block at 0x000a0000
Writing to redundant Nand... FAILED!
=> nand bad
Device 0 bad blocks: 00000000 00020000 00040000 00060000 00080000 000a0000 000c0000 000e0000 01fa0000 07f60000
Here some output of my uboot image for this card standard config: U-Boot 2010.09 (Dec 17 2010 - 14:35:56)
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => saveenv Saving Environment to NAND... Erasing redundant Nand... Erasing at 0x60000 -- 100% complete. Writing to redundant Nand... done => saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x40000 -- 100% complete. Writing to Nand... done
After reset:
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB MXC_NAND: HWECC uncorrectable ECC error in block 2 page 128 subpage 0 No Valid Environment Area Found No Valid Reundant Environment Area Found *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => => saveenv Saving Environment to NAND... Erasing redundant Nand... Skipping bad block at 0x00060000
Writing to redundant Nand... FAILED! => nand bad
Device 0 bad blocks: 00000000 00060000 00140000 00160000 01fa0000 07fc0000 07fe0000 =>

--- On Fri, 12/17/10, davide doninelli davide.doninelli@edu.hefr.ch wrote:
CPU: Freescale i.MX25 at 532 MHz
Something is wrong here. MX25 runs at 400 MHz maximum.
Regards,
Fabio Estevam

Dear Fabio Estevam,
In message 348512.24690.qm@web51008.mail.re2.yahoo.com you wrote:
CPU: Freescale i.MX25 at 532 MHz
Something is wrong here. MX25 runs at 400 MHz maximum.
This is probably just an old version of U-Boot. Recent versions show this instead:
CPU: Freescale i.MX25 at 399 MHz
Best regards,
Wolfgang Denk

Il giorno 17-dic-2010, alle ore 20.09, Fabio Estevam ha scritto:
ong here. MX25 runs at 400 MHz maximum
hi, i have recompiled u-boot with last stable release U-Boot 2010.09 and i have the same problem, i tried to move environment variables in a different memory block but the problem is still there. Is strange that uboot see badblock that redboot don't see...
U-Boot 2010.09 (Dec 17 2010 - 14:35:56)
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => saveenv Saving Environment to NAND... Erasing redundant Nand... Erasing at 0x60000 -- 100% complete. Writing to redundant Nand... done => saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x40000 -- 100% complete. Writing to Nand... done
After reset:
CPU: Freescale i.MX25 at 399 MHz
DRAM: 32 MiB NAND: 128 MiB MXC_NAND: HWECC uncorrectable ECC error in block 2 page 128 subpage 0 No Valid Environment Area Found No Valid Reundant Environment Area Found *** Warning - bad CRC or NAND, using default environment
In: serial Out: serial Err: serial Net: FEC Hit any key to stop autoboot: 0 => => saveenv Saving Environment to NAND... Erasing redundant Nand... Skipping bad block at 0x00060000
Writing to redundant Nand... FAILED!
i don't understand why the first time is successfully and after reset don't work anymore.
best regards Davide Doninelli
participants (5)
-
davide doninelli
-
davide doninelli
-
Doninelli Davide
-
Fabio Estevam
-
Wolfgang Denk