The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Compiling Jolla kernel
From Mer Wiki
(Difference between revisions)
Line 3: | Line 3: | ||
==environment setup== | ==environment setup== | ||
* Setup Mer Platform SDK | * Setup Mer Platform SDK | ||
− | |||
− | |||
==build kernel== | ==build kernel== | ||
− | * download kernel source from | + | * download kernel source from releases.sailfishos.org |
* retrieve kernel config from /proc/config.gz on device | * retrieve kernel config from /proc/config.gz on device | ||
* use sb2 to build kernel | * use sb2 to build kernel | ||
+ | |||
+ | * Script to build flashable boot.img | ||
+ | |||
+ | #!/bin/sh | ||
+ | set -e | ||
+ | BOOTIMG=boot.img | ||
+ | RAMDISKFILE=ramdisk-sailfish.img | ||
+ | # Create ramdisk | ||
+ | echo "Creating dummy ramdisk.." | ||
+ | touch $RAMDISKFILE | ||
+ | gzip -f $RAMDISKFILE | ||
+ | echo "Creating $BOOTIMG.." | ||
+ | KERNEL=arch/arm/boot/zImage | ||
+ | mkbootimg --kernel $KERNEL --ramdisk ${RAMDISKFILE}.gz --cmdline "init=/sbin/preinit root=/dev/mmcblk0p28 rootfstype=btrfs noinitrd androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3 maxcpus=2 ip=192.168.2.15::192.168.2.14:255.255.255.0::rndis0:off zcache" --base 0x80200000 --offset 0x02000000 --pagesize 2048 -o $BOOTIMG | ||
+ | echo "Cleaning up.." | ||
+ | rm $RAMDISKFILE* | ||
+ | exit 0 | ||
==build kernel modules== | ==build kernel modules== |
Revision as of 14:31, 10 November 2015
work in progress...
environment setup
- Setup Mer Platform SDK
build kernel
- download kernel source from releases.sailfishos.org
- retrieve kernel config from /proc/config.gz on device
- use sb2 to build kernel
- Script to build flashable boot.img
#!/bin/sh set -e BOOTIMG=boot.img RAMDISKFILE=ramdisk-sailfish.img # Create ramdisk echo "Creating dummy ramdisk.." touch $RAMDISKFILE gzip -f $RAMDISKFILE echo "Creating $BOOTIMG.." KERNEL=arch/arm/boot/zImage mkbootimg --kernel $KERNEL --ramdisk ${RAMDISKFILE}.gz --cmdline "init=/sbin/preinit root=/dev/mmcblk0p28 rootfstype=btrfs noinitrd androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3 maxcpus=2 ip=192.168.2.15::192.168.2.14:255.255.255.0::rndis0:off zcache" --base 0x80200000 --offset 0x02000000 --pagesize 2048 -o $BOOTIMG echo "Cleaning up.." rm $RAMDISKFILE* exit 0