Outils pour utilisateurs

Outils du site


olimex:kernels

autres sources

Debian image for A13-OLinuXino-LIME with Kernel 3.4.90+

Autres méthode d'avant

Olimex LIME kernel et modules

Olimex préparation des noyaux

A20

U-boot

mkdir A20-U-boot
git clone -b sunxi https://github.com/linux-sunxi/u-boot-sunxi.git
cd u-boot-sunxi/
make A20-OLinuXino_MICRO_config
make CROSS_COMPILE=arm-linux-gnueabihf-

ls u-boot.bin u-boot-sunxi-with-spl.bin spl/sunxi-spl.bin

Kernel

récupérer : a20_defconfig.txt sunxi-i2c.patch.txt et les mettre dans le répertoire

git clone https://github.com/linux-sunxi/linux-sunxi linux-sunxi
cp a20_defconfig linux-sunxi/arch/arm/configs/a20_defconfig
cp sunxi-i2c.patch.txt linux-sunxi/sunxi-i2c.patch
cd linux-sunxi
patch -p0 < sunxi-i2c.patch
make ARCH=arm a20_defconfig
make ARCH=arm menuconfig  # éventuellement
export CCFLAGS="-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=hard"
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage
mkdir out
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules_install
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out firmware_install

# au caszou compilation en natif pour bibi
make ARCH=arm uImage
rm -rf out/*
mkdir -p out
make ARCH=arm INSTALL_MOD_PATH=out modules
make ARCH=arm INSTALL_MOD_PATH=out modules_install
make ARCH=arm INSTALL_MOD_PATH=out firmware_install

le fichier u-boot avec la partie configuration est dans le a20_kernel_3.4 c'est : ./u-boot-sunxi/u-boot-sunxi-with-spl.bin

dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8

le kernel uImage est dans linux-sunxi/arch/arm/boot/

les modules sont dans linux-sunxi/out/lib

A10 Lime

U-boot

mkdir a10-LIME-U-boot
cd a10-LIME-U-boot
git clone -b sunxi https://github.com/linux-sunxi/u-boot-sunxi.git
cd u-boot-sunxi/
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- A10-OLinuXino-Lime_config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
cd ..

Kernel

récupérer : a10lime_defconfig.txt , sunxi-i2c.patch , a10_sound.patch et les mettre dans le répertoire

git clone https://github.com/linux-sunxi/linux-sunxi linux-sunxi
cp a10lime_defconfig linux-sunxi/arch/arm/configs/a10lime_defconfig
cd linux-sunxi
patch -p0 < ../sunxi-i2c.patch
patch -p0 < ../a10_sound.patch
make ARCH=arm a10lime_defconfig
make ARCH=arm menuconfig  # éventuellement
export CCFLAGS="-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=hard"
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage 
mkdir out
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out modules_install
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 INSTALL_MOD_PATH=out firmware_install

certaine fois sur la LIME , kernel 3.14 a10lime_3.14_defconfig.txt

make uImage LOADADDR=0x40008000

Installation de la SD sur la NAND (A20)

Ptits trucs

lire aussi :

recupération de u-boot.bin et sunxi-spl.bin d'une SD qui marche : ?? a verifier !

 ?? dd of=u-boot.bin if=/dev/sdc bs=1 seek=32 count=227536
?? dd of=sunxi-spl.bin if=/dev/sdc bs=1 seek=8 count=17912
dd of=bootsd.bin if=/dev/sdc bs=1 seek=8 count=2039

gunzip -c /media/EE1/src/A10/debian_rootfs/mele_debian_armhf_minimal.cpio.gz | cpio -i

boot.cmd pour 512 Mo de RAM et plus de sortie graphique

setenv bootargs console=ttyS0,115200 sunxi_g2d_mem_reserve=0  sunxi_fb_mem_reser
ve=0 sunxi_no_mali_mem_reserve sunxi_ve_mem_reserve=0  root=/dev/mmcblk0p2 rootw
ait panic=10
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage
bootm 0x48000000
#apt-get install uboot-mkimage
mkimage -C none -A arm -T script -d boot.cmd boot.scr

boot.tgz

xorg

test xorg.conf pour eviter le décalage du curseur

Section "ServerLayout"
        Identifier      "Main Layout"
        Screen          "Mali Screen"
        InputDevice     "Sun4iTouchscreen"
EndSection

#Section "Device"
#       Identifier "Mali FBDEV"
#       Driver  "mali"
#       Option  "fbdev"            "/dev/fb0"
#       Option  "DRI2"             "true"
#       Option  "DRI2"             "true"
#       Option  "DRI2_PAGE_FLIP"   "true"
#       Option  "DRI2_WAIT_VSYNC"  "false"
#EndSection

Section "Screen"
        Identifier      "Mali Screen"
#       Device          "Mali FBDEV"
        DefaultDepth    24
EndSection

#Section "DRI"
#       Mode 0666
#EndSection

Section "InputDevice"
        Identifier      "Sun4iTouchscreen"
        Option          "Device" "/dev/input/event1"
        Driver          "tslib"
        Option          "ScreenNumber" "0"
        Option          "Rotate" "NONE"
        Option          "Width" "800"
        Option          "Height" "480"
        Option          "SendCoreEvents" "yes"
EndSection

Option “SWCursor” “True” ??

Décalage du curseur par rapport à la touche, même après un ts_calibrate

de fait ça fonctionnne avec:

/usr/share/X11/xorg.conf.d/20-ts.conf

Section "InputClass"
    Identifier "Sun4i-Touchscreen"
    MatchDevicePath "/dev/input/event*"
    MatchProduct "sun4i-ts" 
    Driver "tslib"
        Option          "ScreenNumber" "0"
        Option          "Rotate" "NONE"
        Option          "Width" "800"
        Option          "Height" "480"
        Option          "SendCoreEvents" "yes"
Section "InputClass"

Autres sources

Debian Jessie packages for A10 : http://lauri.võsandi.com/2014/04/debian-jessie-sunxi-packages.html

olimex/kernels.txt · Dernière modification: 2017/04/11 15:13 (modification externe)