简体   繁体   English

pocketBeagle 的 buildroot defconfig 不起作用

[英]buildroot defconfig for pocketBeagle is not working

I have a pocketbeagle board and I was trying to build an os image for it using buildroot.我有一个 pocketbeagle 板,我正在尝试使用 buildroot 为它构建一个操作系统映像。 so I downloaded the latest buildroot, there was no defconfig file for pocketbeagle.所以我下载了最新的 buildroot,没有pocketbeagle 的 defconfig文件。 so decided to use beaglebone_defconfig .所以决定使用beaglebone_defconfig The build was successful but when I try to boot the pocketbeagle with this image it is continuously printing this message on the uart console:构建成功,但当我尝试使用此图像启动 pocketbeagle 时,它会不断在 uart 控制台上打印此消息:

Could not initialize timer (err -19)无法初始化计时器(错误 -19)
Could not initialize timer (err -19)无法初始化计时器(错误 -19)
Could not initialize timer (err -19)无法初始化计时器(错误 -19)
Could not initialize timer (err -19)无法初始化计时器(错误 -19)
Could not initialize timer (err -19)无法初始化计时器(错误 -19)
Could not initialize timer (err -19)无法初始化计时器(错误 -19)

I think this message is coming from uboot.我认为这条消息来自uboot。

This is the steps I used to build the image:这是我用来构建图像的步骤:

cd buildroot-2021.02.10
make beaglebone_defconfig
make

do I need to apply some patch?我需要应用一些补丁吗? or is it because of some other issue?还是因为其他问题? also tried with the buildroot available in beagleboard github repo.还尝试使用 beagleboard github 存储库中可用的 buildroot。

Obviously there are differences in the 2 boards.显然,2 块板存在差异。 Your build would succeed but wont run on pocket beagle because it is not meant to run on it.你的构建会成功,但不会在 pocket beagle 上运行,因为它不应该在它上面运行。

specifications规格 pocket beagle袖珍猎犬 Beagle bone猎犬骨
SoC片上系统 OSD3358-SM OSD3358-SM AM3358/9 AM3358/9
CPU中央处理器 Sitara AM3358 M Cortex-A8 Sitara AM3358 M 皮质-A8 Cortex-A8 + Dual PRU (200 MHz) Cortex-A8 + 双 PRU (200 MHz)
Frq (MHz)频率 (MHz) 1000 1000 720 720

To build BSP for pocket beagle follow below steps,要为袖珍比格犬构建 BSP,请按照以下步骤操作,

  1. In Target options – Change Target architecture to ARM (little endian) – Change Target architecture variant to Cortex-A8在 Target options – Change Target architecture to ARM (little endian) – 将 Target architecture variant 更改为 Cortex-A8

  2. In Build options, set global patch directories to board/e-ale/pocketbeagle/patches/.在构建选项中,将全局补丁目录设置为 board/e-ale/pocketbeagle/patches/。 This will allow you to put patches for Linux, U-Boot other packages in subdirectories of board/e-ale/pocketbeagle/patches/.这将允许您将 Linux、U-Boot 其他包的补丁放在 board/e-ale/pocketbeagle/patches/ 的子目录中。

  3. Toolchain - you can use external or internal.工具链 - 您可以使用外部或内部。

  4. In Kernel – Enable the Linux kernel, obviously.在 Kernel – 启用 Linux kernel,显然。 – Choose Custom version as the Kernel version – Choose 4.14,24 as Kernel version – Patches will already be applied to the kernel. thanks to us having defined a global patch directory above, – Choose omap2plus as the Defconfig name – We'll need the Device Tree of the PocketBeagle, so enable Build a Device Tree Blob (DTB) – And use am335x-pocketbeagle as the Device Tree Source file names – 选择自定义版本作为 Kernel 版本 – 选择 4.14,24 作为 Kernel 版本 – 补丁已经应用到 kernel。感谢我们在上面定义了全局补丁目录, – 选择 omap2plus 作为 Defconfig 名称 – 我们需要PocketBeagle 的设备树,因此启用构建设备树 Blob (DTB) – 并使用 am335x-pocketbeagle 作为设备树源文件名

  5. Target packages - as per your requirement.目标包 - 根据您的要求。

  6. In Filesystem images, enable ext2/3/4 root filesystem, select the ext4 variant.在文件系统映像中,启用 ext2/3/4 根文件系统,select ext4 变体。

  7. In Bootloaders, enable U-Boot, and in U-Boot: – Switch the Build system option to Kconfig: use U-Boot – Use a Custom version of value 2018.01.在 Bootloader 中,启用 U-Boot,并在 U-Boot 中: – 将构建系统选项切换为 Kconfig:使用 U-Boot – 使用值为 2018.01 的自定义版本。 – Use am335x_pocketbeagle as the Board defconfig – 使用 am335x_pocketbeagle 作为 Board defconfig

As you have noticed, in the configuration, you have referenced board/e-ale/pocketbeagle/ patches as a directory containing patches for various packages.正如您所注意到的,在配置中,您将 board/e-ale/pocketbeagle/patches 引用为包含各种包补丁的目录。 We now need to add the U-Boot and Linux patches that add support for the PocketBeagle, which are not upstream.我们现在需要添加 U-Boot 和 Linux 补丁,以添加对 PocketBeagle 的支持,它们不是上游的。 Use patches , and just copy it to board/e-ale/pocketbeagle so that you get the following directory hierarchy:使用patches ,并将其复制到 board/e-ale/pocketbeagle 以便获得以下目录层次结构: 目录

Then build the BSP and run on your device.然后构建 BSP 并在您的设备上运行。

source 来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM