From: Theo Debrouwere Date: Fri, 16 Dec 2016 23:27:49 +0100 Subject: [Buildroot] [PATCH] BeagleBoard X15: new board In-Reply-To: <87d1gsasv8.fsf@dell.be.48ers.dk> References: <20161215223730.4890-1-theo.debrouwere@skynet.be> <87d1gsasv8.fsf@dell.be.48ers.dk> Message-ID: <20161216222749.p2qhprdn3arg2bpc@skynet.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > > diff --git a/board/beagleboardx15/uEnv.txt b/board/beagleboardx15/uEnv.txt > > new file mode 100644 > > index 0000000..0af0eef > > --- /dev/null > > +++ b/board/beagleboardx15/uEnv.txt > > @@ -0,0 +1,9 @@ > > +# This uEnv.txt file can contain additional environment settings that you > > +# want to set in U-Boot at boot time. This can be simple variables such > > +# as the serverip or custom variables. The format of this file is: > > +# variable=value > > +# NOTE: This file will be evaluated after the bootcmd is run and the > > +# bootcmd must be set to load this file if it exists (this is the > > +# default on all newer U-Boot images. This also means that some > > +# variables such as bootdelay cannot be changed by this file since > > +# it is not evaluated until the bootcmd is run. > > Is this file really needed if it only contains comments? No, it isn't necessary. I just wanted to provide a sample file on the sd-card image. Should I remove it? > > > diff --git a/configs/beagleboardx15_defconfig b/configs/beagleboardx15_defconfig > > new file mode 100644 > > index 0000000..17181d9 > > --- /dev/null > > +++ b/configs/beagleboardx15_defconfig > > @@ -0,0 +1,33 @@ > > +BR2_arm=y > > +BR2_cortex_a15=y > > +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y > > +BR2_TARGET_GENERIC_HOSTNAME="beagleboardx15" > > +BR2_TARGET_GENERIC_GETTY_PORT="ttyS2" > > Does the kernel not boot with console=ttyS2,.. ? If so, then the default > of /dev/console should work as well. > U-boot (both ti's release & mainline) currently contains 'console=ttyO2', but the kernel 'changes' it to ttyS2. *snip* [ 0.000772] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2' [ 0.000779] This ensures that you still see kernel messages. Please [ 0.000784] update your kernel commandline. *snip* This can be fixed with this config line, although I can also provide a patch. Or fix it inside the uEnv.txt > > +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beagleboardx15/post-image.sh" > > +BR2_LINUX_KERNEL=y > > +BR2_LINUX_KERNEL_CUSTOM_GIT=y > > +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.ti.com/processor-sdk/processor-sdk-linux.git" > > +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="db0b54cdadef2d754ef7c2d8dd7300ef085985ef" > > +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y > > +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/beagleboardx15/linux-4.4.config" > > +BR2_LINUX_KERNEL_DTS_SUPPORT=y > > +BR2_LINUX_KERNEL_INTREE_DTS_NAME="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-evm am57xx-evm-reva3" > > +BR2_LINUX_KERNEL_INSTALL_TARGET=y > > +BR2_TARGET_ROOTFS_EXT2=y > > +BR2_TARGET_ROOTFS_EXT2_4=y > > +BR2_TARGET_UBOOT=y > > +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y > > +BR2_TARGET_UBOOT_CUSTOM_GIT=y > > +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.ti.com/ti-u-boot/ti-u-boot.git" > > +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="2f757e5b2c6b260c647a8a1bb295537f07c3a8b9" > > +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am57xx_evm" > > Are the custom repos needed? I see that mainline u-boot and Linux > atleast has "some" support for this defconfig / dts'es. I haven't checked if mainline has the same level of board support as TI's trees. Let me check that.