[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Re: Two SRAM EMC



Hi John,

Tanks for your help, it worked fine.

But now when starting busybox I'm getting a Permition Denied error. Do
you have any ideia?

Linux version 2.4.32-uc0 (bherrera@linux) (gcc version 3.4.1 ( Xilinx
EDK 8.1 Build EDK_I.18.5 301105 )) 6
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line:
Console: xmbserial on UARTLite
Calibrating delay loop... 24.72 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6636KB available (509K code, 938K data, 36K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xffff2000 (irq = 1) is a Microblaze UARTlite
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@xxxxxxxxxxxxx)
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: F00AD4D4-F016A0D3 [VIRTUAL F00AD4D4-F016A0D3] (RO) <ROMFS>
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
*******
VFS: test name = </dev/root>
VFS: fs_name = <romfs>
VFS: root name <1f:00>
*******
VFS: tried fs_name = <romfs> err= 0
VFS: Mounted root (romfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 36K
init started:  BusyBox v1.00 (2006.12.02-21:10+0000) multi-call binary
init started:  BusyBox v1.00 (2006.12.02-21:10+0000) multi-call binary
Starting pid 9, console : '/etc/rc.sysinit'
Could not run '/etc/rc.sysinit': Permission denied
Could not run '/etc/rc.sysinit': Permission denied
Starting pid 10, console : '/bin/sh'


BusyBox v1.00 (2006.12.02-21:10+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

#


Best Regards,

Bruno Herrera

On 11/30/06, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:
Hi Bruno,

> I got ucLinux running in my board but I until now I only can access
> one EMC SRam. I would like to know how to get access to the second
> SRAM EMC. Once ucLinux-auto only configure the main memory.

> BEGIN OS
> PARAMETER OS_NAME = uclinux
> PARAMETER OS_VER = 1.00.d
> PARAMETER PROC_INSTANCE = microblaze_0
> PARAMETER stdout = console_uart
> PARAMETER stdin = console_uart
> PARAMETER main_memory = ssram_bank_1
> PARAMETER main_memory_size = 0x00400000
> PARAMETER main_memory_start = 0xFF000000
> PARAMETER lmb_memory = ilmb_bram_if_cntlr
> PARAMETER main_memory_bank = 0
> PARAMETER TARGET_DIR = RC200
> END

First you must adjust your MHS file so that the two sram banks form a
contiguous address space - e.g.

bank 1:
0xff000000 -> 0xff3ffffff

bank 2:
0xff400000 -> 0xff7fffff

Then in the MSS file just specify

  PARAMETER main_memory_start = 0xFF000000
  PARAMETER main_memory_size = 0x00800000

Don't specify "main_memory=" - the size/start parameters override it anyway.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/




--
Bruno Meirelles Herrera
Eng. de Computação / Computer Eng.

SCJP -Sun Certified Programmer for Java 2 Platform 1.4
SCJA -  Sun Certified Associate for Java Platform

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/