Seite 2 von 2

Verfasst: 21.02.2006, 23:19:38
von Ulrich
How many memory do you use more than 2MB ??

Verfasst: 21.02.2006, 23:29:09
von polm
My memoryconfiguration in "make menuconfig" is as follows:

[*] Set flash/sdram size and base addr
(0x81000000) (S)DRAM Base Address
(0x00400000) (S)DRAM Size
(0x80000000) FLASH Base Address
(0x00200000) FLASH Size

And my linux.bin file is about 1200000 bytes (=1,2 Mb).

Polm

Verfasst: 22.02.2006, 13:51:59
von Thierry
polm hat geschrieben:Hello,

The sd/mmc driver is now working but I still have a problem when trying to mount the root filesystem. The startup output is the following:

MC/SD-Card Driver init OK
Using deadline io scheduler
Capacity 123 MB
bd0: unknown partition table
....
VFS: Cannot open root device "bd0p2" or bd0p2
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on bd0p2

How can I fix this problem? The /dev/mmc devices are correct and the sd card is diveded in 2 partitions as it should be:

Polm
Hello,

I have the same problem.
How did you do to resolv this problem?

Sincerely.
Thierry.

Verfasst: 22.02.2006, 14:26:30
von polm
Hello,

To solve the " bd0: unknown partition table " - problem you have to activate a setting in "make menuconfig". You can find the setting at:

File systems ---> Partition Types ---> PC BIOS (MSDOS partition tables) support.

Kind regards,
Polm

Verfasst: 22.02.2006, 16:51:29
von Thierry
Thanks polm,

Now root is mounted but I have the following problem.
No console is opened.

Code: Alles auswählen

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 52K
Warning: unable to open an initial console.
open
enable_irq(14) unbalanced from 000000b1
get_stats
Here is the complete trace:
http://cuefa.free.fr/uClinux/uClinux_boot_v6.txt

Do I need to activate another setting or could it be because of a problem of mounting ext2 file system?

Regards.
Thierry.

Verfasst: 23.02.2006, 12:18:17
von Ulrich
Do you have this device ttyS0 on the second Partition in /DEV ??

Verfasst: 23.02.2006, 17:00:47
von Thierry
Ulrich hat geschrieben:Do you have this device ttyS0 on the second Partition in /DEV ??
I haven't the device ttyS0 on the second Partition in /Dev.
But I have many files named @something.
In these files, there is a file named "@ttyS0" like if a problem happened when I do the make.

Here is the result of the ls -al command on /dev:
http://cuefa.free.fr/uClinux/devContent

What do you think about it

Regards.

Thierry.

Verfasst: 23.02.2006, 18:50:14
von Ulrich
hello

Your devices are not correct created you must make correct dev with mkdev or mknode :-)

regards
Ulrich

Verfasst: 08.03.2006, 17:12:32
von Thierry
Hi Ulrich,

I created all the devices directly on the sd card with the mknod command.
For all the files created in /dev by the make command, I made a device.
For example for the file @ttyS0,c,4,64, I entered the command:
[root@hostname /]# mknod ttyS0 c 4 64

now I have the uClinux message for the first time with my own linux generation and then I have the prompt but the command line is not running.

I have the following messages:
http://cuefa.free.fr/uClinux/uClinux_boot_v7.txt

I currently tested this version on a personal board (the same as yours) but only without ethernet chip.
Have you an idea of what is wrong?

Thierry.

Here is what my board looks like:
Bild
Bild

Verfasst: 08.03.2006, 18:01:01
von Ulrich
Hello Thierry,

Your Boards are look very good.
You must edit the /etc/rc my rc:

Code: Alles auswählen

hostname Philips-LPC22xx
mount -t proc proc /proc
ifconfig lo 127.0.0.1
ifconfig eth0 192.168.0.220 broadcast 192.168.0.255 netmask 255.255.255.0
cat /etc/motd
sh
Delete this line if you don't use a Networkcard:
ifconfig eth0 192.168.0.220 broadcast 192.168.0.255 netmask 255.255.255.0

Regards
Ulrich

Verfasst: 09.03.2006, 09:01:14
von Thierry
I'm ok with you for the ethernet but it's not my problem.
I just try on your webserver board but I have the same result.

I was thinking that when linux has finished booting, I could send command on the shell command line. But it's not the case.

And I didn't understand the mean of the last messages which appear on the console:

Code: Alles auswählen

Sash command shell (version 1.1.1)
/> Reading command line: Bad file descriptor
pid 15: failed 256
Execution Finished, Exiting
init: Booting to single user mode

Sash command shell (version 1.1.1)
/>
When you run your uClinux version, have you also the line writing Bad file descriptor ? What is this descriptor about ?
Must have to add something when I do the make menuconfig command ?

Regards.
Thierry.

Verfasst: 09.03.2006, 14:56:04
von Ulrich
You can't fix this problem with make menuconfig.
This is a script problem.

The scripts are:

etc/inittab and etc/rc

Regards
Ulrich

RTL8019 Ethernet Chip

Verfasst: 20.04.2006, 20:06:45
von polm
Dear Ulrich,

I'm still trying to get my board working :) but I still have the same problem:

I can boot my kernel but when using the ethernet it crashes. I think this is because of some kind of setting in of the following files:

/uClinux-dist/linux-2.6.x/arch/armnommu/mach-lpc2294/rtl8019.c
/uClinux-dist/linux-2.6.x/arch/armnommu/mach-lpc2294/rtl8019.h

or pehaps:

/uClinux-dist/linux-2.6.x/arch/armnommu/mach-lpc2294/irq.c

=> I think that when the ethernet chip detects any communication it generates an interrupt and perhaps there is something wrong in this configuration file.

1 more thing: A long time ago I downloaded the following package from you:
http://www.ulrichradig.de/site/arm_proj ... reiber.zip
This package included:

mmc.c
mmc.h
rtl8019.c
rtl8019.h

BUT NO irq.c !!!!!!!!!!!!!!!!! => Perhaps this is the problem.


I will be very thankfull if you can help me. Many thanks in advance,
Polm (= Yves)

Verfasst: 04.07.2006, 15:01:11
von Thierry
Dear Ulrich,

After several month, I become on my uClinux's project.
I have always the same problem.

When linux has finished booting, I couldn't send any command on the shell command line. I try it but nothing happens.

In your last answer, you sent me that it was a script problem but I didn't know what is the problem.
Here is the content of my scripts :

inittab

Code: Alles auswählen

#inet:unknown:/bin/inetd
#boa:unknown:/bin/boa
ttyS0:linux:/bin/sh
rc

Code: Alles auswählen

hostname Philips-LPC22xx
/bin/expand /etc/ramfs.img /dev/ram1
mount -t proc proc /proc
mount -t ext2 /dev/ram1 /var
mkdir /var/tmp
mkdir /var/log
mkdir /var/run
mkdir /var/lock
mkdir /var/empty
ifconfig lo 127.0.0.1
ifconfig eth0 192.168.0.220 broadcast 192.168.0.255 netmask 255.255.255.0
httpd &
cat /etc/motd
sh
If I delete the last line in the rc file, I have that messages on the console but the shell doesn't better respond to the commands I could send it.

Code: Alles auswählen

Execution Finished, Exiting
init: Booting to single user mode

Sash command shell (version 1.1.1)
/>

Please, could you show me what are the contents of your scripts /etc/inittab and /etc/rc ?


Regards.

Thierry.