Coder Social home page Coder Social logo

Comments (7)

jcowgill avatar jcowgill commented on August 30, 2024

Ignoring #22, I don't see the bug here - having to install extra build dependencies is pretty common.

from ci20_linux.

ZubairLK avatar ZubairLK commented on August 30, 2024

#22 or #23 ? #22 is different.

And yes. These dependencies are needed on x86 systems as well before compiling the kernel

It is certainly not a kernel bug. Having them on the default images on the ci20 is a nice to have perhaps. For some use cases. But it will bloat the image further.

from ci20_linux.

jcowgill avatar jcowgill commented on August 30, 2024

#22 or #23 ? #22 is different.

You can't build the kernel directly on the CI20 without #22 being fixed first, even if you have all the build dependencies.

from ci20_linux.

mcmechan avatar mcmechan commented on August 30, 2024

Well you can build the kernel it just takes some work arounds, currently I have 23 hours of uptime on a ci20-v3.18.3 kernel I built on my ci20 with a SD card and a patched mkimage. The missing dependancies were a fairly minor issue, likely best fixed by updating the documentation #22 was a pain to find.
I first worked around it by manually running the mkuboot.sh script that the kernel uses with the parameters fixed up by hand that kernel would work.

kernel version:

/bin/bash ./scripts/mkuboot.sh -A mips -O linux -C gzip -T kernel -a 0xffffffff80010000 -e 0x805bdc10 -n Linux-3.18.3+ -d arch/mips/boot/vmlinux.bin.gz arch/mips/boot/uImage.gz

and then I rewrote it so it would work and ran it by hand:

/bin/bash ./scripts/mkuboot.sh -A mips -O linux -C gzip -T kernel -a 0x80010000 -e 0x805bdc10 -n Linux-3.18.3+ -d arch/mips/boot/vmlinux.bin.gz arch/mips/boot/uImage.gz

Then I tried to update the kernel but it appears that it is using the 0xffffffff80010000 as a magic flag so if you take off the high 32bits it is not able to build a uImage, so I just patched mkimage in u-boot. see #22 for the sed script I made, I have not figured out how to include a patch yet.

from ci20_linux.

ZubairLK avatar ZubairLK commented on August 30, 2024

I think this is an mkimage issue depending on 32/64bit host..

See the discussion here as well

http://patchwork.linux-mips.org/patch/4447/

from ci20_linux.

wcohen avatar wcohen commented on August 30, 2024

A patch submitted to u-boot mailing list (https://patchwork.ozlabs.org/patch/583426/) has enabled self-hosted build of the linux-3.18.3 kernel checked out from https://github.com/MIPS/CI20_linux.git .

from ci20_linux.

ZubairLK avatar ZubairLK commented on August 30, 2024

Thank-you very much @wcohen

from ci20_linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.