Forum Discussion
Altera_Forum
Honored Contributor
20 years agouClinux Boot problem
Hi, I am testing my own custom board with EP1C12Q240, Flash=16bit*4M, Sdram=32bit*2M. My system has NiosII/f Core, uart, jtag-uart, sdram, flash, epcs_controller, timer and some PIOs. I use...
Altera_Forum
Honored Contributor
20 years agoHi hippo,
Thank you. But now, I want to implement booting uClinux under IDE, then I will try to do it under Linux. I will ask you question later. I retry booting without U-Boot, just follow Microtronix's Quick Guide, it is OK. <div class='quotetop'>QUOTE </div> --- Quote Start --- Linux version 2.6.11-uc0 (LiangYi@ciitec-liangyi) (gcc version 3.4.1 (Altera Nios II 5.0 b73))# 4 Tue Mar 7 16:04:58 2006 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: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6552k/8192k RAM, 0k/0k ROM (1259k kernel code, 263k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 NIOS serial driver version 0.0 ttyS0 (irq = 3) is a builtin NIOS UART Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x82000800 (irq = 1) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Microtronix map: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Microtronix map: 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 Microtronix development partition definition Creating 2 MTD partitions on "Microtronix map": 0x00200000-0x00800000 : "romfs" 0x00000000-0x00200000 : "loader/kernel" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 60k freed (0x960000 - 0x96e000) expand: from=/ramfs.img to=/dev/ram0 expand: from=/ramfs.img to=/dev/ram1 /etc/issue www.microtronix.com June 2005 welcom to Linux on the Nios II Nios2 login:[/b] --- Quote End --- Next, I try with U-Boot. I follow the step Build U-Boot and download to flash 0x0 Use vmlinux.bin -> mkimage(not gzip) -> bin2flash(location=0x50000) -> download Use romfs.bin -> bin2flash(location=0x200000) -> download Run <div class='quotetop'>QUOTE </div> --- Quote Start --- ==> bootm 0x50000 # # Booting image at 00050000 ... Image Name: Linux Kernel Image Image Type: Nios-II Linux Kernel Image (uncompressed) Data Size: 1504864 Bytes = 1.4 MB Load Address: 00800000 Entry Point: 00800000 Verifying Checksum ... OK OK Linux version 2.6.11-uc0 (LiangYi@ciitec-liangyi) (gcc version 3.4.1 (Altera Nios II 5.0 b73))# 4 Tue Mar 7 16:04:58 2006 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: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6552k/8192k RAM, 0k/0k ROM (1259k kernel code, 263k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 NIOS serial driver version 0.0 ttyS0 (irq = 3) is a builtin NIOS UART Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x82000800 (irq = 1) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Microtronix map: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Microtronix map: 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 Microtronix development partition definition Creating 2 MTD partitions on "Microtronix map": 0x00200000-0x00800000 : "romfs" 0x00000000-0x00200000 : "loader/kernel" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 60k freed (0x960000 - 0x96e000) expand: from=/ramfs.img to=/dev/ram0 expand: from=/ramfs.img to=/dev/ram1 Cursor wink here, but nothing displays. Then, I type anything from keypad and all can be displayed in the terminal where cursor wink. Why?[/b] --- Quote End --- So, I want to ask if U-Boot has some settings involved in Kernel of Filesystem Booting and make this happen. Thank you, LiangYi