[U-Boot] Fixed - Re: Cubieboard2 uboot 2016.09.01 not supporting booting from sata
Robert Moskowitz
rgm at htt-consult.com
Tue Dec 20 17:12:31 CET 2016
uboot on F26 works:
U-Boot 2016.11 (Nov 29 2016 - 23:22:13 +0000) Allwinner Technology
See end for full console boot log
On 12/20/2016 10:21 AM, Robert Moskowitz wrote:
>
>
> On 12/20/2016 09:58 AM, Jagan Teki wrote:
>> On Tue, Dec 20, 2016 at 3:55 PM, Robert Moskowitz
>> <rgm at htt-consult.com> wrote:
>>>
>>> On 12/20/2016 09:14 AM, Jagan Teki wrote:
>>>> On Tue, Dec 20, 2016 at 2:41 PM, Robert Moskowitz
>>>> <rgm at htt-consult.com>
>>>> wrote:
>>>>> Dear listers,
>>>>>
>>>>> It has been over a year since I have built a new system and tried
>>>>> to set
>>>>> up
>>>>> to boot from sata.
>>>>>
>>>>> What I did in the past was to use a small mSD card with only the
>>>>> uboot
>>>>> bin
>>>>> and no partitions.
>>>>>
>>>>> All my partitions for either Fedrora25 or Centos7 are on the sata. I
>>>>> should
>>>>> boot up, the system sees no partitions on the mSD, it scans for other
>>>>> devices, finds the sata and proceeds from there.
>>>>>
>>>>> Something must have changed in the past year. Or else my notes on
>>>>> what
>>>>> to
>>>>> do are incomplete.
>>>>>
>>>>> Can you help? Here is a capture of a boot attempt with F25 on the
>>>>> sata:
>>>>>
>>>>>
>>>>> U-Boot SPL 2016.09.01 (Oct 19 2016 - 13:46:44)
>>>>> DRAM: 1024 MiB
>>>>> CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
>>>>> Trying to boot from MMC1
>>>>>
>>>>>
>>>>> U-Boot 2016.09.01 (Oct 19 2016 - 13:46:44 +0000) Allwinner Technology
>>>>>
>>>>> CPU: Allwinner A20 (SUN7I)
>>>>> Model: Cubietech Cubieboard2
>>>>> I2C: ready
>>>>> DRAM: 1 GiB
>>>>> MMC: SUNXI SD/MMC: 0
>>>>> In: serial
>>>>> Out: serial
>>>>> Err: serial
>>>>> SCSI: Target spinup took 0 ms.
>>>>> AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
>>>>> flags: ncq stag pm led clo only pmp pio slum part ccc apst
>>>>> Net: eth0: ethernet at 01c50000
>>>>> Hit any key to stop autoboot: 0
>>>>> ** Invalid partition 1 **
>>>>> ** Invalid partition 1 **
>>>>> ** Invalid partition 1 **
>>>>> =>
>>>> try latest master and also please give some more command log, sata
>>>> part or similar
>>>
>>> I can not build a uboot; I have to take what is available. Where can
>>> I get
>>> a newer Cubieboard2 uboot?
>> Don't understand what do you mean by this, cant' you able to build
>> Cubieboard2_defconfig on latest?
>
> I am looking at what uboot the F26 rawhide build has. Should have
> something together to test shortly.
>
> Bob
U-Boot SPL 2016.11 (Nov 29 2016 - 23:22:13)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2016.11 (Nov 29 2016 - 23:22:13 +0000) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
SCSI: Target spinup took 0 ms.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: eth0: ethernet at 01c50000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
** Invalid partition 1 **
scanning bus for devices...
Device 0: (0:0) Vendor: ATA Prod.: FUJITSU MHV2060B Rev: 892C
Type: Hard Disk
Capacity: 57241.8 MB = 55.9 GB (117231408 x 512)
Found 1 device(s).
Device 0: (0:0) Vendor: ATA Prod.: FUJITSU MHV2060B Rev: 892C
Type: Hard Disk
Capacity: 57241.8 MB = 55.9 GB (117231408 x 512)
... is now current device
Scanning scsi 0:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
543 bytes read in 29 ms (17.6 KiB/s)
Ignoring unknown command: ui
Ignoring malformed menu command: autoboot
Ignoring malformed menu command: hidden
Ignoring unknown command: totaltimeout
Fedora-Xfce-armhfp-25-1.3 Boot Options.
1: Fedora-Xfce-armhfp-25-1.3 (4.8.6-300.fc25.armv7hl)
Enter choice: 1: Fedora-Xfce-armhfp-25-1.3 (4.8.6-300.fc25.armv7hl)
Retrieving file: /initramfs-4.8.6-300.fc25.armv7hl.img
46669921 bytes read in 1283 ms (34.7 MiB/s)
Retrieving file: /vmlinuz-4.8.6-300.fc25.armv7hl
5919120 bytes read in 181 ms (31.2 MiB/s)
append: console=ttyS0,115200 enforcing=0 ro
root=UUID=eca45483-d548-4444-892d-07
54f1d401bc cma=192MB
Retrieving file: /dtb-4.8.6-300.fc25.armv7hl/sun7i-a20-cubieboard2.dtb
34197 bytes read in 280 ms (119.1 KiB/s)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Loading Ramdisk to 4737d000, end 49fff061 ... OK
Loading Device Tree to 47371000, end 4737c594 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.8.6-300.fc25.armv7hl
(mockbuild at arm04-builder02.a
rm.fedoraproject.org) (gcc version 6.2.1 20160916 (Red Hat 6.2.1-2)
(GCC) ) #1 S
MP Tue Nov 1 14:46:32 UTC 2016
[ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instructio
n cache
[ 0.000000] OF: fdt:Machine model: Cubietech Cubieboard2
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 192 MiB at 0x74000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 15 pages/cpu @ef6bd000 s31500 r8192
d21748 u6144
0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pag
es: 260416
[ 0.000000] Kernel command line: console=ttyS0,115200 enforcing=0 ro
root=UUI
D=eca45483-d548-4444-892d-0754f1d401bc cma=192MB
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
etc....
More information about the U-Boot
mailing list