Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    The Burning Question: How can ADI Solutions Ensure Rechargeable Device Batteries are Genuine?

    On the global stage, products and equipment using rechargeable batteries continue to proliferate exponentially, expecting to reach a staggering $170B market...

    Places

    • ADI Academy
    • ADI Webinars
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    • Maximize Your Power Regulator: Key Considerations for Thermal Performance
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ294 about a digital phase splitter design

      1. Quote of the month: "I've learned that people will forget what you said, people will forget what you did, but people will never forget how you made...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: Let's Take a Field-Bus Trip Your field-bus engines...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program
    • Analog Dialogue Quiz

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Ethernet-APL’s Impact on Functional, Intrinsic, and Cyber Safety

    Power limitations have always plagued process sensors, whether because of intrinsic safety requirements (safety achieved through power limitation) or because...

     

    Balancing Enhanced Radar Resolution with FPGA-Based Pulse Compression

    Radar and sonar systems must balance range resolution with the energy required for reliable detection. Pulse compression resolves this by sending a long...

    Latest Blogs

    • ​​ISO 26262 Essentials: Ensuring Confidence in Your Software Tools ​
    • Step-by-Step: Implementing a Complete DSP Chain for Signal Analysis
    • Galvanic Isolation in SMPS: Ensuring Safety and Protection: Part 1 of 4
    • Mature, Not Old! The Longevity of 4 – 20 mA
    • Turning up the Noise: .NOISE Simulations in LTspice: Part 1 of 3
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
Linux Distribution for Blackfin
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Linux Distribution for Blackfin
  • Processors and DSP
  • Software and Development Tools
  • Linux Distribution for Blackfin
  • Cancel
