mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
26
board/pandaboard/genimage.cfg
Normal file
26
board/pandaboard/genimage.cfg
Normal file
@@ -0,0 +1,26 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"MLO",
|
||||
"u-boot.img"
|
||||
}
|
||||
}
|
||||
size = 8M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
16
board/pandaboard/post-image.sh
Executable file
16
board/pandaboard/post-image.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
genimage \
|
||||
--rootpath "${TARGET_DIR}" \
|
||||
--tmppath "${GENIMAGE_TMP}" \
|
||||
--inputpath "${BINARIES_DIR}" \
|
||||
--outputpath "${BINARIES_DIR}" \
|
||||
--config "${GENIMAGE_CFG}"
|
||||
|
||||
exit $?
|
||||
46
board/pandaboard/readme.txt
Normal file
46
board/pandaboard/readme.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
Pandaboard
|
||||
==========
|
||||
|
||||
This file documents the Buildroot support for the Pandaboard, a
|
||||
low-power, low-cost single-board computer development platform based
|
||||
on the Texas Instruments OMAP4 system on a chip (SoC).
|
||||
|
||||
Configuring and building Buildroot
|
||||
----------------------------------
|
||||
|
||||
Start from the defconfig:
|
||||
|
||||
$ make pandaboard_defconfig
|
||||
|
||||
You can edit build options the usual way:
|
||||
|
||||
$ make menuconfig
|
||||
|
||||
When you are happy with the setup, run:
|
||||
|
||||
$ make
|
||||
|
||||
The result of the build with the default settings should be these files:
|
||||
|
||||
output/images
|
||||
+-- MLO
|
||||
+-- omap4-panda-a4.dtb
|
||||
+-- omap4-panda.dtb
|
||||
+-- omap4-panda-es.dtb
|
||||
+-- rootfs.ext4
|
||||
+-- sdcard.img
|
||||
+-- u-boot.img
|
||||
+-- zImage
|
||||
|
||||
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.
|
||||
|
||||
Copy the bootable "sdcard.img" onto an SD card with "dd":
|
||||
|
||||
$ sudo dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where /dev/sdX is the device node of your SD card (may be /dev/mmcblkX
|
||||
instead depending on setup).
|
||||
Reference in New Issue
Block a user