Skip to contentSkip to conversation

Nand flash R/W,saveenv issue..

U-Boot Marek Vasut 9 participants 40 messages May 22, 2012 – Jan 25, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Dear Manukumar,

Quoted 1 line

Hello,

CCing someone who might actually help you, CCing the uboot mailing list, please keep it that way.

Quoted 13 lines

i can able to detect nand flash.
but i had an issue that i could not do operation(Read/write) on nand flash.
i tried to erase the nand flash i got the error as below:

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5

even if i try to saveenv then also is not saving the envionment variables

Quoted 7 lines

processor used: P1012
nand flash: samsung K9F5608U0D

please reply ASAP.

manukumar
signal-networks

Best regards,
Marek Vasut

#2 lore raw
Quoted 27 lines · Marek Vasut

Dear Manukumar,

Quoted 1 line

Hello,

CCing someone who might actually help you, CCing the uboot mailing list, please keep it that way.

Quoted 20 lines

i can able to detect nand flash.
but i had an issue that i could not do operation(Read/write) on nand flash.
i tried to erase the nand flash i got the error as below:

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5

even if i try to saveenv then also is not saving the envionment variables

processor used: P1012
nand flash: samsung K9F5608U0D

please reply ASAP.

manukumar
signal-networks

What version of U-Boot is this?

How are you configuring BRn/ORn for this chipselect?

Could you define VERBOSE_DEBUG at the top of
drivers/mtd/nand/fsl_elbc_nand.c?

-Scott

#3 lore raw

u-boot version: u-boot-2010.12

My OR and BR register values(according to our memory map):

BR0     0xFF800C21      OR0     0xFF800396
BR1     0xE8000801      OR1     0xFFFF8074
BR2     0xE8009001      OR2     0xFFFF8074

after defining VERBOSE_DEBUG in drivers/mtd/nand/fsl_elbc_nand.c i gave sacveenv command, igot below logs.
please go through that and resolve asap.

Hit any key to stop autoboot: 0
=> saveenv
Saving Environment to NAND...
Erasing Nand...
nand_erase_opts_1
nand_erase_opts_2
erase_length = 3
erase.addr = 0
meminfo->erasesize = 540672
**********************************************************erase_length = 3 erase.addr = 0 meminfo->erasesize = 540672
skipping bad block =
0
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001 bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f020
Page size =
0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr:
0x420.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc:
NAND_CMD_ERASE2.
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000 fcr=60d00000
DEBUG: fsl_elbc_run_command: fbar=00000021 fpar=00000000 fbcr=00000000 bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023
Page size =
0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) =
fffffffb
ctrl->status=
0
---------------------------------------------------
result =
-5

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
erase_length = 3 erase.addr = 0 meminfo->erasesize = 557056 skipping bad block = 0
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001 bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023
Page size =
0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr:
0x440.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc:
NAND_CMD_ERASE2.
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000 fcr=60d00000
DEBUG: fsl_elbc_run_command: fbar=00000022 fpar=00000000 fbcr=00000000 bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f020
Page size =
0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
ctrl->status=
40000001
---------------------------------------------------
result =
-5

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
erase_length = 3 erase.addr = 0 meminfo->erasesize = 573440 skipping bad block = 0
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001 bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023
Page size =
0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE1, page_addr: 0x460.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_ERASE2. fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c2500000 fcr=60d00000
DEBUG: fsl_elbc_run_command: fbar=00000023 fpar=00000000 fbcr=00000000 bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f023 Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb ctrl->status= 40000001
---------------------------------------------------
result = -5

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
nand_erase_opts_3

Writing to Nand... nand_write
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001 bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023 Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_SEQIN/PAGE_PROG, page_addr: 0x420,
column: 0x0.
DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
DEBUG: fsl_elbc_cmdfunc: NAND_CMD_PAGEPROG writing 528 bytes. fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c6128d00 fcr=00108000
DEBUG: fsl_elbc_run_command: fbar=00000021 fpar=00000000 fbcr=00000000 bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f020 Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb
DEBUG: set_addr: bank=7, ctrl->addr=0xff801c00 (0xff800000), index 206, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=c12e0000 fcr=50000000
DEBUG: fsl_elbc_run_command: fbar=00ffffff fpar=00007e06 fbcr=00000003 bank=0
DEBUG: fsl_elbc_run_command: stat=00000000 mdr=00000000 fmr=0000f023 Page size = 0
ctrl->status(ctrl->status == LTESR_CC ? 0 : -EIO) = fffffffb ctrl->status= 0
FAILED!

I am expecting your response at earliest.

manukumar
signal-networks

Quoted 38 lines · Scott Wood
Quoted 27 lines · Marek Vasut

Dear Manukumar,

Quoted 1 line

Hello,

CCing someone who might actually help you, CCing the uboot mailing list, please keep it that way.

Quoted 20 lines

i can able to detect nand flash.
but i had an issue that i could not do operation(Read/write) on nand flash.
i tried to erase the nand flash i got the error as below:

NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5
NAND 32MiB 3,3V 8-bit: MTD Erase failure: -5

even if i try to saveenv then also is not saving the envionment variables

processor used: P1012
nand flash: samsung K9F5608U0D

please reply ASAP.

manukumar
signal-networks

What version of U-Boot is this?

How are you configuring BRn/ORn for this chipselect?

Could you define VERBOSE_DEBUG at the top of
drivers/mtd/nand/fsl_elbc_nand.c?

-Scott

#4 lore raw

Dear Manukumar,

Quoted 2 lines · In message <1337752596.2378.37.camel@Manukumar> you wrote:

u-boot version: u-boot-2010.12

This is ancient code. Please update and use current code, then try again.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The moral of the story is: "Don't stop to  tighten  your  shoe  laces
during the Olympics 100m finals".
                             - Kevin Jones in <[email protected]>
#5 lore raw

Hello,
when we get rference board(P1020RDB) we got the u-boot-2010.12 source. by using above source we have modified according to custom boards requirement.
can you please provide the link to get updated u-boot source that support P1012 with nand flash samsung(K95608U0D)
or please provide me the patch...

manukumar
signal-networks

Quoted 13 lines · Wolfgang Denk

Dear Manukumar,

Quoted 2 lines · In message <1337752596.2378.37.camel@Manukumar> you wrote:

u-boot version: u-boot-2010.12

