- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a 3c120 board running linux with the help of http://www.rocketboards.org/foswiki/documentation/niosiilinuxusermanual#how_to_debug_kernel_47drivers_with_gdb
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!Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ────────────────────────────────────────────────────────────────────────────── ┌──────────────────────────── Serial drivers ─────────────────────────────┐ │ Arrow keys navigate the menu. <Enter> selects submenus --->. │ │ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │ │ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │ │ for Search. Legend: [*] built-in [ ] excluded <M> module < > │ │ ┌─────────────────────────────────────────────────────────────────────┐ │ │ │ < > 8250/16550 and compatible serial support │ │ │ │ *** Non-8250 serial port support *** │ │ │ │ < > MAX3100 support │ │ │ │ [*] Altera JTAG UART support │ │ │ │ [*] Altera JTAG UART console support │ │ │ │ [ ] Bypass output when no connection │ │ │ │ [*] Altera UART support │ │ │ │ (4) Maximum number of Altera UART ports │ │ │ │ (115200) Default baudrate for Altera UART ports │ │ │ │ [ ] Altera UART console support │ │ │ └─────────────────────────────────────────────────────────────────────┘ │ ├─────────────────────────────────────────────────────────────────────────┤ │ <Select> < Exit > < Help > │ └─────────────────────────────────────────────────────────────────────────┘ Did you select it? Kazu- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page