On Tue, 18 Aug 2015 08:41:06 -0000 Cam Hutchison <c...@xdna.net> wrote:
> Vishnu Patekar <vishnupatekar0...@gmail.com> writes: > > >On allwinner SOCs A33,H3 MMU is not enabled by BROM, so don't exit > >if MMU is not enabled by BROM and return NULL. > >It was reported on A33 tablet and Orange Pi H3 Board. > >I've tested it on A33 tablet. > > >Signed-off-by: VishnuPatekar <vishnupatekar0...@gmail.com> > > I've tested this on an Orange Pi Plus (h3) and loaded boot0_sdcard.fex > and had it then boot u-boot from the SD card. > > It mostly worked, but gave an error: > > $ fel -v spl boot0_sdcard.fex > MMU is not enabled by BROM > => Executing the SPL... done. > libusb usb_bulk_send error -1 > > I think that error is from: > /* Read back the result and check if everything was fine */ > aw_fel_read(usb, 4, header_signature, 8); > > I wonder if the usleep(250000) before it is causing this, as once > control passes to boot0, is it too late to read from fel via usb? It's just that FEL is not alive anymore. You are using the sdcard variant of boot0 for testing and it does not return control back to the FEL code in the BROM. This is expected and perfectly normal because it does not need to talk over USB, but performs its own SD card boot job. When we get proper Allwinner H3 SPL support for U-Boot, it would return control back to FEL after the SPL and the device would be still able to execute FEL commands (for uploading the main U-Boot part to the DRAM over USB and other things). I only asked to do this test with the sdcard variant of boot0 because it allows us to check if the 'fel' tool is working correctly. And looks like it does. Thanks! Regarding this scary/confusing error message, we might try to identify the type of the loaded binary and handle it more gracefully. -- Best regards, Siarhei Siamashka -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.