This is ancient code. Please update and use current code, then try again.

Best regards,

Wolfgang Denk

#6 lore raw
Quoted 2 lines · Manukumar

Hello,
when we get rference board(P1020RDB) we got the u-boot-2010.12 source.

That board is supported by current mainline U-Boot as well -- no patch needed.

Quoted 5 lines

by using above source we have modified according to custom boards requirement.
can you please provide the link to get updated u-boot source that support P1012 with nand flash samsung(K95608U0D)
or please provide me the patch...

git.denx.de, or ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2

-Scott

#40 lore raw
In reply to Manukumar
Quoted 11 lines · Manukumar

u-boot version: u-boot-2010.12

My OR and BR register values(according to our memory map):

BR0     0xFF800C21      OR0     0xFF800396
BR1     0xE8000801      OR1     0xFFFF8074
BR2     0xE8009001      OR2     0xFFFF8074

after defining VERBOSE_DEBUG in drivers/mtd/nand/fsl_elbc_nand.c i gave sacveenv command, igot below logs.
please go through that and resolve asap.

People on this list are generally happy to help as time is available, but if you need "asap" either contact support at freescale.com (especially when using Freescale-supplied U-Boot) or another official Freescale FAE or support contact, or hire someone to look into it.

Quoted 2 lines

skipping bad block =
0

I don't see this exact message in mainline U-Boot, even in old versions.
And zero being a bad block would be a bad thing -- I suspect things
have gone wrong before the output you provided.

Quoted 9 lines

DEBUG: set_addr: bank=0, ctrl->addr=0xff800000 (0xff800000), index 0, pes 14 ps 9
fsl_elbc_run_command
DEBUG: fsl_elbc_run_command: fmr=0000f023 fir=4e000000 fcr=70000000
DEBUG: fsl_elbc_run_command: fbar=00000000 fpar=00000000 fbcr=00000001 bank=0
DEBUG: fsl_elbc_run_command: stat=40000001 mdr=00000000 fmr=0000f020

This is showing a command timeout (LTESR[FCT]). What happened with the NAND earlier in the boot sequence?

-Scott

#7 lore raw

[U-Boot] problem while making kernel up

In reply to Scott Wood

hello,
I was able to solve nand erase and nand write and saveenv. Now,I am making kernel up and followed below steps..

1) tf 1000000 uImage_icm_v1.1

    nand erase 0x00200000 361483
    nand write 1000000 0x00200000 361483

2) tf c00000 p1021rdb_32b.dtb

    nand erase 0x00100000 3000
    nand write c00000 0x00100000 3000

3) tf 2000000 mini.rootfs.ext2.gz.uboot

    nand erase 0x00600000 2115d4
    nand write 2000000 0x00600000 2115d4

then to boot kernel from nand i used

	bootm 0x00200000 0x00600000 0x00100000

it is giving below log message.

2168276 bytes written: OK
=> bootm 0x00200000 0x00600000 0x00100000
WARNING: adjusting available memory to 30000000 Wrong Image Format for bootm command
ERROR: can't get kernel image!

and also my next question is
cp.b 1000000 0x00200000 100000 not working it is showing log as:

=> cp.b 1000000 0x00200000 100000
Copy to Flash... Flash not Erased

why this is happenning please give me the solution for this.

manukumar
signal-networks

Quoted 17 lines · Scott Wood
Quoted 2 lines · Manukumar

Hello,
when we get rference board(P1020RDB) we got the u-boot-2010.12 source.

That board is supported by current mainline U-Boot as well -- no patch needed.

Quoted 5 lines

by using above source we have modified according to custom boards requirement.
can you please provide the link to get updated u-boot source that support P1012 with nand flash samsung(K95608U0D)
or please provide me the patch...

git.denx.de, or ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2

-Scott

#8 lore raw

[U-Boot] problem while making kernel up

Quoted 12 lines · Manukumar

hello,
I was able to solve nand erase and nand write and saveenv. Now,I am making kernel up and followed below steps..

1) tf 1000000 uImage_icm_v1.1

    nand erase 0x00200000 361483
    nand write 1000000 0x00200000 361483

2) tf c00000 p1021rdb_32b.dtb

    nand erase 0x00100000 3000
    nand write c00000 0x00100000 3000
Quoted 6 lines

3) tf 2000000 mini.rootfs.ext2.gz.uboot

    nand erase 0x00600000 2115d4
    nand write 2000000 0x00600000 2115d4

then to boot kernel from nand i used

	bootm 0x00200000 0x00600000 0x00100000

Bootm takes a RAM address, not a NAND address. Unlike NOR flash, NAND is not directly addressable. You need to use "nand read" first.

-Scott

#9 lore raw

[U-Boot] problem while making kernel up

thanks scott.

i loaded my u-boot image to nand flash its fine.
and also
I need my kernel image and rootfs also in nand flash
so that my system should make kernel UP using nand flash. how can i do this using nand flash as we are using only nand flash as boot device.

manukumar
siganl-networks

Quoted 25 lines · Scott Wood
Quoted 12 lines · Manukumar

hello,
I was able to solve nand erase and nand write and saveenv. Now,I am making kernel up and followed below steps..

1) tf 1000000 uImage_icm_v1.1

    nand erase 0x00200000 361483
    nand write 1000000 0x00200000 361483

2) tf c00000 p1021rdb_32b.dtb

    nand erase 0x00100000 3000
    nand write c00000 0x00100000 3000
Quoted 6 lines

3) tf 2000000 mini.rootfs.ext2.gz.uboot

    nand erase 0x00600000 2115d4
    nand write 2000000 0x00600000 2115d4

then to boot kernel from nand i used

	bootm 0x00200000 0x00600000 0x00100000

Bootm takes a RAM address, not a NAND address. Unlike NOR flash, NAND is not directly addressable. You need to use "nand read" first.

-Scott

#10 lore raw

[U-Boot] problem while making kernel up

Quoted 8 lines · Manukumar

thanks scott.

i loaded my u-boot image to nand flash its fine.
and also
I need my kernel image and rootfs also in nand flash
so that my system should make kernel UP using nand flash. how can i do this using nand flash as we are using only nand flash as boot device.

Again, you need to use "nand read" to move the images from NAND to RAM before booting.

-Scott

#11 lore raw

[U-Boot] problem while making kernel up

Thanks scott..

manukumar
signal-networks

Quoted 2 lines · Scott Wood

Wolfgang Denk <[email protected]>, Marek Vasut <[email protected]>, joe.hershberger at ni.com, sr at denx.de, u-boot at lists.denx.de,

#12 lore raw

[U-Boot] problem while making kernel up

In reply to Scott Wood

Hello scott.

I can able make the kernel up but it hangs after probing serial driver as shown below:

It has to boot further but its not happenig..
I have attached the file i should get the log as this i also mentioned where it hangs...

what may be the problem with this how could i fix this issue.

manukumar
signal-networks

Quoted 10 lines · Scott Wood
Quoted 8 lines · Manukumar

thanks scott.

i loaded my u-boot image to nand flash its fine.
and also
I need my kernel image and rootfs also in nand flash
so that my system should make kernel UP using nand flash. how can i do this using nand flash as we are using only nand flash as boot device.

Quoted 5 lines

Again, you need to use "nand read" to move the images from NAND to RAM before booting.

-Scott

-------------- next part --------------

U-Boot 2010.12 (May 11 2012 - 10:14:18)

CPU0:  P1021, Version: 1.1, (0x80e40111)
Core:  E500, Version: 5.1, (0x80212051)
Clock Configuration:
       CPU0:533.333 MHz, CPU1:1200 MHz, 
       CCB:266.667 MHz,
       DDR:100  MHz (200 MT/s data rate) (Asynchronous), LBC:16.667 MHz
       QE:266.667 MHz

L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: P1021RDB CPLD: V15.15 PCBA: V15.0
Error reading i2c boot information!

I2C:   ready
SPI:   ready
DRAM:  DDR: failed to read SPD from address 82

SPD error! Trying fallback to raw timing calculation Detected UDIMM(s)
The choosen cas latency 5 is too large
1 GiB (DDR3, 32-bit, CL=6, ECC off) **board_init_r**
L2: 256 KB enabled
CPU up timeout. CPU up mask is 1 should be 3
NAND: fsl_elbc_nand: address did not match any chip selects 0 MiB
MMC: FSL_ESDHC: 0
*** Warning - bad CRC, using default environment

PCIe1: disabled
PCIe2: disabled
In:    serial
Out:   serial
Err:   serial
Net:   PHY_ADDR=4

PHY_ADDR3=5
eTSEC1: PHY is AR8021 (4dd041)

MII read Phy 4 debug reg address 0x0b val:bc60
PHY_ADDR=0
PHY_ADDR3=5
eTSEC2: PHY is AR8021 (4dd041)
PHY_ADDR=5
PHY_ADDR3=5
eTSEC3: No support for PHY id ffffffff; assuming generic
eTSEC1, eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=> setenv bootargs root=/dev/nfs rw nfsroot=192.168.1.68:/home/project/ICMv1.1/filesystem ip=192.168.1.250:192.168.1.68:192.1680 => setenv ipaddr 192.168.1.250; setenv serverip 192.168.1.68; setenv ethaddr 00:1a:b0:00:02:50; tftp 1000000 uImage_icm_v1.1;tf0

SIG_PRIN: phy addr 4

SIG_PRIN: mii_parse_link

SIG_PRIN: adjust_link
Speed: 100, full duplex
Using eTSEC1 device
TFTP from server 192.168.1.68; our IP address is 192.168.1.250 Filename 'uImage_icm_v1.1'.
Load address: 0x1000000
Loading: ############Got error 14
T ##########################Got error 14
T ######Got error 14
T #################Got error 4

Abort

SIG_PRIN: phy addr 4

SIG_PRIN: mii_parse_link

SIG_PRIN: adjust_link
Speed: 100, full duplex
Using eTSEC1 device
TFTP from server 192.168.1.68; our IP address is 192.168.1.250 Filename 'p1021rdb_32b.dtb'.
Load address: 0xc00000
Loading: ##
done
Bytes transferred = 15066 (3ada hex)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Signal ICMv1.1
   Created:      2012-05-31  21:36:15 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3559856 Bytes = 3.4 MiB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
=> setenv ipaddr 192.168.1.250; setenv serverip 192.168.1.68; setenv ethaddr 00:1a:b0:00:02:50; tftp 1000000 uImage_icm_v1.1;tf0

SIG_PRIN: phy addr 4

SIG_PRIN: mii_parse_link

SIG_PRIN: adjust_link
Speed: 100, full duplex
Using eTSEC1 device
TFTP from server 192.168.1.68; our IP address is 192.168.1.250 Filename 'uImage_icm_v1.1'.
Load address: 0x1000000
Loading: ########################################Got error 4 T #############Got error 14
T ############

         ################################################Got error 14
T #################
         #################################################################
         ###############################################Got error 4

T #
done
Bytes transferred = 3559920 (3651f0 hex)

SIG_PRIN: phy addr 4

SIG_PRIN: mii_parse_link

SIG_PRIN: adjust_link
Speed: 100, full duplex
Using eTSEC1 device
TFTP from server 192.168.1.68; our IP address is 192.168.1.250 Filename 'p1021rdb_32b.dtb'.
Load address: 0xc00000
Loading: ##
done
Bytes transferred = 15066 (3ada hex)
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Signal ICMv1.1
   Created:      2012-05-31  21:36:15 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3559856 Bytes = 3.4 MiB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 00c00000
Booting using the fdt blob at 0xc00000
Uncompressing Kernel Image ... OK
Loading Device Tree to 00ff9000, end 00fffad9 ... OK
WARNING: could not find compatiblenode fsl-usb2-dr: FDT_ERR_NOTFOUND.
Using P1021 RDB-PC machine description
Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
Linux version 2.6.35 (root at NatLAB7) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-55) ) #16 SMP Fri Jun 1 03:06:05 IST 2012 CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
Could not find Quicc Engine node
MPC85xx RDB board from Freescale Semiconductor
arch: exit
Zone PFN ranges:

  DMA      0x00000000 -> 0x00030000
  Normal   empty
  HighMem  0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00040000

