From nobody Sun Mar 12 18:55:17 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PZTWT1DGGz3xTsM for ; Sun, 12 Mar 2023 18:55:33 +0000 (UTC) (envelope-from dmitry@kernelgen.org) Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PZTWR5pPkz46wt for ; Sun, 12 Mar 2023 18:55:31 +0000 (UTC) (envelope-from dmitry@kernelgen.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kernelgen-org.20210112.gappssmtp.com header.s=20210112 header.b=YDT9vMmT; spf=none (mx1.freebsd.org: domain of dmitry@kernelgen.org has no SPF policy when checking 2001:4860:4864:20::30) smtp.mailfrom=dmitry@kernelgen.org; dmarc=none Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-177b78067ffso479594fac.7 for ; Sun, 12 Mar 2023 11:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernelgen-org.20210112.gappssmtp.com; s=20210112; t=1678647329; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XZf6nDWM2o9K+HQswL493EW21E2fNekUDS3hcGi8D5A=; b=YDT9vMmTjY2w19AdQUYNWv9xYpSelIdqNredTz0TrWaYbc4bDJLIkG+IdYNlwRbMun o9U8zVFzE++TSpVV3IS5GNbmYNcs/xZIRMwQ2vuEMJEJrJHkIyb96n4K5xvyrvHQPw4K thLSEQJkaa8qlgmWixqqkTaJt3OS22wGFj1wXwRSQnG35ZJIquRcECGE619CjNrNFtBC 3DqaDVnJli5alJ7qeAjF7qqXwGqvQOLiAHdUWrOsp3MBzeo0bDKi/2P9HA8YiijmTrXl BFUzkXQ6lR8PMNJyno1ZwHg8SYy0GT1BS9prvTIwDx/spgVWAcaoKOJYD4iFx8rZEncd Qp7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678647329; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XZf6nDWM2o9K+HQswL493EW21E2fNekUDS3hcGi8D5A=; b=zBNlt5LcDZsSBS7ipBo/LXlBb38xiO9958ajTsOKevC98cffgYCicvy5oGWoJZRdFa 93uPy/3KHC0THnRZFW4MDVCcwu8zon/I2V/Blg/2ePcVmG58OiWuthyf0uxdispuVbJf E3dA0mkzYFH04MauzSE+RQJf14AobCBffsdIMPqZ86NwQpozMNJv2p4kBZANcWK2pRgE /aYBqHCFWHjtp07IXYr+b0unMeHr4UQKZpHanxXWst6itNDdSE4+ieRXiRMl1+LT0s2b hcaXs+OxomNnfPrdqukX/YEBJEiU0QSRR8MHfSnbaq8cXrn7eCKSbgm2CNpNjj8iKNUw rkAg== X-Gm-Message-State: AO0yUKVPRYy29lefWmbBPW2MrHfzvjscsHP/jAXot2Fbvy7lsV//gmbk a7hYkMpQNGO0860PNBS9VWpyrfaEhfD7f285xcQh40CTshj2H6WYoh0= X-Google-Smtp-Source: AK7set9ENh5pf9/oL2j0Zl7Rp+iWqoT37uoiKtvdMKGY5A/Yr4m233nQtxqzzKZOywOarYRUjeMZDX0m2/vRD967sng= X-Received: by 2002:a05:6870:1247:b0:177:a8c9:9028 with SMTP id 7-20020a056870124700b00177a8c99028mr624846oao.11.1678647329504; Sun, 12 Mar 2023 11:55:29 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Dmitry Mikushin Date: Sun, 12 Mar 2023 19:55:17 +0100 Message-ID: Subject: Does FreeBSD support ramdisk via U-boot? To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c76b2605f6b8893a" X-Spamd-Result: default: False [-2.30 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[kernelgen-org.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::30:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[kernelgen-org.20210112.gappssmtp.com:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[kernelgen.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PZTWR5pPkz46wt X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --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 ... ---<>--- 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
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?

booti $kernel_addr_r $ramdisk_addr_r:$filesize = $fdt_addr_r
=C2=A0 =C2=A0Uncompressing Kernel Image
Moving Image from= 0x2080000 to 0x2200000, end=3D2fbe000
## Flattened Device Tree blob at = 02000000
=C2=A0 =C2=A0Booting using the fdt blob at 0x2000000
Working= FDT set to 2000000
=C2=A0 =C2=A0Loading Ramdisk to 7df27000, end 7df280= 7d ... OK
=C2=A0 =C2=A0Loading Device Tree to 000000007df17000, end 0000= 00007df2658f ... OK
Working FDT set to 7df17000

Starting kernel .= ..

---<<BOOT>>---
GDB: debug ports: uart
GDB: curr= ent 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.
Copy= right (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of California. All r= ights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundat= ion.
FreeBSD 14.0-CURRENT #0 main-n261390-129ea078cd16-dirty: Sun Mar 12= 01:44:19 CET 2023
...
mountroot> ?

Lis= t of GEOM managed disk devices:

(empty)
<= /div> --000000000000c76b2605f6b8893a--