Ok I pulled a 9legacy ISO, applied your patch set from this thread above, and built a 9pi2 kernel. My build now runs as the kernel on a QEMU raspi2b system. 

I didn't realize 9legacy actually had a distribution for some reason I thought it was only a patch set applied against the old main line. Glad I don't have to pick apart the patch set that (works)...

It looks like on boot with both the kernel you built and my kernel (the sizes are different so I presume you added on things in a custom config?) the system loads into the GUI but then hangs moments later and stops updating the frame buffer, or the system is hung. Any thoughts on why that might have occurred? Is this to do with the watchdog...? 

Thanks, this is excellent and useful. 
D


On Fri, Sep 1, 2023 at 10:01 PM Don Bailey <don.bailey@gmail.com> wrote:
Yeah it must be patches in 9legacy.... because pulling the bcm from contrib and using that does not alone fix the kernel. 

Interestingly, I can get a kernel to boot in a raspi1ap emulated image, but it faults on what I presume is the jump to userland, resets, and auto-boots the kernel again in an infinite loop. I cannot get raspi2b to boot at all (same deadlock as before). 

The thing about 9legacy is I'm not sure what patches to pull and what is or isn't stable.... do you have any recommendations?

Thanks again,
D


On Fri, Sep 1, 2023 at 3:38 PM Richard Miller <9fans@hamnavoe.com> wrote:
> Based on the diffs you supplied, it looks like my bcm
> sources (from the latest r4 ISO) are not the same as yours. I don't use
> 9front. What is the best way to make sure my bcm (and 9) kernel trees are
> the same as your current tree?

A lot has changed in the bcm kernel since the 4th edition ISO, because
of the release of newer Raspberry Pi models.  Current source is in
contrib/miller/9/bcm - just copy those files into /sys/src/9/bcm (or use
the 9legacy ISO instead, which is kept up to date and has other useful
patches too).


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T5da5467097e4eab2-Me83a2442fc4a034b67c85cec
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription