← Alle Beiträge
Linux 2014-11-05 09:19 Autor: Stefan 2 Min. Lesezeit

[:de]Banana Pi Kernel 3.18-rc bauen[:]

[:de]Hier erstmal eine grobe Zusammenfassung der Schritte, eine genau Beschreibung folgt noch cat < 2048,524288,L 526336,,L EOT

mkfs.vfat /dev/mmcblk0p1 mkfs.ext4 /dev/mmcblk0p2

apt-get install bc libncurses5-dev gcc-arm-gnueabihf u-boot-tools build-essential binutils-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot

mkdir bpi cd bpi

git clone -b sunxi-next https://github.com/linux-sunxi/linux-sunxi

cd linux-sunxi

make ARCH=arm CROSSCOMPILE=arm-linux-gnueabihf- sunxidefconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

enable loadable module support enable some usefull drivers like webcam or wifi

make ARCH=arm CROSSCOMPILE=arm-linux-gnueabihf- LOADADDR=0x40008000 uImage dtbs make ARCH=arm CROSSCOMPILE=arm-linux-gnueabihf- INSTALLMODPATH=output modules && modules_install

mkdir /mnt/boot cp arch/arm/boot/uImage /mnt/boot cp arch/arm/boot/dts/sun7i-a20-bananapi.dtb /mnt/boot

nano /mnt/boot/boot.cmd

fatload mmc 0 0x46000000 uImage fatload mmc 0 0x49000000 sun7i-a20-bananapi.dtb setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait panic=10 ${extra} bootm 0x46000000 - 0x49000000

mkimage -C none -A arm -T script -d /mnt/boot/boot.cmd /mnt/boot/boot.scr

mkdir /mnt/rootfs mount /dev/mmcblk0p2 /mnt/rootfs cp output/* /mnt/rootfs/

cd ..

git clone http://git.denx.de/u-boot-sunxi.git cd u-boot-sunxi make ARCH=arm CROSSCOMPILE=arm-linux-gnueabihf- Bananapidefconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dd if=spl/sunxi-spl.bin of=/dev/mmcblk0 bs=1024 seek=8 dd if=u-boot.img of=/dev/mmcblk0 bs=1024 seek=40[:]

Kommentare (0)

Moderiert & spamgeprüft

Noch keine freigegebenen Kommentare vorhanden. Schreibe gerne den ersten Kommentar!

Kommentar schreiben

Hinweis: Dein Kommentar wird vor der Veröffentlichung auf Echtheit geprüft und von einem Moderator freigeschaltet.