please choosego to mobile | Continue to access the PC version
Author: Tankafaire

[TUTO] How to compile Kernel & Headers (from banana pi github)

[Copy link]

9

threads

634

posts

4426

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4426
Published in 2015-1-26 16:29:40 | Show all floors
Banana = Cubieboard = Orange = Olimex Lime ... only external stuff / what's outside A20 is sometimes done differently, we have different wire and wireless chips, gpios, ...

Check Cubieboardcommunity. There is much more info about A20 boards than anywhere else, even it's dedicated for Cubieboards.

If it's not working on Cubieboard it won't work on Banana and the rest of the A20 family ... and vice versa.

Why do you seek for different MALI anyway? It's not related to video acceleration which is anyway not usable on any linux - check the status here: http://linux-sunxi.org/CedarX

1

threads

25

posts

212

credits

Intermediate member

Rank: 3Rank: 3

credits
212
Published in 2015-1-26 19:07:13 | Show all floors
He may want newer mali kernel driver for desktop performance on A20 cpu. Look at this: http://linux-sunxi.org/Benchmarks. But if You want to better decoding Video streams You need CedarX or libvdpau-sunxi.

9

threads

634

posts

4426

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4426
Published in 2015-1-26 19:51:36 | Show all floors
He may want newer mali kernel driver for desktop performance on A20 cpu.


OK. And where exactly OpenGL helps in desktop performance? I mean in real world scenarios. Not just stupid benchmark numbers.

1

threads

25

posts

212

credits

Intermediate member

Rank: 3Rank: 3

credits
212
Published in 2015-1-26 22:45:13 | Show all floors
If we port wayland to our platform (haven't tested it for now) it's compositor will use OpenGL ES.

1

threads

39

posts

137

credits

Registered member

Rank: 2

credits
137
Published in 2015-5-25 22:59:07 | Show all floors
I am trying to evaluate the orange pi plus for jack audio ( I am using ubuntu).  But the ubuntu distrobution appears to have all audio disabled.  Even if I use and external usb audio device, it does not work.

I need the kernel built with usb audio enabled.  How do just do a simple rebuild of the kernel to enable this?

Thanks,
Mark.

5

threads

354

posts

2716

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2716
Published in 2015-5-26 01:56:59 | Show all floors
usb audio is enabled:
--- USB sound devices
<M>   USB Audio/MIDI driver
< >   Edirol UA-101/UA-1000 driver
< >   Native Instruments USB audio devices
< >   TerraTec DMX 6Fire USB


Are you sure that kernel 3.4 has support for your device?
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

4

threads

65

posts

260

credits

Intermediate member

Rank: 3Rank: 3

credits
260
Published in 2015-5-26 03:55:19 | Show all floors
http://www.george-smart.co.uk/wiki/USB_Soundcard_Tests
Europe in general there on the market c-media cm-119 and cm-109

1

threads

39

posts

137

credits

Registered member

Rank: 2

credits
137
Published in 2015-5-26 08:11:17 | Show all floors
The usb device is:
card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The only markings on it are 5H V/2.
This has worked on every fruit sbc plus odroid-c2, but no on the orange.  I believe this a standard usb device, requires no special drivers.  I think the others you mentioned require special drivers.

Doesn't that require HID:
    [ ] HID Devices  --->

I don't know what is really needed but this looks like it may be needed(/audio in menuconfig)
Symbol: SND_USB_AUDIO [=n]                                              x
  x Type  : tristate                                                        x
  x Prompt: USB Audio/MIDI driver                                           x
  x   Defined at sound/usb/Kconfig:12                                       x
  x   Depends on: SOUND [=y] && !M68K && !UML && SND [=y] && SND_USB [=n] & x
  x   Location:                                                             x
  x     -> Device Drivers                                                   x
  x       -> Sound card support (SOUND [=y])                                x
  x         -> Advanced Linux Sound Architecture (SND [=y])                 x
  x           -> USB sound devices (SND_USB [=n])                           x
  x   Selects: SND_HWDEP [=n] && SND_RAWMIDI [=n] && SND_PCM [=y]           x
  x

or
  x                                                                         x
  x Symbol: USB_AUDIO [=n]                                                  x
  x Type  : tristate                                                        x
  x Prompt: Audio Gadget (EXPERIMENTAL)                                     x
  x   Defined at drivers/usb/gadget/Kconfig:605                             x
  x   Depends on: <choice> && SND [=y]                                      x
  x   Location:                                                             x
  x     -> Device Drivers                                                   x
  x       -> USB support (USB_SUPPORT [=n])                                 x
  x         -> USB Gadget Support (USB_GADGET [=n])                         x
  x           -> USB Gadget Drivers (<choice> [=n])                         x
  x   Selects: SND_PCM [=y]

I had to build the kernel for the banana-pro using igorpec script and I turned those on as well.  I may have done more than I needed but that go it to work for me.

Mark


5

threads

354

posts

2716

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2716
Published in 2015-5-26 20:04:18 | Show all floors
Please do not crosspost the same problem.

You can try to build a new kernel but you will surely loose ethernet support.
You can use only the old crappy binary 4.6.3 linaro soft toolchain for building.
With other toolchains it gives you errors.

good luck.



Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

threads

3

posts

1211

credits

Gold member

Rank: 6Rank: 6

credits
1211
Published in 2015-6-17 19:48:42 | Show all floors
Hi.
I collect a kernel for OPI2mini, I took source codes from a toolchain, compilation comes to an end with a mistake.

mkdir output
cp rootfs.cpio.gz output/
make sun8iw7p1smp_defconfig
make menuconfig
make -j2 uImage modules

  1. arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
  2. arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
  3.   CC      arch/arm/mm/fault.o
  4.   CC      arch/arm/mm/init.o
  5.   CC      arch/arm/kernel/setup.o
  6.   CC      arch/arm/kernel/signal.o
  7.   LD      arch/arm/common/built-in.o
  8.   CC      arch/arm/kernel/stacktrace.o
  9.   CC      arch/arm/kernel/sys_arm.o
  10.   LD      arch/arm/net/built-in.o
  11.   CC      arch/arm/mm/iomap.o
  12.   CC      arch/arm/mach-sunxi/sun8i.o
  13.   AS      arch/arm/mach-sunxi/sunxi-headsmp.o
  14.   AS      arch/arm/mach-sunxi/power/brom/resumes.o
  15.   CC      arch/arm/mach-sunxi/sunxi-platsmp.o
  16.   CC      arch/arm/mach-sunxi/power/brom/resume_head.o
  17. gcc: error: unrecognized option ‘--min_array_alignment=4’
  18. gcc: error: unrecognized option ‘--no_unaligned_access’
  19. make[3]: *** [arch/arm/mach-sunxi/power/brom/resume_head.o] Error 1
  20. make[2]: *** [arch/arm/mach-sunxi/power/brom/resumes.code] Error 2
  21. make[1]: *** [arch/arm/mach-sunxi/power] Error 2
  22. make[1]: *** Waiting for unfinished jobs....
  23.   CC      arch/arm/mm/fault-armv.o
  24.   CC      kernel/fork.o
  25.   CC      arch/arm/kernel/time.o
  26.   CC      mm/filemap.o
  27. make: *** [arch/arm/mach-sunxi] Error 2
  28. make: *** Waiting for unfinished jobs....
Copy code


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

Points Rule

Quick reply Top Return list