From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24986 invoked from network); 12 Apr 2021 09:13:11 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 12 Apr 2021 09:13:11 -0000 Received: from ms11p00im-hyfv17281201.me.com ([17.58.38.39]) by 1ess; Mon Apr 12 05:04:40 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1618218275; bh=/08QvteJJWoPUarRo7I8xYDjtobUFrhJcCKBTUCCL5Y=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=tXuw2I6LAJ3QvT1NkK78/jt/uuEntfunNwrj9rXa4eklurSlLCIatFr0Ci09S95kc 3iadB/dUof4nhuXWVfvmkn36GUHujG2g7JdsRyKPVl1e0TdLsZ2aXPz1K+W+lt+oxh R/t4nT5J78Tkp+O+oSsAc4fand0KN8dbKKIih/aB3DKC9RJhMOk9vfwqEGBWa0nka2 DhSeBxqGp+2zw56IskJ9Tq7cs+2EuEAr86k59eWpiHZi24EVB/oYd75mFoIk2lyjvy wfE6KteZOFtZDUk2snOc1E5AYYjP08oRQ7qi45tJtWmql+ewTcDV4ikTCiQqU4WtKz dBei3RDRz/LBw== Received: from [192.168.1.52] (unknown [93.56.117.77]) by ms11p00im-hyfv17281201.me.com (Postfix) with ESMTPSA id 1221AC002DE for <9front@9front.org>; Mon, 12 Apr 2021 09:04:34 +0000 (UTC) From: Daniel Morandini Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Date: Mon, 12 Apr 2021 11:04:32 +0200 References: <4608706F7F1E10EEF1B37976ED3A971F@felloff.net> To: 9front@9front.org In-Reply-To: <4608706F7F1E10EEF1B37976ED3A971F@felloff.net> Message-Id: X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-04-12=5F04:2021-04-12=5F01,2021-04-12=5F04,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 clxscore=1015 adultscore=0 suspectscore=0 spamscore=0 mlxlogscore=488 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2104120060 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: CSS standard-oriented software Subject: Re: [9front] PXE booting Rpi Reply-To: 9front@9front.org Precedence: bulk Good morning cinap! > ok, i just tried the 32 bit pi2 kernel with a raspberry pi 3B+=20 > pxeboot and the R2 register appears to be zero on entry. I stumbled upon the R2 thing just by reading the docs and as I was debugging my issue I thought the docs/comments mismatch might have been an hint. I did not double-check it as: - I don't know yet how to access a register (:D) (is KADDR giving a=20 pointer to it? What if I give it 2 instead of 0?), and=20 - I assumed `if(pa !=3D 0 && /* smth */` is never asserted as pa is apparently always 0. If I call bootargsinit(2) which calls KADDR(2) is yielding R2, I just checked it and (without device_tree=3D in config.txt, otherwise the fallback works and the Pi loads the args) the Pi is *NOT* loading neither devtree nor atags: I assume you=E2=80=99re right then? No R2 for Pis? I=E2=80=99ll be on it later this afternoon. Why the =E2=80=98pa !=3D 0=E2=80=99 check? --- Mine is a Raspberry Pi 2 Model B V1.1 (BCM2836)! > this is with the latest bootcode.bin and start_cd*.elf: >=20 > term% sha1sum bootcode.bin fixup_cd.dat start_cd.elf > 76b71ff97ace39d9900c27f761f7548c4c6f49a5 bootcode.bin > 1585386a20cfc42b541f3ed1439d90e8c5b4529e fixup_cd.dat > e08d5b453ad1203f85cc5421b96ed6ebcc2f2299 start_cd.elf filefucker# sha1sum bootcode.bin start_cd.elf fixup_cd.dat 0f3e37fdc441fcb20fbd746978e05386acfdf876 bootcode.bin b2af5034d792c5baaa6a8897f9ac24d308e66026 start_cd.elf 72522c2c4bc18d7bea76c40a6b4330cd0f2bd52a fixup_cd.dat Apparently we=E2=80=99re using different stuff :D > and the following settings in config.txt: >=20 > [pi3] > kernel=3D../../sys/src/9/bcm/9pi2 >=20 > [all] > gpu_mem=3D16 > enable_uart=3D1 > boot_delay=3D1 Mine is: kernel=3D9pi2 device_tree=3D gpu_mem=3D16 enable_uart=3D1 uart_2ndstage=3D1 > note that atags worked just fine for me, without any > special setting. Just to learn something from a master, how are you debugging this? I=E2=80=99m collecting data and dumping it as soon as print is ready! Cheers, dan