|
Message
From: rich_daddio at yahoo.com<rich_daddio@y...>
Date: Tue Feb 26 17:39:26 CET 2008
Subject: [openrisc] problem of romfs in or32 uclinux kernel
Hi Charlie, Not sure if this will help but does your console point to tty? With the ramdisk we do this in /dev: ln -s ttyS0 console
If you want to see the ramdisk stuff required to boot and get a console: www.meansoffreedom.com/Ramdisk_Howto.html
HTH & Best Regards,
Rich d
----- Original Message ----- From: charlie yang<ydt@u...> To: Date: Mon Feb 25 10:56:04 CET 2008 Subject: [openrisc] problem of romfs in or32 uclinux kernel
> Hi all, > I downloaded orp_soc as the cpu sample and tested the cpu on the > altera FPGA board. The flash ,SDRAM and UART controller cores has > been verfied ok and the basic programs like "hello uart" > has run > successfully. > So I try to build uclinux kernel with rom file system, genromfs > following the readme and at uclinux/uClinux-2.0.x/README.or32. When > I > run linux in or32-simulator under cygwin enviroment, the kernel > start > information is: > /**************************************************/ > OpenRisc 1000 support (C) www.opencores.org > uClinux/OR32 > Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne > KERNEL -> TEXT=0x4000c20-0x404df62 DATA=0x002000-0x007714 > BSS=0x007720-0x02257d > KERNEL -> ROMFS=0x02257d-0x022580 MEM=0x022580-0x3ff000 > STACK=0x3ff000-0x400000 > Command line: 'CONSOLE=/dev/ttyS0' > BLK_DEV_INITRD addr: 0x404df70-0x40ae370 > start_mem is 0x22580 > virtual_end is 0x3ff000 > free_area_init -> start_mem is 0x25580 > virtual_end is 0x3ff000 > Mem_init: start=33000, end=3ff000 > Memory available: 3888k/4084k RAM, 3785k/4096k ROM (204k kernel > data, 311k code) > Swansea University Computer Society NET3.035 for Linux 2.0 > NET3: Unix domain sockets 0.13 for Linux NET3.035. > uClinux version 2.0.38.1pre3 (charlie at charlie-desktop) (gcc > version > 3.4.4) #1 Mon Feb 25 16:43:36 2008 > Serial driver version 4.13p1 with no serial options enabled > ttyS00 at 0x90000000 (irq = 2) is a 16550A > Ramdisk driver initialized : 16 ramdisks of 2048K size > Blkmem copyright 1998,1999 D. Jeff Dionne > Blkmem copyright 1998 Kenneth Albanowski > Blkmem 0 disk images: > RAMDISK: Romfs filesystem found at block 0 > RAMDISK: Loading 385 blocks into ram disk... bdflush() > activated...sleeping again. > bdflush() activated...sleeping again. > bdflush() activated...sleeping again. > bdflush() activated...sleeping again. > done. > VFS: Mounted root (romfs filesystem) readonly. > Warning: dev (04:40) tty->count(1) != #fd's(0) in tty_open > /***************************************************/ > But there is a warning and kernel can't run the sash program in the > romfs. > When I downloaded the linux bin file into FPGA, the warning > disappeared. But I still can't enter the sash shell and input > characters > in serial terminal. What's the matter here? Does anybody test the > romfs > in uclinux ? Please give me some hints, thanks . > Best regards > Charlie > >
|
 |