
Iniciado por
dtagua
booboo eres el de siempre? si es asi me has sorprendido estas hecho un crack
No, no creo. No había participado en este foro nunca antes.
Volviendo a la A320, acabo de configurar y compilar el soporte miniSD y ya funciona. También he puesto un root filesystem mínimo para tener un login y evitar el feo "kernel panic".
Arranca tan rápido porque lo que está pasando es lo siguiente:
1- Usando usbtool se carga el .bin minúsculo que inicializa el hardware.
2- Usando usbtool se carga una imágen del kernel con un initrd empotrado que actúa como root filesystem.
En el momento en que se lanza el kernel, la inicialización es muy rápida y encima cuando ejecuta /sbin/init lo está haciendo de un disco RAM, y ese /sbin/init es el busybox compilado estáticamente para mipsel.
[media]http://www.youtube.com/watch?v=3YyINLtEdR0[/media]
Código:
Uncompressing Linux...Ok, booting the kernel.Linux version 2.6.24.3-a320 (booboo@inspiron) (gcc version 4.1.2) #69 PREEMPT Thu May 7 03:27:19 CEST 2009
CPU revision is: 0ad0024f (Ingenic JZRISC)
CPU clock: 336MHz, System clock: 84MHz, Peripheral clock: 84MHz, Memory clock: 84MHz
JZ4740 PAVO board setup
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0 -> 8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 8192
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 8128
Kernel command line: mem=32M console=ttyS0,57600n8
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Synthesized clear page handler (25 instructions).
Synthesized copy page handler (44 instructions).
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x25
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28552k/32768k available (1987k kernel code, 4216k reserved, 476k data, 1172k init, 0k highmem)
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Time: jz_clocksource clocksource has been installed.
Total 4MB memory at 0x400000 was reserved for IPU
yaffs May 7 2009 02:22:41 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.5 $ 2 ports, IRQ sharing disabled
7•É¥…±á250: ttyS0 at MMIO 0x0 (irq = 9) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 8) is a 16550A
loop: module loaded
Nand DMA request channel 0.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd7 (Samsung NAND 4GiB 3,3V 8-bit) planenum:4
Nand using two-plane mode, and resized to writesize:8192 oobsize:256 blocksize:0x100000
Scanning device for bad blocks
Bad eraseblock 5 at 0x0002ff000
Bad eraseblock 6 at 0x00037f000
Bad eraseblock 7 at 0x0003ff000
Bad eraseblock 8 at 0x00047f000
Bad eraseblock 10 at 0x00057f000
Bad eraseblock 11 at 0x0005ff000
Bad eraseblock 12 at 0x00067f000
Bad eraseblock 13 at 0x0006ff000
Bad eraseblock 14 at 0x00077f000
Bad eraseblock 16 at 0x00087f000
Bad eraseblock 17 at 0x0008ff000
Bad eraseblock 19 at 0x0009ff000
Bad eraseblock 20 at 0x000a7f000
Bad eraseblock 21 at 0x000aff000
Bad eraseblock 22 at 0x000b7f000
Bad eraseblock 23 at 0x000bff000
Bad eraseblock 24 at 0x000c7f000
Bad eraseblock 25 at 0x000cff000
Bad eraseblock 26 at 0x000d7f000
Bad eraseblock 27 at 0x000dff000
Bad eraseblock 30 at 0x000f7f000
Bad eraseblock 31 at 0x000fff000
Bad eraseblock 32 at 0x00107f000
Bad eraseblock 33 at 0x0010ff000
Bad eraseblock 34 at 0x00117f000
Bad eraseblock 35 at 0x0011ff000
Bad eraseblock 36 at 0x00127f000
Bad eraseblock 37 at 0x0012ff000
Bad eraseblock 38 at 0x00137f000
Bad eraseblock 39 at 0x0013ff000
Bad eraseblock 40 at 0x00147f000
Bad eraseblock 41 at 0x0014ff000
Bad eraseblock 43 at 0x0015ff000
Bad eraseblock 44 at 0x00167f000
Bad eraseblock 47 at 0x0017ff000
Bad eraseblock 48 at 0x00187f000
Bad eraseblock 49 at 0x0018ff000
Bad eraseblock 50 at 0x00197f000
Bad eraseblock 53 at 0x001aff000
Bad eraseblock 54 at 0x001b7f000
Bad eraseblock 55 at 0x001bff000
Bad eraseblock 56 at 0x001c7f000
Bad eraseblock 58 at 0x001d7f000
Bad eraseblock 59 at 0x001dff000
Bad eraseblock 64 at 0x00207f000
Bad eraseblock 65 at 0x0020ff000
Bad eraseblock 66 at 0x00217f000
Bad eraseblock 67 at 0x0021ff000
Bad eraseblock 68 at 0x00227f000
Bad eraseblock 70 at 0x00237f000
Bad eraseblock 73 at 0x0024ff000
Bad eraseblock 76 at 0x00267f000
Bad eraseblock 77 at 0x0026ff000
Bad eraseblock 80 at 0x00287f000
Bad eraseblock 81 at 0x0028ff000
Bad eraseblock 84 at 0x002a7f000
Bad eraseblock 85 at 0x002aff000
Bad eraseblock 86 at 0x002b7f000
Bad eraseblock 87 at 0x002bff000
Bad eraseblock 88 at 0x002c7f000
Bad eraseblock 91 at 0x002dff000
Bad eraseblock 92 at 0x002e7f000
Bad eraseblock 93 at 0x002eff000
Bad eraseblock 94 at 0x002f7f000
Bad eraseblock 95 at 0x002fff000
Bad eraseblock 96 at 0x00307f000
Bad eraseblock 98 at 0x00317f000
Bad eraseblock 99 at 0x0031ff000
Bad eraseblock 100 at 0x00327f000
Bad eraseblock 101 at 0x0032ff000
Bad eraseblock 102 at 0x00337f000
Bad eraseblock 104 at 0x00347f000
Bad eraseblock 105 at 0x0034ff000
Bad eraseblock 106 at 0x00357f000
Bad eraseblock 108 at 0x00367f000
Bad eraseblock 110 at 0x00377f000
Bad eraseblock 111 at 0x0037ff000
Bad eraseblock 112 at 0x00387f000
Bad eraseblock 113 at 0x0038ff000
Bad eraseblock 114 at 0x00397f000
Bad eraseblock 116 at 0x003a7f000
Bad eraseblock 117 at 0x003aff000
Bad eraseblock 118 at 0x003b7f000
Bad eraseblock 119 at 0x003bff000
Bad eraseblock 120 at 0x003c7f000
Bad eraseblock 121 at 0x003cff000
Bad eraseblock 122 at 0x003d7f000
Bad eraseblock 123 at 0x003dff000
Bad eraseblock 124 at 0x003e7f000
Bad eraseblock 125 at 0x003eff000
Bad eraseblock 127 at 0x003fff000
Bad eraseblock 128 at 0x00407f000
Bad eraseblock 129 at 0x0040ff000
Bad eraseblock 130 at 0x00417f000
Bad eraseblock 131 at 0x0041ff000
Bad eraseblock 132 at 0x00427f000
Bad eraseblock 133 at 0x0042ff000
Bad eraseblock 134 at 0x00437f000
Bad eraseblock 136 at 0x00447f000
Bad eraseblock 137 at 0x0044ff000
Bad eraseblock 138 at 0x00457f000
Bad eraseblock 139 at 0x0045ff000
Bad eraseblock 140 at 0x00467f000
Bad eraseblock 207 at 0x0067ff000
Bad eraseblock 208 at 0x00687f000
Bad eraseblock 209 at 0x0068ff000
Bad eraseblock 4096 at 0x08007f000
Bad eraseblock 4097 at 0x0800ff000
Bad eraseblock 4098 at 0x08017f000
Bad eraseblock 4099 at 0x0801ff000
Bad eraseblock 4100 at 0x08027f000
Bad eraseblock 4101 at 0x0802ff000
Bad eraseblock 4103 at 0x0803ff000
Bad eraseblock 4129 at 0x0810ff000
Bad eraseblock 4239 at 0x0847ff000
Bad eraseblock 4240 at 0x08487f000
Bad eraseblock 4267 at 0x0855ff000
Creating 6 MTD partitions on "NAND 4GiB 3,3V 8-bit":
0x000000000-0x000400000 : "NAND BOOT partition"
0x000400000-0x000800000 : "NAND KERNEL partition"
0x000800000-0x008000000 : "NAND ROOTFS partition"
0x008000000-0x010000000 : "NAND DATA1 partition"
0x010000000-0x020000000 : "NAND DATA2 partition"
0x020000000-0x040000000 : "NAND VFAT partition"
JZ SD/MMC card driver registered
mmc0: new high speed SD card at address b368
Freeing unused kernel memory: 1172k freed
mmcblk0: mmc0:b368 1948672KiB
mmcblk0: p1
Algorithmics/MIPS FPU Emulator v1.5
init started: BusyBox v1.13.4 (2009-05-06 23:51:16 CEST)
starting pid 108, tty '': '/etc/init.d/rcS'
========== Mounting /proc and /sys filesystems
========== Initializing device infrastructure
kernel.hotplug = /sbin/mdev
========== Loading modules
========== Populating /dev/shm
========== Mounting other core filesystems
========== Setting up system parameters
sysctl: /etc/sysctl.
(none) login: root
login[129]: root login on 'ttyS0'
~ # ls -la /dev/mmc*
brw-rw---- 1 root root 179, 0 Jan 1 00:00 /dev/mmcblk0
brw-rw---- 1 root root 179, 1 Jan 1 00:00 /dev/mmcblk0p1
~ # mkdir /mnt/flash
~ # mount /dev/mmcblk0p1 /mnt/flash
~ # ls -la /mnt/flash/
drwxr-xr-x 14 root root 4096 Jan 1 00:00 .
drwxr-xr-x 7 root root 0 Jan 1 00:00 ..
-rwxr-xr-x 1 root root 735819776 Jan 22 2009 akira.avi
drwxr-xr-x 5 root root 4096 Apr 27 2009 audiob~1
drwxr-xr-x 3 root root 4096 Jan 14 2009 data
drwxr-xr-x 4 root root 4096 Apr 27 2009 images
drwxr-xr-x 3 root root 4096 Jan 14 2009 lifeblog
drwxr-xr-x 6 root root 4096 Apr 27 2009 music
drwxr-xr-x 2 root root 4096 Feb 10 2009 others
dr-xr-xr-x 2 root root 4096 Jan 14 2009 pb
drwxr-xr-x 2 root root 4096 Jan 14 2009 playli~1
drwxr-xr-x 4 root root 4096 Jan 14 2009 private
-rwxr-xr-x 1 root root 213872 May 3 2009 reg.app
drwxr-xr-x 4 root root 4096 Feb 10 2009 sounds
drwxr-xr-x 4 root root 4096 Jan 14 2009 system
-rwxr-xr-x 1 root root 212624 Jan 1 1980 target.app
drwxr-xr-x 3 root root 4096 Apr 27 2009 videos
Marcadores