<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 8, 2023 at 2:32 AM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/6/23 18:23, enh via Toybox wrote:<br>
> Tested on a Raspberry Pi 400 with a BME680 connected to the relevant<br>
> pins, and commands like `i2ctransfer 1 w3@0x77 0x60 0xb6 0xd0 r1`, which<br>
> writes 0xb6 to register 0x60 of chip 0x77 on bus 1, and then reads one<br>
> byte.<br>
<br>
I broke down and did a cleanup pass (f90b2994a2da) which compiles but I can't<br>
test it. Did I break anything obvious?<br></blockquote><div><br></div><div>the basics still seem to work for me.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I still need an i2c test environment. QEMU says it can emulate pi2b and pi3b<br>
(although whether this includes i2c I dunno), but according to<br>
<a href="https://raspberrypi.stackexchange.com/questions/127537/can-i-use-the-mainline-kernel-in-my-rasp-if-not-why" rel="noreferrer" target="_blank">https://raspberrypi.stackexchange.com/questions/127537/can-i-use-the-mainline-kernel-in-my-rasp-if-not-why</a><br>
the relevant defconfigs are bcm2709_defconfig and either bcmrpi3_defconfig or<br>
bcm2711_defconfig but all the vanilla 6.4 kernel has is bcm2835_defconfig.<br>
<br>
Flashbacks to the last time I tried to make this work: none of it's in vanilla,<br>
and even if you try to use qemu -kernel to bypass the weird bootloader and init<br>
stuff, it's still off in a fork. :(<br>
<br>
Hmmm, maybe <a href="https://gist.github.com/jonte/b4bd83a5f2e8330418b1f3322bff74f2" rel="noreferrer" target="_blank">https://gist.github.com/jonte/b4bd83a5f2e8330418b1f3322bff74f2</a> is<br>
useful in a mkroot testing context...<br>
<br>
Rob<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div></div>