FirefoxOS/RPiB2: Difference between revisions

1,227 bytes removed ,  17 February 2016
Building kernel is now integrated as a part of the build process automatically
(Fix pip installation package name and added a new one)
(Building kernel is now integrated as a part of the build process automatically)
Line 155: Line 155:


This step also takes some time, because it's building an entire operating system.  When your build finishes, it's time to flash it onto an SD card for your RPi.
This step also takes some time, because it's building an entire operating system.  When your build finishes, it's time to flash it onto an SD card for your RPi.
== Build Kernel ==
It's planned to add the kernel building process to the b2g build system, but for now, you have to do it yourself.
=== Prepare Toolchain ===
We need to cross compiling to kernel for the Raspberry Pi, for this we need the correct toolchain. Clone the toolchain repository in a folder you will remember:
git clone https://github.com/raspberrypi/tools
Then add the directory of the repo you have cloned to the '''path''' in you system.
=== Compile from source ===
The kernel is copied in ''kernel/raspberrypi/rpi2b''. Knowing this follow the steps.
1. Go inside B2G directory and kernel directory
kernel/raspberrypi/rpi2b
2. Merge configurations into '''.config''' to build the kernel
ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
3. Build the zImage
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
4. Build the dtb file
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
The two files that are generated and you need to boot the Raspberry PI B+ 2 are located in:
kernel/raspberrypi/rpi2b/arch/arm/boot/zImage
kernel/raspberrypi/rpi2b/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb


== Prepare To Flash ==
== Prepare To Flash ==
Confirmed users
11

edits