FirefoxOS/RPiB2: Difference between revisions

Jump to navigation Jump to search
Renaming rpib2 to tpi2b - (Alex suggestion!) :)
m (adb support)
(Renaming rpib2 to tpi2b - (Alex suggestion!) :))
Line 148: Line 148:


  cd B2G
  cd B2G
  ./config.sh rpib2
  ./config.sh rpi2b


The config.sh step can take quite a while, because it downloads a large amount of data. Finally, build b2g
The config.sh step can take quite a while, because it downloads a large amount of data. Finally, build b2g
Line 170: Line 170:
=== Compile from source ===
=== Compile from source ===


The kernel is copied in ''kernel/raspberrypi/rpib2''. Knowing this follow the steps.
The kernel is copied in ''kernel/raspberrypi/rpi2b''. Knowing this follow the steps.


1. Go inside B2G directory and kernel directory
1. Go inside B2G directory and kernel directory


  kernel/raspberrypi/rpib2
  kernel/raspberrypi/rpi2b


2. Merge configurations into '''.config''' to build the kernel
2. Merge configurations into '''.config''' to build the kernel
Line 190: Line 190:
The two files that are generated and you need to boot the Raspberry PI B+ 2 are located in:
The two files that are generated and you need to boot the Raspberry PI B+ 2 are located in:


  kernel/raspberrypi/rpib2/arch/arm/boot/zImage
  kernel/raspberrypi/rpi2b/arch/arm/boot/zImage
  kernel/raspberrypi/rpib2/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb
  kernel/raspberrypi/rpi2b/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb


== Prepare To Flash ==
== Prepare To Flash ==
Line 212: Line 212:
Copy the following files to each partition.
Copy the following files to each partition.


1. Everything inside '''device/raspberrypi/rpib2/boot/''' is copied into '''boot (Partition 1)'''
1. Everything inside '''device/raspberrypi/rpi2b/boot/''' is copied into '''boot (Partition 1)'''


  device/raspberrypi/rpib2/boot/* => boot
  device/raspberrypi/rpi2b/boot/* => boot


2. '''zImage''' is copied into '''boot (Partition 1)'''
2. '''zImage''' is copied into '''boot (Partition 1)'''


  kernel/raspberrypi/rpib2/arch/arm/boot/zImage => boot
  kernel/raspberrypi/rpi2b/arch/arm/boot/zImage => boot


3. '''bcm2709-rpi-2-b.dtb''' is copied into '''boot (Partition 1)'''
3. '''bcm2709-rpi-2-b.dtb''' is copied into '''boot (Partition 1)'''


  kernel/raspberrypi/rpib2/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb => boot
  kernel/raspberrypi/rpi2b/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb => boot


4. '''ramdisk.img''' is copied into '''is copied into '''boot (Partition 1)'''
4. '''ramdisk.img''' is copied into '''is copied into '''boot (Partition 1)'''


  out/target/product/rpib2/ramdisk.img => boot
  out/target/product/rpi2b/ramdisk.img => boot


=== Flashing system to SD card ===
=== Flashing system to SD card ===


1. Flash the image'''out/target/product/rpib2/system.img''' to '''system (Partition 2)''' with '''dd''' command
1. Flash the image'''out/target/product/rpi2b/system.img''' to '''system (Partition 2)''' with '''dd''' command


  dd if=system.img of=/dev/disk# bs=1m
  dd if=system.img of=/dev/disk# bs=1m
Line 309: Line 309:
The Console lead has four female connections that can be plugged directly onto the GPIO header of the Raspberry Pi. The Adafruit USB console cable has 3.3V logic, so its safe to use with your Pi.
The Console lead has four female connections that can be plugged directly onto the GPIO header of the Raspberry Pi. The Adafruit USB console cable has 3.3V logic, so its safe to use with your Pi.


[[File:RPiB2_Debug_Kit.jpg|300px]]
[[File:RPi2B_Debug_Kit.jpg|300px]]


For this experiment, the serial lead is going to power the Raspberry Pi. So, DO NOT attach the Pi's USB power adapter. If you would rather power the Pi from your USB power adapter then leave the Red lead from the Serial lead un attached.
For this experiment, the serial lead is going to power the Raspberry Pi. So, DO NOT attach the Pi's USB power adapter. If you would rather power the Pi from your USB power adapter then leave the Red lead from the Serial lead un attached.
Line 342: Line 342:
and so on. Eventually, you should see a login prompt:
and so on. Eventually, you should see a login prompt:


  shell@rpib2:/ $
  shell@rpi2b:/ $


You can then log in as you would with a keyboard and screen.
You can then log in as you would with a keyboard and screen.
6

edits

Navigation menu