View: 5154|Reply: 4

Building Kernel etc

[Copy link]

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2017-7-1 21:57:15 | Show all floors |Read mode
Hello Everybody,

I'm trying to build my own kernel and stuff. First reason is I want to understand how it works. Second reason I want to be able to build sometning like PiCoreplayer for mij OPI Zero.

I've git cloned "https://github.com/orangepi-xunlong/orangepi_h2_linux". When I build the uboot I get an ok. Then I run sudo ./build_linux_kernel.sh clean. It says "cleaning" after that "Ok"
Then I run "sudo ./build_linux_kernel.sh zero" I get
  Building kernel for OPI-Zero ...
  Configuring ...
  Building kernel & modules ...
  Error: KERNEL NOT BUILT.


The Kbuild_zero.log says:

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
arm-linux-gnueabi-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
scripts/kconfig/conf --silentoldconfig Kconfig
arm-linux-gnueabi-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
  WRAP    arch/arm/include/generated/asm/auxvec.h
  WRAP    arch/arm/include/generated/asm/bitsperlong.h
  CHK     include/linux/version.h
  WRAP    arch/arm/include/generated/asm/cputime.h
  WRAP    arch/arm/include/generated/asm/errno.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/ioctl.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  UPD     include/linux/version.h
  WRAP    arch/arm/include/generated/asm/local.h
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/poll.h
  WRAP    arch/arm/include/generated/asm/percpu.h
  WRAP    arch/arm/include/generated/asm/sections.h
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/resource.h
  WRAP    arch/arm/include/generated/asm/siginfo.h
  WRAP    arch/arm/include/generated/asm/sizes.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.lex.c
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
arm-linux-gnueabi-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
scripts/Makefile.build:307: recept voor doel 'scripts/mod/empty.o' is mislukt
make[2]: *** [scripts/mod/empty.o] Fout 127
make[2]: *** Wachten op onvoltooide taken...
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  SHIPPED scripts/genksyms/parse.tab.c
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/recordmcount
scripts/Makefile.build:443: recept voor doel 'scripts/mod' is mislukt
make[1]: *** [scripts/mod] Fout 2
make[1]: *** Wachten op onvoltooide taken...
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
arm-linux-gnueabi-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/home/wilbert/orangepi_h2_linux/OrangePi-Kernel/linux-3.4/./Kbuild:35: recept voor doel 'kernel/bounds.s' is mislukt
make[1]: *** [kernel/bounds.s] Fout 127
Makefile:985: recept voor doel 'prepare0' is mislukt
make: *** [prepare0] Fout 2
make: *** Wachten op onvoltooide taken...
  HOSTLD  scripts/genksyms/genksyms
Makefile:506: recept voor doel 'scripts' is mislukt
make: *** [scripts] Fout 2

Sorry I run a dutch Ubuntu 16.04 system

"Wachten op onvoltooide taken"  means as much as "Waiting for unfinished tasks"
"Mislukt" means ¨failed"
"recept" means "recepy" so I guess "script"
"doel" means "target"

Don't know what I am dowing wrong. I hope someone can help me out.

Thanks

Wilbert




9

threads

634

posts

4400

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4400
Published in 2017-7-2 00:14:05 | Show all floors
Edited by igorpec at 2017-7-1 17:15

If you want to rebuild kernel and image with fast forward, start here: https://github.com/armbian/build and if you want to learn how it is done, study the code.
Remember to check basic documentation.

0

threads

47

posts

1708

credits

Gold member

Rank: 6Rank: 6

credits
1708
Published in 2017-7-2 18:24:59 | Show all floors
Kernel was not build in a day

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2017-7-4 03:59:56 | Show all floors
Edited by Wilbert61b at 2017-7-4 04:01
igorpec replied at 2017-7-2 00:14
If you want to rebuild kernel and image with fast forward, start here: https://github.com/armbian/bu ...

Thanks Igor. I've setup an envoirment with according to the howto you pointed me to. I'm playing with it right now. Stil got some questions about it but if I cant find it on the armbian forum I'll post there.

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2017-7-4 04:00:37 | Show all floors
dx.l replied at 2017-7-2 18:24
Kernel was not build in a day

Not quite shure what you mean.....

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list