Homepage

  • Projekte
  • Shop
  • Forum
Erweiterte Suche
  • Schnellzugriff
    • Unbeantwortete Themen
    • Aktive Themen
    • Suche
  • FAQ
  • Anmelden
  • Registrieren
  • Foren-Übersicht
  • Suche

Fragen zum LPC2294 aufbau!!

Fragen zu ARMs
Antworten
  • Druckansicht
Erweiterte Suche
44 Beiträge
  • 1
  • 2
  • 3
  • Nächste
Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

Fragen zum LPC2294 aufbau!!

  • Zitieren

Beitrag von Ulrich » 30.11.2005, 23:38:14

Nachdem die ersten Personen das LPC2294Board aufgebaut haben stellen sich die ersten Fragen.

Jumper auf der Unterseite bei voller Bestückung 4MB:


Desweiteren hier ein Kernel(LINUX.BIN) und ROMFS.IMG zum schnellen testen des Boards. Einfach beide Dateien auf eine SD Karte packen und los gehts.


http://www.ulrichradig.de/gfx/LPC2294Board_mit_4MB.zip


Gruss
Ulrich
Nach oben

Thierry

  • Zitieren

Beitrag von Thierry » 01.12.2005, 14:56:41

Hi Ulrich,

Thanks for this info.
I mounted the main components (Power, uController, SRAM, SD support, RS interface).

I configured the board for 4 MB SRAM size.

When I tried to boot uClinux, I have several errors. :cry:

Here is the messages sent by the board:
http://cuefa.free.fr/uClinux/uClinux_boot.txt

I think that it is because my SD card is formatted in FAT.
How did you have formatted your SD card? :)
I think you have more than one partition, isn't it?

If it is, could you give me the linux command to do it?

Regards.

Thierry.
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 01.12.2005, 15:49:32

Hello,

The errors are ok because the filesystem is mount read only!
This was a small kernel to test the system. Now you can compile your own kernel with mmc/sd support :-)

Here my kernel and filesystem with mmc/sd card support.

http://www.ulrichradig.de/gfx/MMC_Kernel.zip (linux.bin and mmc128mb.img.gz)

Unzip the file and mmc128mb.img.gz, then copy the filesystem on a minimum 128MB mmc/sd card or greather!

dd if=~/mmc128mb.img of=/dev/sdc (your SD/MMC Card device not sdc0)

Now you can found 2 Partitions on your MMC/SD Card!
1. with FAT16 and the second with EXT2

Now you must change the linux.bin on the first partition because the linux.bin is for a 14MHz.

The last what you must do is edit the bootloader delete "load romfs.img" in main.c because now we use the Filesystem on the MMC/SD Card :-)

greetings
Ulrich
Nach oben

Thierry

  • Zitieren

Beitrag von Thierry » 01.12.2005, 17:07:59

Hello,

I first try to test with your kernel and filesystem.
I copied your files linux.bin and mmc128mb.img.gz on my 256 MB SD card.

I deleted "load romfs.img" in the bootloader.
When I put the card on the board, I have these messages:
http://cuefa.free.fr/uClinux/uClinux_boot_v2.txt

It is because I have not created the partitions.

So I try to create the partitions like you tell me:
My SD reader is mount on /mnt/removable and is /dev/sda1.

But I had these messages:
[root@hostname /]# dd if=/mnt/removable/mmc128mb.img of=/dev/sda
dd: lecture de '/mnt/removable/mmc128mb.img': Input/output error
16768+0 records read
16768+0 records writed.


But now my card is unreadable and when I want to format it on windows, it propose me only to format 9,8Mo instead of 256Mo! :?

What do you think about? :o

Thierry.
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 01.12.2005, 17:19:45

The kernel has panic because on the MMC/SD Card is only 1Partition.

Capacity 253 MB
bd0: p1 <--- 1. Partition

when the mmc Card has 2 Partition

Capacity 253 MB
bd0: p1
bd0: p2

your dd command don't work correct!! :-)

How big is the mmc128mb.img normaly is it 128MegaBytes.

