Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2023 19:55:17 +0100
From:      Dmitry Mikushin <dmitry@kernelgen.org>
To:        freebsd-hackers@freebsd.org
Subject:   Does FreeBSD support ramdisk via U-boot?
Message-ID:  <CAJoDaPYvJo-QOy1NKXUmprYY8dFnHZx9edxB8GbUEZMeP6p-3w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
>From U-boot we can specify the initrd argument to booti. The FreeBSD kernel
boots fine, but it doesn't sense the presence of ramdisk. Is it supported
in general, is there possibly some configuration missing?

booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r
   Uncompressing Kernel Image
Moving Image from 0x2080000 to 0x2200000, end=2fbe000
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
Working FDT set to 2000000
   Loading Ramdisk to 7df27000, end 7df2807d ... OK
   Loading Device Tree to 000000007df17000, end 000000007df2658f ... OK
Working FDT set to 7df17000

Starting kernel ...

---<<BOOT>>---
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
WARNING: DTB version is 5.9 while kernel expects 5.13, please update the
DTB in the ESP
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-CURRENT #0 main-n261390-129ea078cd16-dirty: Sun Mar 12
01:44:19 CET 2023
...
mountroot> ?

List of GEOM managed disk devices:

(empty)

[-- Attachment #2 --]
<div dir="ltr">From U-boot we can specify the initrd argument to booti. The FreeBSD kernel boots fine, but it doesn&#39;t sense the presence of ramdisk. Is it supported in general, is there possibly some configuration missing?<div><div><br></div><div>booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r<br>   Uncompressing Kernel Image<br>Moving Image from 0x2080000 to 0x2200000, end=2fbe000<br>## Flattened Device Tree blob at 02000000<br>   Booting using the fdt blob at 0x2000000<br>Working FDT set to 2000000<br>   Loading Ramdisk to 7df27000, end 7df2807d ... OK<br>   Loading Device Tree to 000000007df17000, end 000000007df2658f ... OK<br>Working FDT set to 7df17000<br><br>Starting kernel ...<br><br>---&lt;&lt;BOOT&gt;&gt;---<br>GDB: debug ports: uart<br>GDB: current port: uart<br>KDB: debugger backends: ddb gdb<br>KDB: current backend: ddb<br>WARNING: DTB version is 5.9 while kernel expects 5.13, please update the DTB in the ESP<br>Copyright (c) 1992-2023 The FreeBSD Project.<br>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994<br>        The Regents of the University of California. All rights reserved.<br>FreeBSD is a registered trademark of The FreeBSD Foundation.<br>FreeBSD 14.0-CURRENT #0 main-n261390-129ea078cd16-dirty: Sun Mar 12 01:44:19 CET 2023</div></div><div>...</div><div>mountroot&gt; ?<br><br>List of GEOM managed disk devices:<br></div><div><br></div><div>(empty)</div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJoDaPYvJo-QOy1NKXUmprYY8dFnHZx9edxB8GbUEZMeP6p-3w>