Unable to boot from NAND

Hi,

I have a custome board with nand,sdram,spi,bf532,etc.

Steps:

Transfer the uclinux image via serial

bfin> loady

## Ready for binary (ymodem) download to 0x01000000 at 115200 bps...

Cm - CRC mode, 35312(SOH)/0(STX)/0(CAN) packets, 3 retries

## Total Size = 0x0044f68d = 4519565 Bytes

Erase and write the nand flash

bfin> nand erase clean

NAND erase: device 0 whole chip

Skipping bad block at 0x0b580000

Erasing at 0xffe0000 -- 100% complete. Cleanmarker written at 0xffe0000.

OK

bfin> nand write.jffs2 0x01000000 0x0 0x00450000

NAND write: device 0 offset 0x0, size 0x450000

4521984 bytes written: OK

Boot kernel image from nand

bfin> nboot 0x2000000 0x0

Loading from NAND 256MiB 3,3V 8-bit, offset 0x0

Image Name: Linux Kernel and ext2

Image Type: Blackfin Linux Kernel Image (gzip compressed)

Data Size: 4519501 Bytes = 4.3 MiB

Load Address: 00001000

Entry Point:002fcc3c

bfin>

Why booting is not done after Entry Point:00fcc3c ? Please guide.

  • Submitted By: Mike Frysinger (vapier)

    automatic booting is only done if you set "autostart=yes" in your env. if you dont have that, then nboot is acting as designed.

  • I have the same problem. I'm using the bf548 EZ-KIT Lite

    I've even set autoboot to yes, but it doesn't work. See below.

    bfin> tftp uImage

    smc911x: detected LAN9218 controller

    smc911x: phy initialized

    smc911x: MAC 00:e0:22:fe:c2:8b

    Using smc911x-0 device

    TFTP from server 192.168.0.2; our IP address is 192.168.0.15

    Filename 'uImage'.

    Load address: 0x1000000

    Loading: #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #################################################################

               #############################

    done

    Bytes transferred = 12830251 (c3c62b hex)

    bfin> nand erase.chip clean

    NAND erase.chip: device 0 whole chip

    Skipping bad block at  0x0b080000                                         

    Erasing at 0xffe0000 -- 100% complete. Cleanmarker written at 0xffe0000.

    OK

    bfin> nand write.jffs2 0x1000000 0x0 0xC40000

    NAND write: device 0 offset 0x0, size 0xc40000

    12845056 bytes written: OK

    bfin> setenv autoload yes

    bfin> printenv

    addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

    autoload=yes

    ...................

    bfin> nboot 0x2000000 0x0

    Loading from NAND 256MiB 3,3V 8-bit, offset 0x0

       Image Name:   bf548-2.6.34.7-ADI-2010R1

       Created:      2012-08-31   4:56:10 UTC

       Image Type:   Blackfin Linux Kernel Image (gzip compressed)

       Data Size:    12830187 Bytes = 12.2 MiB

       Load Address: 00001000

       Entry Point:  002a28b4

    bfin>

    So why doesn't it boot automatically? If it can't start automatically, how do you boot it manually?

  • Could you start new thread instead of the replying on the ancient  ones? and if the discussion of this ancient answered issue will help you?

  • 0
    •  Analog Employees 
    on Apr 29, 2019 10:34 AM
    This question has been closed by the EZ team and is assumed answered.