Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

uClinux on DE2 board

hi all

I have run successfully uClinux on one custom board which has 2MB flash and 8MB sdram. I used nios2- ide .and i have generated romfs.bin amd vmlinux. I stored romfs at 0x00100000.

It displayed following on console.

->/////////////////////////////////////////////////////////////////

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: 7012k/8192k RAM, 0k/0k ROM (858k kernel code, 202k data)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

Linux NoNET1.0 for Linux 2.6

Serial: JTAG UART driver $Revision: 1.4 $

ttyJ0 at MMIO 0x80221080 (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

custom map: Found 1 x16 devices at 0x0 in 16-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

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 custom development partition definition

Creating 2 MTD partitions on "custom map":

0x00100000-0x00200000 : "romfs"

0x00000000-0x00100000 : "loader/kernel"

VFS: Mounted root (romfs filesystem) readonly.

Freeing unused kernel memory: 52k freed (0x8f2000 - 0x8fe000)

/bin/hostname: not found

expand: from=/ramfs.img to=/dev/ram0

expand: from=/ramfs.img to=/dev/ram1

/bin/ifattach: not found

/bin/inetd: not found

/bin/boa: not found

/etc/issue www.microtronix.com June 2005

Welcome to Linux on the Nios II

(none) login:

->/////////////////////////////////////////////////////////////////

now I am using DE2 board .it has 4MB flash and 8MB sdram.

I have generated .ptf using SOPC builder with flash(4MB) ,sdram8MB, jtag_uart(irq-1)

uart(irq-2)and timer (irq-0).nothing else .i used same kernel code as custom board.

i changed only mtd partition.like

static struct mtd_partition custom_partitions[] = {

{

.name = "romfs",

.size = 0x200000,

.offset = 0x200000,

},{

.name = "loader/kernel",

.size = 0x200000,

.offset = 0x0,

}

};

and stored new romfs.bin at 0x00200000. but it hanged after some time. i can't able to understood

what is worng with it.it gave following o/p:

->/////////////////////////////////////////////////////////////////

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: 7116k/8192k RAM, 0k/0k ROM (823k kernel code, 133k data)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

Linux NoNET1.0 for Linux 2.6

Serial: JTAG UART driver $Revision: 1.4 $

ttyJ0 at MMIO 0x80484820 (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

custom map: Found 2 x8 devices at 0x0 in 16-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

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 custom development partition definition

Creating 2 MTD partitions on "custom map":

0x00200000-0x00400000 : "romfs"

0x00000000-0x00200000 : "loader/kernel"

->/////////////////////////////////////////////////////////////////

plase help me. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    How is it done ?

    Can u please explain the procedure to run uClinux on DE2 board which I use?

    DE2(Altera) has a Nios II processor and 4MB flash and 16MB SDRAM.

    I have Nios II IDE in Windows OS.

    I also installed QUARTUS II 7.0 ver

    Where should I install uClinux ?

    Please discuss the procedure for installation of uClinux .

    How do you generate romfs.bin file and vmlinux?