beagleboard / meta-beagleboard

Support for beagleboard.org devices
MIT License
71 stars 63 forks source link

DTB generation for last step of u-boot #8

Open fenrig opened 11 years ago

fenrig commented 11 years ago

in " meta-beagleboard / common-bsp / conf / machine / beaglebone.conf " there is a missing line: KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/am355x-boneblack.dts". This is needed for dtb generation ( http://www.wiki.xilinx.com/Build+Device+Tree+Blob#x-Task Description-Creating a Device Tree Source (.dts) file ) Error uboot without dtb (you can get dtb from other distro's as well, look at archlinux arm image in /boot/dtbs):

micro SD card found
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
gpio: pin 55 (gpio 55) value is 1
4277208 bytes read in 516 ms (7.9 MiB/s)
gpio: pin 56 (gpio 56) value is 1
** File not found /boot/am335x-boneblack.dtb **
Booting from mmc ...
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.8.13
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4277144 Bytes = 4.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree

This results in a new bug in " meta-beagleboard / common-bsp / recipes-kernel / linux / linux.inc " because there is no "package_stagefile_shell()", I fixed it by copying it from " meta / recipes-kernel / linux / linux-dtb.inc " . Now I'm still a beginner at OE and yocto (I used yocto v9) so maybe this is a ugly workaround. If you want I can send a guide of how I did this (allthough it's not that complex)

Error output: of chain bug:

edna@edna-virtual-machine:~/yocto/poky-dylan-9.0.1/build$ MACHINE=beaglebone bitbake core-image-minimal
WARNING: Host distribution "Ubuntu-13.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |#########################################| Time: 00:00:32
Parsing of 1234 .bb files complete (0 cached, 1234 parsed). 1598 targets, 49 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    
common-bsp        = "<unknown>:<unknown>"
meta-oe           = "master:46354a697c18a64c5836159adf8dbd92e6547e85"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_devicetree_image (see /home/edna/yocto/poky-dylan-9.0.1/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-mainline/3.8.13-r23a/temp/log.do_devicetree_image.3545 for further information)
ERROR: Logfile of failure stored in: /home/edna/yocto/poky-dylan-9.0.1/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-mainline/3.8.13-r23a/temp/log.do_devicetree_image.3545
Log data follows:
| DEBUG: Executing shell function do_devicetree_image
| Warning: blob size 18286 >= minimum size 12288
| /home/edna/yocto/poky-dylan-9.0.1/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-mainline/3.8.13-r23a/temp/run.do_devicetree_image.3545: 89: /home/edna/yocto/poky-dylan-9.0.1/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-mainline/3.8.13-r23a/temp/run.do_devicetree_image.3545: package_stagefile_shell: not found
| ERROR: Function failed: do_devicetree_image (see /home/edna/yocto/poky-dylan-9.0.1/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-mainline/3.8.13-r23a/temp/log.do_devicetree_image.3545 for further information)
ERROR: Task 775 (/home/edna/yocto/poky-dylan-9.0.1/meta-beagleboard-master/common-bsp/recipes-kernel/linux/linux-mainline_3.8.bb, do_devicetree_image) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1605 tasks of which 1604 didn't need to be rerun and 1 failed.
No currently running tasks (987 of 1618)

Summary: 1 task failed:
  /home/edna/yocto/poky-dylan-9.0.1/meta-beagleboard-master/common-bsp/recipes-kernel/linux/linux-mainline_3.8.bb, do_devicetree_image
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
romix5417 commented 9 years ago

I have the same problem,Did u solve it?


U-Boot 2015.07 (Jul 20 2015 - 16:11:25 +0800)

   Watchdog enabled

I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *\ Warning - bad CRC, using default environment

Net: not set. Validating first E-fuse MAC cpsw, usb_ether Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr \ Unable to read file boot.scr reading uEnv.txt 788 bytes read in 4 ms (192.4 KiB/s) Loaded environment from uEnv.txt Importing environment from mmc ... Running uenvcmd ... switch to partitions #0, OK mmc1(part 0) is current device switch to partitions #0, OK mmc0 is current device 3366872 bytes read in 212 ms (15.1 MiB/s) Booting from external microSD... \ File not found /boot/dtbs/am335x-boneblack.dtb 3366872 bytes read in 212 ms (15.1 MiB/s) \ File not found /boot/dtbs/am335x-boneblack.dtb ** Kernel image @ 0x82000000 [ 0x000000 - 0x335fd8 ] data abort pc : [<9ff5f688>] lr : [<9ff5f9b8>] reloc pc : [<80816688>] lr : [<808169b8>] sp : 9ef28890 ip : 010d8770 fp : 9ef313f8 r10: 9ffa4ec4 r9 : 9ef28ed8 r8 : 9ffa4ec0 r7 : 00000000 r6 : 00000002 r5 : 9ef313dc r4 : 9ffa4e28 r3 : 00000000 r2 : 00000000 r1 : 9ef313dc r0 : 00000000 Flags: nZCv IRQs off FIQs on Mode SVC_32 Resetting CPU ...

resetting ...