Skip to content

Spin42/buildroot-fp2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildroot for Fairphone2 - UNDER DEVELOPMENT, USE AT YOUR OWN RISK

Prerequisite

Make sure lk2nd is flashed on the boot partition.

  1. Download latest lk2nd image here: lk2nd-msm8974.img
  2. Reboot your fp2 in fastboot mode.
  3. Run fastboot flash boot lk2nd-msm8974.img
  4. Reboot your phone.

Build the buildroot system

  1. Run cd buildroot && make BR2_EXTERNAL=../buildroot-external/ fairphone2_defconfig
  2. Run make BR2_EXTERNAL=../buildroot-external/ all
  3. Reboot your fp2 in fastboot mode.
  4. Run fastboot flash userdata output/images/sdcard.img
  5. Reboot your phone
  6. With your phone plugged to your computer via USB, you should see a new network interface, it should be assigned the 10.0.0.2 ip automatically (the fp2 will be 10.0.0.1)
  7. Type ssh [email protected], password is root

Using WIFI (after flashing)

  1. Make sure you can ssh to your FP2 by following the previous section
  2. Edit /etc/network/interfaces with vi on your FP2 and uncomment the following lines:
auto wlan0
iface wlan0 inet dhcp
  pre-up wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
  post-down killall -q wpa_supplicant
  1. You then need to edit your SSID and passkey in /etc/wpa_supplicant.conf
network={
    #key_mgmt=WPA-PSK
    ssid="YOURSSID"
    psk="YOURPSK"
}
  1. Make sure you save both of these files, then type reboot
  2. Once network is started, you should be able to see your fp2 on your wifi network

Using WIFI (before flashing)

  1. Edit buildroot-external/board/fairphone2/overlay/etc/netwotk/interfaces and buildroot-external/board/fairphone2/overlay/etc/wpa_supplicant.conf as described in the previous section
  2. Run cd buildroot && make BR2_EXTERNAL=../buildroot-external/ all
  3. Reboot your phone in fastboot mode
  4. Run fastboot flash userdata output/images/sdcard.img
  5. Run fastboot reboot
  6. You should see your phone on your wifi network once it's restarted

Standard buildroot README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

  1. run 'make menuconfig'
  2. select the target architecture and the packages you wish to compile
  3. run 'make'
  4. wait while it compiles
  5. find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot. Have fun!

Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: [email protected] You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches

About

Buildroot for Fairphone2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published