mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-20 10:52:44 +01:00
Make buildroot a git submodule
This commit is contained in:
30
README.md
30
README.md
@@ -3,7 +3,7 @@
|
||||
Intro
|
||||
=====
|
||||
|
||||
This directory contains a buildroot external configuration for
|
||||
This directory contains a buildroot-based external configuration for
|
||||
building the FunKey.
|
||||
|
||||
How to build it
|
||||
@@ -14,8 +14,7 @@ Configure Buildroot
|
||||
|
||||
There is only one Funkey defconfig files in Buildroot:
|
||||
|
||||
$ make BR2_EXTERNAL=<Funkey directory> O=<Funkey directory>/output
|
||||
funkey_defconfig
|
||||
$ ./fun funkey_defconfig
|
||||
|
||||
Build the rootfs
|
||||
----------------
|
||||
@@ -23,9 +22,9 @@ Build the rootfs
|
||||
Note: you will need to have access to the network, since Buildroot
|
||||
will download the packages' sources.
|
||||
|
||||
You may now build your rootfs with:
|
||||
You may now build your FunKey with:
|
||||
|
||||
$ make BR2_EXTERNAL=<Funkey directory> O=<Funkey directory>/output
|
||||
$ ./have fun
|
||||
|
||||
(This may take a while, consider getting yourself a coffee ;-) )
|
||||
|
||||
@@ -34,14 +33,13 @@ Result of the build
|
||||
|
||||
After building, you should obtain this tree:
|
||||
|
||||
output/images/
|
||||
FunKey/output/images/
|
||||
+-- boot.scr
|
||||
+-- boot.vfat
|
||||
+-- rootfs.ext2
|
||||
+-- rootfs.ext4 -> rootfs.ext2
|
||||
+-- sdcard.img
|
||||
+-- sun8i-v3s-licheepi-zero-dock.dtb
|
||||
+-- sun8i-v3s-licheepi-zero.dtb
|
||||
+-- sun8i-v3s-funkey.dtb
|
||||
+-- u-boot.bin
|
||||
+-- u-boot-sunxi-with-spl.bin
|
||||
`-- zImage
|
||||
@@ -50,13 +48,17 @@ How to write the SD card
|
||||
========================
|
||||
|
||||
Once the build process is finished you will have an image called
|
||||
"sdcard.img" in the output/images/ directory.
|
||||
"sdcard.img" in the FunKey/output/images/ directory.
|
||||
|
||||
Copy the bootable "sdcard.img" onto an SD card with "dd":
|
||||
|
||||
$ sudo dd if=<Funkey directory>/output/images/sdcard.img of=/dev/sdX
|
||||
$ sudo dd if=<Funkey directory>/FunKey/output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Insert the SDcard into your Funkey board, and power it up. Your new
|
||||
system should come up now and start two consoles: one on the serial
|
||||
port on the P1 header, one on the LCD output where you can login using
|
||||
a USB keyboard.
|
||||
Alternatively, you can use the Etcher graphical tool to burn the image
|
||||
to the SD card safely and on any platform:
|
||||
|
||||
https://etcher.io/
|
||||
|
||||
Once the SD card is burned, insert it into your FunKey board, and
|
||||
power it up. Your new system should come up now and start a console on
|
||||
the UART0 serial port.
|
||||
|
||||
Reference in New Issue
Block a user