mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 18:28:23 +01:00
Added support for generating NextThingCo u-boot binaries
uboot-env.bin sunxi-spl-with-ecc.bin u-boot-dtb.bin Signoff, Rikard Söderström <soderstrom.rikard@gmail.com>
This commit is contained in:
parent
8e30f9cbae
commit
daf8c39312
27
recipes-bsp/u-boot/files/uboot-env-chip
Normal file
27
recipes-bsp/u-boot/files/uboot-env-chip
Normal file
@ -0,0 +1,27 @@
|
||||
# Standard I/O
|
||||
stdin=serial
|
||||
stdout=serial,vga
|
||||
stderr=serial,vga
|
||||
console=ttyS0,115200
|
||||
|
||||
# Load addresses
|
||||
bootm_size=0xf000000
|
||||
fdt_addr_r=0x43000000
|
||||
kernel_addr_r=0x42000000
|
||||
scriptaddr=0x43100000
|
||||
pxefile_addr_r=0x43200000
|
||||
ramdisk_addr_r=0x43300000
|
||||
|
||||
# DT Options
|
||||
fdtfile=sun5i-r8-chip.dtb
|
||||
|
||||
# NAND Options
|
||||
mtdids=nand0=sunxi-nand.0
|
||||
mtdparts=mtdparts=sunxi-nand.0:4m(spl),4m(spl-backup),4m(uboot),4m(env),-(UBI)
|
||||
|
||||
# Default boot options
|
||||
bootargs=root=ubi0:rootfs rootfstype=ubifs rw ubi.mtd=4 consoleblank=0
|
||||
bootcmd=nand slc-mode on; mtdparts; ubi part UBI; ubifsmount ubi0:rootfs; ubifsload $fdt_addr_r /boot/sun5i-r8-chip.dtb; ubifsload $kernel_addr_r /boot/zImage; bootz $kernel_addr_r - $fdt_addr_r
|
||||
|
||||
# Ethernet options
|
||||
usbnet_devaddr=de:ad:be:af:00:01
|
@ -32,4 +32,49 @@ PV = "v2015.10${SRCPV}"
|
||||
|
||||
PE = "1"
|
||||
|
||||
SPL_BINARY="u-boot-sunxi-with-spl.bin"
|
||||
# sunxi-spl.bin
|
||||
SUNXI_SPL_IMAGE = "sunxi-spl-with-ecc"
|
||||
SUNXI_SPL_BINARY = "${SUNXI_SPL_IMAGE}.bin"
|
||||
SUNXI_SPL_SYMLINK = "${SUNXI_SPL_BINARY}-${MACHINE}"
|
||||
|
||||
# u-boot-dtb.bin
|
||||
UBOOT_DTB_IMAGE = "u-boot-dtb"
|
||||
UBOOT_DTB_BINARY = "${UBOOT_DTB_IMAGE}.bin"
|
||||
UBOOT_DTB_SYMLINK = "${SUNXI_SPL_BINARY}-${MACHINE}"
|
||||
|
||||
# uboot-env.bin
|
||||
UBOOT_ENV_SUFFIX = "bin"
|
||||
UBOOT_ENV = "uboot-env"
|
||||
|
||||
do_compile_append() {
|
||||
${S}/tools/mkenvimage -s "0x400000" -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/uboot-env-chip
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
# Install sunxi-spl and u-boot-dtb
|
||||
install ${S}/spl/${SUNXI_SPL_BINARY} ${D}/boot/${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SUNXI_SPL_BINARY}-${type}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SUNXI_SPL_BINARY}
|
||||
|
||||
install ${S}/${UBOOT_DTB_BINARY} ${D}/boot/${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${UBOOT_DTB_BINARY}-${type}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${UBOOT_DTB_BINARY}
|
||||
}
|
||||
|
||||
do_deploy_append() {
|
||||
# Deploy sunxi-spl and u-boot-dtb
|
||||
install ${S}/spl/${SUNXI_SPL_BINARY} ${DEPLOYDIR}/${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR}
|
||||
rm -f ${DEPLOYDIR}/${SUNXI_SPL_BINARY} ${DEPLOYDIR}/${SUNXI_SPL_SYMLINK}-${type}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SUNXI_SPL_BINARY}-${type}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SUNXI_SPL_BINARY}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SUNXI_SPL_SYMLINK}-${type}
|
||||
ln -sf ${SUNXI_SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SUNXI_SPL_SYMLINK}
|
||||
|
||||
|
||||
install ${S}/${UBOOT_DTB_BINARY} ${DEPLOYDIR}/${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR}
|
||||
rm -f ${DEPLOYDIR}/${UBOOT_DTB_BINARY} ${DEPLOYDIR}/${UBOOT_DTB_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${UBOOT_DTB_BINARY}-${type}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${UBOOT_DTB_BINARY}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${UBOOT_DTB_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_DTB_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${UBOOT_DTB_SYMLINK}
|
||||
}
|
||||
|
3223
recipes-kernel/linux/linux-chip/defconfig
Normal file
3223
recipes-kernel/linux/linux-chip/defconfig
Normal file
File diff suppressed because it is too large
Load Diff
@ -18,7 +18,9 @@ RDEPENDS_kernel-base += "kernel-devicetree"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
|
||||
SRC_URI = "git://github.com/NextThingCo/CHIP-linux.git;protocol=git;branch=nextthing/4.3/chip"
|
||||
SRC_URI = " \
|
||||
git://github.com/nextthingco/chip-linux.git;protocol=git;branch=nextthing/4.3/chip \
|
||||
file://defconfig"
|
||||
|
||||
SRCREV = "713c5d272aa0db19ba6440597bcb32b68cb2ab2f"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user