Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requeriments to compile the kernel #1

Open
naeloob opened this issue Mar 2, 2020 · 6 comments
Open

Requeriments to compile the kernel #1

naeloob opened this issue Mar 2, 2020 · 6 comments

Comments

@naeloob
Copy link

naeloob commented Mar 2, 2020

Hi, this docker lacks bc needed to compile the kernel.
It would be perfect if you add it.
Just
apt install bc

@naeloob
Copy link
Author

naeloob commented Mar 2, 2020

Another thing neeeded to compile the kernel is libc6 (64Bits) :

dpkg --add-architecture amd64
apt update
apt-get install libc6:amd64

This way scripts/mkimage works.

@naeloob naeloob changed the title It lacks bc Requeriments to compile the kernel Mar 2, 2020
@borodiliz
Copy link
Owner

borodiliz commented Mar 2, 2020

Thanks @naeloob . Could you share what kernel / config / steps to build are you doing so I can reproduce your needs?

@naeloob
Copy link
Author

naeloob commented Mar 2, 2020

Of course...
The SDK containing the kernel sources 3.18 is this : https://dl.openipc.org/SDK/MStar/MStar-MSC3XX-SDK-toolchain.tgz
I've used your docker to compile busybox, and now i'm trying to compile the kernel.
The instruccions are :

export ARCH = arm
export CROSS_COMPILE = arm-linux-gnueabihf-
make infinity3_defconfig
make clean; make

In the make process of the kernel is required :

  • Bc to compile \kernel\time\timeconst.bc -> I've solved with apt install bc
  • Libc6 x64 to execute scripts\mkimage, that it's a x64 bin and your docker is based on a x86 ubuntu. I've solved with
dpkg --add-architecture amd64
apt update
apt-get install libc6:amd64

Hope this helps.

Regards

@naeloob
Copy link
Author

naeloob commented Mar 2, 2020

Another thing needed is CPIO :
apt-get install cpio

borodiliz added a commit that referenced this issue Apr 2, 2020
@borodiliz
Copy link
Owner

@naeloob can't download MStar-MSC3XX-SDK-toolchain.tgz . Could you provide file or another link?

@boxofrox
Copy link

In the event someone tries to continue this endeavor, it looks like the OpenIPC site reorganized.

OpenIPC download page for MStar: https://openipc.org/cameras/vendors/mstar/socs/msc313e

And provides links for kernel source, buildroot toolchain, and bootloader binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants