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
--000000000000c76b2605f6b8893a Content-Type: text/plain; charset="UTF-8" >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) --000000000000c76b2605f6b8893a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">From U-boot we can specify the initrd argument to booti. T= he FreeBSD kernel boots fine, but it doesn't sense the presence of ramd= isk. Is it supported in general, is there possibly some configuration missi= ng?<div><div><br></div><div>booti $kernel_addr_r $ramdisk_addr_r:$filesize = $fdt_addr_r<br>=C2=A0 =C2=A0Uncompressing Kernel Image<br>Moving Image from= 0x2080000 to 0x2200000, end=3D2fbe000<br>## Flattened Device Tree blob at = 02000000<br>=C2=A0 =C2=A0Booting using the fdt blob at 0x2000000<br>Working= FDT set to 2000000<br>=C2=A0 =C2=A0Loading Ramdisk to 7df27000, end 7df280= 7d ... OK<br>=C2=A0 =C2=A0Loading Device Tree to 000000007df17000, end 0000= 00007df2658f ... OK<br>Working FDT set to 7df17000<br><br>Starting kernel .= ..<br><br>---<<BOOT>>---<br>GDB: debug ports: uart<br>GDB: curr= ent 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>Copy= right (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of California. All r= ights reserved.<br>FreeBSD is a registered trademark of The FreeBSD Foundat= ion.<br>FreeBSD 14.0-CURRENT #0 main-n261390-129ea078cd16-dirty: Sun Mar 12= 01:44:19 CET 2023</div></div><div>...</div><div>mountroot> ?<br><br>Lis= t of GEOM managed disk devices:<br></div><div><br></div><div>(empty)</div><= /div> --000000000000c76b2605f6b8893a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJoDaPYvJo-QOy1NKXUmprYY8dFnHZx9edxB8GbUEZMeP6p-3w>