This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have a custom AM3352 board that has a Microchip KSZ switch on it that I’m trying to get DSA to work with. I have an older 2019 u-boot/spl that I’ve been using on a couple AM3352 projects that I’ve found “just works.” I initially grabbed a 6.1 kernel from the TI BSP since that’s what I’ve always had the best luck with, everything boots up and is happy as can be, except the KSZ drivers don’t seem to work at all. kernel 6.6 and 6.7 have very significant revisions to these drivers.
Rootfs is a 12.1 minimal Debian from Robert Nelson's repo.
I first tried a mainline 6.6. I don’t care about the PRU, power management or the couple other things that won’t work, as long as I can get the KSZ switch going. I copied my defconfig from an existing and pulled in my devicetree, everything compiled smoothly, install my modules in my rootfs, u-boot hangs at “Loading Kernel…”
I scratched my head for a while and eventually came across Robert’s repo of patches and scripts and used that to download and patch 6.7, did my defconfig, devicetree, no issues compiling, same “Loading Kernel…” hang.
I’m at kind of a loss why 6.1 (TI BSP) works perfect but 6.6 (mainline) and 6.7 (RN) hang. Was there some change between those that I need to account for? Is my u-boot 2019 too old for 6.6 or 6.7? I’m stuck. Any suggestions are helpful.
I know the officially answer will be "we only support the BSP kernel" but I'm just looking for any differences between the BSP 6.1 and mainline to help me get it launched.
Adam, Some questions and tips
1. Any particular reason you are switching to 6.6+ and not upgrading bootloader ?
2. Some tips here on debugging with early printk enablement : https://e2e.ti.com/support/processors-group/processors---internal/f/processors---internal-forum/1290166/am3351-kernel-can-not-start-on-custom-board/4896355?tisearch=e2e-sitesearch&keymatch=early%25252520printk#4896355 . this could should more trace beyond loading kernel aspect .
3. We have some results on mainline builds 6.8 : Ref : https://software-dl.ti.com/cicd-report/upstream/index.html?section=platform&platform=am335x
Praneeth, main reason is the u-boot I have does TFTP boot for SPL and U-Boot, and I have some customized logic around where to boot into the kernel from, and whether to boot into a kernel with an initramfs and flash an eMMC or just boot what's on the eMMC. I tried a 2021 U-Boot at one point but could never get it to TFTP both SPL and U-Boot.
I'll check out the docs, thanks for the reply.