summaryrefslogtreecommitdiff
path: root/target/arm
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-07-21 10:45:23 +0200
committerWademar Brodkorb <wbx@openadk.org>2024-07-26 02:01:00 +0200
commit53ae57d2fc53ba087b608533f8cde8550a56ead4 (patch)
tree2ef0cd6cae3eb297159957b3d71a14b8c36ffc3c /target/arm
parent68c544510b2fa2a8f81ebc8a5ec351beeb0b596c (diff)
fixes for beagebone black
Diffstat (limited to 'target/arm')
-rw-r--r--target/arm/Makefile14
-rw-r--r--target/arm/beaglebone-black/extlinux.conf4
-rw-r--r--target/arm/beaglebone-black/genimage.cfg10
3 files changed, 24 insertions, 4 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile
index d6dab6af0..1f449dbe9 100644
--- a/target/arm/Makefile
+++ b/target/arm/Makefile
@@ -85,6 +85,11 @@ ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6),y)
@echo "sudo ./scripts/install.sh phytec-imx6 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
@echo
endif
+ifeq ($(ADK_TARGET_SYSTEM_BEAGEBONE_BLACK),y)
+ @echo "Use following command to install it on SD card:"
+ @echo "sudo ./scripts/install.sh beaglebone-black /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
+ @echo
+endif
ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y)
@echo "Use following command to install it on SD card:"
@echo "sudo ./scripts/install.sh banana-pro /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
@@ -175,7 +180,7 @@ ifeq ($(ADK_TARGET_FS),squashfs)
dd conv=notrunc if=$(BUILD_DIR)/root.squashfs of=$(FW_DIR)/$(ROOTFSSQUASHFS)
endif
-ifeq ($(ADK_TARGET_LINUX_KERNEL_VERSION_6_6)$(ADK_TARGET_LINUX_KERNEL_VERSION_6_9),y)
+ifeq ($(ADK_TARGET_LINUX_KERNEL_VERSION_6_6)$(ADK_TARGET_LINUX_KERNEL_VERSION_6_9)$(ADK_TARGET_LINUX_KERNEL_VERSION_GIT),y)
ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB),y)
VENDOR:=arm/
endif
@@ -194,6 +199,9 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
VENDOR:=nxp/imx/
endif
+ifeq ($(ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK),y)
+VENDOR:=ti/omap/
+endif
endif
dtb-install:
@@ -218,8 +226,8 @@ ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6),y)
cp $(LINUX_DIR)/arch/arm/boot/dts/imx6q-phytec-pbab01.dtb ${TARGET_DIR}/boot
endif
ifeq ($(ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK),y)
- ${KERNEL_MAKE} am335x-boneblack.dtb $(MAKE_TRACE)
- cp $(LINUX_DIR)/arch/arm/boot/dts/am335x-boneblack.dtb ${TARGET_DIR}/boot
+ ${KERNEL_MAKE} $(VENDOR)am335x-boneblack.dtb $(MAKE_TRACE)
+ cp $(LINUX_DIR)/arch/arm/boot/dts/$(VENDOR)am335x-boneblack.dtb ${TARGET_DIR}/boot
endif
ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
${KERNEL_MAKE} dtbs $(MAKE_TRACE)
diff --git a/target/arm/beaglebone-black/extlinux.conf b/target/arm/beaglebone-black/extlinux.conf
new file mode 100644
index 000000000..d750a5845
--- /dev/null
+++ b/target/arm/beaglebone-black/extlinux.conf
@@ -0,0 +1,4 @@
+label beaglebone-black
+ kernel /kernel
+ fdtdir /
+ append console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
diff --git a/target/arm/beaglebone-black/genimage.cfg b/target/arm/beaglebone-black/genimage.cfg
index b09ee55a1..6328a4397 100644
--- a/target/arm/beaglebone-black/genimage.cfg
+++ b/target/arm/beaglebone-black/genimage.cfg
@@ -4,12 +4,15 @@ image boot.vfat {
"MLO",
"u-boot.img",
"uEnv.txt",
+ "kernel",
+ "am335x-boneblack.dtb",
+ "extlinux"
}
}
size = 16M
}
-image disk.img {
+image sdcard.img {
hdimage {
}
@@ -24,4 +27,9 @@ image disk.img {
image = "rootfs.ext"
size = 512M
}
+
+ partition cfgfs {
+ partition-type = 0x88
+ image = "cfgfs.img"
+ }
}