I am building my own cross-linux-from-scratch (CLFS) system for Raspberry Pi. I already build whole system, I prepared SD card and now I try to boot. I am redirecting all kernel output to serial console (UART on Raspberry PI gpio) so I can see what's happening. My
cmdline.txt contains this line:
dwc_otg.lpm_enable=0 rpitestmode=1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
inittab file contains this line:
::respawn:/sbin/getty -L ttyAMA0 115200 vt100
So all stdout and stderr from kernel and init script should go to UART. But when I power up my Raspberry, I can see output just from the kernel, not from init script. What am I doing wrong? How can I redirect all output to Raspberry's UART?