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

Re: [microblaze-uclinux] Some questions



What has to be changed to use the rest of the memory? Actually, I'm kinda
confused how with only 13 address lines that you can even address 16MB.

> > Next, I've got a problem with my board locking up (flashing LED stops)
> > when being used with a network-enabled kernel. I have attached the
> > .configs associated with this kernel.
>
> Can you explain a bit more detail on this behaviour, when it happens,
> when it doesn't etc?

The kernel and rc always finish booting. I can regularly make it happen
immediately after rc stops executing. Since I never get the opportunity to
use the shell I'm not sure I can provide any more info besides that kernel
log below:
Linux version 2.4.22-uc0 (root@perceptor) (gcc version 2.95.3-4 Xilinx EDK
6.1 B
uild EDK_G.11) #27 Tue Nov 25 20:17:19 CST 2003
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 3.16 BogoMIPS
Memory: 14256K/16384K available (934K kernel code, 211K data)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=3
MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Creating 8 MTD partitions on "Flash":
0x00000000-0x00020000 : "Bootloader"
0x00020000-0x00040000 : "Bootargs"
0x00040000-0x00060000 : "MAC"
0x00080000-0x00100000 : "Config"
0x00060000-0x00080000 : "Spare"
0x00100000-0x00300000 : "Image"
0x00300000-0x00800000 : "JFFS2"
0x00000000-0x00800000 : "Flash"
MBVanilla ram probe(0x8011ff90,819200,4): c8000 at 8011ff90
Creating 1 MTD partitions on "RAM":
0x00000000-0x000c8000 : "Romfs"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 40K freed
Shell invoked to run file: /etc/rc
Command: hostname mbvanilla
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mount -t ext2 /dev/ram1 /usr
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: #/bin/flatfsd -r
Command: ifconfig lo 127.0.0.1
Command: ifconfig eth0 192.168.1.25 netmask 255.255.255.0
Command: cat /etc/motd
Welcome to
           ____ _ _
    _   _ / ___| (_)_ __  _   _ _  _
   | | | | |   | | | '_ \| | | < \/ >
   | |_| | |___| | | | | | |_| |>  <
   | __,_|\____|_|_|_| |_|\__,_/_/\_>
   |_)

on Microblaze.

http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>

This also happens when I take out the additions to rc.

When I was messing around with the  real linux kernel on my x86 box a little
while ago we used a serial port to spit out the kernel log. Can we do that
with the second serial line here?

Brett

----- Original Message ----- 
From: "John Williams" <jwilliams@itee.uq.edu.au>
To: <microblaze-uclinux@itee.uq.edu.au>
Sent: Tuesday, November 25, 2003 10:14 PM
Subject: Re: [microblaze-uclinux] Some questions


> Hi Brett,
>
> > Why is it that /proc/mounts contains all of the mounted fs's in the
> > demo, but I never can get it to show mounts on my kernels?
>
> That's a good question - now that you mention it I see the same thing,
> but don't know why it has happened or what has caused the change.  I'll
> look into it and see what I can find.
>
> > What is the usage (in mbvanilla) and layout of memory devices?
>
> There is 16MByte of DDR mapped at 0x80000000, 8MB flash mapped at
> 0xff000000 and 1MB of SRAM mapped at 0xffe00000.  The SRAM is not
> currently used in my build.
>
> > What parts of the fs are writable?
>
> In my setup /var and /usr are mount points, where ext2-based ramdisks
> are mounted on bootup.  The rest of the filesystem is read only.
>
> > Where is that ramfs stored?
> The root filesystem is stored in RAM, immediately after the kernel BSS
> segment.  It is copied there by the early setup code
> arch/microblaze/kernel/mbvanilla.c - mach_early_init().
>
> note the root filesystem is of type romfs, meaning that even though it
> is stored in RAM, it is not writeable.  That's what the /usr and /var
> mount points there for.
>
> > How big is the DDR chip on the Memec board (I was under the impression
> > that it was 32MB, but the kernel reports differently)?
>
> Hmmm..  I lifted the DDR controller parameters straight from an Insight
> reference design (which used the DDR range 0xfe000000 to 0xfeffffff ie
> 16Mbyte).  However, the DDR datasheet states that the device is a
> 4Mx4banksx16 bits device = 32Mbyte...
>
> So there might be a cheap and simple memory upgrade in there... :)
>
> > Next, I've got a problem with my board locking up (flashing LED stops)
> > when being used with a network-enabled kernel. I have attached the
> > .configs associated with this kernel.
>
> Can you explain a bit more detail on this behaviour, when it happens,
> when it doesn't etc?
>
> > Probably a small issue, but I can't get dhcpcd to work. I see on my dhcp
> > server where an IP is assigned to the MAC, but the command never
returns.
>
> I haven't really investigated the dhcp support yet, you may need to just
>
> > Lastly, does anyone know of some embedded benchmarks they'd recommend? I
> > need some that are reputable enough to use in a comparison study that I
> > plan to publish.
>
> There's a dhrystone application in the uclinux-dist, but the only time I
> tried running it didn't seem to do what I expected - I have no idea if
> it's considered uClinux-safe..
>
> Regards,
>
> John
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>


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