Skip to contentSkip to conversation

configs/freescale_t1040d4rdb_defconfig: new board

PATCH New Matt Weber 2 participants 2 messages Mar 9, 2018 – Mar 11, 2018

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 configs/freescale_t1040d4rdb_defconfig: new board

The T1 QoriQ from NXP has had a few varients of RDB dev boards. This target is against the latest D4RDB version. Any of the other versions before D4RDB (plain RDB), may require backing off the uboot version to SDK 1.6 and/or adjusting the kernel dtb used.

This board configuration provides an upstream kernel build which has been verified to boot on target.

The target assumes the user still uses the NXP suggested prebuilts in the SDK2.0 (last release for PowerPC). If a uboot rebuild is required, the source for SDK2.0 can be found in the following repo.

http://git.freescale.com/git/cgit.cgi/ppc/sdk/u-boot.git/tag/?id=fsl-sdk-v2.0-1703

---
 .gitlab-ci.yml                         |  1 +
 DEVELOPERS                             |  2 ++
 board/freescale/t1040d4rdb/readme.txt  | 24 ++++++++++++++++++++++++
 configs/freescale_t1040d4rdb_defconfig | 20 ++++++++++++++++++++
 4 files changed, 47 insertions(+)
 create mode 100644 board/freescale/t1040d4rdb/readme.txt
 create mode 100644 configs/freescale_t1040d4rdb_defconfig
.gitlab-ci.yml +1 -0
index 6ed70d9..60ffac4 100644
@@ -122,6 +122,7 @@ freescale_imx6sxsabresd_defconfig: *defconfig
 freescale_imx6ulevk_defconfig: *defconfig
 freescale_imx7dsabresd_defconfig: *defconfig
 freescale_p1025twr_defconfig: *defconfig
+freescale_t1040d4rdb_defconfig: *defconfig
 friendlyarm_nanopi_a64_defconfig: *defconfig
 friendlyarm_nanopi_neo2_defconfig: *defconfig
 galileo_defconfig: *defconfig
DEVELOPERS +2 -0
index 88e04db..68c442f 100644
@@ -1150,7 +1150,9 @@ F:	package/ts4900-fpga/
 
 N:	Matt Weber <[email protected]>
 F:	board/freescale/p*
+F:	board/freescale/t*
 F:	configs/freescale_p*
+F:	configs/freescale_t*
 F:	package/argp-standalone/
 F:	package/aufs/
 F:	package/aufs-util/
board/freescale/t1040d4rdb/readme.txt new file +24 -0
new file mode 100644
index 0000000..04d6b01
@@ -0,0 +1,24 @@
+For the bootloader, NXP has stablized at SDK2.0 (final release). It is
+suggested to download the prebuilt from NXP downloads and follow the
+release notes for reflashing.
+
+To program the kernel and rootfs created by buildroot into the flash. The
+fast way is to tftp transfer the files via one of the network interfaces.
+Make sure your devkit has ipaddr and serverip defined to reach your tftp
+server.
+
+(Assuming the default u-boot env from NXP)
+1. Program the DTB to NOR flash
+
+    => tftpboot $loadaddr t1040d4rdb.dtb; protect off 0xe8800000 +$filesize; erase 0xe8800000 +$filesize; cp.b $loadaddr 0xe8800000 $filesize; protect on 0xe8800000 +$filesize; cmp.b $loadaddr 0xe8800000 $filesize
+
+2. Program the kernel and rootfs to NOR flash
+
+    => tftpboot $loadaddr uImage; protect off 0xe8020000 +$filesize; erase 0xe8020000 +$filesize; cp.b $loadaddr 0xe8020000 $filesize; protect on 0xe8020000 +$filesize; cmp.b $loadaddr 0xe8020000 $filesize
+    => tftpboot $loadaddr rootfs.cpio.uboot; protect off 0xe9300000 +$filesize; erase 0xe9300000 +$filesize; cp.b $loadaddr 0xe9300000 $filesize; protect on 0xe9300000 +$filesize; cmp.b $loadaddr 0xe9300000 $filesize
+
+3. Booting your new system
+
+    => boot
+
+    You can login with user "root".
configs/freescale_t1040d4rdb_defconfig new file +20 -0
new file mode 100644
index 0000000..6b09e69
@@ -0,0 +1,20 @@
+# Architecture
+BR2_powerpc64=y
+BR2_powerpc_e5500=y
+
+# Serial port config
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.15.7"
+BR2_LINUX_KERNEL_DEFCONFIG="corenet64_smp"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="fsl/t1040d4rdb"
+
+# Filesystem
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
+# BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 configs/freescale_t1040d4rdb_defconfig: new board

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Matt" == Matt Weber <[email protected]> writes:

The T1 QoriQ from NXP has had a few varients of RDB dev boards. This target is against the latest D4RDB version. Any of the other versions before D4RDB (plain RDB), may require backing off the uboot version to SDK 1.6 and/or adjusting the kernel dtb used.

This board configuration provides an upstream kernel build which has been verified to boot on target.

Quoted 7 lines

The target assumes the user still uses the NXP suggested prebuilts in the SDK2.0 (last release for PowerPC). If a uboot rebuild is required, the source for SDK2.0 can be found in the following repo.

http://git.freescale.com/git/cgit.cgi/ppc/sdk/u-boot.git/tag/?id=fsl-sdk-v2.0-1703

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard