[#6866] uboot fails to boot from rootfs in ide

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

[#6866] uboot fails to boot from rootfs in ide

Submitted By: Mingquan Pan

Open Date

2011-11-04 00:17:32     Close Date

2011-11-04 05:18:08

Priority:

Medium     Assignee:

Sonic Zhang

Category:

N/A     Fixed In Release:

2011R1

Found In Release:

2011R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Assigned (Not Start)

Is the bug repeatable?:

N/A     

Summary: uboot fails to boot from rootfs in ide

Details:

 

uboot fails to boot from rootfs in ide.

 

 

U-Boot 2011.09-svn2735 (ADI-2011R1) (Nov 02 2011 - 16:06:23)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 62.500 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Using HDD IDE Mode

Bus 0: OK

  Device 0: Model: WDC WD800BB-00JHC0 Firm: 05.01C05 Ser#:  WD-WCAM9E449706

            Type: Hard Disk

            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> setenv bootargs root=/dev/hda2 rw

bfin>  tftp 0x1000000 vmImage

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'vmImage'.

Load address: 0x1000000

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

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

done

Bytes transferred = 1119283 (111433 hex)

bfin>  ide write 0x1000000 0xf32be 0x2800

 

IDE write: device 0 block # 996030, count 10240 ... 10240 blocks written: OK

bfin>  tftpboot 0x1000000 rootfs.ext2

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'rootfs.ext2'.

Load address: 0x1000000

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

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

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

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

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

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

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

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

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

done

Bytes transferred = 8388608 (800000 hex)

bfin>  ide write 0x1000000 0x160fda 0x8000

 

IDE write: device 0 block # 1445850, count 32768 ... 32768 blocks written: OK

bfin> setenv bootargs root=/dev/hda2 rw

bfin> diskboot 0x1000000 0:1

 

Loading from IDE device 0, partition 1: Name: hda1  Type: U-Boot

   Image Name:   bf537-0.2-3.0.8-ADI-2011R1-svn10

   Created:      2011-11-04   2:02:47 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1119219 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001dfc30

bfin> bootm 0x1000000

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-0.2-3.0.8-ADI-2011R1-svn10

   Created:      2011-11-04   2:02:47 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1119219 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001dfc30

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001dfc30

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 697.34 BogoMIPS (lpj=1394688)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 106

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

scsi0 : pata_platform

ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55

 

It stucks here and not goes further.

 

If flash uImage into harddisk 1 partition, then it can boot automatically with ramfs as rootfs no matter what bootargs is set.

 

Follow-ups

 

--- Mingquan Pan                                             2011-11-04 05:27:39

It turns out that bootargs is set wrong.

After giving the right value, it can boot ok now.

 

U-Boot 2011.09-svn2735 (ADI-2011R1) (Nov 02 2011 - 16:06:23)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 62.500 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Using HDD IDE Mode

Bus 0: OK

  Device 0: Model: WDC WD800BB-00JHC0 Firm: 05.01C05 Ser#:  WD-WCAM9E449706

            Type: Hard Disk

            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin>

bfin> setenv bootargs root=/dev/sda2 rw  earlyprintk=serial,uart0,57600

console=ttyBF0,57600

bfin> diskboot 0x1000000 0:1

 

Loading from IDE device 0, partition 1: Name: hda1  Type: U-Boot

   Image Name:   bf537-0.2-3.0.8-ADI-2011R1-svn10

   Created:      2011-11-04   2:02:47 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1119219 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001dfc30

bfin>  bootm 0x1000000

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-0.2-3.0.8-ADI-2011R1-svn10

   Created:      2011-11-04   2:02:47 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1119219 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001dfc30

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001dfc30

Linux version 3.0.8-ADI-2011R1-svn10135 (test@uclinux55-bf537-cf) (gcc version

4.3.5 (ADI-2011R1-RC2) ) #32 Fri Nov 4 10:02:41 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00149680

  rodata    = 0x00149680-0x001b5590

  bss       = 0x001b6000-0x001c6cd8

  data      = 0x001c6cd8-0x001d8000

    stack   = 0x001d6000-0x001d8000

  init      = 0x001d8000-0x001f7000

  available = 0x001f7000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 350 MHz core clock and 70 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14224

Kernel command line: root=/dev/sda2 rw earlyprintk=serial,uart0,57600

console=ttyBF0,57600

PID hash table entries: 256 (order: -2, 1024 bytes)

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

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

Memory available: 54724k/65536k RAM, (124k init code, 1313k kernel code, 571k

data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 697.34 BogoMIPS (lpj=1394688)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 106

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

scsi0 : pata_platform

ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=13)@sclk=70MHz)

bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-21 15:26:04 UTC (1783564)

dma_alloc_init: dma_page @ 0x0210b000 - 256 pages at 0x03f00000

ata1.00: ATA-6: WDC WD800BB-00JHC0, 05.01C05, max UDMA/100

ata1.00: 156301488 sectors, multi 0: LBA

ata1.01: ATAPI: TSSTcorpDVD-ROM TS-H352C, CH01, max UDMA/33

ata1.00: configured for PIO

ata1.01: configured for PIO

scsi 0:0:0:0: Direct-Access     ATA      WDC WD800BB-00JH 05.0 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)

scsi 0:0:1:0: CD-ROM            TSSTcorp DVD-ROM TS-H352C CH01 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support

DPO or FUA

sda: sda1 sda2

sd 0:0:0:0: [sda] Attached SCSI disk

EXT2-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem) on device 8:2.

Freeing unused kernel memory: 124k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.18.4 (2011-11-03 13:10:46 CST) hush - the humble shell

 

root:/>

root:/> cat /proc/cmdline

root=/dev/sda2 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes