element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Linux kernel does not boot  successfully when reset, only on board power cycle.
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 14 replies
  • Subscribers 175 subscribers
  • Views 384 views
  • Users 0 members are here
Related

Linux kernel does not boot  successfully when reset, only on board power cycle.

Former Member
Former Member over 11 years ago

Hello,

If the board is power cycled, it boots the kernel successfully.

If then the PS-RST button is hit, u-boot loads and starts kernel, but it does not boot successfully.

It seems that the CPU is not reset properly by reset, only by power cycle.

I tried to debug down this and it turns out that the boot stops in the xilinx_dma.c:xilinx_dma_reset(). If I comment out its body, the booting continues further, but it again stops in i2c-xiic.c:xiic_reinit(). Again if body commented out booting continues, but stop later. Here I stopped debugging.

Has anybody experienced such behavior pushing the reset button?

Are there any suggestions or explanations (kernel bug, chip bug, etc.)?

P.S. for the test I build and test the Digilent kernel source three.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 11 years ago

    t i t o,

    Can you pull down the zImage posted here:

    http://zedboard.org/node/241

    and see if you get the same issue?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi TimDuffy,

    Thank you for your answer, but the same behavior is observed using the original images. Boot's last print message when the PS-RST is pressed is:
    [    0.540000] xgpiops e000a000.gpio: gpio at 0xe000a000 mapped to 0xe080a000

    Actually the boot is stopped at xilinx_dma_reset() function.

    Can anybody try hitting the reset button and see if the board boots?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi,

    I can confirm this problem, it is the same for me. The boot stops at the same line after pushing the reset button. I just received my board, so the SD card contains the original kernel and boot loader.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Let me see if I can re-create this - I haven't seen this operation.  I'll post back as soon as I am in font of my board.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    i have the same problem... do you have a solution now?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    No, still waiting for support. It might be a chip bug or a linux bug, in both cases it is very hard to track down such problems. I use JTAG probe to debug the kernel, which is my main problem - the probe does reset the board once during connect to the CPU and so the kernel does not boot successfully.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    FWIW, I see the same issue, press PS_RST and boot "hangs after [ 0.540000] xgpiops ..." with original SD card image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi,LD12 on my board is not lighted after reboot.Do you see that?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Here is the official Digilent statement:
    Hi, Tito,

    The PS-RST button on ZedBoard not only resets the PS system,
    But clears the hardware design in PL system as well.
    Unfortunately the bit file won't get loaded automatically after the reset.

    As a result, the kernel hangs because it is supposed to access some peripheral implemented in PL.

    So, I regret to say that, at this moment, we can only reset the board with the board power switch.

    We will figure some way to walk around the issue in the future.
    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    The solution here would be to recompile the Kernel and then load in the bit file upon successful boot, and then insmod any drivers needed to communicate to the PL.

    The flow is going to be different for the pre-build linux binary take comes with the Zedboard.

    So to recap, if you final design you would:

    Boot vanilla kernel
    Load PL
    Load drivers into Kernel
    Execute custom code

    Hope that helps to explain things.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube