Parallella Source Files から
Parallella Linux Kernel:
https://github.com/parallella/parallella-linux
Parallella Boot Loader:
https://github.com/parallella/parallella-uboot
https://github.com/parallella/parallella-linux
Parallella Boot Loader:
https://github.com/parallella/parallella-uboot
まずは git を使って Ubuntu にダウンロードしておきました。
$ git clone https://github.com/parallella/parallella-linux
$ git clone https://github.com/parallella/parallella-uboot
セルフコンパイルは以下の様だそうです。 Parallella フォーラムから
// Check out from GIT
git clone https://github.com/parallella/parallella-linux
cd parallella-linux
// Build config
make mrproper
make parallella_defconfig
USB サウンドが設定されてないので、
cd parallella-linux
// Build config
make mrproper
make parallella_defconfig
USB サウンドが設定されてないので、
make menuconfig
# e.g. enable USB sound adapter
# Device Drivers->Sound card support->Advanced Linux Sound Architecture->USB sound devices->USB Audio/MIDI driver[*] (Press Y), Save, Exit
*とても重要
vi Makefile で以下の設定を無ければ足す
// Make kernel
make -j 4 LOADADDR=0x8000 uImage
// Make DeviceTree
make zynq-parallella1-hdmi.dtb
// Mount boot partition
sudo mount /dev/mmcblk0p1 /mnt
// Move old files out of the way
sudo mv /mnt/uImage /mnt/uImage.bak
sudo mv /mnt/devicetree.dtb /mnt/devicetree.dtb.bak
// Copy new files into place
sudo cp arch/arm/boot/uImage /mnt/uImage
sudo cp arch/arm/boot/dts/zynq-parallella1-hdmi.dtb /mnt/devicetree.dtb
// Reboot and pray
sudo sync
sudo reboot
# Device Drivers->Sound card support->Advanced Linux Sound Architecture->USB sound devices->USB Audio/MIDI driver[*] (Press Y), Save, Exit
*とても重要
vi Makefile で以下の設定を無ければ足す
EXTRAVERSION = -parallella
CFLAGS_MODULE = -fno-stack-protector
CFLAGS_KERNEL = -fno-stack-protector
CFLAGS_MODULE = -fno-stack-protector
CFLAGS_KERNEL = -fno-stack-protector
make -j 4 LOADADDR=0x8000 uImage
// Make DeviceTree
make zynq-parallella1-hdmi.dtb
// Mount boot partition
sudo mount /dev/mmcblk0p1 /mnt
// Move old files out of the way
sudo mv /mnt/uImage /mnt/uImage.bak
sudo mv /mnt/devicetree.dtb /mnt/devicetree.dtb.bak
// Copy new files into place
sudo cp arch/arm/boot/uImage /mnt/uImage
sudo cp arch/arm/boot/dts/zynq-parallella1-hdmi.dtb /mnt/devicetree.dtb
// Reboot and pray
sudo sync
sudo reboot
完了するまで50分かかります。
今度は上手く行きました。コンパイル・オプションが大事でした。