|
@@ -1,40 +1,25 @@
|
|
|
-Prepare the SD card for the Minnow Board
|
|
|
+How to get started with the MinnowBoard
|
|
|
========================================
|
|
|
|
|
|
- 1. Partition the SD card with a GPT partition table
|
|
|
+1. Build
|
|
|
|
|
|
- sudo cgdisk /dev/mmcblk0
|
|
|
+ Apply the defconfig:
|
|
|
|
|
|
- Create two partitions:
|
|
|
+ $ make minnowboard_defconfig
|
|
|
|
|
|
- a) First partition of a few dozens of megabytes, which will be
|
|
|
- used to store the bootloader and the kernel image. Type must
|
|
|
- be EF00 (EFI partition).
|
|
|
+ Add any additional packages required and build:
|
|
|
|
|
|
- b) Second partition of any size, which will be used to store the
|
|
|
- root filesystem. Type must be 8300 (Linux filesystem)
|
|
|
+ $ make
|
|
|
|
|
|
- 2. Prepare the boot partition
|
|
|
+2. Write the SD card
|
|
|
|
|
|
- We will format it, mount it, copy the EFI data generated by
|
|
|
- Buildroot, and the kernel image.
|
|
|
+ The build process will create a SD card image in output/images.
|
|
|
+ Write the image to an mSD card, insert into the MinnowBoard
|
|
|
+ and power the board on.
|
|
|
|
|
|
- sudo mkfs.vfat -F 32 -n boot /dev/mmcblk0p1
|
|
|
- sudo mount /dev/mmcblk0p1 /mnt
|
|
|
- sudo cp -a output/images/efi-part/* /mnt/
|
|
|
- sudo cp output/images/bzImage /mnt/
|
|
|
- sudo umount /mnt
|
|
|
+ $ dd if=output/images/sdcard.img of=/dev/mmcblk0; sync
|
|
|
|
|
|
- 3. Prepare the root partition
|
|
|
-
|
|
|
- We will format it, mount it, and extract the root filesystem.
|
|
|
-
|
|
|
- sudo mkfs.ext3 -L root /dev/mmcblk0p2
|
|
|
- sudo mount /dev/mmcblk0p2 /mnt
|
|
|
- sudo tar -C /mnt -xf output/images/rootfs.tar
|
|
|
- sudo umount /mnt
|
|
|
-
|
|
|
- 4. Enjoy
|
|
|
+3. Enjoy
|
|
|
|
|
|
Additional information about this board can be found at
|
|
|
http://www.minnowboard.org/.
|