you can use FDISK under Linux to recover the MMC/SD Structur!

Greetings
Ulrich
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 01.12.2005, 17:28:55

Hello,

For more speed you can change the save value in the bootloader (main.c)!!

Code: Alles auswählen

old Values: (Save settings for low speed SRAMs 55ns)
	BCFG0 = 0x2000FFEF;
	BCFG1 = 0x2000FFEF;
	BCFG2 = 0x0000FFEF;
	BCFG3 = 0x0000FFEF;

new Values: (Settings for high speed SRAMs 10ns)
	BCFG0 = 0x2000FFEF;
	BCFG1 = 0x20000420; <-----------
	BCFG2 = 0x0000FFEF;
	BCFG3 = 0x0000FFEF;
Greetings
Ulrich
Nach oben

yaron

  • Zitieren

Beitrag von yaron » 01.12.2005, 22:32:48

Hi Ulrich,

also erstmal nochmals vielen dank für die Arbeit die du in dein Projekt gesteckt hast, damit wir auch in den genuß eines uClinux Systems kommen!
Ich habe heute meine LPC2294 bekommen und auch alles bis auf SD-Card und SRAM aufgebaut.

Nun zu meinem gelößtem Problem:
Ich konnte meinen uC leidern nicht Flashen (keine verbindung). Nach einigem Messen bin ich dann irgendwann dahintergekommen das die Leitugen vom Sub-D (der 9Polige zum PC) nicht so richtig zu den Pins des Max3232 gehören.

Pin 2 -> keine verbindung
Pin 3 -> RX (Ok)
Pin 5 -> keine verbindung


Ich habe jetzt die TX-Leitung, sowie GND so verlegt das sie passen. Wenn ich das richtig sehe müßte das ganze auch funktinieren wenn mann den Connector von unten einlötet.

Magst du mal in dein Layout schauen ob sich da noch ein kleiner Fehler eingeschlichen hat ? Könnte einigen Leuten viel ärger ersparen :-/

Trotz allem, ich freue mich schon darauf mein SRam und meine SD-Card in betrieb zu nehmen :-)) (wenn die Teile endlich ankommen)*hoff*

Mit freundlichen Grüßen yaron
Nach oben

Gast

  • Zitieren

Beitrag von Gast » 01.12.2005, 23:23:19

Hallo,

Der Connector passt :-) bei mir, ich habe das Board 2 mal nachgebaut gleiche Platinen Serie wie bei euch. Ich nehme mal an du hast einen Stecker auf die Platine verlötet und keine Buchse beim Stecker sind natürlich alle Kontakte verdreht. Und nicht nur bei mir passte das Layout sondern auch bei Thierry. Also schau nochmal nach.

Das serielle Kabel übrigens muß 1:1 sein.

Gruss
Ulrich
Nach oben

yaron

  • Zitieren

Beitrag von yaron » 02.12.2005, 06:52:17

Sorry !

du hast recht, es war mein Fehler ... Ich habe einen abgewinkelten Stecker auf die Platine gelötet und nicht wie du eine Buchse.

Das das einen Unterschied macht war mir bis dato aber auch neu :idea:
Aber mann lern ja nie aus :wink:

Sollte jedoch jemand genauso schlau wie ich sein, dann muß er drauf achten das er ein wenig umlöten muß...
Nach oben

Thierry

  • Zitieren

Beitrag von Thierry » 02.12.2005, 09:41:14

Hello Ulrich,

Could you tell me what do you propose for SD card partitionning?
What File System and what size for each partition? (/dev/sda1 and /dev/sda2)

My SD card is a 256Mo.


Regards.

Thierry.
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 02.12.2005, 12:12:50

Hello,

I use two MMC/SD-cards 128MB and 256MB. For a kernel you need a small FAT16 Partition round about 10MegaByte first Partition.
The linux file system EXT2 is on the second partition with the rest of memory. After you have make the partitions you would like format the partitions. The first Partition with mkdosfs and the secound with mkext2fs.
Then copy the kernel from the distri ~/uClinux-dist/linux2.6.x/linux.bin into the first partition. Now generate the directory structure on the secound Partition. You can found the directory structure and the files there ~/uClinux-dist/romfs.

