Date: Fri, 3 Aug 2018 21:49:05 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: Daniel Braniss <danny@cs.huji.ac.il> Cc: "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: booting current from nano-neo/allwinner now failes Message-ID: <20180803214905.73b1b6351209f7fa69ea2036@bidouilliste.com> In-Reply-To: <511F3AD9-8897-4223-ACD3-59807E7109B4@cs.huji.ac.il> References: <F926A7B8-F908-449C-9563-61CEB4C2CBAF@cs.huji.ac.il> <20180802204537.26af888414c4561b624fafd3@bidouilliste.com> <B1A10EF9-C683-4EDA-8327-76B4DB7C6151@cs.huji.ac.il> <20180803074355.cc6feef658039a899aff1841@bidouilliste.com> <0842173A-A76E-48D7-9B46-3419F5CAB70C@cs.huji.ac.il> <E11A8270-1B4D-4BEC-B42F-F0D53E99CB8F@cs.huji.ac.il> <511F3AD9-8897-4223-ACD3-59807E7109B4@cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 3 Aug 2018 18:41:48 +0300 Daniel Braniss <danny@cs.huji.ac.il> wrote: >=20 >=20 > > On 3 Aug 2018, at 11:32, Daniel Braniss <danny@cs.huji.ac.il> wrote: > >=20 > > some time later - actually several hours - I made a new image and > >=20 > > - using latest ubldr and with boot.scr > > I think my problem is the sd image, it doesn?t like my MBR because as= =20 > > opposed to you I get: > > ? > > Probing all disk devices? > > Checking unit=3D0 slice=3D<auto> partition=3D<auto>? > >=20 > > as opposed tour case where after the ? you get good. > >=20 > > - so switching to EFI it get stuck: > >=20 > > U-Boot SPL 2018.07 (Aug 01 2018 - 17:37:02 +0300) > > DRAM: 512 MiB > > Trying to boot from MMC1 > >=20 > >=20 > > U-Boot 2018.07 (Aug 01 2018 - 17:37:02 +0300) Allwinner Technology > >=20 > > CPU: Allwinner H3 (SUN8I 1680) > > Model: FriendlyARM NanoPi NEO > > DRAM: 512 MiB > > MMC: SUNXI SD/MMC: 0 > > Loading Environment from FAT... *** Warning - bad CRC, using default en= vironment > >=20 > > Failed (-5) > > In: serial > > Out: serial > > Err: serial > > Net: phy interface0 > > eth0: ethernet@1c30000 > > starting USB... > > USB0: USB EHCI 1.00 > > USB1: USB OHCI 1.0 > > scanning bus 0 for devices... 1 USB Device(s) found > > scanning usb for storage devices... 0 Storage Device(s) found > > Hit any key to stop autoboot: 0=20 > > switch to partitions #0, OK > > mmc0 is current device > > Scanning mmc 0:1... > > Found EFI removable media binary efi/boot/bootarm.efi > > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > > Scanning disks on usb... > > Disk usb0 not ready > > Disk usb1 not ready > > Disk usb2 not ready > > Disk usb3 not ready > > Scanning disks on mmc... > > MMC Device 1 not found > > MMC Device 2 not found > > MMC Device 3 not found > > Found 3 disks > > 493860 bytes read in 25 ms (18.8 MiB/s) > > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > > ## Starting EFI application at 42000000 ... > > Consoles: EFI console =20 > > FreeBSD/arm EFI loader, Revision 1.1 > > (Fri Aug 3 10:00:59 IDT 2018 danny@pe-44) > >=20 > > Command line arguments: l > > EFI version: 2.70 > > EFI Firmware: Das U-Boot (rev 0.00) > > Console: efi (0) > > Load Path: /\efi\boot\bootarm.efi > > Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)= /HD(1,0x01,0,0xc0f,0x1ffe0) > > Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/H= D(1,0x01,0,0xc0f,0x1ffe0) > > Setting currdev to disk0p1: > > Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,= 0x01,0,0x20c2e,0x3df3c2) > > Setting currdev to disk0p2: > > ubenv not found > > Loading /boot/defaults/loader.conf > > /boot/kernel/kernel text=3D0x6cf66c data=3D0x68938+0x4f048 syms=3D[0x4+= 0x807e0+0x4+0xd2a75] > > efi-autoresizecons: Neither Graphics Output Protocol nor Universal Grap= hics Adapter present > >=20 > > Hit [Enter] to boot immediately, or any other key for command prompt. > > Booting [/boot/kernel/kernel]... =20 > > Using DTB provided by EFI at 0x47ffb000. > > EHCI failed to shut down host controller. > > Kernel entry at 0x53000180... > > Kernel args: (null) > > modulep: 0xc08e1000 > > relocation_offset 0 > >=20 > >=20 > >=20 > > I will now try to build a new MBR/image ? >=20 > the main problem was that I built a kernel using ALLWINNER_UP, so > using GENERIC I finally got it to boot! Thanks for reminding me that I needed to delete this kernel config file :) > also it seems that the newer version of ubldr/efi are more strict, my ori= ginal MBR > had the root partition as /dev/mmcsd0s2 (ie type freebsd) > and was ignored, rebuilding the image with type freebsd-ufs - /dev/mmcsd0= s2a fixed that. I think this is normal. > nitpicking: on boot: > ... > real memory =3D 0 (0MB) > avail memory =3D 507469824 (483 MB) I've seen that but never looked at how the kernel find those values. >=20 > danny >=20 >=20 >=20 > >=20 > > cheers, > >=20 > > danny > >=20 > >=20 > >=20 > >> On 3 Aug 2018, at 09:08, Daniel Braniss <danny@cs.huji.ac.il> wrote: > >>=20 > >>=20 > >>=20 > >>> On 3 Aug 2018, at 08:43, Emmanuel Vadot <manu@bidouilliste.com> wrote: > >>>=20 > >>> On Fri, 3 Aug 2018 08:16:06 +0300 > >>> Daniel Braniss <danny@cs.huji.ac.il <mailto:danny@cs.huji.ac.il>> wro= te: > >>>=20 > >>>>=20 > >>>>=20 > >>>>> On 2 Aug 2018, at 21:45, Emmanuel Vadot <manu@bidouilliste.com> wro= te > >>>> ... > >>>>> Did you also update ubldr.bin ? (not just ubldr) > >>>> I did, and it went straight to net boot, and failed. > >>>>=20 > >>>> ... > >>>>>=20 > >>>>> Also please consider switching to efi boot, just deleting boot.scr = and > >>>>> copying loader.efi as EFI/BOOT/bootarm.efi is enough. > >>>>=20 > >>>> no problem, i?ll try ASAP. > >>>> Q: this to the FAT partition? > >>>>=20 > >>>> my fat did not have the boot.scr, adding it did not change things > >>>=20 > >>> Based on your first mail you did have it > >>=20 > >> I was trying to answer too many questions with a one liner :-) > >> I first tried booting an old sd image with latest current but old u-bo= ot, old FAT stuff, and got stuck. > >> I then upgraded the u-boot, got different results=20 > >> then upgraded ubldr[.bin] > >> different results but no success, adding the boot.scr didn?t seem to m= ake a=20 > >> difference. > >> In any case I will try efi boot ASAP with latest ubldr. > >>=20 > >>=20 > >>>=20 > >>>> BTW, iboot.scr has some binary stuff, is that ok? > >>>=20 > >>> yes it's supposed to be a binary file. > >>>=20 > >>>>=20 > >>>> thanks, > >>>> danny > >>>>=20 > >>>>>=20 > >>>>>> in any case I would like to help but things are getting too compl= icated :-) > >>>>>>=20 > >>>>>>=20 > >>>>>> thanks, > >>>>>> danny > >>>>>>=20 > >>>>>>=20 > >>>>>>=20 > >>>>>>=20 > >>>>>> _______________________________________________ > >>>>>> freebsd-arm@freebsd.org <mailto:freebsd-arm@freebsd.org> mailing l= ist > >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm <https://li= sts.freebsd.org/mailman/listinfo/freebsd-arm> > >>>>>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.= org <mailto:freebsd-arm-unsubscribe@freebsd.org>" > >>>>>=20 > >>>>>=20 > >>>>> --=20 > >>>>> Emmanuel Vadot <manu@bidouilliste.com <mailto:manu@bidouilliste.com= >> <manu@freebsd.org <mailto:manu@freebsd.org>> > >>>>=20 > >>>=20 > >>>=20 > >>> --=20 > >>> Emmanuel Vadot <manu@bidouilliste.com <mailto:manu@bidouilliste.com>>= <manu@freebsd.org <mailto:manu@freebsd.org>> > >>=20 > >> _______________________________________________ > >> freebsd-arm@freebsd.org mailing list > >> https://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 > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --=20 Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180803214905.73b1b6351209f7fa69ea2036>