Skip to content
Bjorn Andersson edited this page Feb 22, 2014 · 4 revisions

This is work in progress code for running mainline Linux on Xperia devices.

Individual pieces of the puzzle are kept in separate topic branches and are all merged into next. All branches are subject to rebasing.

cmdline

earlyprintk ignore_loglevel clk_ignore_unused console=ttyMSM0,115200,n8

Lagan

CROSS_COMPILE="ccache arm-eabi-" ARCH=arm make sony_defconfig
CROSS_COMPILE="ccache arm-eabi-" ARCH=arm make -j10
cat arch/arm/boot/zImage arch/arm/boot/dts/sony-lagan-cdb.dtb > zImage
mkqcdtbootimg  --kernel zImage \
               --ramdisk busybox.img \
               --cmdline "$(cat cmdline)" \
               --base 0x80200000 \
               --pagesize 2048 \
               --ramdisk_offset 0x02000000 \
               --output boot.img \
               --board fusion3

Rhine

#!/bin/bash -e

CROSS_COMPILE="ccache arm-eabi-" ARCH=arm sony_defconfig
CROSS_COMPILE="ccache arm-eabi-" ARCH=arm make -j10
mkqcdtbootimg  --kernel arch/arm/boot/zImage \
               --ramdisk busybox.img \
               --cmdline "$(cat cmdline)" \
               --base 0x00000000 \
               --pagesize 2048 \
               --ramdisk_offset 0x02000000 \
               --tags_offset 0x01e00000 \
               --dt_dir arch/arm/boot/dts/ \
               --output boot.img \
               --board rhine_cdb
Clone this wiki locally