Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2017 11:25:01 -0600
From:      Karl Denninger <karl@denninger.net>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: RPI2 boot failure with recent changes to u-boot
Message-ID:  <401bad68-a6f4-ff9f-49e5-431c9441dde7@denninger.net>
In-Reply-To: <1513614709.95072.48.camel@freebsd.org>
References:  <20ad35ef-2166-c429-fad6-21fedef1ff0e@denninger.net> <1513614709.95072.48.camel@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On 12/18/2017 10:31, Ian Lepore wrote:
> On Mon, 2017-12-18 at 10:24 -0600, Karl Denninger wrote:
>> I recently upgraded my "u-boot" package for RPI2 to the current
>> version
>> (and grabbed the "rpi-firmware" package it said it needed) and now I
>> have no-start on the RPI2....
>>
>> U-Boot 2017.09 (Dec 12 2017 - 18:48:47 +0000)
>>
>> DRAM:  948 MiB
>> RPI 2 Model B (0xa21041)
>> MMC:   sdhci@7e300000: 0
>> reading uboot.env
>>
>> ** Unable to read "uboot.env" from mmc0:1 **
>> Using default environment
>>
>> In:    serial
>> Out:   vidconsole
>> Err:   vidconsole
>> Net:   No ethernet found.
>> starting USB...
>> USB0:   Core Release: 2.80a
>> scanning bus 0 for devices... 3 USB Device(s) found
>>        scanning usb for storage devices... 0 Storage Device(s) found
>> Hit any key to stop autoboot:  0
>> switch to partitions #0, OK
>> mmc0 is current device
>> Scanning mmc 0:1...
>> Found FreeBSD U-Boot Loader (bin)
>> reading ubldr.bin
>> 227704 bytes read in 34 ms (6.4 MiB/s)
>> ## Starting application at 0x01000000 ...
>>
>> And that be all I get.
>>
>> This is what I have in board/RaspberryPi2/setup.sh related to that
>> (which I had to change since the firmware files have been split
>> between
>> the two packages)
>>
>> raspberry_pi_populate_boot_partition ( ) {
>>     # Copy RaspberryPi 2 boot files to FAT partition
>>     cp ${FIRMWARE_PATH}/LICENCE.broadcom .
>>     cp ${FIRMWARE_PATH}/bootcode.bin .
>>     cp ${FIRMWARE_PATH}/config.txt .
>>     cp ${FIRMWARE_PATH}/fixup.dat .
>>     cp ${FIRMWARE_PATH}/fixup_cd.dat .
>>     cp ${FIRMWARE_PATH}/fixup_x.dat .
>>     cp ${FIRMWARE_PATH}/start.elf .
>>     cp ${FIRMWARE_PATH}/start_cd.elf .
>>     cp ${FIRMWARE_PATH}/start_x.elf .
>>     cp ${UBOOT_PATH}/u-boot.bin .
>>     cp ${UBOOT_PATH}/fixup_db.dat .
>>     cp ${UBOOT_PATH}/start_db.elf .
>>     cp ${UBOOT_PATH}/README .
>>
>>     # RPi firmware loads and modify the DTB before pass it to kernel.
>>     freebsd_install_fdt rpi2.dts rpi2.dtb
>>
>>     # Install ubldr to FAT partition
>>     freebsd_ubldr_copy_ubldr .
>> }
>>
>> Any ideas on tracking this down?
>>
> How recent is your ubldr.bin?  About a week ago in r326752 I committed
> the patches from PR 224008, which affects the startup code for
> ubldr.bin, so it could possibly be a fix for the problem you're seeing.
>
> (I don't have an rpi2 to test so I can't say for sure.)
>
> -- Ian
I updated the 11.x source tree I use to build this and now I get
further.....

U-Boot 2017.09 (Dec 12 2017 - 18:48:47 +0000)

DRAM:  948 MiB
RPI 2 Model B (0xa21041)
MMC:   sdhci@7e300000: 0
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
USB0:   Core Release: 2.80a
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found FreeBSD U-Boot Loader (bin)
reading ubldr.bin
235040 bytes read in 33 ms (6.8 MiB/s)
## Starting application at 0x01000000 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0x3af5d988

FreeBSD/armv6 U-Boot loader, Revision 1.2
(Mon Dec 18 11:14:37 CST 2017 freebsd@NewFS.denninger.net)

DRAM: 948MB
Number of U-Boot devices: 1
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
  Probing all disk devices...
  Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2a:
/boot/kernel/kernel text=0x617118 data=0x54300+0x17fbc0
syms=[0x4+0x67d30+0x4+0x9480c]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
No valid device tree blob found!

Type '?' for a list of commands, 'help' for more detailed help.
loader>


Am  I missing a line in config.txt that needs to be there or did
something else odd happen that the dtb is missing?

-- 
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

