Re: Enabling KGDB for AM335x
Lloyd Parkes <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <7c4d415204b2837fb63abbef7d5cafff2799c9ae.camel@must-have-coffee.gen.nz> |
Kia ora James, I'm no port-arm gatekeeper so I'm not going to answer any of your questions about what is right, but I will point out one bit of information. You state in a comment "Need to mux the pins since fdt bus isn't up yet". This is only sort-of true. The NetBSD FDT bus is not ready yet for sure, but U-Boot has already initialised the MUX using it's own FDT. You could add uart1 configuration to the devicetree used by U-Boot and then U-Boot will configure the hardware for you. Configuring the hardware so that the kernel can boot is one of U-Boot's stated jobs. The kernel can support both methods with a #ifdef option. Whether or not you want to put that work into U-Boot is up to you. Ngā mihi, Lloyd