Make sure lk2nd is flashed on the boot partition.
- Download latest lk2nd image here: lk2nd-msm8974.img
- Reboot your fp2 in fastboot mode.
- Run
fastboot flash boot lk2nd-msm8974.img
- Reboot your phone.
- Run
cd buildroot && make BR2_EXTERNAL=../buildroot-external/ fairphone2_defconfig
- Run
make BR2_EXTERNAL=../buildroot-external/ all
- Reboot your fp2 in fastboot mode.
- Run
fastboot flash userdata output/images/sdcard.img
- Reboot your phone
- 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)
- Type
ssh [email protected]
, password isroot
- Make sure you can ssh to your FP2 by following the previous section
- 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
- You then need to edit your SSID and passkey in
/etc/wpa_supplicant.conf
network={
#key_mgmt=WPA-PSK
ssid="YOURSSID"
psk="YOURPSK"
}
- Make sure you save both of these files, then type
reboot
- Once network is started, you should be able to see your fp2 on your wifi network
- Edit
buildroot-external/board/fairphone2/overlay/etc/netwotk/interfaces
andbuildroot-external/board/fairphone2/overlay/etc/wpa_supplicant.conf
as described in the previous section - Run
cd buildroot && make BR2_EXTERNAL=../buildroot-external/ all
- Reboot your phone in fastboot mode
- Run
fastboot flash userdata output/images/sdcard.img
- Run
fastboot reboot
- You should see your phone on your wifi network once it's restarted
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:
- run 'make menuconfig'
- select the target architecture and the packages you wish to compile
- run 'make'
- wait while it compiles
- 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