MMU: Allocated 1088 bytes of context maps for 255 contexts
PERCPU: Embedded 7 pages/cpu @c0f33000 s6880 r8192 d13600 u65536
pcpu-alloc: s6880 r8192 d13600 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/nfs rw nfsroot=192.168.1.68:/home/project/ICMv1.1/filesystem ip=192.168.1.250:192.168.1.68:192.10 PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1032048k/1048576k available (6856k kernel code, 16528k reserved, 288k data, 189k bss, 252k init) Kernel virtual memory layout:

  * 0xfffbf000..0xfffff000  : fixmap
  * 0xff800000..0xffc00000  : highmem PTEs
  * 0xff7fe000..0xff800000  : early ioremap
  * 0xf1000000..0xff7fe000  : vmalloc & ioremap

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
Could not find qe-ic node
clocksource: timebase mult[7800001] shift[22] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
mpic: requesting IPIs...
Processor 1 is stuck.
Brought up 1 CPUs
xor: measuring software checksum speed
8regs : 654.000 MB/sec
8regs_prefetch: 563.000 MB/sec
32regs : 651.000 MB/sec
32regs_prefetch: 579.000 MB/sec
xor: using function: 8regs (654.000 MB/sec)
NET: Registered protocol family 16
tdm_init

PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 76 MB/s
raid6: int32x2 133 MB/s
raid6: int32x4 190 MB/s
raid6: int32x8 159 MB/s
raid6: using algorithm int32x4 (190 MB/s)
Freescale Elo / Elo Plus DMA driver
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
SIGNET: qe_drv_init
fsl-elo-dma ffe21300.dma: #0 (fsl,eloplus-dma-channel), irq 20
fsl-elo-dma ffe21300.dma: #1 (fsl,eloplus-dma-channel), irq 21
fsl-elo-dma ffe21300.dma: #2 (fsl,eloplus-dma-channel), irq 22
fsl-elo-dma ffe21300.dma: #3 (fsl,eloplus-dma-channel), irq 23
MPIC global timer init done...
MPIC EXTERNAL INTERRUPT init done
audit: initializing netlink socket (disabled)
type=2000 audit(5.495:1): initialized
highmem bounce pool size: 64 pages
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) ?? 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1503
alg: No test for stdrng (krng)
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic non-volatile memory driver v1.1
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A (---------------------manu----------------------->>>>> after this it hangs in our custom board.) console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
Freescale QUICC Engine UART device driver
brd: module loaded
loop: module loaded
st: Version 20081215, fixed bufsize 32768, s/g segs 256
of-flash ef000000.nor: do_map_probe() failed
fsl-lbc ffe05000.localbus: address did not match any chip selects
fsl-espi ffe07000.spi: Freescale eSPI Controller driver at 0xf110c000 (irq = 59)
fsl_m25p80 spi32766.0: m25p80 (1024 Kbytes)
Creating 5 MTD partitions on "SPIFLASH0":
0x000000000000-0x000000080000 : "SPI (RO) U-Boot Image"
ftl_cs: FTL header not found.
0x000000080000-0x000000100000 : "SPI (RO) DTB Image"
ftl_cs: FTL header not found.
0x000000100000-0x000000500000 : "SPI (RO) Linux Kernel Image"
mtd: partition "SPI (RO) Linux Kernel Image" is out of reach -- disabled
ftl_cs: FTL header not found.
0x000000500000-0x000000900000 : "SPI (RO) Compressed RFS Image"
mtd: partition "SPI (RO) Compressed RFS Image" is out of reach -- disabled
ftl_cs: FTL header not found.
0x000000900000-0x000001000000 : "SPI (RW) JFFS2 RFS"
mtd: partition "SPI (RW) JFFS2 RFS" is out of reach -- disabled
ftl_cs: FTL header not found.
Fixed MDIO Bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k4
e1000e: Copyright (c) 1999 - 2009 Intel Corporation.
/proc/ptp_1588 created
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth0: Gianfar Ethernet Controller Version 1.4-skbr1.1.5, 00:1a:b0:00:02:50
eth0: Running with NAPI enabled
eth0: RX BD ring size for Q[0]: 128
eth0: RX BD ring size for Q[1]: 128
eth0: RX BD ring size for Q[2]: 128
eth0: RX BD ring size for Q[3]: 128
eth0: RX BD ring size for Q[4]: 128
eth0: RX BD ring size for Q[5]: 128
eth0: RX BD ring size for Q[6]: 128
eth0: RX BD ring size for Q[7]: 128
eth0: TX BD ring size for Q[0]: 128
eth0: TX BD ring size for Q[1]: 128
eth0: TX BD ring size for Q[2]: 128
eth0: TX BD ring size for Q[3]: 128
eth0: TX BD ring size for Q[4]: 128
eth0: TX BD ring size for Q[5]: 128
eth0: TX BD ring size for Q[6]: 128
eth0: TX BD ring size for Q[7]: 128
IEEE1588: ptp-timer devicepresent in the system
IEEE1588: ptp-timer initialized
eth1: Gianfar Ethernet Controller Version 1.4-skbr1.1.5, 00:00:00:00:00:00
eth1: Running with NAPI enabled
eth1: RX BD ring size for Q[0]: 128
eth1: RX BD ring size for Q[1]: 128
eth1: RX BD ring size for Q[2]: 128
eth1: RX BD ring size for Q[3]: 128
eth1: RX BD ring size for Q[4]: 128
eth1: RX BD ring size for Q[5]: 128
eth1: RX BD ring size for Q[6]: 128
eth1: RX BD ring size for Q[7]: 128
eth1: TX BD ring size for Q[0]: 128
eth1: TX BD ring size for Q[1]: 128
eth1: TX BD ring size for Q[2]: 128
eth1: TX BD ring size for Q[3]: 128
eth1: TX BD ring size for Q[4]: 128
eth1: TX BD ring size for Q[5]: 128
eth1: TX BD ring size for Q[6]: 128
eth1: TX BD ring size for Q[7]: 128
Freescale PowerQUICC MII Bus: probed
mdio_bus mdio at ffe24000: error probing PHY at address 5
Freescale PowerQUICC MII Bus: probed
Freescale PowerQUICC MII Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Found HC with no IRQ!
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
Freescale USB OTG Driver loaded, $Revision: 1.55 $
i2c /dev entries driver
rtc-pt7c4338 0-0068: rtc core: registered pt7c4338 as rtc0
PowerPC Book-E Watchdog Timer Loaded
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on ffe2e000.sdhci [ffe2e000.sdhci] using DMA
<6>mknod tdm c 239 0
tdm_dev_init: registering the character device adap 0
tdm_fsl_starlite: Freescale Starlite TDM Driver Adapter:Init
ucc_tdm: Freescale QE UCC TDM Driver:Init
Freescale P1022 DS ALSA SoC fabric driver
Freescale Synchronous Serial Interface (SSI) ASoC Driver
ALSA device list:
No soundcards found.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
rtc-pt7c4338 0-0068: setting system clock to 2000-01-01 00:01:25 UTC (946684885)
ADDRCONF(NETDEV_UP): eth0: link is not ready
IP-Config: Complete:

     device=eth0, addr=192.168.1.250, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.250, domain=, nis-domain=(none),
     bootserver=192.168.1.68, rootserver=192.168.1.68, rootpath=