[-- Attachment #2 --]
0	*H
010
	`He0	*H

00H^Ōc!5
H0
	*H
010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems CA1!0UCuda Systems LLC 2017 CA0
170817164217Z
270815164217Z0{10	UUS10UFlorida10U
Cuda Systems LLC10UCuda Systems CA1%0#UCuda Systems LLC 2017 Int CA0"0
	*H
0
h-5B>[;olӴ0~͎O9}9Ye*$g!ukvʶLzN`jL>MD'7U45CB+kY`bd~b*c3Ny-78ju]9HeuέsӬDؽmgwER?&UURj'}9nWD i`XcbGz\gG=u%\Oi13ߝ4
K44pYQr]Ie/r0+eEޝݖ0C15Mݚ@JSZ(zȏNTa(25DD5.l<g[[ZarQQ%Buȴ~~`IohRbʳڟu2MS8EdFUClCMaѳ!}ș+2k/bųE,n当ꖛ\(8WV8	d]b	yXw	܊:I39
00U]^§Q\ӎ0U#0T039N0b010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems CA1!0UCuda Systems LLC 2017 CA	@Ui0U00U0
	*H
:P U!>vJnio-#ן]WyujǑR̀Q
nƇ!GѦFg\yLxgw=OPycehf[}ܷ['4ڝ\[p6\o.B&JF"ZC{;*o*mcCcLY߾`
t*S!񫶭(`]DHP5A~/NPp6=mhk밣'doA$86hm5ӚS@jެEgl
)0JG`%k35PaC?σ
׳HEt}!P㏏%*BxbQwaKG$6h¦Mve;[o-Iی&
I,Tcߎ#t wPA@l0P+KXBպT	zGv;NcI3&JĬUPNa?/%W6G۟N000k#Xd\=0
	*H
0{10	UUS10UFlorida10U
Cuda Systems LLC10UCuda Systems CA1%0#UCuda Systems LLC 2017 Int CA0
170817212120Z
220816212120Z0W10	UUS10UFlorida10U
Cuda Systems LLC10Ukarl@denninger.net0"0
	*H
0
T[I-ΆϏdn;Å@שy.us~_ZG%<MYd\gvfnsa1'6Egyjs"C [{~_KPn+<*pv#Q+H/7[-vqDV^U>f%GX)H.|l`M(Cr>е͇6#odc"YljҦln8@5SA0&ۖ"OGj?UDWZ5	dDB7k-)9Izs-JAv
J6L$Ն1SmY.Lqw*SH;EF'DĦH]MOgQQ|Mٙג2Z9y@y]}6ٽeY9Y2xˆ$T=eCǺǵbn֛{j|@LLt1[Dk5:$=	`	M00<+00.0,+0 http://ocsp.cudasystems.net:88880	U00	`HB0U0U%0++03	`HB
&$OpenSSL Generated Client Certificate0U%՞V=؁;bzQ0U#0]^§Q\ӎϡ010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems CA1!0UCuda Systems LLC 2017 CAH^Ōc!5
H0U0karl@denninger.net0
	*H
۠A0-j%--$%g2#ޡ1^>{K+uGEv1ş7Af&b&O;.;A5*U)ND2bF|\=]<sˋL!wrw٧>YMÄ3\mWR hSv!_zvl? 3_ xU%\^#O*Gk̍YI_&Fꊛ@&1n”} ͬ:{hTP3B.;bU8:Z=^Gw8!k-@xE@i,+'Iᐚ:fhztX7/(hY` O.1}a`%RW^akǂpCAufgDixUTЩ/7}%=jnVZvcF<M=
2^GKH5魉
_O4ެByʈySkw=5@h.0z>
W1000{10	UUS10UFlorida10U
Cuda Systems LLC10UCuda Systems CA1%0#UCuda Systems LLC 2017 Int CAk#Xd\=0
	`HeE0	*H
	1	*H
0	*H
	1
171218172501Z0O	*H
	1B@S˗{v/!L|4nY)>)UvZ o2B27!3J&jYxH
rw0l	*H
	1_0]0	`He*0	`He0
*H
0*H
0
*H
@0+0
*H
(0	+7100{10	UUS10UFlorida10U
Cuda Systems LLC10UCuda Systems CA1%0#UCuda Systems LLC 2017 Int CAk#Xd\=0*H
	10{10	UUS10UFlorida10U
Cuda Systems LLC10UCuda Systems CA1%0#UCuda Systems LLC 2017 Int CAk#Xd\=0
	*H
(3Q0Uyf79dXu"2.+ӑNO{ *hsra,@ox2Åiݭ<Ej_Mrϲ/6Hy>i?
L
F 視]͔7؍AW=ַtgg"%qȑ*]0Pt5A"	w@f0^@!GCxTɖ]BU&
ּ}nVLJ$mMkOAF-[e뤿.1R^ޔi)uK^lA+8՘Բ`q2s)~.@ҧv:qԴDŽB<
qϭEҖmsgGI'beă~ɷpQ:W0ʔ@vR+:5c 9V]$^Y&g(
>Hő=2;սa 1
JmO>
fX4fꐛ\л꺄v
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?401bad68-a6f4-ff9f-49e5-431c9441dde7>