From owner-freebsd-arm@FreeBSD.ORG Tue Feb 19 17:15:34 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BCF1A4D7 for ; Tue, 19 Feb 2013 17:15:34 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 910C3735 for ; Tue, 19 Feb 2013 17:15:34 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r1JHFWwF074633; Tue, 19 Feb 2013 17:15:32 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id mjjgsin928d5xpxs4euifbvpf2; Tue, 19 Feb 2013 17:15:32 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: RPi hangs in bootloader Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <512360D0.6020709@thieprojects.ch> Date: Tue, 19 Feb 2013 09:15:31 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <51227033.3070304@thieprojects.ch> <5123427E.4030607@thieprojects.ch> <512360D0.6020709@thieprojects.ch> To: Werner Thie X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 17:15:34 -0000 On your x86 build machine: $ cd /usr/src/usr.bin/dtc $ make $ make install I'll add some more checks to the build script to test for dtc. (As of a couple of weeks ago, dtc is now built and installed by default, so this issue should be less common going forward.) Thanks for the diagnosis. Tim On Feb 19, 2013, at 3:24 AM, Werner Thie wrote: > Hi >=20 > top posting in this case: >=20 > The error is not in the log file, its spelled out on the console when = building the image: >=20 > : > Partitioning the raw disk image at Tue Feb 19 07:35:07 CET 2013 > md2 created > Setting up boot partition > Creating the FAT partition at Tue Feb 19 07:35:07 CET 2013 > md2s1 added > active set on md2s1 > Mounting the virtual FAT partition > beaglebsd.sh: dtc: not found > Installing ubldr > : >=20 > After cloning anew from > https://github.com/kientzle/freebsd-beaglebone.git >=20 > It seems that in the case of the RPi build the dtc is not compiled = anymore. My suspicion was right then, it all ends with a file amiss. >=20 > With two places in the scripts which supposedly should/will build the = devtree.dat file (one in board/RaspberryPi/setup.sh and the other in = lib/freebsd.sh) it should now be possible to find out what's going = wrong. >=20 > Thxs for listening, Werner >=20 > On 2/19/13 10:14 AM, Werner Thie wrote: >> Hi >>=20 >> now retracing the generated configuration which was autogenerated = from >> Tim Kientzle's scripts: >>=20 >> Content of the FAT boot partition: >>=20 >> 20 -rwxr-xr-x 1 root wheel 17764 Feb 18 17:57 bootcode.bin >> 4 -rwxr-xr-x 1 root wheel 105 Feb 18 17:57 config.txt >> 8 -rwxr-xr-x 1 root wheel 5284 Feb 18 17:57 fixup.dat >> 4 -rwxr-xr-x 1 root wheel 2018 Feb 18 17:57 fixup_cd.dat >> 16 -rwxr-xr-x 1 root wheel 16032 Feb 18 17:57 loader.hel >> 2300 -rwxr-xr-x 1 root wheel 2353656 Feb 18 17:57 start.elf >> 516 -rwxr-xr-x 1 root wheel 526828 Feb 18 17:57 start_cd.elf >> 240 -rwxr-xr-x 1 root wheel 242830 Feb 18 17:57 ubldr >> 308 -rwxr-xr-x 1 root wheel 312848 Feb 18 17:57 uboot.img >> 4 -rwxr-xr-x 1 root wheel 170 Feb 18 17:57 uenv.txt >>=20 >> Content of uEnv.txt: >>=20 >> loadbootscript=3Dfatload mmc 0 0x2000000 ubldr >> bootscript=3Dbootelf 0x2000000 >>=20 >> Content of config.txt: >>=20 >> device_tree=3Ddevtree.dat >> device_tree_address=3D0x100 >>=20 >> Content of /boot partition: >>=20 >> 4 drwxr-xr-x 7 root wthie 512 Feb 18 18:03 . >> 4 drwxr-xr-x 18 wthie wthie 1024 Feb 18 17:58 .. >> 4 drwxr-xr-x 2 root wheel 512 Feb 18 17:57 defaults >> 4 drwxr-xr-x 2 root wheel 512 Feb 18 17:57 firmware >> 4 drwxr-xr-x 2 root wheel 512 Feb 18 17:57 kernel >> 16 -r--r--r-- 1 root wheel 16032 Feb 18 17:58 loader.help >> 4 -rw-r--r-- 1 root wthie 15 Feb 18 18:03 loader.rc >> 4 drwxr-xr-x 2 root wheel 512 Feb 18 17:57 modules >> 192 -r-xr-xr-x 1 root wheel 195172 Feb 18 17:58 ubldr >> 4 drwxr-xr-x 2 root wheel 512 Feb 18 17:57 zfs >>=20 >> Content of /boot/loader.rc: >>=20 >> fdt addr 0x100 >>=20 >> The only thing which does not seem to fit is the mentioning of the = file >> devtree.dat, which is nowhere to be found. Also, no log file in the = work >> directory is referring to devtree.dat, which seems quite fishy to me. >>=20 >> I cloned a fresh version of uboot as advised by Tim's script, = according >> to git the u-boot-rpi is up to date, no changes made on my side. >>=20 >> In freebsd-beaglebone/u-boot-rpi >> git describe --tags >>=20 >> loadb_works-2174-g6709570 >>=20 >> That's about the end of my analysis, I'm stumped again. >>=20 >> Werner >>=20 >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"