Page 1 of 1
boot from usb
Posted: Mon Mar 12, 2018 2:06 pm
by GekoCH
Hy
I tried to run clonezilla from a usb stick so i can clone the eMMC to the USB stick.
However it does not boot from the stick.
When I view this over the DEBUG Serial prot I see:
Code: Select all
starting USB...
No controllers found
And then it boots form the eMMC ...
What can I do to start it from the USB?
Andy
Re: boot from usb
Posted: Tue Mar 13, 2018 1:48 pm
by GekoCH
Here is the whole terminal output:
Code: Select all
CPU: Allwinner H5 (SUN50I)
Model: FriendlyElec NanoPi H5
DRAM: 1 GiB
Sy8106a: 1200mv
CPU Freq: 1008MHz
MMC: SUNXI SD/MMC: 1, SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: No ethernet found.
SID: 82800001-44004704-44004704-5190410c
BOARD: nanopi-neo-core2
starting USB...
No controllers found
Hit any key to stop autoboot: 0
Re: boot from usb
Posted: Tue Mar 13, 2018 2:17 pm
by igorp
For start, you need an u-boot with USB support.
Re: boot from usb
Posted: Tue Mar 13, 2018 2:21 pm
by GekoCH
ok so the standard U-Boot delivered with the Core 2 has no USB support.
So how can I get a "new" u-boot that is compatible with the Core 2?
Andy
Re: boot from usb
Posted: Tue Mar 13, 2018 3:51 pm
by igorp
GekoCH wrote:
ok so the standard U-Boot delivered with the Core 2 has no USB support.
So how can I get a "new" u-boot that is compatible with the Core 2?
Andy
The easy way, but I am not sure if all this is supported yet:
https://www.armbian.com/nanopi-neo-plus2/Move OS to USB and boot from eMMC
https://docs.armbian.com/User-Guide_Get ... d-sata-usbWith this method, you don't need USB support within u-boot level.
If you want to boot USB directly from u-boot (loaded from eMMC, SD, SPI, FEL)), you might need to go with the latest mainline u-boot. Now, from my head, I am not 100% sure that it works on H5 but it works on H3 boards. They are very similar so I assume it should.
Again you have more options. The easy one:
https://docs.armbian.com/Developer-Guid ... eparation/the one you are using now and doesn't work
http://wiki.friendlyarm.com/wiki/index. ... _and_Linuxfor geeks
http://linux-sunxi.org/Mainline_U-Boot
Re: boot from usb
Posted: Tue Mar 13, 2018 5:50 pm
by GekoCH
Thx a lot for the infos! Great!
I still try to figure out what the best solution is to bring my custom OS that is currently running on a Core 2 to all the other Core 2 units.
Currently I copy the whole Partition with the dd command to the SD-Card and then copy it back on the other Core 2 with a bootable OS on the same SD-Card.
Andy
Re: boot from usb
Posted: Tue Mar 13, 2018 6:15 pm
by igorp
GekoCH wrote:
Thx a lot for the infos! Great!
I still try to figure out what the best solution is to bring my custom OS that is currently running on a Core 2 to all the other Core 2 units.
Currently I copy the whole Partition with the dd command to the SD-Card and then copy it back on the other Core 2 with a bootable OS on the same SD-Card.
Andy
For deploying OS to internal eMMC directly, there is another tool:
https://github.com/zador-blood-stained/fel-mass-storage
Re: boot from usb
Posted: Wed Mar 14, 2018 8:22 am
by GekoCH
Thx didn't know the FEL mode seems a great way to save the image to the eMMC
Andy