NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-evbarm/50891: Boot fails after "transferring control to NetBSD stage-2 loader (at address 40007800)" on BPi M1



The following reply was made to PR port-evbarm/50891; it has been noted by GNATS.

From: dalibor gudzic <dalibor.gudzic%gmail.com@localhost>
To: Tobias Nygren <tnn%netbsd.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: port-evbarm/50891: Boot fails after "transferring control to
 NetBSD stage-2 loader (at address 40007800)" on BPi M1
Date: Sat, 5 Mar 2016 12:21:37 +0100

 --089e015385ac612e78052d4b6f56
 Content-Type: text/plain; charset=UTF-8
 
 Hi Tobias,
 
 I used your boot.scr and it worked. I thought it was because I included
 Bananapi.bin so I removed it and tried again. It booted. So I removed
 console=fb part and than it stopped working. Actually, it may be working,
 but I get black screen and cannot see anything, as I described earlier.
 Instructions in wiki do not say I have to explicitly say console=fb, and I
 thought that was the default anyway? Also, I do remember experimenting with
 this line and some extra for screen resolution in uEnv.txt, but for some
 reason I believe the board would not read this file at all.
 All in all, NetBSD requires console=fb in boot.scr to continue showing the
 picture over HDMI.
 
 Thanks Tobias,
 
 On Fri, Mar 4, 2016 at 1:45 PM, Tobias Nygren <tnn%netbsd.org@localhost> wrote:
 
 > Not sure what is wrong with the dd images or wiki instructions, but I
 > reinstalled my BPi M1 manually the other day without issues.
 >
 > I do see the screen corruption from your screenshot, but only for a second
 > or two.
 > I think it might be caused by kernel debug messages before initializing
 > framebuffer console.
 > (Is the HDMI device using an uncommon display resolution?)
 >
 > Anyway, here are the steps I used to prepare the boot partition from
 > scratch.
 > Maybe you can use it to find out what is wrong?
 >
 > # mount -t msdos /dev/ld0e /mnt
 > # cd /mnt
 > # rm -r *
 > # wget
 > http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi-mainline/u-boot-sunxi-mainline-latest/u-boot-sunxi-mainline-bananapi.tar.xz
 > # tar -xJf u-boot-sunxi-mainline-bananapi.tar.xz
 > # dd if=u-boot*/u-boot-sunxi-with-spl.bin of=/dev/ld0d bs=1k seek=8
 > # wget
 > https://raw.githubusercontent.com/linux-sunxi/sunxi-boards/master/sys_config/a20/Bananapi.fex
 > # fex2bin Bananapi.fex Bananapi.bin
 > # cat << EOF > boot.cmd
 > setenv kernel_addr  82000000
 > setenv fex_addr     43000000
 > setenv fex          Bananapi.bin
 > setenv kernel       netbsd.ub
 > setenv bootargs     "root=ld0a sysconfig=0x43000000 console=fb
 > fb.margin=60"
 > fatload mmc 0:1 ${fex_addr} ${fex}
 > fatload mmc 0:1 ${kernel_addr} ${kernel}
 > bootm ${kernel_addr}
 > EOF
 > # mkubootimage -A arm -n armv7 -T script boot.cmd boot.scr
 > # wget
 > http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201603040730Z/evbarm-earmv7hf/binary/kernel/netbsd-BPI.ub.gz
 > # gzcat netbsd-BPI.ub.gz > netbsd.ub
 >
 
 --089e015385ac612e78052d4b6f56
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr">Hi Tobias,<div><br></div><div>I used your boot.scr and it =
 worked. I thought it was because I included Bananapi.bin so I removed it an=
 d tried again. It booted. So I removed console=3Dfb part and than it stoppe=
 d working. Actually, it may be working, but I get black screen and cannot s=
 ee anything, as I described earlier.</div><div>Instructions in wiki do not =
 say I have to explicitly say console=3Dfb, and I thought that was the defau=
 lt anyway? Also, I do remember experimenting with this line and some extra =
 for screen resolution in uEnv.txt, but for some reason I believe the board =
 would not read this file at all.</div><div>All in all, NetBSD requires cons=
 ole=3Dfb in boot.scr to continue showing the picture over HDMI.</div><div><=
 br></div><div>Thanks Tobias,</div></div><div class=3D"gmail_extra"><br><div=
  class=3D"gmail_quote">On Fri, Mar 4, 2016 at 1:45 PM, Tobias Nygren <span =
 dir=3D"ltr">&lt;<a href=3D"mailto:tnn%netbsd.org@localhost"; target=3D"_blank">tnn@net=
 bsd.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D=
 "margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Not sure wh=
 at is wrong with the dd images or wiki instructions, but I<br>
 reinstalled my BPi M1 manually the other day without issues.<br>
 <br>
 I do see the screen corruption from your screenshot, but only for a second =
 or two.<br>
 I think it might be caused by kernel debug messages before initializing fra=
 mebuffer console.<br>
 (Is the HDMI device using an uncommon display resolution?)<br>
 <br>
 Anyway, here are the steps I used to prepare the boot partition from scratc=
 h.<br>
 Maybe you can use it to find out what is wrong?<br>
 <br>
 # mount -t msdos /dev/ld0e /mnt<br>
 # cd /mnt<br>
 # rm -r *<br>
 # wget <a href=3D"http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sun=
 xi-mainline/u-boot-sunxi-mainline-latest/u-boot-sunxi-mainline-bananapi.tar=
 .xz" rel=3D"noreferrer" target=3D"_blank">http://dl.linux-sunxi.org/nightly=
 /u-boot-sunxi/u-boot-sunxi-mainline/u-boot-sunxi-mainline-latest/u-boot-sun=
 xi-mainline-bananapi.tar.xz</a><br>
 # tar -xJf u-boot-sunxi-mainline-bananapi.tar.xz<br>
 # dd if=3Du-boot*/u-boot-sunxi-with-spl.bin of=3D/dev/ld0d bs=3D1k seek=3D8=
 <br>
 # wget <a href=3D"https://raw.githubusercontent.com/linux-sunxi/sunxi-board=
 s/master/sys_config/a20/Bananapi.fex" rel=3D"noreferrer" target=3D"_blank">=
 https://raw.githubusercontent.com/linux-sunxi/sunxi-boards/master/sys_confi=
 g/a20/Bananapi.fex</a><br>
 # fex2bin Bananapi.fex Bananapi.bin<br>
 # cat &lt;&lt; EOF &gt; boot.cmd<br>
 setenv kernel_addr=C2=A0 82000000<br>
 setenv fex_addr=C2=A0 =C2=A0 =C2=A043000000<br>
 setenv fex=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Bananapi.bin<br>
 setenv kernel=C2=A0 =C2=A0 =C2=A0 =C2=A0netbsd.ub<br>
 setenv bootargs=C2=A0 =C2=A0 =C2=A0&quot;root=3Dld0a sysconfig=3D0x43000000=
  console=3Dfb fb.margin=3D60&quot;<br>
 fatload mmc 0:1 ${fex_addr} ${fex}<br>
 fatload mmc 0:1 ${kernel_addr} ${kernel}<br>
 bootm ${kernel_addr}<br>
 EOF<br>
 # mkubootimage -A arm -n armv7 -T script boot.cmd boot.scr<br>
 # wget <a href=3D"http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/20160304073=
 0Z/evbarm-earmv7hf/binary/kernel/netbsd-BPI.ub.gz" rel=3D"noreferrer" targe=
 t=3D"_blank">http://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201603040730Z/ev=
 barm-earmv7hf/binary/kernel/netbsd-BPI.ub.gz</a><br>
 # gzcat netbsd-BPI.ub.gz &gt; netbsd.ub<br>
 </blockquote></div><br></div>
 
 --089e015385ac612e78052d4b6f56--
 


Home | Main Index | Thread Index | Old Index