2010-03-05 00:27:05     IDE reboot question

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

2010-03-05 00:27:05     IDE reboot question

Wei Jiang (CHINA)

Message: 86820   

 

Dear all,

 

     My software is 08r1.5, hardware is BF561.

 

    IDE can always work after power on first time. But when I "reboot" my system, the "Reset#" of IDE interface not happened, the I can't find harddisk somtimes.

 

    The kernel shows "bad status from device (possible for ATAPI drives)", kernel source code here:

 

        msleep(50);

        SELECT_DRIVE(drive);

        msleep(50);

        if (hwif->INB(IDE_SELECT_REG) != drive->select.all && !drive->present) {

                if (drive->select.b.unit != 0) {

                        /* exit with drive0 selected */

                        SELECT_DRIVE(&hwif->drives[0]);

                        /* allow BUSY_STAT to assert & clear */

                        msleep(50);

                }

                /* no i/f present: mmm.. this should be a 4 -ml */

                return 3;

        }

 

     in "do_probe"  function, the value read out from IDE_SELECT_REG is not equal to the value write in, and the value of IDE_STATUS_REG is "0x58".

 

     My question is:

 

    Is the "Reset#" must be generated after system reboot? If not, how can I fix my problem?

 

   Thanks a lot!

 

    Wei Jiang

 

         

QuoteReplyEditDelete

 

 

2010-03-05 04:30:58     Re: IDE reboot question

Wei Jiang (CHINA)

Message: 86853   

 

Hi all,

 

  "Reset#" means "the hardware reset pin of IDE interface".

 

  look forward to your reply.

 

Wei Jiang

QuoteReplyEditDelete

 

 

2010-03-05 04:35:35     Re: IDE reboot question

Yi Li (CHINA)

Message: 86854   

 

Wei Jiang,

 

Which driver are you using? 2008R1.5 is old, can you try 2009R1.1?

 

-Yi

QuoteReplyEditDelete

 

 

2010-03-05 07:08:37     Re: IDE reboot question

Mike Frysinger (UNITED STATES)

Message: 86858   

 

there is no reset-out signal from the processor.  you will have to emulate it yourself with a GPIO during the reboot if you want to also reset the IDE interface.

QuoteReplyEditDelete

 

 

2010-03-06 02:50:42     Re: IDE reboot question

Wei Jiang (CHINA)

Message: 86884   

 

Hi Mike,

 

     Thanks for your reply.

 

      I want to know whether the IDE harddisk can work after system reboot but without a reset of IDE interface. In my case, sometimes I can't find the IDE devices after reboot.

QuoteReplyEditDelete

 

 

2010-03-10 01:16:08     Re: IDE reboot question

Mingquan Pan (CHINA)

Message: 87013   

 

Hi,

 

  As in our regression test for ide harddisk, t he trunk head kernel doesn't see this problem with reboot.

 

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

   Image Name:   bf537-2.6.32.9-ADI-2010R1-pre-sv

   Created:      2010-03-04  17:46:24 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4814948 Bytes =  4.6 MB

   Load Address: 00001000

   Entry Point:  001df7a4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001df7a4

Linux version 2.6.32.9-ADI-2010R1-pre-svn8377 (test@uclinux55-bf537-cf) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #160 Fri Mar 5 01:45:58 CST 2010

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-0x0013f2e0

  rodata    = 0x0013f2e0-0x001aeb6c

  bss       = 0x001af000-0x001c0ecc

  data      = 0x001c0ecc-0x001d4000

    stack   = 0x001d2000-0x001d4000

  init      = 0x001d4000-0x008d3000

  available = 0x008d3000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   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/mtdblock0 rw ip=10.100.4.50 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: 47740k/65536k RAM, (7164k init code, 1272k kernel code, 596k data, 1024k dma, 7740k reserved)

Hierarchical RCU implementation.

NR_IRQS:138

Configuring Blackfin Priority Driven Interrupts

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 696.32 BogoMIPS (lpj=1392640)

Security Framework initialized

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 (36 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

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

NET: Registered protocol family 1

msgmni has been set to 93

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

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: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 11:02:38 UTC (39758)

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

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

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

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

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

IP-Config: Guessing netmask 255.0.0.0

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.0.0.0, gw=255.255.255.255,

     host=10.100.4.50, domain=, nis-domain=(none),

     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=

Freeing unused kernel memory: 7164k freed

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

                           _____________________________________

        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|            -   blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.15.3 (2010-03-04 12:02:54 CST) hush - the humble shell

 

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/>

root:/>

root:/> ls /dev/sda

/dev/sda   /dev/sda1

root:/> ls /dev/sda*

/dev/sda   /dev/sda1

root:/> mount /dev/sda1 /mnt

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

root:/> ls /mnt/

Bonnie.258  lost+found

root:/> cp /bin/version /mnt/

root:/> ls /mnt/

Bonnie.258  lost+found  version

root:/> reboot

sd 0:0:0:0: [sda] Synchronizing SCSI cache

Restarting system.�

 

U-Boot 2009.11.1-svn2233 (ADI-2010R1-pre) (Feb 08 2010 - 18:06:24)

 

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

Board: ADI BF537 stamp board

       Support:   blackfin.uclinux.org/

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

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   Blackfin EMAC

Hit any key to stop autoboot:  0

bfin> tftp 0x2000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x2000000

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

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

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

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

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

         ###

done

Bytes transferred = 4815012 (4978a4 hex)

bfin> bootm

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

   Image Name:   bf537-2.6.32.9-ADI-2010R1-pre-sv

   Created:      2010-03-04  17:46:24 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4814948 Bytes =  4.6 MB

   Load Address: 00001000

   Entry Point:  001df7a4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001df7a4

Linux version 2.6.32.9-ADI-2010R1-pre-svn8377 (test@uclinux55-bf537-cf) (gcc version 4.3.4 (ADI-trunk/svn-3815) ) #160 Fri Mar 5 01:45:58 CST 2010

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-0x0013f2e0

  rodata    = 0x0013f2e0-0x001aeb6c

  bss       = 0x001af000-0x001c0ecc

  data      = 0x001c0ecc-0x001d4000

    stack   = 0x001d2000-0x001d4000

  init      = 0x001d4000-0x008d3000

  available = 0x008d3000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   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/mtdblock0 rw ip=10.100.4.50 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: 47740k/65536k RAM, (7164k init code, 1272k kernel code, 596k data, 1024k dma, 7740k reserved)

Hierarchical RCU implementation.

NR_IRQS:138

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 696.32 BogoMIPS (lpj=1392640)

Security Framework initialized

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 (36 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

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

NET: Registered protocol family 1

msgmni has been set to 93

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

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: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 11:05:38 UTC (39938)

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

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

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

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

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

IP-Config: Guessing netmask 255.0.0.0

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.0.0.0, gw=255.255.255.255,

     host=10.100.4.50, domain=, nis-domain=(none),

     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=

Freeing unused kernel memory: 7164k freed

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

                           _____________________________________

        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|            -   blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.15.3 (2010-03-04 12:02:54 CST) hush - the humble shell

 

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/>

root:/> mount /dev/sda1 /mnt

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

root:/> ls /mnt/

Bonnie.258  lost+found  version

root:/> umount /mnt/

root:/> ls /mnt/

root:/> mount /dev/sda1 /mnt

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

root:/> ls /mnt/

Bonnie.258  lost+found  version

root:/> umount /mnt/

Attachments

    Outcomes