Boot sector

Aus M740 WikiWeb

Wechseln zu: Navigation, Suche


Inhaltsverzeichnis


Begriffserklärung

Der Boot-Sector enthält das Boot-Programm, ein Stück Software, welches als erstes nach dem Einschalten eines Gerätes – und natürlich des M740 AV – ausgeführt wird. Die Aufgabe des Boot-Programmes ist es, den Betriebssystem-Kern zu laden und zur Ausführung zu bringen.

Boot-Sektor der Gigaset M740 AV

Alle M740 AV spezifischen Aussagen sind Mutmaßungen, die aber aus Erfahrungen mit anderen Betriebssystemen bestimmt sehr nahe an der Wahrheit liegen.


Der Boot-Sektor der M740 AV ist im Flash-RAM in den ersten 64KB des Blockes /dev/mtd4 untergebracht. Das dortige Boot-Programm läd den Betriebssystem-Kern (Typ vmlinux), der ebenfalls im Block /dev/mtd4 untergebracht ist, nach.


Zeichenketten des Boot-Sektors aus FW 1.12.1

Hier folgt eine Auflistung der Zeichenketten des Boot-Sektors aus der Firmware 1.12.1. Dieser Boot-Sektor wird auch fpr FW 1.18 verwendet.

$Id: bootinit.c,v 1.8 2004/07/08 05:36:59 jrathert Exp $
loading image
console=gdb
console=ttyS0,115200N8
console=ttyS0,19200N8
console=ttyS0,57600N8
console=ttyS0
console=ttyS1
hda=bswap
ide=nodma
hdb=bswap
mem=22
mem=48
mem=12
mem=16
mem=20
mem=24
mem=28
mem=32
root=/dev/hda3
root=/dev/hda6
root=/dev/hda5
root=/dev/hdb3
root=/dev/ram0
root=/dev/mtdblock0
root=/dev/mtdblock5
mtdparts=phys:6m(root),5888k(app),256k(prod),1536k(boot),-(rescue)

'mtdparts=...' ist die Aufteilung des Flash-RAMs in die /dev/mtd*-Blocke. Die Namen (root,app,prod,boot,rescure) erscheinen auch bei 'cat /proc/mdt'.

Press SPACE to boot , r,c,s or m to toggle parameters
vmlinux
Parameters:%s %s %s %s %s
booting kernel entry=%x
$Id: bootcontrol.c,v 1.8 2004/07/08 05:36:59 jrathert Exp $
pin41=%d
pin42=%d
got it
copying from flash %x %x %x
done
read control sector failed
control.magic1=%x control.current=%x
read info sector %d failed
info.new=1 setting to 0
kernel %d is not stable
no image found
booting kernel %d
writing control sector
load_image load_at=%x info.disk_offset=%x info.load_size=%x
p.start_sect=%d
gunzip_to %x
kernel_entry=%x root_idx=%d console=%d
current_kernel = %d
kernel BUG at %s:%d!
/homes/linux/jrathert/linux-2.4-xfs/linux/include/linux/blkdev.h
/homes/linux/jrathert/linux-2.4-xfs/linux/include/asm/pci.h
null_intr
ramsize = %dMB
strap2 = %08x
new boot loader failed, falling back to old
p.start_sect = %d
p.nr_sects = %d
disk is little endian
load_image done
kernel BUG at %s:%d!
/homes/linux/jrathert/linux-2.4-xfs/linux/include/linux/blkdev.h
/homes/linux/jrathert/linux-2.4-xfs/linux/include/asm/pci.h
failed
*base=%x
erase chip %x
erase_chip ret=%d
send 8MB to serial
failed adr=%x
done
boot_flag = %d
 incomplete literal tree
 incomplete distance tree
bad gzip magic numbers
internal error, invalid method
Input is encrypted
Multi part input
Input has invalid flags
invalid compressed format (err=1)
invalid compressed format (err=2)
out of memory
invalid compressed format (other)
crc error
length error
$Id: misc.c,v 1.3 2003/04/08 14:31:28 jrathert Exp $
Malloc error
Out of memory
ran out of input data
 -- System halted
input_len = %d
csum = %d
Uncompressing Linux... 
Ok, booting the kernel. 
input csum = %d
output_len = %d
output csum = %d
enter bus (hex):
enter devfn (hex):
enter where (hex):
bus=%08x devfn=%08x where=%08x
val32=%08x
val16=%08x
val8=%08x

Persönliche Werkzeuge