0
Elektrický

Orange Pi Zero Plus spi nor flash - anyone know how to configure for booting

Recommended Posts

25 minutes ago, g40 said:

Does the DT control which USB interface is used? Repeating the exercise above with a card plugged into USB 2 or 3 does not work.

If USB1 work, but not USB2 and USB3, I don't know where is the issue since I've enabled all of them in DT.

In U-Boot command prompt, what "usb info" is reporting after having done "usb reset" ?

Share this post


Link to post
Share on other sites

Hello Martin

 

u-boot is detecting the OHCI/EHCI controllers. But it is only finding storage attached to USB0. In this case a USB=>SD card adapter.  If I swap the thumb drive into USB0 and and SD adapter into USB2 or 4, it gets correctly identified. It's slightly annoying but definitely not a show-stopper.

 

=> usb reset
resetting USB...
EHCI failed to shut down host controller.
EHCI failed to shut down host controller.
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
USB4:   USB EHCI 1.00
USB5:   USB OHCI 1.0
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

=> usb storage
  Device 0: Vendor: Mass     Rev: 1.00 Prod: Storage Device
            Type: Removable Hard Disk
            Capacity: 7580.0 MB = 7.4 GB (15523840 x 512)

=> usb storage
  Device 0: Vendor: SanDisk Rev: 1.00 Prod: Cruzer Blade
            Type: Removable Hard Disk
            Capacity: 7632.0 MB = 7.4 GB (15630336 x 512)

 

Share this post


Link to post
Share on other sites

Yes, is it ever :)

 

I am going to try and repeat this exercise for the K1+ so it can boot out of SPI flash using TFTP.  Are any of the other Allwinner based boards configured to do this?

 

Thanks again for your help here.

 

Share this post


Link to post
Share on other sites
On 1/1/2019 at 2:18 PM, martinayotte said:

I will investigate when I get chance, time is the missing ingredient ...

 

Hi Martin

 

I've been playing with the 2018.11 release of U-Boot. The problem with not finding USB devices on busses > 0 seems to have been fixed. Annoyingly the device tree has been completely revised so there is a deal of patching to be done.

 

I also got u-boot network support enabled in 2018.05 with some device tree changes. 

 

I'll try and get patches out  in due course. LMK if you'd like the changes.

 

Thanks for all the help. 

Share this post


Link to post
Share on other sites
26 minutes ago, g40 said:

The problem with not finding USB devices on busses > 0 seems to have been fixed

Glad to hear that (especially that time still the missing ingredient) !

 

@Igor ? Is there any reason why sunxi* stick with u-boot v2018.05 instead of v2018.11 ? I don't recall any ...

Share this post


Link to post
Share on other sites
On 10/22/2018 at 12:40 AM, markbirss said:

Here what I did with a recent ARMBIAN 5.64 user-built Ubuntu 18.04.1 to flash the mx25l1606e (2048 Kbytes) spi flash with u-boot-sunxi-with-spl.bin

Thanks for the instruction :)
WIth these I did flash today my 2 Opi Zero with 
/usr/lib/linux-u-boot-dev-orangepizero_5.77_armhf/u-boot-sunxi-with-spl.bin

(which I did build with the armbian-build-system today).

Now this is my first testdrive to boot armbian from a usb-port :) before this I did only boot from MicroSD or eMMC on ther boards.

 

Flashing went OK, but for comparing I couldnt use 

mtd_debug read /dev/mtd0 0 404407 ./current.bin

because this gives me a 

Segmentation fault
( mtd-utils                           1:2.0.0-1                         armhf        Memory Technology Device Utilities )

 

So for creating the file for compare I did use the following command succesfull:
dd if=/dev/mtd0  bs=1 count=404407 of=./current.bin


then the compare also went OK:
cmp  /usr/lib/linux-u-boot-dev-orangepizero_5.77_armhf/u-boot-sunxi-with-spl.bin ./current.bin

 

As Info: the Zero seems to need more power for the USB-Drive (16GB USB 3.0 SanDisk  Ultra Fit), because with the normal USB-Power I do use the Zero does disappear from the network after some time :(

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0