Hi.
I'm developing a system nios2 with mmu support and I can't make uClinux work.
This is the system nios ii build in Sopc Builder.
system_nios_ii.jpg
I can download the zImage.initramfs.gz
$ nios2-download -g zImage.initramfs.gz
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 1634KB in 23.8s (68.6KB/s)
Verified OK
Starting processor at address 0xC0400000
Then, I run nios2-terminal and...
$ nios2-terminal.exenios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Initializing cgroup subsys cpu
Linux version 3.7.0+ (usuario@cent24.16 BogoMIPS (lpj=120832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer
NET: Registered protocol family 2
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)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
crc32: self tests passed, processed 225944 bytes in 3308320 nsec
crc32c: CRC_LE_BITS = 64
crc32c: self tests passed, processed 225944 bytes in -4244500 nsec
ttyAL0 at MMIO 0x803440 (irq = 1) is a Altera UART
console [ttyAL0] enabled, bootconsole disabled
in putty...
console [ttyAL0] enabled, bootconsole disabledttyJ0 at MMIO 0x803468 (irq = 2) is a Altera JTAG UART
spi_altera 803400.spi: master is unqueued, this is deprecated
spi_altera 803400.spi: base e0803400, irq 3
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
Warning: unable to open an initial console.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -2
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
and then nothing happens...
If anyone can help, I will be very grateful.
Attached the kernel configuration files and applications.
Thanks
Nicolás
Córdoba Argentina
I'm developing a system nios2 with mmu support and I can't make uClinux work.
This is the system nios ii build in Sopc Builder.
system_nios_ii.jpg
I can download the zImage.initramfs.gz
$ nios2-download -g zImage.initramfs.gz
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 1634KB in 23.8s (68.6KB/s)
Verified OK
Starting processor at address 0xC0400000
Then, I run nios2-terminal and...
$ nios2-terminal.exenios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Initializing cgroup subsys cpu
Linux version 3.7.0+ (usuario@cent24.16 BogoMIPS (lpj=120832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer
NET: Registered protocol family 2
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)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
crc32: self tests passed, processed 225944 bytes in 3308320 nsec
crc32c: CRC_LE_BITS = 64
crc32c: self tests passed, processed 225944 bytes in -4244500 nsec
ttyAL0 at MMIO 0x803440 (irq = 1) is a Altera UART
console [ttyAL0] enabled, bootconsole disabled
in putty...
console [ttyAL0] enabled, bootconsole disabledttyJ0 at MMIO 0x803468 (irq = 2) is a Altera JTAG UART
spi_altera 803400.spi: master is unqueued, this is deprecated
spi_altera 803400.spi: base e0803400, irq 3
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
Warning: unable to open an initial console.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -2
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
and then nothing happens...
If anyone can help, I will be very grateful.
Attached the kernel configuration files and applications.
Thanks
Nicolás
Córdoba Argentina