ReCompile Kernel for Debian Image

Started by isidoro, July 29, 2013, 05:40:51 pm

Previous topic - Next topic

PaceyIV

Quote from: isidoro on August 06, 2013, 01:41:10 am
In the meanwhilte I' studiyng on how to put binary file (uImage and modules ) on amazon or google doc.



With google docs is much easy! Upload and share!
I'm downloading the source code you provided with and also your config.

1. Have you enabled sata support? I saw that CONFIG_SATA_PMP=y and CONFIG_SW_SATA_AHCI_PLATFORM=y are setted but not the CONFIG_SATA_AHCI_PLATFORM
2. About paranoid, to disable this features (I make a server with the Olimex A20!) I just need to set to no CONFIG_ANDROID_PARANOID_NETWORK=y ? And CONFIG_MMC_PARANOID_SD_INIT=y ?

PaceyIV

I share my kernel image, modules, config and uEnv.txt on gdrive ad link https://drive.google.com/folderview?id=0BzF5qrRdBNDbR0ZCdkJ3LWJCWEE&usp=sharing

It's the same config provided by isidoro
I only disable CONFIG_ANDROID_PARANOID_NETWORK=y
More info about this features at link http://elinux.org/Android_Security

isidoro

Quote from: PaceyIV on August 10, 2013, 12:21:28 am
I share my kernel image, modules, config and uEnv.txt on gdrive ad link https://drive.google.com/folderview?id=0BzF5qrRdBNDbR0ZCdkJ3LWJCWEE&usp=sharing

It's the same config provided by isidoro
I only disable CONFIG_ANDROID_PARANOID_NETWORK=y
More info about this features at link http://elinux.org/Android_Security

I'll take a look at .config and test your kernel as soon as I can (I'm on holidays this days).
My future effort will focus on multiple uart and sunxi touch screen module tuning

WELK

Hello everyone.
i would like to know which toolchain you use for crosscompile software for Allwinner A20 Processor
thanks in advance

PaceyIV

From a Debian 7.1 x86 machine


$ sudo apt-get install build-essential libncurses5-dev u-boot-tools qemu-user-static debootstrap git binfmt-support libusb-1.0-0-dev pkg-config

$ sudo nano /etc/apt/sources.list

deb http://www.emdebian.org/debian/ wheezy main
deb http://www.emdebian.org/debian/ sid main

$ sudo apt-get install emdebian-archive-keyring
$ sudo apt-get update
$ sudo apt-get install gcc-4.6-arm-linux-gnueabihf
$ cd /usr/bin
$ sudo for i in arm-linux-gnueabi*-4.6 ; do ln -s $i ${i%%-4.6} ; done

$ make ARCH=arm menuconfig

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules

XFer

I cross compile from Ubuntu 13.04.
My toolchain is gcc-4.7-arm-linux-gnueabihf (gcc version 4.7.2); better than 4.6, because it has better optimizations for the ARM Cortex A7 (Allwinner A20).

Fernando

PaceyIV

Thanks for the info!

About gcc optimization, have you seen some problems? When I compile some programs directly on the board I have to limit the optimization with only "CFLAGS=-g -Os" "CXXFLAGS=-g -Os" otherwise something doesn't work.
On the board I use gcc version 4.6.3 (Debian 4.6.3-14)

XFer

No I don't have any issue with GCC 4.7.2.

Apart from kernel compiling, I use

CFLAGS="-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -ffast-math -Ofast"

and get very nice performances.

For kernel building, I stick to "-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4" and leave out the other two flags.

Fernando


KNK

Tried both fedora and 3.3-cb2, but there is an error while unzipping 'file name too long' for both of them and later on missing files while compiling, am i missing something?

XFer

Yes I had it too. Occurs when using unzip.
Install 7zip for Linux, it handles the .zip without issues.

Fernando

isidoro

Quote from: KNK on August 27, 2013, 09:41:29 pm
Tried both fedora and 3.3-cb2, but there is an error while unzipping 'file name too long' for both of them and later on missing files while compiling, am i missing something?


as stated few post ago:

Therefore, to unzip, I suggest to use 7-zip:

:# 7z x sunxi-3.3-cb2.zip

(if unsure, apt-get install p7zip-full)


KNK

Thanks, 7z did the job right.

P.S. I am mc fan and it uses unzip for extracting *.zip