Hi Leute,
ich habe ein Problem mit meinem Mini2440 256M version.
mal ne frage voren weg:
Habe ein X35 (3,5" Display) klappt das auch mit dem timing vom T35?
Da ich bis jetzt auf keiner Seite irgendwelche Infos gefunden habe,
welche Einstellung ich bei der enviroment variable "mini2440" sonst
nehmen soll.
Hauptproblem:
Der Kernel startet nicht.
Als Bootloader wird U-boot verwendet.
Auszug:
1 | U-Boot 1.3.2-mini2440 (Feb 24 2010 - 13:04:49)
|
2 |
|
3 | I2C: ready
|
4 | DRAM: 64 MB
|
5 | Flash: 2 MB
|
6 | NAND: 256 MiB
|
7 | Found Environment offset in OOB..
|
8 | USB: S3C2410 USB Deviced
|
9 | In: serial
|
10 | Out: serial
|
11 | Err: serial
|
12 | MAC: 08:08:11:18:12:27
|
13 | Hit any key to stop autoboot: 0
|
14 |
|
15 | Loading from NAND 256MiB 3,3V 8-bit, offset 0x60000
|
16 | Image Name: Ubuntu Kernel
|
17 | Created: 2011-01-10 20:33:54 UTC
|
18 | Image Type: ARM Linux Kernel Image (uncompressed)
|
19 | Data Size: 3699900 Bytes = 3.5 MB
|
20 | Load Address: 80008000
|
21 | Entry Point: 80008000
|
22 | ## Booting kernel from Legacy Image at 32000000 ...
|
23 | Image Name: Ubuntu Kernel
|
24 | Created: 2011-01-10 20:33:54 UTC
|
25 | Image Type: ARM Linux Kernel Image (uncompressed)
|
26 | Data Size: 3699900 Bytes = 3.5 MB
|
27 | Load Address: 80008000
|
28 | Entry Point: 80008000
|
29 | Verifying Checksum ... OK
|
30 | Loading Kernel Image ... OK
|
31 | OK
|
32 |
|
33 | Starting kernel ...
|
Verwendet wurde der neuste kernel von www.kernel.org
Cross-Toolchain ist von Codesourcery.
Makefile Einstellungen:
1 | ARCH ?= arm
|
2 | CROSS_COMPILE ?= /home/emil/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
|
Vorgehensweise:
1 | make mini2440_defconfig
|
2 | make uImage
|
das uImage wurde über eine Speicherkarte in den mini2440 geschrieben:
1 | mini2440 # nand erase kernel #Löscht kernel
|
2 | mini2440 # mmcinit #initialisiert die Speicherkarte
|
3 | mini2440 # fatload mmc 0:1 0x31000000 uImage #Läd das Image in den Ram
|
4 | mini2440 # nand write 0x31000000 kernel #Läd das Image in den nand flash
|
die umgebungsvariablen sind:
1 | MINI2440 # printenv
|
2 | bootargs=root=/dev/mtdblock3 rootfstype=jffs2 console=ttySAC0,115200
|
3 | bootdelay=3
|
4 | baudrate=115200
|
5 | ethaddr=08:08:11:18:12:27
|
6 | ipaddr=10.0.0.111
|
7 | serverip=10.0.0.4
|
8 | netmask=255.255.255.0
|
9 | usbtty=cdc_acm
|
10 | mtdparts=mtdparts=mini2440-nand:256k@0(u-boot),128k(env),5m(kernel),-(root)
|
11 | bootargs_base=console=ttySAC0,115200 noinitrd
|
12 | bootargs_init=init=/sbin/init
|
13 | root_nand=root=/dev/mtdblock3 rootfstype=jffs2
|
14 | root_mmc=root=/dev/mmcblk0p2 rootdelay=2
|
15 | root_nfs=/mnt/nfs
|
16 | set_root_nfs=setenv root_nfs root=/dev/nfs rw nfsroot=${serverip}:${root_nfs}
|
17 | ifconfig_static=run setenv ifconfig ip=${ipaddr}:${serverip}::${netmask}:mini2440:eth0
|
18 | ifconfig_dhcp=run setenv ifconfig ip=dhcp
|
19 | ifconfig=ip=dhcp
|
20 | set_bootargs_mmc=setenv bootargs ${bootargs_base} ${bootargs_init} ${mini2440} ${root_mmc}
|
21 | set_bootargs_nand=setenv bootargs ${bootargs_base} ${bootargs_init} ${mini2440} ${root_nand}
|
22 | set_bootargs_nfs=run set_root_nfs; setenv bootargs ${bootargs_base} ${bootargs_init} ${mini2440} ${root_nfs} ${ifconfig}
|
23 | mtdids=nand0=mini2440-nand
|
24 | filesize=25A0000
|
25 | bootcmd=nboot.e kernel ; bootm
|
26 | mini2440=3tb
|
27 | partition=nand0,0
|
28 | mtddevnum=0
|
29 | mtddevname=u-boot
|
30 |
|
31 | Environment size: 1119/131068 bytes
|
Warum startet der Kernel nicht? Falls Angaben fehlen bitte bescheid
geben.
Grüße
Emil