[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Customizzazione boot Debian Wheezy



On 04/01/2014 09:52 AM, Walter Valenti wrote:
Volevo pero` lanciarlo il prima possibile (magari prima del lancio di
udev che mi pare sia nel runlevel rcS.d/S02udev) poiche` la procedura di
boot standard con tutti i servizi necessari al mio scopo occcupa un
certo numero di secondi (diciamo oltre 30), con uno script del genere:

#!/bin/sh
/usr/bin/mkfifo /tmp/myfifo
/sbin/fbsplash /boot/splash.png &
exit 0

magari chiamandolo /etc/rcS.d/S01fbsplash, ma non viene nemmeno
invocato, o per lo meno non vedo nessun output nell console seriale
durante il boot...

Magari il posto migliore e` in /etc/inittab ma non so come fare a
compilarlo correttamente...



A naso...
che la console seriale non sia stata ancora inizializzata quando esegui
lo script ?



Se come console seriale intendi il login (getty + login) allora si`, /etc/inittab ha il comando sulla getty nei runlevel 2/3:

[...]
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
[...]

ma la console di login non ha alcuna influenza sul mio script, in quanto la CONSOLE per il boot invece e` gia` inizializzata:
- in primis dal bootloader
barebox 2013.03.0 #1 Thu Mar 27 15:24:26 CET 2014


Board: Freescale i.MX28-EVK
mxs_mci mxs_mci0: registered as mxs_mci0
mci mci0: registered disk0
mdio_bus: miibus0: probed
eth0: got preset MAC address: 00:04:9F:02:4E:46
malloc space: 0x42800000 -> 0x42ffffff (size 8 MiB)
Open /dev/env0 No such file or directory
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
ext4 ext40: EXT2 rev 1, inode_size 128
Load splash.png from filesystem...
Hit CTRL-C key to stop autoboot:  1
Running boot from eMMC0...
Booting...
   Image Name:   Linux-3.12.1-EK20140327
   Created:      2014-03-27  14:27:51 UTC
   OS:           Linux
   Architecture: ARM
   Type:         Kernel Image
   Compression:  uncompressed
   Data Size:    3985920 Bytes = 3.8 MiB
   Load Address: 40008000
   Entry Point:  40008000

Loading OS U-Boot uImage '/mnt/uImage'
Loading devicetree from '/mnt/dtb'
booting Linux kernel with devicetree

e poi anche dal kernel:

Booting Linux on physical CPU 0x0
Linux version 3.12.1-EK20140327 (gianluca@gianlinux) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) ) #1 Thu Mar 27 15:27:37 CET 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyAMA0,115200 rootwait noswap ip=none noinitrd rootflags=bad_ftl rootfstype=nilfs2 root=/dev/mmcblk0p3 fec.macaddr=0x7a,0x3f,0x03,0xe3,0xa1,0xff system_rev=0x15a2004f system_serialnr=0x000a000d lcd_type=0
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 116316K/131072K available (5384K kernel code, 320K rwdata, 1940K rodata, 286K init, 5526K bss, 14756K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc072f7fc   (7326 kB)
      .init : 0xc0730000 - 0xc0777af4   ( 287 kB)
      .data : 0xc0778000 - 0xc07c8200   ( 321 kB)
       .bss : 0xc07c8200 - 0xc0d2db60   (5527 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
of_irq_init: children remain, but no parents
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
Console: colour dummy device 80x30
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     16384
... MAX_LOCKDEP_CHAINS:      32768
... CHAINHASH_SIZE:          16384
 memory used by lock dependency info: 3695 kB
 per task-struct memory footprint: 1152 bytes
Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc051da88 - 0xc051dae0
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
80074000.serial: ttyAMA0 at MMIO 0x80074000 (irq = 235, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
bio: create slab <bio-0> at 0
mxs-dma 80004000.dma-apbh: initialized
mxs-dma 80024000.dma-apbx: initialized
3P3V: 3300 mV

Quello che vedo e` che il mio script non viene assolutamente invocato.
E la cosa peggiore e` che non so spiegarne il motivo ne` il fatto che lo standard output (echo "..." nel mio script) non viene assolutamente visualizzato.

Forse qualcosa che riguarda nel dettaglio la Debian Wheezy?
Boh?

Qualche altro consiglio?

Ciao
--
           ,,,
          (o o)
======oOO==(_)==OOo======

Gianluca Renzi
R&D
phone: +39.0542.609120
fax:   +39.0542.609212

      .oooO  Oooo.
======(   )==(   )=======
       \ (    ) /
        \_)  (_/

===================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(".)_/¯


Reply to: