- Mitglied seit
- 28 Jan 2008
- Beiträge
- 131
- Punkte für Reaktionen
- 16
- Punkte
- 18
Benutze hier eine 7369 und habe den Kernel mit replace Kernel neu compiliert. Das hat soweit auch funktioniert. Allerdings konnten einige Module nicht gebaut werden, weil die Quellen im Code von AVM nicht vorhanden waren.
Das sollte die Box aber eigentlich nicht davon abhalten zu booten ?
Nun meine Frage an die Fachleute: Was läuft beim boot schief ?
Zunächst der "serielle Log" mit dem AVM Kernel (clean boot) und der entsprechenden Stelle :
Nun der Bototvorgang mit dem selbstgebauten Kernel :
Vielleicht irgendwas mit der Speicheraufteilung ?
Habe da leider keinerlei Ahnung - im Gegensatz zum Seriellen Anschluss - der war schnell Ausfindig gemacht und die drei Adern angeschlossen...
Das sollte die Box aber eigentlich nicht davon abhalten zu booten ?
Nun meine Frage an die Fachleute: Was läuft beim boot schief ?
Zunächst der "serielle Log" mit dem AVM Kernel (clean boot) und der entsprechenden Stelle :
Code:
.....................................memsize board_memsize = 268435456
scu->bme_map0 = 0xa7800000 scu->bme_mask0 = 00000000 memsize = 0x10000000 xtensa_mem_start = 0x07800000 xtensa_mem_size 0x00800000
wlan_mem_start = 0x07738000
Linux version 2.6.28.10 (gcc version 4.8.1 (Buildroot 2013.05) ) #1 Thu Jun 9 15:56:13 CEST 2016
Fusiv MIPS Clock = 500000000 System Clock = 250000000
console [early0] enabled
CPU revision is: 00019554 (MIPS 34Kc)
Determined physical RAM map:
memory: 07738000 @ 00000000 (usable)
memory: 08000000 @ 08000000 (usable)
nid=0 start=0 map=616 end=10000 mapsize=2000 mode_bootmen_map=80616000
Zone PFN ranges:
Normal 0x00000000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x00000000 -> 0x00007738
0: 0x00008000 -> 0x00010000
[module-alloc] failed 0x78fbb0 bytes at 0x81201000
[request_resource] Kernel code: start 0x10000 < root->start 0x8000000
[request_resource] Kernel data: start 0x367950 < root->start 0x8000000
entering build_all_zonelists()
return from set_zonelist_order()
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 62776
Kernel command line: console=ttyS0,115200n8r nor_size=0MB sflash_size=512KB nand_size=128MB ethaddr=9C:C7:A6:C3:3E:D0
[FUSIV] add vx185_snor to the platform device list
[NAND] nand_size = 0x8000000
[FUSIV] add fusiv-nand to the platform device list
[trap_init] cpu_has_ejtag
[trap_init] cpu_has_watch
[trap_init] cpu_has_divec
[trap_init] cpu_has_mcheck
[trap_init] cpu_has_mipsmt
[trap_init] cpu_has_4kex
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00010000
Readback ErrCtl register=00010000
[mips_nmi_setup] setup NMI vector to base 0x80000380
Initializing IPC..
PID hash table entries: 1024 (order: 10, 4096 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 236544k/253152k available (3422k kernel code, 16236k reserved, 1547k data, 160k init, 0k highmem)
Calibrating delay loop... 331.77 BogoMIPS (lpj=663552)
Mount-cache hash table entries: 512
kernel_init: started
kernel_init: kernel locked
net_namespace: 688 bytes
NET: Registered protocol family 16
Reboot Status is: Power-On
[ikan_gpio_init]
[cpmac] Version: 1.108.1.133 - Revision 811:2535 - Do 9.06.2016 15:56:04
[fusiv_pcibios_init] Releasing PCIE reset line
Fusiv PCIe RC0 Starting ...
PCIe RC0 Link Up !!!!
registering PCI controller with io_map_base unset
Fusiv PCIe RC1 Starting ...
No PCIe device found on RC1
[FUSIV] register 2 platform device(s)
SCSI subsystem initialized
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.4 (2008/08/26) Phillip Lougher
Installing knfsd (copyright (C) 1996 [email protected]).
fuse init (API version 7.10)
msgmni has been set to 462
alg: No test for stdrng (krng)
io scheduler noop registered (default)
[avm_membench_init]
avm_net_trace: Up and running.
[avm] configured: watchdog event debug
AVM_WATCHDOG: Watchdog Driver for AR7 Hardware (Version 1.0, build: Jun 9 2016 15:55:18)
[loadcontrol] set auto - scale=1
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb9010000 (irq = 28) is a 16450
loop: module loaded
PPP generic driver version 2.4.2
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part
scsi0 : ahci
ata1: SATA max UDMA/133 irq 31
Generic platform RAM MTD, (c) 2004 Simtec Electronics
Ikanos VX185 SPI NOR Flash driver, Version 0.0.1 (c) 2012 AVM GmbH.
[vx185_snor_init] regs: b9020000 rx_ptr: b9020b80 tx_ptr: b9020b00
[vx185_snor_probe] Chip-ID: ffc22013
[vx185_snor_probe] found Macronix flash.
Creating 3 MTD partitions on "vx185_snor":
0x00000000-0x00020000 : "urlader" (master-size:524288)
0x00020000-0x00050000 : "tffs (1)" (master-size:524288)
0x00050000-0x00080000 : "tffs (2)" (master-size:524288)
VX185 on-chip NAND FLash Controller Driver, Version 1.1 (c) 2010 Ikanos, Inc.
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 6 MTD partitions on "NAND 512MiB 3,3V 8-bit":
0x00000000-0x00400000 : "kernel" (master-size:536870912)
0x00400000-0x03400000 : "filesystem" (master-size:536870912)
0x03400000-0x03800000 : "reserved-kernel" (master-size:536870912)
0x03800000-0x06800000 : "reserved-filesystem" (master-size:536870912)
0x06800000-0x06a00000 : "config" (master-size:536870912)
0x06a00000-0x08000000 : "nand-filesystem" (master-size:536870912)
CAPI Subsystem Rev 1.1.2.8
AVM PA 4.3.10 2014-09-21
AVM PA skb pktinfo at offset 216 size 196
[loadcontrol]module avm_pa registered
nf_conntrack version 0.5.0 (3955 buckets, 15820 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
mcfw: IGMPv3 fast forwarding
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
TFFS: tiny flash file system driver. GPL (c) AVM Berlin (Version 2.0)
mount on mtd1 and mtd2 (double buffering)
Adam2 environment variables API installed.
[simple-profiling]: 2 performance counters implemented, NEW_34K
Enable Performance Counter 0 for Data cache load/stores (User-Mode enabled Supervisor-Mode enabled Kernel-Mode enabled Exeption-Mode disable)
Setup tcs=0x1 current_tc_mask=0x1, reg=0
[simple-profiling]: 2 performance counters implemented, NEW_34K
Enable Performance Counter 1 for Data cache load/store misses (User-Mode enabled Supervisor-Mode enabled Kernel-Mode enabled Exeption-Mode disable)
Setup tcs=0x1 current_tc_mask=0x1, reg=1
AVM Simple Profiling enabled Version 3.0
kernel_init: basic setup done
ata1: SATA link down (SStatus 0 SControl 300)
Rx Status:0x6b1f
SQUASHFS error: Can't find a SQUASHFS superblock on mtdblock4
yaffs: dev is 32505860 name is "mtdblock4" ro
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) readonly.
Freeing unused kernel memory: 4eb000: 160k freed
trying /sbin/init
[squashfs] use zip compression
[VR9-flash] -- Test --
starting pid 40, tty '': '/etc/init.d/rc.S'
mount: mounting proc on /proc failed: Device or resource busy
tar: removing leading '/' from member names
source files in group 0 ...
/etc/init.d/S00-signal /etc/init.d/S05-watchdog /etc/init.d/S09-config
/etc/init.d/S01-head /etc/init.d/S06-logging /etc/init.d/S09-rtc
/etc/init.d/S02-led /etc/init.d/S08-tffs
processing /etc/init.d/S00-signal
processing /etc/init.d/S01-head
TFFS Name Table I
[config-space] detected mtdmtd7: size '2097152'
modprobe: module nand not found in modules.dep
[config-space][yaffs] driver is loaded
[config-space] using mtd7 for /var/flash
yaffs: dev is 32505863 name is "mtdblock7" rw
yaffs: passed flags ""
[config-space] /var/flash assigned @ /dev/mtdblock7
mknod: /var/flash/multid.leases: File exists
[tffs_node_to_yaffs] ignoring TFFS Node (minor: 60)
processing /etc/init.d/S02-led
[module-alloc-by-name] give 0x16000 bytes at 0x81201000 to module 'led_modul_Fritz_Box_HW191'
led_modul_Fritz_Box_HW191: module license '
(C) Copyright 2012 by AVM
' taints kernel.
[LED] "wyatt_earp_turn_off_leds" (0xfffffffe) not loaded
processing /etc/init.d/S05-watchdog
........
Nun der Bototvorgang mit dem selbstgebauten Kernel :
Code:
...................................memsize board_memsize = 268435456
memsize board_memsize = 268435456
Linux version 2.6.28.10 (gcc version 4.8.5 (GCC) ) #2 Mon May 4 16:32:49 CEST 2020
Fusiv MIPS Clock = 500000000 System Clock = 250000000
CPU revision is: 00019554 (MIPS 34Kc)
Determined physical RAM map:
memory: 0ffffff8 @ 00000000 (usable)
nid=0 start=0 map=570 end=ffff mapsize=2000 mode_bootmen_map=80570000
Zone PFN ranges:
Normal 0x00000000 -> 0x0000ffff
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x0000ffff
[module-alloc] failed 0x595730 bytes at 0x81201000
entering build_all_zonelists()
return from set_zonelist_order()
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65023
Kernel command line: console=ttyS0,115200n8r nor_size=0MB sflash_size=512KB nand_size=128MB ethaddr=9C:C7:A6:C3:3E:D0
[FUSIV] add vx185_snor to the platform device list
[NAND] nand_size = 0x8000000
[FUSIV] add fusiv-nand to the platform device list
[trap_init] cpu_has_ejtag
[trap_init] cpu_has_watch
[trap_init] cpu_has_divec
[trap_init] cpu_has_mcheck
[trap_init] cpu_has_mipsmt
[trap_init] cpu_has_4kex
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
[mips_nmi_setup] setup NMI vector to base 0x80000380
Initializing IPC..
PID hash table entries: 1024 (order: 10, 4096 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 248260k/262140k available (2912k kernel code, 13548k reserved, 1473k data, 152k init, 0k highmem)
Calibrating delay loop... 331.77 BogoMIPS (lpj=663552)
Mount-cache hash table entries: 512
kernel_init: started
kernel_init: kernel locked
net_namespace: 636 bytes
NET: Registered protocol family 16
Reboot Status is: Power-On
[ikan_gpio_init]
[cpmac] Version: 1.108.1.133 - Revision 811:2535 - Mo 25.08.2014 18:27:18
cpmac: compiled with sizeof(struct sk_buff) = 544
[fusiv_pcibios_init] Releasing PCIE reset line
Fusiv PCIe RC0 Starting ...
No PCIe device found on RC0
Fusiv PCIe RC1 Starting ...
No PCIe device found on RC1
[FUSIV] register 2 platform device(s)
SCSI subsystem initialized
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.4 (2008/08/26) Phillip Lougher
msgmni has been set to 485
alg: No test for stdrng (krng)
io scheduler noop registered (default)
[avm_membench_init]
avm_net_trace: Up and running.
[avm] configured: watchdog event debug
AVM_WATCHDOG: Watchdog Driver for AR7 Hardware (Version 1.0, build: May 4 2020 13:55:49)
[loadcontrol] set auto - scale=1
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb9010000 (irq = 28) is a 16450
loop: module loaded
PPP generic driver version 2.4.2
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Generic platform RAM MTD, (c) 2004 Simtec Electronics
Ikanos VX185 SPI NOR Flash driver, Version 0.0.1 (c) 2012 AVM GmbH.
[vx185_snor_init] regs: b9020000 rx_ptr: b9020b80 tx_ptr: b9020b00
[vx185_snor_probe] Chip-ID: ffc22013
[vx185_snor_probe] found Macronix flash.
Creating 3 MTD partitions on "vx185_snor":
0x00000000-0x00020000 : "urlader" (master-size:524288)
0x00020000-0x00050000 : "tffs (1)" (master-size:524288)
0x00050000-0x00080000 : "tffs (2)" (master-size:524288)
VX185 on-chip NAND FLash Controller Driver, Version 1.1 (c) 2010 Ikanos, Inc.
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 6 MTD partitions on "NAND 512MiB 3,3V 8-bit":
0x00000000-0x00400000 : "reserved-kernel" (master-size:536870912)
0x00400000-0x03400000 : "reserved-filesystem" (master-size:536870912)
0x03400000-0x03800000 : "kernel" (master-size:536870912)
0x03800000-0x06800000 : "filesystem" (master-size:536870912)
0x06800000-0x06a00000 : "config" (master-size:536870912)
0x06a00000-0x08000000 : "nand-filesystem" (master-size:536870912)
CAPI Subsystem Rev 1.1.2.8
AVM PA 4.3.10 2014-09-21
AVM PA skb pktinfo at offset 212 size 196
[loadcontrol]module avm_pa registered
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
mcfw: IGMPv3 fast forwarding
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
l2tp_core: L2TP core driver, V2.0
l2tp_ip: L2TP IP encapsulation support (L2TPv3)
l2tp_netlink: L2TP netlink interface
l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
TFFS: tiny flash file system driver. GPL (c) AVM Berlin (Version 2.0)
mount on mtd1 and mtd2 (double buffering)
Adam2 environment variables API installed.
[simple-profiling]: 2 performance counters implemented, NEW_34K
Enable Performance Counter 0 for Data cache load/stores (User-Mode enabled Supervisor-Mode enabled Kernel-Mode enabled Exeption-Mode disable)
Setup tcs=0x1 current_tc_mask=0x1, reg=0
[simple-profiling]: 2 performance counters implemented, NEW_34K
Enable Performance Counter 1 for Data cache load/store misses (User-Mode enabled Supervisor-Mode enabled Kernel-Mode enabled Exeption-Mode disable)
Setup tcs=0x1 current_tc_mask=0x1, reg=1
AVM Simple Profiling enabled Version 3.0
kernel_init: basic setup done
SQUASHFS error: Can't find a SQUASHFS superblock on mtdblock6
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) readonly.
Freeing unused kernel memory: 459000: 152k freed
trying /sbin/init
[squashfs] use zip compression
CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 800fa604, ra == 800f3e50
Oops[#1]:
Cpu 0
$ 0 : 00000000 00000000 00000000 00000000
$ 4 : 00000a36 00000400 00000000 00002000
$ 8 : 0000000c 80158304 6e6804f1 fffd2ef6
$12 : 80506918 00000004 00000000 8f406408
$16 : 0000515f 8faa0ca4 01456e78 00000000
$20 : 00000000 8faabb10 00000001 8fac6000
$24 : 00000000 80062eb8
$28 : 8faa8000 8faaba80 8faa0c00 800f3e50
Hi : 00000000
Lo : 0000a2bc
ac1Hi: 00000000 ac1Lo: 00000000
ac2Hi: 00000000 ac2Lo: 00000000
ac3Hi: 00000000 ac3Lo: 00000000
dspcontrol: 00000000
epc : 800fa604 LzmaDecode+0xac/0xeb8
Not tainted
ra : 800f3e50 squashfs_read_data+0x410/0x5ac
Status: 1100fc03 KERNEL EXL IE
Cause : 0080000c exc_code:3 TLBS
BadVA : 00000000
epc : 800fa604 LzmaDecode+0xac/0xeb8
errepc: 58e1ee36 0x58e1ee36
Not tainted
ra : 800f3e50 squashfs_read_data+0x410/0x5ac
PrId : 00019554 (MIPS 34Kc)
Modules linked in:
Process mount (pid: 28, threadinfo=8faa8000, task=8f8e0038, tls=2aab7460)
Stack : 8f406188 8f84b4e0 00000000 8faa0604 fffffff7 800a5504 00000000 800a6b6c
8f4062c8 00000002 00000000 00000000 00000000 00000003 00000003 800a6cc8
800a5414 00000002 8f4062c8 8f4062c8 0000515f 8faa0ca4 01456e78 00000000
00000000 8faa0c00 00000001 8fac6000 8faa0c00 800f3e50 8faa0d10 8faadb98
8fac6000 00002000 8faabb34 8002dbc0 800f3778 8faa0c00 8faa0600 00000004
...
Call Trace:
[<800fa604>] LzmaDecode+0xac/0xeb8
[<800f3e50>] squashfs_read_data+0x410/0x5ac
[<800f41a0>] squashfs_cache_get+0x1b4/0x304
[<800f556c>] squashfs_get_cached_block+0x60/0x168
[<800f6988>] squashfs_read_inode+0x1a8/0x115c
[<800f548c>] squashfs_fill_super+0x1034/0x10b4
[<80087d1c>] get_sb_bdev+0x120/0x198
[<800f38b8>] squashfs_get_sb+0x20/0x2c
[<80087640>] vfs_kern_mount+0x50/0xb4
[<800876f8>] do_kern_mount+0x44/0x100
[<8009ce88>] do_mount+0x638/0x698
[<8009cf7c>] sys_mount+0x94/0xe8
[<8001ec10>] stack_done+0x20/0x40
Code: 8fa60018 00021840 00c31821 <a4650000> 0803e97c 24420001 afa00014 24100005 00009821
starting pid 33, tty '': '/etc/init.d/rc.S'
can't run '/etc/init.d/rc.S': No such file or directory
Please press Enter to activate this console.
Vielleicht irgendwas mit der Speicheraufteilung ?
Habe da leider keinerlei Ahnung - im Gegensatz zum Seriellen Anschluss - der war schnell Ausfindig gemacht und die drei Adern angeschlossen...