Login Register English 中文

Search
View: 2994|Reply: 20

Public Source Code on Github [Copy this link to quote]

Rank: 8Rank: 8

Post time: 2014-7-22 01:52:05
|Show all posts
Post Last Edited by tony_zhang at 2014-7-31 02:45

Big news! The Banana Pi source code is now available on Github:
https://github.com/LeMaker. Lemaker-Github.png




You can pull them down from Lemaker Github to build your own kernel. The default kernel configuration has opened all drivers needed by Banana Pi. Please refer to the manuals on wiki:
http://wiki.lemaker.org/index.php?title=Building_u-boot,_script.bin_and_linux-kernel .
The simplest way is refer to “Use Banana Pi BSP” on Wiki.


If you have some modification suggestion for source code, please send patch to e-mail git@lemaker.org.

Rank: 2

Post time: 2014-7-22 05:38:48
|Show all posts
Thank you Tony!

Use magic Report

Rank: 2

Post time: 2014-7-22 06:33:48
|Show all posts
Tony,

Give us a electric scheme of Banana Pi

Use magic Report

Rank: 7Rank: 7Rank: 7

Post time: 2014-7-22 07:00:39
|Show all posts
Great work!

Use magic Report

Rank: 8Rank: 8

Post time: 2014-7-22 07:32:32
|Show all posts
Reply 3# sylwek2k

I am working on software. I will help you to ask for the hardware schematic

Use magic Report

Rank: 1

Post time: 2014-7-22 09:30:07
|Show all posts
finally can find the source code.

me too looking for the schematic....

Use magic Report

Rank: 1

Post time: 2014-7-22 13:14:13
|Show all posts
Reply 1# tony_zhang

Thank youTony,
I hope that this will help me with the driver development.
Although I thought that getting the sources, or at least the kernel headers, directly on the bananaPI would be easier.
The BananPI is fast enough for a native compilation of kernel modules.
On Ubuntu systems normally it is  sufficient to install the compiler and
sudo apt-get kernel headers
to start kernel module development
Is there any hope that that can be provided too?

.

Use magic Report

Rank: 1

Post time: 2014-7-22 14:43:15
|Show all posts
success ! It works ! Gigabit ethernet works ok and I have now xfs in the kernel.

I had to made 2 minors modifications to compile the kernel (but already had to do this with 3.4.90 from linux-sunxi.  I'm cross compiling with gcc version 4.8.4 20140526 (release) [ARM/embedded-4_8-branch revision 211358] (GNU Tools for ARM Embedded Processors)

So maybe this is because of this specific gcc compiler & because I'm cross-compiling ... Don't know

Here are the 2 minors diff :
1st one is because I use a non linux-targeted compiler :
(cf https://bugs.launchpad.net/linaro-android/+bug/868550/comments/19)


diff ../../linux-sunxi/include/drm/drm.h include/drm/drm.h
39,40c39,40
< #if defined(__linux__)
<
---
> //#if defined(__linux__)
> #if defined(__KERNEL__) || defined(__linux__)

and I had to comment a whole part on process.c :


diff ../../linux-sunxi/arch/arm/kernel/process.c arch/arm/kernel/process.c
466,471c466,471
<                         unsigned int transbase, dac;
<                         asm("mrc p15, 0, %0, c2, c0\n\t"
<                             "mrc p15, 0, %1, c3, c0\n"
<                             : "=r" (transbase), "=r" (dac));
<                         snprintf(buf, sizeof(buf), "  Table: %08x  DAC: %08x",
<                                   transbase, dac);
---
> //                        unsigned int transbase, dac;
> //                        asm("mrc p15, 0, %0, c2, c0\n\t"
> //                            "mrc p15, 0, %1, c3, c0\n"
> //                            : "=r" (transbase), "=r" (dac));
> //                        snprintf(buf, sizeof(buf), "  Table: %08x  DAC: %08x",
> //                                  transbase, dac);

If I understand correctly, this is a valid optimization, (defined on A20) . But it chokes :
arch/arm/kernel/process.c: In function '__show_regs':
arch/arm/kernel/process.c:467:4: error: invalid 'asm': operand number out of range
    asm("mrc p15, 0, %0, c2, c0\n\t"
    ^
make[1]: *** [arch/arm/kernel/process.o] Erreur 1

I needed to disable it to compile, but there must be a much better solution...

Use magic Report

Rank: 1

Post time: 2014-7-22 16:43:01
|Show all posts
Did not have to wait for long!

Use magic Report

Rank: 1

Post time: 2014-7-23 02:05:23
|Show all posts
Thanks Tony!

Unfortunatley the GMAC code does not compile?

It comes up with 'Undefined error'

It seems to be related to the gpio entrys you have added?

Use magic Report

You have to log in before you can reply Login | Register

To Top