md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
Looking up port of RPC 100003/2 on 192.168.1.68
PHY: mdio at ffe24000:04 - Link is Up - 100/Full ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Looking up port of RPC 100005/1 on 192.168.1.68
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing unused kernel memory: 252k init
udev: starting version 141
udevd-event[1242]: error changing netif name eth0 to eth1: Device or resource busy

FAT: unable to read boot sector
EXT3-fs (md0): error: unable to read superblock
EXT2-fs (md0): error: unable to read superblock
EXT3-fs (md0): error: unable to read superblock
EXT2-fs (md0): error: unable to read superblock
FAT: unable to read boot sector
INIT: Entering runlevel: 5
Starting OpenBSD Secure Shell server: sshd
Privilege separation user sshd does not exist
starting Busybox HTTP Daemon: httpd... done.
Starting network benchmark server: netserver.
sh: bad number
creating NFS state directory: done
starting 8 nfsd kernel threads: svc: failed to register lockdv1 RPC service (errno 97). done
starting mountd: done
starting statd: done
Starting random number generator daemoncan't open /dev/hwrng: No such file or directory .
Starting Samba: smbd nmbd.
Starting syslogd/klogd: done

OpenEmbedded Linux p1021rdb ttyS0

Mentor Graphics System Builder 3.0-release-20120310 p1021rdb ttyS0

p1021rdb login:

#13 lore raw

[U-Boot] problem while making kernel up

Quoted 10 lines · Manukumar

Hello scott.

I can able make the kernel up but it hangs after probing serial driver as shown below:

It has to boot further but its not happenig..
I have attached the file i should get the log as this i also mentioned where it hangs...

what may be the problem with this how could i fix this issue.

This is getting off topic for the U-Boot list. Plus, it looks like you're using a Freescale-provided kernel. Please e-mail support at freescale.com, or try the latest upstream kernel and get help from linuxppc-dev at lists.ozlabs.org.

But in this case, since this is your custom board, and it works on the evaluation board, this is something you'll need to debug yourself (or hire someone to debug).

Given the place where it hangs, the obvious suggestion is to make sure the baud rate and serial input clock are correct.

-Scott

#14 lore raw

[U-Boot] problem while making kernel up

Hello scott,

The issue is solved by making baud rate correction. thank you

manukumar
signal-networks

Quoted 26 lines · Scott Wood
Quoted 10 lines · Manukumar

Hello scott.

I can able make the kernel up but it hangs after probing serial driver as shown below:

It has to boot further but its not happenig..
I have attached the file i should get the log as this i also mentioned where it hangs...

what may be the problem with this how could i fix this issue.

This is getting off topic for the U-Boot list. Plus, it looks like you're using a Freescale-provided kernel. Please e-mail support at freescale.com, or try the latest upstream kernel and get help from linuxppc-dev at lists.ozlabs.org.

But in this case, since this is your custom board, and it works on the evaluation board, this is something you'll need to debug yourself (or hire someone to debug).

Given the place where it hangs, the obvious suggestion is to make sure the baud rate and serial input clock are correct.

-Scott

#15 lore raw

[U-Boot] USB detection

In reply to Scott Wood

Hello,

I have connected USB hard disk to P1020RB
and in command prompt(u-boot) i used
command
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found

=> usb dev

USB device 0: Vendor: Seagate Rev: 0130 Prod: Portable
Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

and USB got detected.

but If i used the same command in our custom board
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

=> usb dev

USB device -1: device type unknown

How do resolve this issue and why the device is not detecting my USB hard disk.?

manukumar
signal-networks

#16 lore raw

[U-Boot] USB detection

Hi Manukumar,

Quoted 3 lines · Manukumar

Hello,

I have connected USB hard disk to P1020RB

Which board is this? Neither "git grep -i P1020RB" nor "find . iname '*P1020RB*'" yield any result.

Quoted 25 lines

and in command prompt(u-boot) i used
command
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found

=> usb dev

USB device 0: Vendor: Seagate Rev: 0130 Prod: Portable
Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

and USB got detected.

but If i used the same command in our custom board
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

Quoted 7 lines

=> usb dev

USB device -1: device type unknown

How do resolve this issue and why the device is not detecting my USB hard disk.?

Considering that you're trying this on a custom board, and assuming "P1020RB" is a nickname for a board supported in mainline U-Boot, there are two possibilities:

1) the custom board uses exactly the same U-Boot (source, configuration and binaries) as P1020RB, and the issue is in HW, in which case we can barely help;

2) the custom board uses a custom U-Boot, and we can barely help too, as this issue is not about (recent) mainline U-Boot code.

Quoted 2 lines

manukumar
signal-networks

Amicalement,

Signature · 1 line
Albert.
#17 lore raw

[U-Boot] USB detection

Dear Albert ARIBAUD,

Quoted 11 lines

Hi Manukumar,

On Thu, 05 Jul 2012 15:57:49 +0530, Manukumar

Quoted 3 lines · <[email protected]> wrote:

Hello,

I have connected USB hard disk to P1020RB

Which board is this? Neither "git grep -i P1020RB" nor "find . iname '*P1020RB*'" yield any result.

Ain't it P1020RDB?

Quoted 28 lines
Quoted 28 lines

and in command prompt(u-boot) i used
command
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found

scanning bus for storage devices... 1 Storage Device(s) found

=> usb dev

USB device 0: Vendor: Seagate Rev: 0130 Prod: Portable

Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

and USB got detected.

but If i used the same command in our custom board => usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found

scanning bus for storage devices... 0 Storage Device(s) found

