From nobody Mon Jan 2 18:58:55 2023 X-Original-To: riscv@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 4Nm4sC5HCgz2pGX3 for ; Mon, 2 Jan 2023 18:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nm4sC3CThz3mCk for ; Mon, 2 Jan 2023 18:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672685935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XgbgejdRKWW8skGFIhs5APIoPXtVCAy2CvzECQmWsUg=; b=pOphHxeHgz95rLhBnnOXq5n6MYbwgceD0IERG/T/7nHEPC9kRqe3tUmWxPd91g+P+2vgLQ pif7YiN8mpk9GFvrPHtwV49QPSgiJTORft4pGZ8m7XLRU+A3/J8xJrsOzVNi0TVyGbnDjd ax9Q8f2Pjs/cuqu3UBgSfY8A7+d1sxwPh9/cPNYkMl0k5Sma3r+ONvQsRR8ObtSPgFBCdt Nafku+Tbdh/i3Y1/y9CFvsEQmfb8owONyLUbgWoyOky1Pkss7v3SGF2WaUJ2DdhuZGKVMi /PUPehMc0amuE9hnCKs6IYFjD88XFxrGinNxcSYpNVUdJAV5pOegNbAmZSqN3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672685935; a=rsa-sha256; cv=none; b=NMevw9TdgEVEMCrUjq/njX+cnMKMOQEOArfyO8bA1HTDcg8njh37XB2dOjAneq7jLM5qM/ ke8RlFiSTgPyi9FRkhv5Kool1ubSy507pQcktcmoiNv2m6MVTISqm3AZKNPXctNih87JKE fSbm/O5BS9xwq3MeTh7LHZeJO5H5ib6LjMJfIshyC9i9vlccW9kHJ3YuhiXxbuC6KmpUv7 KHVtxJu8UF4BZ3AoZ6H3ptNDbRxeBtZh2oNaWMD0tUO9Gv7+71hRn+TRgnt8SiJcmLrlt2 3DCrXE2ZAtVXVIh9O6aiDYwAqGlhmhevtVsmA7RlZKzRKmGHczVVAh9MYGEXnw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nm4sC29H0z1HCC for ; Mon, 2 Jan 2023 18:58:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 302IwtQ5097404 for ; Mon, 2 Jan 2023 18:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 302Iwtir097403 for riscv@FreeBSD.org; Mon, 2 Jan 2023 18:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 268684] riscv libc: fix longjmp with 0 value Date: Mon, 02 Jan 2023 18:58:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mhorne@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jrtc27@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268684 Mitchell Horne changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress CC| |mhorne@freebsd.org Assignee|riscv@FreeBSD.org |jrtc27@freebsd.org --- Comment #2 from Mitchell Horne --- (In reply to Jessica Clarke from comment #1) The current version of that revision seems actionable, can it be committed (minus the MIPS bits) now? Fixing the kernel implementation does not need to block the fixes for libc. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Jan 16 20:18:06 2023 X-Original-To: riscv@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 4NwjyP28BLz2p3qq for ; Mon, 16 Jan 2023 20:18:21 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (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 4NwjyN2CY1z3vXj for ; Mon, 16 Jan 2023 20:18:20 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=JX6ei8TV; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::f29) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-qv1-xf29.google.com with SMTP id l14so16415825qvw.12 for ; Mon, 16 Jan 2023 12:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Z88X+vYopvoTLVMVZKwpfkMfkKL8BuqJtPfaJs1MxLo=; b=JX6ei8TVH5n2sXZhMLCHZRuonG1+xDUzbVgtcUNHPA2pE3asJifw2P/mD3k83FQ2te Wi/O8dpI1x5Ixoea5zC3GvReTtXJVKacAb/SUih2lAZN4nmY0IFMeiJeFzEP/Frp9V0R TXNmpZNLM/gK7BtO2icB31ySuZoUAPZlnx30yzzTngYtgr/RMvWOFfugiQ8WUv1C9MeU xEGWG0iTR058XQ9N0ZmoEr6Ts5RZ3RJwuCUHRv2pDoGPZshBWh+zjy2TJIx5+jXfMzFZ RUbcBotyWI9M9UZbFYHnL8eecZcQM/RHA4OnSMUYjzuzJrEpU30Nn6EM+VQBzvwQ4whv ocdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Z88X+vYopvoTLVMVZKwpfkMfkKL8BuqJtPfaJs1MxLo=; b=5minMhqNGRY6brLHwbA/7XjNDjg8CHQq5xP3NPgfDhzUREMW7Y7y9HxhQDrTCYSWxq bjHQkzTAbKpNmwRETD/beEekZ6mTFXCdz7FyAppUCCFrfw6n6xt2CYoSr73QcoeCwbxu NfXtouW+0tcVkRMwr8GjhDQEhxuY7hbqjWzbql41oxv1HTz5tc+lczKlwJxTOgaRsy/d gMdd8D/ml3J4Sba7qXHLqC1X1nUunpBviwFU5V7PhXS4K/NRRu5ZslE1njZWNXVYkACi n6Zdcbg77ox6piMw1bpi2PpPvrXnGWE3Gkqylwy+V+tcBXIS90+Kafiw5TY5ULxZnW7D idPQ== X-Gm-Message-State: AFqh2kp0QdgyHropvrmn4+kNQndr4DTi9OpLcVx7689Xcl7n+EiO99Br 81IOUAUH+a4WJMZse7y3XcQmwJIserxGvZb6 X-Google-Smtp-Source: AMrXdXsWfBKsCixu/uoh3hLaoMsIV9GTeuFV/XwHoUP3Tg1xthysd2yCok57ufyJmHrIUXLpt9+fRw== X-Received: by 2002:a0c:bf43:0:b0:535:2692:ef42 with SMTP id b3-20020a0cbf43000000b005352692ef42mr956511qvj.33.1673900299316; Mon, 16 Jan 2023 12:18:19 -0800 (PST) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id l16-20020a37f910000000b00704df12317esm18821730qkj.24.2023.01.16.12.18.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 12:18:18 -0800 (PST) Received: by mail-yb1-f178.google.com with SMTP id a9so14865799ybb.3 for ; Mon, 16 Jan 2023 12:18:18 -0800 (PST) X-Received: by 2002:a25:904:0:b0:7d7:e469:372f with SMTP id 4-20020a250904000000b007d7e469372fmr86629ybj.528.1673900298450; Mon, 16 Jan 2023 12:18:18 -0800 (PST) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 From: Tomek CEDRO Date: Mon, 16 Jan 2023 21:18:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: FreeBSD on VisionFive2 board with RISC-V RV64GC StarFive JH7110 SoC To: riscv@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-3.23 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.935]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[riscv@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f29:from,209.85.219.178:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_NA(0.00)[no SPF record]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[cedro.info]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[riscv@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4NwjyN2CY1z3vXj X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello world :-) I have also posted this message on the Forum as this may be better search / reference point for the others: https://forums.freebsd.org/threads/freebsd-on-visionfive2-board-with-risc-v-rv64gc-starfive-jh7110-soc.87757/ I just got my VisionFive2 board (powerful rPI like with RISC-V CPU)! :-) Here are the details: https://www.waveshare.com/wiki/VisionFive2 Onboard RV64GC ISA Quad-core 64-bit JH7110 SoC, operating frequency up to 1.5GHz, VisionFive 2 supports OpenCL 3.0, OpenGL ES 3.2, and Vulkan 1.2. It is available in 4GB/8GB LPDDR4 RAM options and an optional wireless module. Also, it has multiple onboard interfaces, including M.2 / CSI / DSI / HDMI / eMMC / USB 3.0 / 40PIN GPIO / RJ45 Gigabit Ethernet port / TF card slot, etc. Supports 4K@60fps and H264/H265 multi-stream video decoding, 1080p@30fps and H265 multi-stream video encoding. Onboard 40PIN GPIO header, VisionFive2 is compatible with Raspberry Pi series boards. I got the variant with 8GB RAM, 2xGbit Ethernet, 4xUSB3.0 + 16GB eMMC module. I have made some Debian Linux run on it quickly from SD. Flashed the generic 13.1-RELEASE to the SD card from: https://download.freebsd.org/releases/riscv/riscv64/ISO-IMAGES/13.1/FreeBSD-13.1-RELEASE-riscv-riscv64-GENERICSD.img.xz OpenSBI shows up, boots off the SD card, FreeBSD loader shows up, then kernel stops at [icode]CPU(0): Unknown Implementer Unknown Processor[/icode]. Also RAM amount does not seem to be detected correctly (4GB instead 8GB). Anyone else interested in running FreeBSD on that CPU / Board? :-) ### Loading kernel... /boot/kernel/kernel text=0x5f00e0 text=0x12c234 data=0xeb748 data=0xad4+0x1d097c syms=[0x8+0xc31b0+0x8+0xe43e2] Loading configured modules... can't find '/boot/entropy' can't find '/etc/hostid' /boot/kernel/umodem.ko text=0x2160 text=0x1230 data=0x6e8+0x10 syms=[0x8+0x6ff0+0x8+0xe1c] loading required module 'ucom' /boot/kernel/ucom.ko text=0x24df text=0x30c0 data=0x8a8+0x858 syms=[0x8+0x12e70+0x8+0x14af] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x47ef3000. Kernel entry at 0xf660002e... Kernel args: (null) clk u5_dw_i2c_clk_core already disabled clk u5_dw_i2c_clk_apb already disabled ---<>--- Copyright (c) 1992-2021 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 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC riscv FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) VT: init without driver. SBI: OpenSBI v1.0 SBI Specification Version: 0.3 CPU(0): Unknown Implementer Unknown Processor real memory = 4294967296 (4096 MB) avail memory = 4157841408 (3965 MB) pbiS_ttarratpi_negr rCoPrU: 4h a(rhtar0:t 0tr)a handler failed (error -2) sbi_trap_error: hart0: mcause=0x0000000000000005 mtval=0x0000000040059060 sbi_trap_error: hart0: mepc=0x00000000400047fc mstatus=0x0000000200001800 sbi_trap_error: hart0: ra=0x0000000040009972 sp=0x0000000040058f10 sbi_trap_error: hart0: gp=0x0000000000000000 tp=0x0000000040059000 sbi_trap_error: hart0: s0=0x0000000040058f20 s1=0x0000000040059000 sbi_trap_error: hart0: a0=0x0000000040059060 a1=0x0000000000000002 sbi_trap_error: hart0: a2=0x0000000000000000 a3=0x0000000000000000 sbi_trap_error: hart0: a4=0x0000000000000001 a5=0x0000000040059060 sbi_trap_error: hart0: a6=0x00000000400590a8 a7=0x0000000000000000 sbi_trap_error: hart0: s2=0x0000000040023188 s3=0x0000000000000000 sbi_trap_error: hart0: s4=0x0000000000000000 s5=0x0000000040027000 sbi_trap_error: hart0: s6=0x0000000040027020 s7=0x0000000000000000 sbi_trap_error: hart0: s8=0x000000000000001c s9=0x00000000400476a8 sbi_trap_error: hart0: s10=0x0000000000000000 s11=0x0000000000000000 sbi_trap_error: hart0: t0=0x0000000000000000 t1=0x0000000000000000 sbi_trap_error: hart0: t2=0x0000000000000000 t3=0x0000000000002000 sbi_trap_error: hart0: t4=0x0000000000000000 t5=0x0000000000000000 sbi_trap_error: hart0: t6=0x0000000000000000 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info