Linux Distribution for Blackfin
Documents [#6262] Default SPI flash device NO. is wrong in u-boot trunk for bf518-ezbrd
  • Forums
  • Docs/FAQs
  • Members
  • Tags
  • Cancel
  • +Documents
  • +2013R1 Linux release for Blackfin: FAQ
  • +2013R1: FAQ
  • +AD5700: FAQ
  • +ADI test script: FAQ
  • +bf537 SPI Bus: FAQ
  • +BF609: FAQ
  • +BF70x processor: FAQ
  • +bfin-elf-libstdc++-4.3: FAQ
  • +bfin-elf: FAQ
  • +bfin-uclinux-libstdc++-4.3: FAQ
  • +Blackfin Linux Projects: FAQ
  • +Blackinfin Linux: FAQ
  • +build toolchain: FAQ
  • +CPLB fault or SIGABRT: FAQ
  • +DAS U-BOOT FOR BLACKFIN: FAQ
  • +Default ADI release: FAQ
  • +Flash the uImage into Flash: FAQ
  • +gas test: FAQ
  • +gcc-4.3 ICEs: FAQ
  • +gcc.c-torture/execute/memset-2.c: FAQ
  • +gcc.dg/trampoline-1.c test: FAQ
  • +gcc/g++ test: FAQ
  • +gcc/g++ testcase: FAQ
  • +GDB commands: FAQ
  • +gdb.base/sigall.exp: FAQ
  • +gdb.cp/userdef.exp: FAQ
  • +gdb.gdbtk/c_variable.exp: FAQ
  • +GDB: FAQ
  • +gdb: symbol: FAQ
  • +gdbproxy: FAQ
  • +GNU TOOLCHAIN: FAQ
  • +How to load Linux: FAQ
  • +ldr-utils: FAQ
  • +libstdc++-4.3 21_strings/basic_string/capacity/char/18654.cc test: FAQ
  • +LOOP: FAQ
  • +mcpu: FAQ
  • -Parent Document for U-Boot Bug Archive: FAQ
    • [#5797] usb fails to work in latest u-boot 2009.11
    • [#6262] Default SPI flash device NO. is wrong in u-boot trunk for bf518-ezbrd
    • [#6285] MMC/SD can't work on bf537-stamp when either icache or dcache is off
    • [#6286] characters is not shown correctly in u-boot jtag console test
    • [#6302] reduse U-boot time
    • [#6303] reduse U-boot time
    • [#6804] 561 u-boot fails to run save after update now
    • [#6693] u-boot tools build fail
    • [#6809] build uboot tools fails when running toolchain buildscript now
    • [#7733] fatls show two lines of the same file
  • +Parent Document for U-Boot Bug Forum Archive: FAQ
  • +Parent for all content moved from GNU Archive: FAQ
  • +prepare_target_solibs: FAQ
  • +SDP-B: FAQ
  • +signal 11: FAQ
  • +sim binutils: FAQ
  • +SPI eeprom: FAQ
  • +svn head u-boot build: FAQ
  • +test libmudflap: FAQ
  • +toolchain-regtest -r: FAQ
  • +toolchain-regtest: FAQ
  • +trunk head gdbproxy: FAQ
  • +trunk toolchain: FAQ
  • +u-boot with UART: FAQ
  • +u-boot: FAQ
  • +uClinux kernel: FAQ
  • +uClinux: FAQ
  • +Upgrade from 3801 to 3852: FAQ
  • +VDSP: FAQ

[#6262] Default SPI flash device NO. is wrong in u-boot trunk for bf518-ezbrd

[#6262] Default SPI flash device NO. is wrong in u-boot trunk for bf518-ezbrd

Submitted By: Vivi Li

Open Date

2010-09-19 01:54:48     Close Date

2010-09-28 00:11:58

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

BF518

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: Default SPI flash device NO. is wrong in u-boot trunk for bf518-ezbrd

Details:

Default SPI flash device number is wrong in u-boot trunk for bf518-ezbrd.

--

U-Boot 2010.06-svn2399 (ADI-2010R1-pre) (Sep 18 2010 - 13:22:30)

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

SF: Detected M25P16 with page size 256, total 2 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> printenv update

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(loadaddr) 0 $(filesize)

bfin> sf probe 1

SF: Unsupported manufacturer FF

Failed to initialize SPI flash at 0:1

bfin>

bfin> sf probe 2

SF: Detected M25P16 with page size 256, total 2 MiB

2048 KiB M25P16 at 0:2 is now current device

bfin>

--

Follow-ups

--- Mike Frysinger                                           2010-09-19 14:13:26

are you sure you arent using the old env ?  seems to work fine for me, and your

own output shows that SSEL2 is being use for the environment device (they're

based on the same define).

arch/blackfin/include/asm/config.h:# define CONFIG_ENV_SPI_CS

BFIN_BOOT_SPI_SSEL

arch/blackfin/include/asm/config-pre.h:    defined(__ADSPBF51x__)

arch/blackfin/include/asm/config-pre.h:# define BFIN_BOOT_SPI_SSEL 2

$ make bf518f-ezbrd -s -j4

Configuring for bf518f-ezbrd board...

$ strings u-boot | grep update=

update=tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

$  bfin-elf-run --env operating --model bf518 ./u-boot

...

bfin> print update

update=tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

--- Vivi Li                                                  2010-09-25 04:50:46

BF533-STAMP has the same problem with BF518F-EZBRD.

Bellow are the steps that I update spi u-boot in bf533-stamp. I didn't save the

old environment after finishing update, but it remains "sf probe 1"

after reboot into new u-boot.

--

U-Boot 2010.06-svn2403 (ADI-2010R1-pre) (Sep 25 2010 - 16:31:39)

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3) (spi flash boot)

Board: ADI BF533 Stamp board

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz

RAM:   128 MiB

Flash: 4 MiB

SF: Detected M25P64 with page size 256, total 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin> set ipaddr 10.100.4.50

bfin> set serverip 10.100.4.174

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...Writing to SPI flash...done

bfin> tftp 0x1000000 u-boot.bin

SMC91111: MAC 00:e0:22:fe:06:1d

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.bin'.

Load address: 0x1000000

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

done

Bytes transferred = 161160 (27588 hex)

bfin> go 0x1000000

## Starting application at 0x01000000 ...

U-Boot 2010.06-svn2403 (ADI-2010R1-pre) (Sep 25 2010 - 16:31:39)

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3) (spi flash boot)

Board: ADI BF533 Stamp board

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz

RAM:   128 MiB

Flash: 4 MiB

SF: Detected M25P64 with page size 256, total 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin> printenv update

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

bfin> set update 'tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0

0x40000;sf write $(loadaddr) 0 $(filesize)'

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...Writing to SPI flash...done

bfin> printenv update

update=tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

bfin> run update

SMC91111: MAC 00:e0:22:fe:06:1d

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.ldr'.

Load address: 0x1000000

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

done

Bytes transferred = 169940 (297d4 hex)

SF: Detected M25P64 with page size 256, total 8 MiB

8192 KiB M25P64 at 0:2 is now current device

bfin> reset

U-Boot 2010.06-svn2403 (ADI-2010R1-pre) (Sep 25 2010 - 16:31:39)

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3) (spi flash boot)

Board: ADI BF533 Stamp board

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

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 82.944 MHz

RAM:   128 MiB

Flash: 4 MiB

SF: Detected M25P64 with page size 256, total 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin> printenv update

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

bfin>

--

--- Mike Frysinger                                           2010-09-26 03:00:49

seems the env built into u-boot is fine.  it's the external one built up with

the host compiler and included with the ldr that is messed up.

ive committed a change that should fix this.

--- Vivi Li                                                  2010-09-28 00:11:58

OK now. Close it.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2025 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2025 Analog Devices, Inc. All Rights Reserved