Quoted 7 lines
Quoted 7 lines

=> usb dev

USB device -1: device type unknown

How do resolve this issue and why the device is not detecting my USB hard disk.?

This happens with mainline u-boot, right? Can you try older version of uboot and then git bisect to find the offending change please?

Quoted 8 lines

Considering that you're trying this on a custom board, and assuming "P1020RB" is a nickname for a board supported in mainline U-Boot, there are two possibilities:

1) the custom board uses exactly the same U-Boot (source, configuration and binaries) as P1020RB, and the issue is in HW, in which case we can barely help;

Quoted 7 lines

2) the custom board uses a custom U-Boot, and we can barely help too, as this issue is not about (recent) mainline U-Boot code.

Quoted 2 lines

manukumar
signal-networks

Amicalement,

Best regards,
Marek Vasut

#18 lore raw

[U-Boot] USB detection

In reply to Albert ARIBAUD

hello
I checked with the hardware spec
in that
P1020RDB: having connection like
P1012processor -> PHY -> HUB -> ports

whereas in custom board
P1012processor -> phy -> port(single usb port)

In uboot source code initializing sequence of u-boot is below:
1.usb_init()
2.usb_scan_devices()
3.usb_new_device(dev)
4.usb_hub_probe(dev, 0) 5.usb_hub_configure(dev)

how can we do this in u-boot source code

manukumar
signal-networks

Quoted 59 lines · Albert ARIBAUD

Hi Manukumar,

Quoted 3 lines · Manukumar

Hello,

I have connected USB hard disk to P1020RB

Which board is this? Neither "git grep -i P1020RB" nor "find . iname '*P1020RB*'" yield any result.

Quoted 25 lines

and in command prompt(u-boot) i used
command
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found

=> usb dev

USB device 0: Vendor: Seagate Rev: 0130 Prod: Portable
Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

and USB got detected.

but If i used the same command in our custom board
=> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

Quoted 7 lines

=> usb dev

USB device -1: device type unknown

How do resolve this issue and why the device is not detecting my USB hard disk.?

Considering that you're trying this on a custom board, and assuming "P1020RB" is a nickname for a board supported in mainline U-Boot, there are two possibilities:

1) the custom board uses exactly the same U-Boot (source, configuration and binaries) as P1020RB, and the issue is in HW, in which case we can barely help;

2) the custom board uses a custom U-Boot, and we can barely help too, as this issue is not about (recent) mainline U-Boot code.

Quoted 2 lines

manukumar
signal-networks

Amicalement,

#19 lore raw

[U-Boot] USB detection

Hi Manukumar,

Quoted 18 lines · Manukumar

hello
I checked with the hardware spec
in that
P1020RDB: having connection like
P1012processor -> PHY -> HUB -> ports

whereas in custom board
P1012processor -> phy -> port(single usb port)

In uboot source code initializing sequence of u-boot is below:
1.usb_init()
2.usb_scan_devices()
3.usb_new_device(dev)
4.usb_hub_probe(dev, 0) 5.usb_hub_configure(dev)

Quoted 1 line

how can we do this in u-boot source code

I am not a USB specialist, but it seems like it is the first time ever that U-Boot meets a board where the core's USB port is mapped directly to a device without passing through a hub. Is this design compliant with the USB standards?

Anyway, you seem to have nailed the (USB) root cause, so the course of action is obvious even if its compliance with standards is not: you need to make usb hub probing and configuration optional and enabled by default, and to disable this option for your custom board.

Quoted 2 lines

manukumar
signal-networks

Amicalement,

Signature · 1 line
Albert.
#20 lore raw

[U-Boot] USB detection

In reply to Manukumar

Dear Manukumar,

Quoted 8 lines

hello
I checked with the hardware spec
in that
P1020RDB: having connection like
P1012processor -> PHY -> HUB -> ports

whereas in custom board
P1012processor -> phy -> port(single usb port)

This is fairy normal.

Quoted 10 lines

In uboot source code initializing sequence of u-boot is below:
1.usb_init()
2.usb_scan_devices()
3.usb_new_device(dev)
4.usb_hub_probe(dev, 0) 5.usb_hub_configure(dev)

how can we do this in u-boot source code

But I don't see what you're asking about.

Quoted 2 lines

manukumar
signal-networks

[...]

Best regards,
Marek Vasut

#21 lore raw

[U-Boot] USB detection

Hello,

I resolved u-boot issues in u-boot level
but i am facing an issue in kernel level usb
detection can any suggest me to resolve this
issue.

manukumar
signal-networks

Quoted 34 lines · Marek Vasut

Dear Manukumar,

Quoted 8 lines

hello
I checked with the hardware spec
in that
P1020RDB: having connection like
P1012processor -> PHY -> HUB -> ports

whereas in custom board
P1012processor -> phy -> port(single usb port)

This is fairy normal.

Quoted 10 lines

In uboot source code initializing sequence of u-boot is below:
1.usb_init()
2.usb_scan_devices()
3.usb_new_device(dev)
4.usb_hub_probe(dev, 0) 5.usb_hub_configure(dev)

how can we do this in u-boot source code

But I don't see what you're asking about.

Quoted 2 lines

manukumar
signal-networks

[...]

Best regards,
Marek Vasut

#38 lore raw

[U-Boot] Nand Flash Programing and Board Bring Up

In reply to Manukumar

Dear All

I am facing issue in Nand flash 2Gigabits(i.e 256MB)(MT29F2G08AABWP) Bring up
After changing from 32MB(K9F5608U0d).

To program nand flash we are using code warrior, here we dont have correct match of nand flash part number for 2Gbits and so we took nand flash part number where flash organization is similar to 2Gbits. with this above procedure i can able to detect,erase and write the flash.
After flashing u-boot image to this flash the board has not Up. please provide me inputs to solve this issues.

(Note: we are not faced any issues while booting from 32MB board has completly up)

I want to know reason why board has not up with 256MB flash.

manukumar
signal-networks.

#39 lore raw

[U-Boot] Nand Flash Programing and Board Bring Up

Dear Manukumar,

Quoted 5 lines

Dear All

I am facing issue in Nand flash 2Gigabits(i.e 256MB)(MT29F2G08AABWP) Bring up
After changing from 32MB(K9F5608U0d).

What board is that? Please never leave these details out, we can't help you otherwise.

Quoted 8 lines

To program nand flash we are using code warrior, here we dont have correct match of nand flash part number for 2Gbits and so we took nand flash part number where flash organization is similar to 2Gbits. with this above procedure i can able to detect,erase and write the flash.
After flashing u-boot image to this flash the board has not Up. please provide me inputs to solve this issues.

Quoted 8 lines

(Note: we are not faced any issues while booting from 32MB board has completly up)

I want to know reason why board has not up with 256MB flash.

manukumar
signal-networks.

Best regards,
Marek Vasut

#24 lore raw

[U-Boot] bootm command in U-boot

In reply to Manukumar

Dear all
I have a query on bootm command.
In the link provided below:
http://www.linuxquestions.org/questions/linux-kernel-70/how-kernel-figure-out-ddr-ram-size-when-bootargss-mem-not-specified-948165/

They have given:
bootm command will modify the dts/dtb file's memory section, and pass the memory size into Kernel by dts/dtb file.

please provide me information how dose bootm command is related to dts file.and how to overcome this issue.

manukumar
signal-networks

#25 lore raw

[U-Boot] bootm command in U-boot

Dear Manukumar,

[excessive Cc: list truncated]

Quoted 3 lines · In message <1348656159.2591.4.camel@Manukumar> you wrote:

bootm command will modify the dts/dtb file's memory section, and pass the memory size into Kernel by dts/dtb file.

It does this, and more things, depending on architecture and board. for example, it will most likely also insert the MAC address(es) into the device tree.

Quoted 2 lines

please provide me information how dose bootm command is related to dts file.and how to overcome this issue.

I don't see why you would want to "overcome" this. This is an important and extremely useful capability of U-Boot.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Steal five dollars and you were a petty  thief.  Steal  thousands  of
dollars and you are either a government or a hero.
                                   - Terry Pratchett, _Going_Postal_
#26 lore raw

[U-Boot] Booting through nand flash with other address

In reply to Manukumar

Dear all,

In u-boot(u-boot-2010.12)
1) The TEXT_BASE address is 11001000.
2) Nand Flash Erasing at Address 0x00000000
3) Nand Flash Writing u-boot-nand.bin at address 0x00000000
4) When Power is switched On the booting happens.

till this there is no issue, now i want to change the booting address to different location(ex:0x02000000) do i want to change the TEXT_BASE address accordingly to boot it from 0x02000000.
like below,

1) The TEXT_BASE address is 0x02000000.
2) Nand Flash Erasing at Address 0x02000000
3) Nand Flash writing u-boot-nand.bin at address 0x02000000 .

if i do as above i cant boot from nand there is no boot log messages.

Please suggest me on How can i do to boot from different location

Manukumar
Signal-networks

#27 lore raw

[U-Boot] Booting through nand flash with other address

Quoted 3 lines · Manukumar

Dear all,

In u-boot(u-boot-2010.12)

That's almost two years old. Please upgrade.

Quoted 1 line

1) The TEXT_BASE address is 11001000.

Judging from this you seem to be using either P1010RDB or P1023RDS (or maybe some out-of-tree board?). Always let us know what board you're talking about.

Quoted 6 lines

2) Nand Flash Erasing at Address 0x00000000
3) Nand Flash Writing u-boot-nand.bin at address 0x00000000
4) When Power is switched On the booting happens.

till this there is no issue, now i want to change the booting address to different location(ex:0x02000000)

Because you don't have as much RAM on this board, or some other reason?

Quoted 7 lines

do i want to change the TEXT_BASE address accordingly to boot it from 0x02000000.
like below,

1) The TEXT_BASE address is 0x02000000.
2) Nand Flash Erasing at Address 0x02000000
3) Nand Flash writing u-boot-nand.bin at address 0x02000000 .

Did you update other relevant variables such as CONFIG_SYS_NAND_U_BOOT_DST and CONFIG_SYS_NAND_U_BOOT_START?

Plus you really should leave that 0x1000 offset in there. On mpc85xx NAND boot, TEXT_BASE is 4K after the start of the image, since the boot page comes first.

-Scott

#28 lore raw

[U-Boot] Booting through nand flash with other address

Dear all,

Yes i am using P1020RDb board.
Actually i have to make 2 boot(u-boot) B1 and B2
B1 is stored 0x0000_0000,B2 is stored in 0x010_0000 of nand flash.

when 1 power cycle is given
Board gets booted from 0x0000_0000

my requirement is to boot B2 from 0x010_0000
how can i do that?

Regards
Manukumar

Quoted 38 lines · Scott Wood
Quoted 3 lines · Manukumar

Dear all,

In u-boot(u-boot-2010.12)

That's almost two years old. Please upgrade.

Quoted 1 line

1) The TEXT_BASE address is 11001000.

Judging from this you seem to be using either P1010RDB or P1023RDS (or maybe some out-of-tree board?). Always let us know what board you're talking about.

Quoted 6 lines

2) Nand Flash Erasing at Address 0x00000000
3) Nand Flash Writing u-boot-nand.bin at address 0x00000000
4) When Power is switched On the booting happens.

till this there is no issue, now i want to change the booting address to different location(ex:0x02000000)

Because you don't have as much RAM on this board, or some other reason?

Quoted 7 lines

do i want to change the TEXT_BASE address accordingly to boot it from 0x02000000.
like below,

1) The TEXT_BASE address is 0x02000000.
2) Nand Flash Erasing at Address 0x02000000
3) Nand Flash writing u-boot-nand.bin at address 0x02000000 .

Did you update other relevant variables such as CONFIG_SYS_NAND_U_BOOT_DST and CONFIG_SYS_NAND_U_BOOT_START?

Plus you really should leave that 0x1000 offset in there. On mpc85xx NAND boot, TEXT_BASE is 4K after the start of the image, since the boot page comes first.

-Scott

#29 lore raw

[U-Boot] Booting through nand flash with other address

Quoted 3 lines · Manukumar

Dear all,

Yes i am using P1020RDb board.

Note that there are (at least) two variants of this board, one using P1_P2_RDB and the other p1_p2_rdb_pc.

Quoted 8 lines

Actually i have to make 2 boot(u-boot) B1 and B2
B1 is stored 0x0000_0000,B2 is stored in 0x010_0000 of nand flash.

when 1 power cycle is given
Board gets booted from 0x0000_0000

my requirement is to boot B2 from 0x010_0000 how can i do that?

You can't. That's not what TEXT_BASE means. The hardware is only capable of booting from the beginning of NAND flash.

At best you could have one SPL at the beginning of NAND flash that chooses which main U-Boot to load, but that is something you'd have to implement yourself.

-Scott

#22 lore raw

[U-Boot] USB detection

In reply to Manukumar

Dear All

While board bring up in custom board
iam getting below mentioned error

I2C:   ready
DRAM:  DDR: failed to read SPD from address

I googled it but i am un able to rectify it..
Please resole ASAP
manukumar

#23 lore raw

[U-Boot] USB detection

Truncated CCs

Hi,

Quoted 7 lines · Manukumar

Dear All

While board bring up in custom board
iam getting below mentioned error

I2C:   ready
DRAM:  DDR: failed to read SPD from address

It seems you are using a DIMM for your memory (as opposed to directly soldered on the board).

Simply put, DDR DIMMs have a small EEPROM which contains data about the device. You access the SPD EEPROM via an I2C address. If the DIMM detection code talks to this address and does not detect correct data, then you have the problem you are encountering.

Since you are using a custom board, you should read your specs or ask your HW people about the correct SPD address.

Quoted 5 lines

I googled it but i am un able to rectify it..
Please resole ASAP
manukumar

All the best,
RgC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121025/843eb01c/attachment.pgp>

#36 lore raw

[U-Boot] Quer on JTAG.

In reply to Scott Wood

Hello,
I am new to JTAG related concepts and I need to know from the basics. So please provide me related document or link to study on that.

Manukumar
Signal-Networks

#37 lore raw

[U-Boot] Quer on JTAG.

Dear Manukumar,

Quoted 3 lines · In message <1353643735.2597.0.camel@Manukumar> you wrote:

I am new to JTAG related concepts and I need to know from the basics. So please provide me related document or link to study on that.

Please see http://bit.ly/TSzjGG

Note: there is no need to Cc: a ton of people who are all subscribed anyway.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You get a wonderful view from the point of no return.
                                    - Terry Pratchett, _Making_Money_
#30 lore raw

[U-Boot] access u-boot environment variables from kernel space

In reply to Scott Wood

Dear All,

How to access u-boot environment variables from kernel space or user space in P1012 processor.

The variables required to be accessed from uboot environment section are:

eth1addr
serverip

Note: Kernel version = 2.6.35

Regards
Manukumar

#31 lore raw

[U-Boot] access u-boot environment variables from kernel space

Quoted 9 lines · Manukumar

Dear All,

How to access u-boot environment variables from kernel space or user space in P1012 processor.

The variables required to be accessed from uboot environment section are:

eth1addr

You can get the MAC address from related registers of your Ethernet controller, provided they where set by u-boot. This is way the network driver goes.

Yegor

#32 lore raw

[U-Boot] access u-boot environment variables from kernel space

Quoted 7 lines · Yegor Yefremov
Quoted 5 lines · Manukumar

Dear All,

How to access u-boot environment variables from kernel space or user space in P1012 processor.

Quoted 8 lines
Quoted 4 lines

The variables required to be accessed from uboot environment section are:

eth1addr

You can get the MAC address from related registers of your Ethernet controller, provided they where set by u-boot. This is way the network driver goes.

No, you get that from the device tree. You cannot rely on U-Boot to have initialized the network hardware, or on the network hardware to not have been reset since then.

-Scott

#33 lore raw

[U-Boot] access u-boot environment variables from kernel space

Quoted 6 lines · Yegor Yefremov
Quoted 4 lines · Manukumar

Dear All,

How to access u-boot environment variables from kernel space or user space in P1012 processor.

Have you looked at fw_printenv? I get output like this from it:

root:~> fw_printenv

bootargs=root=/dev/mtdblock0 rw console=ttyBF0,115200

bootcmd=run flashboot

bootdelay=2

Email me direct if you want my notes on setting it up.

Steve

Signature · 8 lines
Steve Strobel
Link Communications, Inc.
1035 Cerise Rd
Billings, MT 59101-7378
(406) 245-5002 ext 102
(406) 245-4889 (fax)
WWW: http://www.link-comm.com
MailTo:steve.strobel at link-comm.com
#34 lore raw

[U-Boot] access u-boot environment variables from kernel space

In reply to Scott Wood

Dear All,

I have to implement the jtag and execute XSVF file through diagnostic command from u-boot.
the layout of our board as below:
__________

|_Processor| -> FPGA -> CPLD----
    ^ 			       |
    |__________________________| 

I can able to get Device ID of both FPGA and CPLD but iam not able to execute XSVF file.
when i debuged the code i found that it is expecting data from TDO line. but this is not happening.

My question is:
when i can able to get device id why can i execute the XSVF file

NOTE:
The state is moving As below

xsvfDoXREPEAT
xsvfDoXENDXR
xsvfDoXENDXR
xsvfDoXSTATE
xsvfDoXSTATE
xsvfDoXRUNTEST
xsvfDoXSIR
xsvfDoXSDRSIZE
xsvfDoXSDRSIZE
xsvfDoXTDOMASK
xsvfDoXSDRTDO

TAP State = DRUPDATE
TAP State = RUNTEST/IDLE
TDO Expected = 0xf4004093
TDO Captured =
TDO Mask = 0x0fffffff
xsvfDoXSDRTDO iErrorCode
ERROR: TDO mismatch
ERROR at or near XSVF command #10.See line #10 in the XSVF ASCII file. Upgarde the Image and RESTART !!!

Regards
Manukumar

#35 lore raw

[U-Boot] access u-boot environment variables from kernel space

Dear Manukumar,

Quoted 4 lines · In message <1359096605.2559.15.camel@Manukumar> you wrote:

I have to implement the jtag and execute XSVF file through diagnostic command from u-boot.
the layout of our board as below:

What exactly has this to do with above thread and with the "access u-boot environment variables from kernel space" subject?

And why exactly did you put all these people on Cc: ???

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The White Rabbit put on his spectacles. "Where shall I begin,  please
your Majesty ?" he asked.
"Begin at the beginning,", the King said, very gravely,  "and  go  on
till you come to the end: then stop."                -- Lewis Carroll