Skip to content

Commit 4a357d0

Browse files
committed
files for boot partition
Change-Id: I9dfd353faf49533277f21c86d59663b2c5963c4c
1 parent adf629e commit 4a357d0

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed

README

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Build Kernel
2+
$ cd kernel/rpi
3+
$ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
4+
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
5+
6+
# Build Android source
7+
Continue build with http://source.android.com/source/building-running.html
8+
$ source build/envsetup.sh
9+
$ lunch rpi2-eng
10+
$ make
11+
12+
# Prepare sd card
13+
Partitions of the card should be set-up like followings.
14+
p1 512MB for BOOT : Do fdisk, format as fat32
15+
p2 512MB for /system : Do fdisk, new primary partition, size 512M.
16+
p3 512MB for /cache : Do fdisk, format as ext4
17+
p4 remainings for /data : Do fdisk, format as ext4
18+
19+
# Write system partition
20+
$ cd out/target/product/rpi2
21+
$ sudo dd if=system.img of=/dev/<p2> bs=1M
22+
23+
# Boot partition, kernel & ramdisk
24+
device/brcm/rpi2/boot/* to p1:/
25+
kernel/rpi/arch/arm/boot/zImage to p1:/
26+
out/target/product/rpi2/ramdisk.img to p1:/
27+

boot/bcm2709-rpi-2-b.dtb

5.49 KB
Binary file not shown.

boot/bootcode.bin

17.4 KB
Binary file not shown.

boot/cmdline.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
initrd=0x00f00000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 no_console_suspend root=/dev/ram0 elevator=deadline rootwait androidboot.hardware=rpi2

boot/config.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
hdmi_force_hotplug=1
2+
hdmi_drive=2
3+
config_hdmi_boost=4
4+
disable_overscan=1
5+
framebuffer_width=1280
6+
framebuffer_height=720
7+
kernel=zImage
8+
initramfs ramdisk.img 0x00f00000
9+
mask_gpu_interrupt0=0x400
10+

boot/fixup.dat

5.99 KB
Binary file not shown.

boot/start.elf

2.52 MB
Binary file not shown.

0 commit comments

Comments
 (0)