[Note to moderators] Not sure if I post it at the right place, don't hesitate to move it if necessary [/Note]
What I want to do:
I am working on a project where we want to update our RPi on boot. We are working with buildroot successfully for almost one year. Now I am trying to get it work with U-boot.
What versions I am working with:
- RPi 3
- buildroot 2017.05 which contains U-boot 2017.03
I have read over 100 web pages. My main inspirations are:
- http://ltekieli.com/buildroot-with-raspberry-pi-u-boot/ (where I also posted a comment to ask for advice)
So I build on a Debian (32bits). I configure buildroot with raspberrypi3_defconfig, and in the bootloader menu I select U-boot and set the U-boot config to rpi_3_32b. The simple rpi config does not work (hangs in rainbow) and obviously I am unable to build with rpi_3 config as it implies 64bits, which my host is not able to provide. (If I really must switch to 64bits for host and RPi and U-boot, I think I would be able to do it, but I am fairly sure I should be able to achieve my project with 32bits too.)
In the linux menuconfig of buildroot, I also changed some kernel settings to have early printk, logging level to 7 and to enable low-level debug.
What I am able to do:
I can boot and stop in U-boot menu.
The problem now:
When I proceed the fatload+bootz commands, I only get the starting kernel message and it hangs there. I am connected through UART serial line and I also have the official RPi touchscreen on the DSI. I tried to change the console in the bootargs since there are different minds on the web, I tried ttyAMA0, ttyS0, tty0, tty1.
But if I only changed the kernel= line in the config.txt, my RPi hangs in rainbow screen. I had to disable the overlay setting to fix this.
Since I get no output at all, it is really difficult to guess what the problem is... Any advice would be welcome