Bump buidlroot version to 2018.02.6
This commit is contained in:
25
bsp/buildroot/board/zynq/genimage.cfg
Normal file
25
bsp/buildroot/board/zynq/genimage.cfg
Normal file
@@ -0,0 +1,25 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"boot.bin",
|
||||
"u-boot.img",
|
||||
"devicetree.dtb",
|
||||
"uImage"
|
||||
}
|
||||
file uramdisk.image.gz {
|
||||
image = "rootfs.cpio.uboot"
|
||||
}
|
||||
}
|
||||
size = 32M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
}
|
||||
13
bsp/buildroot/board/zynq/post-image.sh
Executable file
13
bsp/buildroot/board/zynq/post-image.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# By default U-Boot loads DTB from a file named "devicetree.dtb", so
|
||||
# let's use a symlink with that name that points to the *first*
|
||||
# devicetree listed in the config.
|
||||
|
||||
FIRST_DT=$(sed -n \
|
||||
's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([a-z0-9\-]*\).*"$/\1/p' \
|
||||
${BR2_CONFIG})
|
||||
|
||||
[ -z "${FIRST_DT}" ] || ln -fs ${FIRST_DT}.dtb ${BINARIES_DIR}/devicetree.dtb
|
||||
|
||||
support/scripts/genimage.sh -c board/zynq/genimage.cfg
|
||||
@@ -14,13 +14,13 @@ Steps to create a working system for a Zynq board:
|
||||
make zynq_microzed_defconfig (MicroZed)
|
||||
2) make
|
||||
3) All needed files will be available in the output/images directory.
|
||||
Create a FAT32 partition at the beginning of your SD Card and copy files:
|
||||
- boot.bin
|
||||
- u-boot.img
|
||||
- uImage
|
||||
- uramdisk.image.gz (should be renamed from rootfs.cpio.uboot)
|
||||
- devicetree.dtb (should be renamed from zynq-***.dtb)
|
||||
into your SD card
|
||||
The sdcard.img file is a complete bootable image ready to be written
|
||||
on the boot medium. To install it, simply copy the image to an SD
|
||||
card:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
4) boot your board
|
||||
|
||||
You can alter the booting procedure by creating a file uEnv.txt
|
||||
|
||||
Reference in New Issue
Block a user