any prebuilt-sd card-image image available for HiFive Unleashed ?

Mitchell Horne mhorne at freebsd.org
Mon Dec 14 19:24:40 UTC 2020


Hi Klaus,

Thanks for your detailed response. More below.

On Fri, Dec 11, 2020 at 10:35 PM Klaus Cucinauomo
<maciphone2 at googlemail.com> wrote:
>
> Hi Mitchell,
>
> thanks, after I had rebased my chaotic ports-tree ;-) , your port has built fine.
> Well, for now the best I can get out of uSD-boot with your port is :
>
> — your port:------
> U-Boot SPL 2020.10 (Dec 11 2020 - 22:20:01 +0000)
> Trying to boot from MMC1
> Unhandled UUnhanldd excleled excepti:on:n
> 0EPrucnisntr Euct0i0o0n                   IPllegc0aln
>  RE  0P0C: 00000000:800200000 0R00A:# 000000000008
>                                                    000 7500#aP TV0AeL: 0000t0#00E0E000P00000r
> ### ERhROR ### Please RESET the board ###
> —------------

Hmm. Looks like things go wrong in u-boot SPL, before entering u-boot
proper, but it's not entirely clear. You could try to isolate the
issue by first flashing the freedom-u-sdk image, and replacing the
u-boots one at a time with the versions from my port.

So:
 1. dd entire freedom-u-sdk image to SD
 2. delete linux and msdos partition
 3. Verify that board boots to u-boot 2020.07 (non SPL)
 4. dd u-boot.itb from my port to
!2e54b353-1271-4842-806f-e436d6af6985 partition
 5. Check whether it boot to u-boot 2020.10 (non SPL)
 6. If it does, dd u-boot-spl.bin from my port to
!5b193300-fc78-40cd-8002-e86c45580b47
 7. See if you receive the above unhandled exception

Before we try booting to freebsd this should help us narrow down where
u-boot is going wrong. Please give this a try when you have a chance
and let me know the result.

> with  boot jumper MSEL2 switched up(required to boot from u-boot)  .
> Well, no FreeBSD-Kernel installed….only u-boot.
>
> --
> Compared to:
>https://github.com/sifive/freedom-u-sdk ----
> U-Boot SPL 2020.07 (Nov 20 2020 - 12:10:09 +0000)
> Trying to boot from MMC1
>
> U-Boot 2020.07 (Nov 20 2020 - 12:10:09 +0000)
>
> CPU:   rv64imafdc
> Model: SiFive HiFive Unleashed A00
> DRAM:  8 GiB
> MMC:   spi at 10050000:mmc at 0: 0
> In:    serial at 10010000
> Out:   serial at 10010000
> Err:   serial at 10010000
> Net:   eth0: ethernet at 10090000
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:3…
> ——….Boots into Linux…
> —----------
> well ,freedom-u-sdk  has a visible (msdos)- Partition which contains a dtb:
> / hifive-unleashed-a00.dtb /
> And a configuration file extlinux.conf:
> default OpenEmbedded
> label OpenEmbedded-SiFive-HiFive-Unleashed
>    kernel /bbla.gz
>    fdt /hifive-unleashed-a00.dtb
> append root=/dev/mmcblk0p4 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon=sbi
>>
> This is the freedom-u-sdk partition table:
> ——— boots fine: ---
> root at freebsd:/usr/local/share/u-boot/u-boot-sifive-fu540 # gpart show da2
> =>      34  13918175  da2  GPT  (30G) [CORRUPT]
>         34      2048    1  !5b193300-fc78-40cd-8002-e86c45580b47 (1.0M)
>       2082      8192    2  !2e54b353-1271-4842-806f-e436d6af6985 (4.0M)
>      10274      6110       - free -  (3.0M)
>      16384    266240    3  ms-basic-data  (130M)
>     282624      4096       - free -  (2.0M)
>     286720  13631488    4  linux-data  (6.5G)
>   13918208         1       - free -  (512B)
>
> ——
>
> dd' ìng
> https://download.freebsd.org/ftp/snapshots/riscv/riscv64/ISO-IMAGES/13.0/FreeBSD-13.0-CURRENT-riscv-riscv64-GENERICSD-20201210-7578a4862f0.img.xz
> directly to uSD also shows / [CORRUPT] / from  # gpart show da2
>

Usually this indicates that the backup GPT header can't be found, and
is harmless. However, I did find a small issue with the config that
generates the GENERICSD image, and I will have to generate a new one.

> well, at the moment I haven`t any further idea where to start hacking it but trying to dd
> /fw_dynamic.bin/  to the !2e54b353-1271-4842-806f-e436d6af6985 - partition in your port
> also didn`t succeed and no idea how I had to apply your port to the GENERICSD-20201210.
>
> Do you have any further idea/instruction ?
> Thanks
>
> Best Regards
>
> Klaus


More information about the freebsd-riscv mailing list