element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  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
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Digilent kernel in Xillinux
  • 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 16 replies
  • Subscribers 329 subscribers
  • Views 937 views
  • Users 0 members are here
Related

Digilent kernel in Xillinux

Former Member
Former Member over 12 years ago

I'm not sure if anybody else is having this problem, but I cannot get the full Digilent kernel to work for me with Xillinux.  Could anyone give an extremely dumbed-down step-by-step on how to do this?  I would appreciate it greatly.  Thanks.

  • Sign in to reply
  • Cancel
Parents
  • joswa
    0 joswa over 12 years ago

    Let me explain what I did step by step!

    1. I downloaded the file, "xillinux-1.0.img.gz", extracted it and burnt the rc-check.img to a SD card.
    2. It can boot up to xillinux-1.0 without problem.
    3. I then patched the file system with "xillinux-rich-patch.tar.gz" and copied the vmlinuz-3.3.0-xilinux-1.0-rich to the boot partition and renamed it to zImage.
    4. After that it can boot up and show that it is "3.3.0-xillinux-1.0-rich+" with "uname -a" command.
    5. It works perfectly on a VGA monitor and Ubuntu GUI is shown.

    Therefore the files/setting in SD card should be fine.

    Then I would like to try whether I can recompile the same kernel by the following steps,

    1. I downloaded the kernel, linux-digilent by "https://github.com/Digilent/linux-digilent"
    2. I then replaced the .config with the one you sent to me.
    3. Then run "make", it can rebuild the zImage successfully.
    4. I then replaced the original zImage in the SD card with this newly built zImage in (3).

    It can boot up but there are several differences,
    1. No messages are shown on the VGA monitor but just a flying "Xillybus" screen displayed. (So, I think the VGA interface is there.)
    2. No command prompt is shown on the VGA display. The flying "Xillybus" screen is shown without switching back to text mode.
    3. On the serial console, a login prompt is shown.

    FYI, when I try to check the version with "uname -a", it shows "3.3.0-digilent-12.07-zed-beta+".

    Now I want to ask,

    1. How to patch the kernel source such that it can the same as "3.3.0-xillinux-1.0-rich+"?
    2. How can I recompile the kernel source such that it is the same as "3.3.0-xillinux-1.0-rich+"?

    Thanks in advance!

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

    Let me explain what I did step by step!

    1. I downloaded the file, "xillinux-1.0.img.gz", extracted it and burnt the rc-check.img to a SD card.
    2. It can boot up to xillinux-1.0 without problem.
    3. I then patched the file system with "xillinux-rich-patch.tar.gz" and copied the vmlinuz-3.3.0-xilinux-1.0-rich to the boot partition and renamed it to zImage.
    4. After that it can boot up and show that it is "3.3.0-xillinux-1.0-rich+" with "uname -a" command.
    5. It works perfectly on a VGA monitor and Ubuntu GUI is shown.

    Therefore the files/setting in SD card should be fine.

    Then I would like to try whether I can recompile the same kernel by the following steps,

    1. I downloaded the kernel, linux-digilent by "https://github.com/Digilent/linux-digilent"
    2. I then replaced the .config with the one you sent to me.
    3. Then run "make", it can rebuild the zImage successfully.
    4. I then replaced the original zImage in the SD card with this newly built zImage in (3).

    It can boot up but there are several differences,
    1. No messages are shown on the VGA monitor but just a flying "Xillybus" screen displayed. (So, I think the VGA interface is there.)
    2. No command prompt is shown on the VGA display. The flying "Xillybus" screen is shown without switching back to text mode.
    3. On the serial console, a login prompt is shown.

    FYI, when I try to check the version with "uname -a", it shows "3.3.0-digilent-12.07-zed-beta+".

    Now I want to ask,

    1. How to patch the kernel source such that it can the same as "3.3.0-xillinux-1.0-rich+"?
    2. How can I recompile the kernel source such that it is the same as "3.3.0-xillinux-1.0-rich+"?

    Thanks in advance!

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

    Hello,

    The problem is obviously that you didn't apply the patches.

    First, copy the patches from /usr/src/xillinux/kernel-patches/ in Xillinux' file system to the computer you want to compile the kernel on. I'll assume that you copied the entire directory to a local directory /tmp/kernel-patches/.

    Then change directory to where you've cloned Digilent's kernel into. Delete the .config file you already have there (or move it somewhere else) and go

    $ git am /tmp/kernel-patches/00*

    This will update the git repository as the patches are applied. Several warnings are generated, but no errors should be tolerated.

    If you just want the patches applied (not updating the git repository)

    $ git apply /tmp/kernel-patches/00*

    Now overwrite the existing .config file with the one you want (probably the one I sent you).

    Then compile.

    Good luck,
       Eli

    • 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