Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLogon using UART
Hi,
I am using the Altera Cyclone 1C20 board. When I configure the kernel use th UART as console I get the following kernel print out but I do not get the logon prompt. Linux echos characters and increments the Led display. When I configure the kernel to use the JTAG port as a console I am able to logon fine. Can anybody help? Shlomo Linux version 2.6.9-uc0 (skut@skut-xp2) (gcc version 3.4.1 (Altera Nios II 1.1 b137))# 5 Wed Mar 9 12:02:52 JST 2005 uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 128 (order: 7, 2048 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory available: 14336k/16384k RAM, 0k/0k ROM (1548k kernel code, 309k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 request NIOS serial driver version 0.0 1.2 MBving up. ttyS0 (irq = 4) is a builtin NIOS UARToad Address: 00000000 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksizeing Checksum ... Bad Data CRC smc_probe: 50000 Khz Nios 12872 Using anticipatory io scheduler Altera NDK flash (AMD): Found 1 x8 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Altera NDK flash (AMD): CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 4 MTD partitions on "Altera NDK flash (AMD)": 0x00200000-0x00600000 : "romfs/jffs2" 0x00000000-0x00200000 : "loader/kernel" 0x00600000-0x00700000 : "User configuration" 0x00700000-0x00800000 : "safe configuration" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 1024 bind 2048) NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 48k freed (0x11b2000 - 0x11bd000) expand: from=/ramfs.img to=/dev/ram0 expand: from=/ramfs.img to=/dev/ram12 Replies
- Altera_Forum
Honored Contributor
This is briefly mentioned in the reference guide under "Using a Nios Serial UART instead of the JTAG UART"
There are 2 parts to getting this to work: 1) changing the kernel console to the serial port (which you appear to have done successfully) and 2) change your inittab file to start a user console on the serial port To complete the second part of the process, do the following: a) In your filesystem project open the target/etc/inittab file b) remove the "# " from the line "# ttyS0:vt100:/bin/agetty 115200 ttyS0" c) save the inittab file d) rebuild your filesystem project e) upload your new romfs.bin to your board At this point both your kernel messages and your normal login should appear on the serial port. Dennis Scott Microtronix Datacom Ltd. - Altera_Forum
Honored Contributor
Thank you Denis.
It works fine now. Shlomo