From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Date: Thu, 6 Nov 2014 17:54:14 -0600 Subject: [U-Boot] socfpga: mainline cannot boot linux In-Reply-To: <20141107004043.2f09f721@crub> References: <1414007764-24094-1-git-send-email-marex@denx.de> <1414007764-24094-7-git-send-email-marex@denx.de> <545BFE54.8010909@opensource.altera.com> <20141107004043.2f09f721@crub> Message-ID: <545C0A26.1080800@opensource.altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/06/2014 05:40 PM, Anatolij Gustschin wrote: > Hi Dinh, > > On Thu, 6 Nov 2014 17:03:48 -0600 > Dinh Nguyen wrote: > >> Hi Marek, >> >> Have you been able to successfully boot Linux using the mainline uboot? >> I cannot seem to be able to boot linux on the C5 SocDK. >> >> It starts to boot linux, but then reboots after a bit back into u-boot. >> So I commented out #define CONFIG_HW_WATCHDOG in >> include/configs/socfpga_cyclone5.h. That helped so that I can look that >> __log_buf. >> I was able to trace it down that it was not able to get a tty console, >> because serial8250_console_setup() is failing at: >> >> if (!port->iobase && !port->membase) >> >> For reasons I haven't figured out yet, both port->iobase and >> port->membase are NULL. >> >> So no debug console, but Linux is able to boot all the way to the point >> of tyring to mount a FS. >> >> Perhaps some kind of memory setup issue? I've seen a thread where >> Chin-Liang was able to boot, but I don't know if he did any other tricks. >> >> Just wondering if I'm missing a patch or something? > > the issue could be the wrong console= argument on the kernel command > line. In the current socfpga_config5.h I see > > #define CONFIG_BOOTARGS "console=ttyS0" __stringify(CONFIG_BAUDRATE) > > A comma is missing after "console=ttyS0" > > It should be > > #define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE) > > Could you please test it? Thanks. Yep, that was it! Thanks alot for seeing that. Dinh