Don't forget to make the MMC/SD device in /dev with "mknode mmc0 c 254 0" and "mknode mmc1 c 254 1"

Best regards
Ulrich
Nach oben

Thierry

  • Zitieren

Beitrag von Thierry » 02.12.2005, 16:53:10

Hello,

I realized the following steps:

- With fdisk:
-> I deleted all my SD partitions
-> I created a 10 Mo partition (number 1)
-> I created a 240 Mo partition (number 2)

- With mkdosfs:
-> I formatted the partition number 1 in FAT16 like that:
[root@hostname /]# mkdosfs -F 16 /dev/sda1

- With mke2fs (I didn't found mkext2fs):
-> I formatted the partition number 2 in EXT2 like that:
[root@hostname /]# mke2fs /dev/sda2

- I mounted my partitions
-> Partition fat16
[root@hostname /]# mount /dev/sda1 /mnt/sdpart1
-> Partition ext2
[root@hostname /]# mount -t ext2 /dev/sda2 /mnt/sdpart2

- I copied linux.bin on the first partition.
[root@hostname /]# cp ~/linux.bin /mnt/sdpart1/

- I copied the filesystem on the second partition.
[root@hostname /]# dd if=~/mmc128mb.img of=/dev/sda2

- I tried to put my SD card on the board but having the same result as here:
http://cuefa.free.fr/uClinux/uClinux_boot_v2.txt.

- I didn't made:
[root@hostname /]# mknode mmc0 c 254 0
and
[root@hostname /]# mknode mmc1 c 254 1
because I didn't found the mknode command
but I don't know what it must do !!!

What did I do wrong?

Regards.

Thierry.
Nach oben

Benutzeravatar
Ulrich
Site Admin
Beiträge: 3054
Registriert: 29.02.2004, 18:12:19
Wohnort: Siegen
Kontaktdaten:
Kontaktdaten von Ulrich
Website

  • Zitieren

Beitrag von Ulrich » 02.12.2005, 17:15:50

>> - I copied the filesystem on the second partition.
>> [root@hostname /]# dd if=~/mmc128mb.img of=/dev/sda2

this was a failure becaus this image is a complete MMC/SD image with partition 1 and 2

dismount /dev/sda0 and /dev/sda1 and then you must type dd if=~/mmc128mb.img of=/dev/sda and then you must change the linux.bin
Nach oben

Gast

Wichtig RTL8019AS

  • Zitieren

Beitrag von Gast » 04.12.2005, 22:43:44

Hallo,

!!!Achtung bitte verwendet einen RTL8019AS!!!

Auf gar keinen Fall einen RTL8019 oder RTL8019A

Gruss
Ulrich
Nach oben

Thierry

  • Zitieren

Beitrag von Thierry » 05.12.2005, 10:56:02

Thanks Ulrich,

Now the execution of the dd command passed successfully.
After execution of the dd command, I could find the tree structure when I mount the ext2 partition.

I try to run uClinux putting the sd card on the board.
I saw that the root is well mounted but after it, nothing happens !!! :roll:

Here is my trace:
http://cuefa.free.fr/uClinux/uClinux_boot_v3.txt

What do you think about it? Is it normal in that version?
I believed this kernel must start the webserver, isn't it?

Before to compile my own kernel, I would be sure to have a reference version to validate my board.

Regards.

Thierry.
Nach oben

Antworten
  • Druckansicht

44 Beiträge
  • 1
  • 2
  • 3
  • Nächste

Zurück zu „ARM Mikrocontroller“



  • Foren-Übersicht
  • Alle Zeiten sind UTC+02:00
  • Alle Cookies löschen

Powered by phpBB® Forum Software © phpBB Limited

Deutsche Übersetzung durch phpBB.de

Datenschutz | Nutzungsbedingungen

 

 

sitemap  |    |  datenschutz   |  impressum