From nobody Sun Jan 22 17:13:11 2023 X-Original-To: freebsd-arm@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 4P0KZ14C7Lz3NBDS for ; Sun, 22 Jan 2023 17:13:13 +0000 (UTC) (envelope-from jammin2night@gmail.com) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 4P0KZ04yq9z4PDr for ; Sun, 22 Jan 2023 17:13:12 +0000 (UTC) (envelope-from jammin2night@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="Xt/1ofYu"; spf=pass (mx1.freebsd.org: domain of jammin2night@gmail.com designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=jammin2night@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qv1-xf2b.google.com with SMTP id e19so4294690qvw.13 for ; Sun, 22 Jan 2023 09:13:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=7/W/zeL7UsIxOwMugEcOSAkCckXV3wYDADjfwwB6J0w=; b=Xt/1ofYuQcjrsltUNIc9eec7uolR3jbJveY9h4SdlN+j/2JTkLHAMoXintfKFEsucW bNSMs8Eq/NUHRv5ML7X42bMVDkKMYNgdWkazALkrV2TqsHAeVAf2ex/DJsZIIdLaGboc rfjf5w8pUghpu2uBAFzgOI/8anaYafVgd4RLadWorakNHd5xGBJm8TvzN3Lr3Fosvra8 8ScaxYIci7qJgwNvD+d8+u5+PNk0ZRxRKJlTDEUfbV2qwPGbzPytKKTALR9ZQURBGjHn lOOuCwZas3c7uwiTHPBC6DscB3RnC+crNT24LNDuvR15O3VGev4FEeDRnkKSwZKPKgBa MVIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:from:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=7/W/zeL7UsIxOwMugEcOSAkCckXV3wYDADjfwwB6J0w=; b=CMosijyc2LfNgMb7taTch8nDh33+f9UEEyKsyMwx246jH55V3nNgW81mF+Xk9LrCOA GiaP8MrcOauJthQVwy0BMJ87a3QX0mgfK4VTxsE6IlqvZLxtRYtm+tqN8Tj97aqvHcu+ DJth6/2jZlc9Ih/zuzmwrDcc8gFu859j5PEw50Wf5Ix+wWIXJjrPTejSJWIyWsJE5TwK EKOSd2c4Reikjip0Tjz/zekxnF44RklBBwPFGHaKwYUMUMQekYzRgKbdC/+7zgTykJId lrQxzGxA2Sqfe9nzDk2bAye4IXwkeP+C8zURHLkvJY5oMK3bbXN8tQikdfwkt0Jqtcjj TJhw== X-Gm-Message-State: AFqh2kreUDixT4D4cH52rA4YtZuzXnX1Ti4dioTpLDu8VGjs8hikla0m gApI99q9UkuZKsVRdknY+hONoMndR1w= X-Google-Smtp-Source: AMrXdXtiKNiKtCyt95ezyEm3tQ1k64Kp7HvowFTgGN+B7tN2jYcaeMRdD2f8Lg+61ON6O/l2Xam5Tw== X-Received: by 2002:a0c:cc83:0:b0:536:85d1:1458 with SMTP id f3-20020a0ccc83000000b0053685d11458mr14023088qvl.19.1674407591660; Sun, 22 Jan 2023 09:13:11 -0800 (PST) Received: from [192.168.6.10] (71-150-188-187.lightspeed.lsvlky.sbcglobal.net. [71.150.188.187]) by smtp.gmail.com with ESMTPSA id w26-20020a05620a0e9a00b006fa22f0494bsm10298230qkm.117.2023.01.22.09.13.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Jan 2023 09:13:11 -0800 (PST) Message-ID: Date: Sun, 22 Jan 2023 12:13:11 -0500 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US From: Michael Jung Subject: arm.armv7 crashing To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.975]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2b:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4P0KZ04yq9z4PDr X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hi: New to arm but I was given a handful of OrangePI's and I had been wanting to work with GPIO for some time so I though I would give a go. I will be honest, even as a user of FreeBSD since  the 2.x days I started with armbian - it crashed a lot - and so FreeBSD here I came. The crashes are infrequent but present. It will normally run days, but sometimes only a few hours.  I have learned a lot about ARM in general but  still struggle in some area's one of them getting crash dumps. System:  OrangePi-R1 with add on card for 2xUSB + audio FreeBSD Boot image from downloads.freebsd.org FreeBSD generic 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n259842-c89209c674f2: Sat Dec 24 05:49:58 UTC 2022 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm and  u-boot-orangepi-2e as it's DTS? tables allow the kernel to recognize my add on board  for the Orange-PI that provides 2xUSB + audio which I need for my project.   u-boot-orangepi-r1 does not address the additional hardware. The system sits and runs webcamd and ustreamer and that is basically it outside of what can be seen in the log file - like the wireless driver etc.  Unless I can get the board not to crash I will need to switch to another board - this little board fits my bill as other than what is running I expect to have a little python code to handle other things including GPIO (plans change you know...) My two USB devices are a web-cam and a Cisco wifi stick that is Linksys WUSB600N compatible. I followed the  handbook and tried to provide all the DDB commands recommended when you get a kernel panic and are dropped into the debugger.  I have attempted at great length to get  a dump on the MicroSD card and "dumpon -l" plus the partition table info all looks good but if debug.kdb.panic=1 is set in /loader.conf I only see "Dumping:" on the console and then no progress and I ave let it sit for hours. There is a copy of /boot/loader.conf, systctl -a , all the DDB output and a copy of "boot -v" here: http://mail.mikej.com/armv7-new.log The DDB and verbose boot are mid way down the log file. Other than a fix could someone clue me in if my issue in using the incorrect u-boot loader which means I will need to learn a lot about how to build flattened device trees to support the add on card or is there something wrong in the kernel itself. Any hints on how to get real dumps to micro-sd if that even is possible would also be appreciated. I read hundreds? of  articles and board postings and there is a lot of info out their but none of it has clued me in - maybe I'm just getting too old :-( Thanks for ANY advise. Michael Jung