element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development recompile linux kernel
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 49 replies
  • Subscribers 346 subscribers
  • Views 2862 views
  • Users 0 members are here
Related

recompile linux kernel

Former Member
Former Member over 13 years ago

Hi,
  where is possible to find the uboot and linux kernel source code for your device? I can refer me to the xilinx git repos? In case yes do I need any additional patch for zedboard? Where I can find the right defconfigs?

Thanks in advance!

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

    I have recompiled linux using Xilinx source code.  To successfully boot into the compiled kernel, FSBL must be recompiled with ZedBoard settings.  DeviceTree is also changed: remove the i2c node and ethernet phy must be modified.  Memory size should be set to 512MB. 

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

    I have recompiled linux using Xilinx source code.  To successfully boot into the compiled kernel, FSBL must be recompiled with ZedBoard settings.  DeviceTree is also changed: remove the i2c node and ethernet phy must be modified.  Memory size should be set to 512MB. 

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

    How to modify the deconfig for ZED? some details?

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

    I used the same kernel configuration file for ZC702 board which can be found in Xilinx kernel source.  Most PS devices are functioning properly. 

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

    Hi, could you share the modifications for the zedboard define as a patch?

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

    I also recompiled uboot source and the linux kernel source from xilinx.
    For uBoot : make zynq_zed_config
    For Kernel: make xilinx_zynq_defconfig

    It won't boot because wrong machine/arch id at boot in r1 (0x1f...... and should be 0x00000d32 for xilinx ep107).
    Is the machine id defined in the compatible node in the devicetree or a uboot env variable?
    As I read uboot should change r1 to correct value before giving control to kernel at PC 0x8000.

    Or does anybody use the new kernel from xilinx succesfully with zedboard?
    Thanks

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

    Solved my problem.
    Successfully booted into newest uBoot and Linux Kernel from Xilinx repository on the Zedboard.

    For uBoot I used the zynq_zc702_config ( You only have to edit the RAM size to #define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024) ).
    After that compiled the Kernel with standard xilinx_zynq_defconfig. Then you have to do make like normal but with uImage (make uImage).
    To perform this successfully you need uboot-tools installed on your linux machine. This package contains mkimage binary which will be used.
    I used a devicetree from my own project, can be compared with standard Zedboard but without OLED,HDMI and this stuff.
    And for the Ramdisk I uncompressed the Xilinx 14.2 Release Ramdisk and turned it with 'mkimage'.
    ( Done with following command if you have uboot-tools package installed mkimage -A arm -O linux -T ramdisk -a 0x2000000 -n "Zedboard ramdisk" -d <orig_input>/ramdisk8M.image <output>/uramdisk.image.gz ).

    Hope this can be a guide for others who also facing this problem ;-)

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

    Hi, you mentioned changing the ethernet phy settings for the zedboard.  Can you please describe the changes?

    • 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 © 2025 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