risc-v - efi_free_pool: illegal free

Anand Moon linux.amoon at gmail.com
Mon Oct 21 08:06:04 CEST 2024


Hi Sughosh

On Wed, 16 Oct 2024 at 13:04, Sughosh Ganu <sughosh.ganu at linaro.org> wrote:
>
> On Wed, 16 Oct 2024 at 10:35, Anand Moon <linux.amoon at gmail.com> wrote:
> >
> > Hi Tom.
> >
> > On Wed, 16 Oct 2024 at 00:01, Tom Rini <trini at konsulko.com> wrote:
> > >
> > > On Wed, Oct 16, 2024 at 12:00:01AM +0530, Anand Moon wrote:
> > >
> > > > Hi All,
> > > >
> > > > I am trying to create a RISC-V Archlinux image for the StarFive
> > > > VisionFive 2 v1.3B SBC.
> > > > Everything worked well initially, and I successfully until I upgraded
> > > > OpenSBI and U-Boot
> > > > to the latest versions.
> > >
> > > Sorry for the problems, this is known and will be fixed shortly.
> > >
> > Just wanted to submit a report.
> > > --
> > > Tom
> >
> > I have tried to build a u-boot with tag v2024.10, it's a success.
>
> Can you rebase and try with the latest -master. It should work now. Thanks.
>
> -sughosh
>
I do not observe this issue in the latest U-boot,
Thanks for fixing the problem.

Thanks
-Anand

-------------------
Hit any key to stop autoboot:  0
StarFive # sf probe
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
StarFive # fatload mmc 1:3 $kernel_addr_r u-boot.itb
1022723 bytes read in 66 ms (14.8 MiB/s)
StarFive # sf update $kernel_addr_r 0x100000 $filesize
device 0 offset 0x100000, size 0xf9b03
969475 bytes written, 53248 bytes skipped in 7.529s, speed 139024 B/s
StarFive # fatload mmc 1:3 $kernel_addr_r u-boot-spl.bin.normal.out
142770 bytes read in 13 ms (10.5 MiB/s)
StarFive # sf update $kernel_addr_r 0x0 $filesize
device 0 offset 0x0, size 0x22db2
142770 bytes written, 0 bytes skipped in 0.744s, speed 195449 B/s
StarFive # reset
resetting ...
▒
U-Boot SPL 2024.10-01138-gfa0ed06a749c (Oct 21 2024 - 15:41:04 +0530)
DDR version: dc2e84f0.
Trying to boot from SPI


U-Boot 2024.10-01138-gfa0ed06a749c (Oct 21 2024 - 15:41:04 +0530)

CPU:   sifive,u74-mc
Model: StarFive VisionFive 2 v1.3B
DRAM:  8 GiB
Core:  136 devices, 26 uclasses, devicetree: board
WDT:   Not starting watchdog at 13070000
MMC:   mmc at 16010000: 0, mmc at 16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page
size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110B1-2253-D008E000-00002905
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:38:7b
Ethernet MAC1 address: 6c:cf:39:00:38:7c
--------EEPROM INFO--------

starfive_7110_pcie pcie at 2b000000: Starfive PCIe bus probed.
starfive_7110_pcie pcie at 2c000000: Starfive PCIe bus probed.
In:    serial at 10000000
Out:   serial at 10000000
Err:   serial at 10000000
Net:   eth0: ethernet at 16030000, eth1: ethernet at 16040000
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Working FDT set to ff72da20
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
** Booting bootflow '<NULL>' with efi_mgr
Loading Boot0000 'mmc 1' failed
Loading Boot0001 'nvme 0' failed
EFI boot manager: Cannot load any image
Boot failed (err=-14)
Card did not respond to voltage select! : -110
** Booting bootflow 'mmc at 16020000.bootdev.part_3' with extlinux
1:      Arch Linux Risc-V
Retrieving file: /Image
Retrieving file: /initramfs-linux.img
append: root=UUID=ec7facf2-7c69-4ff6-96ae-49f63c054fe0 rw console=tty1
console=ttyS0,115200 earlycon rootwait swiotlb=65536
nvme_core.default_ps_max_latency_us=2000
Retrieving file: /dtbs/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
## Flattened Device Tree blob at 46000000
   Booting using the fdt blob at 0x46000000
Working FDT set to 46000000
   Loading Ramdisk to fdd20000, end fe7295bf ... OK
   Loading Device Tree to 00000000fdd13000, end 00000000fdd1f480 ... OK
Working FDT set to fdd13000

Starting kernel ...

[    0.000000][    T0] Linux version 6.12.0-rc4-4-ARCH-RISC-V
(amoon at anand-m920q) (riscv64-linux-gnu-gcc (GCC) 14.2.0, GNU ld (GNU
Binutils) 2.43.1) #2 SMP PREEMPT_RT Mon Oct 21 16:19:57 IST 2024
[    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.3B
[    0.000000][    T0] SBI specification v2.0 detected
[    0.000000][    T0] SBI implementation ID=0x1 Version=0x10005
[    0.000000][    T0] SBI TIME extension detected
[    0.000000][    T0] SBI IPI extension detected
[    0.000000][    T0] SBI RFENCE extension detected
[    0.000000][    T0] SBI SRST extension detected
[    0.000000][    T0] SBI DBCN extension detected
[    0.000000][    T0] efi: UEFI not found.
[    0.000000][    T0] OF: reserved mem:
0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable
mmode_resv1 at 40000000
[    0.000000][    T0] OF: reserved mem:
0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable
mmode_resv0 at 40040000
[    0.000000][    T0] cma: Reserved 16 MiB at 0x00000000ff000000 on node -1
[    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000
(options '115200n8')
[    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
[    0.000000][    T0] NUMA: Faking a node at [mem
0x0000000040000000-0x000000023fffffff]
[    0.000000][    T0] NODE_DATA(0) allocated [mem 0x23fdbf500-0x23fdc1e7f]
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000023fffffff]
[    0.000000][    T0]   Device   empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges


More information about the U-Boot mailing list