Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
1,162 Views

U-Boot to boot without any tty console [Nios II MMU]

I have a 3c120 board running linux with the help of http://www.rocketboards.org/foswiki/documentation/niosiilinuxusermanual#how_to_debug_kernel_47driver... 

But what I see is that U-Boot does not boot until I connect via nios2-terminal, I can see there are several configurations and env I can set in U-Boot. But not clear what variable I can set / modify to boot U-Boot without any user interaction.  

 

U-Boot config looks like this  

 

/* added environment to ease user usage */ 

#define config_auto_complete 

#define config_bootargs "console=ttyj0,115200" 

#define config_extra_env_settings \ 

"fdtaddr=0xd5000000\0" \ 

"loadaddr=0xd6000000\0" \ 

"fdtimagesize=0x1000\0" \ 

"bootimagesize=0x200000\0" \ 

"cfifdtaddr=0xe0200000\0" \ 

"cfibootaddr=0xe0300000\0" \ 

"cfiroot=/dev/mtdblock0 rootfstype=jffs2 rw\0" \ 

"cfiload=cp.b ${cfifdtaddr} ${fdtaddr} ${fdtimagesize};" \ 

"cp.b ${cfibootaddr} ${loadaddr} ${bootimagesize}\0" \ 

"cfiboot=setenv bootargs " config_bootargs " root=${cfiroot};" \ 

"bootm ${loadaddr} - ${fdtaddr}\0" \ 

"nfsdhcpboot=setenv bootargs " config_bootargs " root=/dev/nfs " \ 

"rw nfsroot=${serverip}:${rootpath},tcp " \ 

"ip=dhcp;bootm ${loadaddr} - ${fdtaddr}\0" \ 

"nfsstaticboot=setenv bootargs " config_bootargs " root=/dev/nfs " \ 

"rw nfsroot=${serverip}:${rootpath},tcp " \ 

"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask};" \ 

"bootm ${loadaddr} - ${fdtaddr}\0" \ 

"serverip=196.168.96.11\0" \ 

"rootpath=/home/nios2/nfs\0" \ 

"ipaddr=196.168.96.10\0" \ 

"gatewayip=196.168.96.254\0" \ 

"netmask=255.255.255.0\0" \ 

"ethaddr=22:33:44:55:66:77\0" 

 

 

#define config_cmd_run 

/* boot command will automatically executed */ 

#define config_bootcommand "run cfiload; run cfiboot" 

/* delay before automatically booting the default image */ 

 

You can see there is boot arg defined as console=ttyj0,115200 .Is that where the magic happens why it waits for the nios2-terminal before it boots? Thanks!
0 Kudos
3 Replies
Highlighted
Valued Contributor III
10 Views

Hi 

 

 

--- Quote Start ---  

 

But what I see is that U-Boot does not boot until I connect via nios2-terminal, I can see there are several configurations and env I can set in U-Boot.  

--- Quote End ---  

 

 

Please confirm it as follows once. 

 

make menuconfig 

 

Kernel/Library/Defaults Selection ---> [*] Customize Kernel Settings <Exit> 

 

Device Drivers ---> Character devices ---> Serial drivers --->  

 

[*] Bypass output when no connection 

 

.config - Linux Kernel v2.6.30 Configuration 

&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; 

&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; Serial drivers &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488; 

&#9474; Arrow keys navigate the menu. <Enter> selects submenus --->. &#9474;  

&#9474; Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, &#9474;  

&#9474; <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> &#9474;  

&#9474; for Search. Legend: [*] built-in [ ] excluded <M> module < > &#9474;  

&#9474; &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488; &#9474;  

&#9474; &#9474; < > 8250/16550 and compatible serial support &#9474; &#9474;  

&#9474; &#9474; *** Non-8250 serial port support *** &#9474; &#9474;  

&#9474; &#9474; < > MAX3100 support &#9474; &#9474;  

&#9474; &#9474; [*] Altera JTAG UART support &#9474; &#9474;  

&#9474; &#9474; [*] Altera JTAG UART console support &#9474; &#9474;  

&#9474; &#9474; [ ] Bypass output when no connection &#9474; &#9474;  

&#9474; &#9474; [*] Altera UART support &#9474; &#9474;  

&#9474; &#9474; (4) Maximum number of Altera UART ports &#9474; &#9474;  

&#9474; &#9474; (115200) Default baudrate for Altera UART ports &#9474; &#9474;  

&#9474; &#9474; [ ] Altera UART console support &#9474; &#9474;  

&#9474; &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496; &#9474;  

&#9500;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9508;  

&#9474; <Select> < Exit > < Help > &#9474;  

&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;  

 

Did you select it? 

 

Kazu
0 Kudos
Highlighted
Valued Contributor III
10 Views

Thanks kazuyasu! 

I assume all these configs are done in Linux kernel, right? I dont think there is any configs I could do in U-Boot. All I could do there was "make <boardname>_config" and make.  

And in kernel settings, I couldnt find  

Kernel/Library/Defaults Selection --->[*] Customize Kernel Settings <Exit>  

But I could modify the rest of the settings regarding the "Bypass output when no connection" for the serial connection.
0 Kudos
Highlighted
Valued Contributor III
10 Views

Ok, Thanks Kazuyasu. I did what you suggested and I am able to boot without kernel waiting for the console. 

 

Also it would help me if you could give me some info or point me to some document for my post here http://www.alteraforum.com/forum/showthread.php?t=42366
0 Kudos