Que nous dit le port série de la GP2-X ?
Par lucas, samedi 1 décembre 2007 à 01:38 :: General :: #13 :: rss
Et bien, on a quelques traces de démarrage tout de même. Si ça peut vous intéresser. Je ne connais pas encore u-boot, mais il nous indique déjà vaguement où il va chercher à booter.
U-Boot 1.0.0 (Sep 10 2007 - 21:07:23)
U-Boot code: 03E00000 -> 03E49FA4 BSS: -> 03E82B70 IRQ Stack: 03ea3b6c FIQ Stack: 03ea4b6c DRAM Configuration: Bank #0: 00100000 63 MB Flash: 0 kB NAND:Probing at 0x9c000000 Flash chip found: Manufacturer ID: 0xEC, Chip ID: 0x76 (Samsung K9F1208 64Mb) 1 flash chips found. Total nand_chip size: 64 MB Get Environment from NAND offset 0x70000 ... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial
NAND read: device 0 offset 0x1a0000, size 0x40000 ... 262144 bytes read: OK
NAND read: device 0 offset 0x80000, size 0xb0000 ... 720896 bytes read: OK ### main_loop: bootcmd="bootm" Hit any key to stop autoboot: 0 ## Booting image at 01000000 ... Image Name: GP2X Linux Kernel Created: 2007-10-08 9:22:48 UTC Image Type: ARM Linux Kernel Image (gzip compressed) Data Size: 673304 Bytes = 657.5 kB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK
Starting kernel ...
MMC/SD Card Detected wait SD CARD 2.0 Not 2.0(ONLY 1.0) Partition check: mmcsda: p1 Register SD: 1902MsB mount...1 mount...2: INIT: version 2.84 booting <7>**>>ecc error unfixed on chunk 3268:0 Started device management daemon v1.3.25 for /dev <7>**>>ecc error unfixed on chunk 3844:0 MSDOS FS: IO charset utf8 Touch driver open Touch calibration Apply LCD Timing ****nStatus : 1
read pointercal value write pointercal value
Après cela, un CTRL+C tue l'application (sinon on peut controler sa GP2X depuis le clavier). Et on obtient un shell en root, visiblement c'est prévu qu'on la connecte à internet, il y a des trucs comme dnsdomainname.
Enfin, la commande qu'on fait quand on arrive sur un tout nouveau système (non ce n'est pas ls):
[root@gp2x /]$uname -a Linux gp2x 2.4.25 #4374 Mon, 08 Oct 2007 18:22:37 +0900 armv4l unknown
Et puis, pour savoir ce qui tourne, un "ps aux".
PID Uid VmSize Stat Command 1 root 1348 S init [3] 2 root S [keventd] 3 root S [ksoftirqd_CPU0] 4 root S [kswapd] 5 root S [bdflush] 6 root S [kupdated] 7 root S [mtdblockd] 13 root 1404 S devfsd /dev 49 root 2068 S -sh 89 root 2556 R ps aux
On restera coi devant le numéro de révision et le numéro de série de mon processeur. (normalement il y en a deux, mais je ne connais pas assez le kernel linux et l'architecture choisie par les constructeurs pour
[root@gp2x /]$cat /proc/cpuinfo Processor : Arm920Tid(wb) rev 0 (v4l) BogoMIPS : 99.32 Features : swp half thumb
Hardware : MagicEye-MDK Revision : 0000 Serial : 0000000000000000
Et puis voilà le mapping mémoire.
[root@gp2x /]$cat /proc/iomem 00000000-01ffffff : System RAM 0004f000-0016fee7 : Kernel code 0016fee8-001b9bf7 : Kernel data
Désolé pour l'horrible formatage des sorties de commandes.
Commentaires
1. Le mardi 18 décembre 2007 à 16:39, par Zeco
Ajouter un commentaire