Speedport 900 Freetz/Ext2/Ext3 Mount und USBROOT

abraXxl

Mitglied
Mitglied seit
9 Jan 2007
Beiträge
242
Punkte für Reaktionen
0
Punkte
0
Hi !

Zum einen erstemal danke an die Macher von Speed2Fritz und Freetz.

Ich habe einen Speedport W900V, fuer welchen ich über zwei Methoden laufende (!) Firmwares erstellt habe:

1. Freetz fuer eine FBF7170 mit Alien-Option fuer den Speedport.
2. Freetz fuer eine FBF7170 mit dem Beta-10575 mit Speed2Fritz dann gefritzt.
Als Basis fuer beide Versionen war das Speedport Beta Image r7186.

Nun zu 2 Problemen:
Ich habe USB-ROOT mit einkompiliert um minimal invasiv ;) ein Root auf nem USB-Stick zu haben.
Leider Funktioniert auf dem Speedport das USB-Root nicht wie erwartet.
Ich habe mit
Code:
/etc/init.d/rc.usbroot store /dev/sda1:/FritzBox
das neue Root im EVA-Env hinterlegt und mittels
Code:
/etc/init.d/rc.usbroot on
USB Root aktiviert.

Zum Testen habe ich mit
Code:
mkdir -p /var/stick
mount /dev/sda1 /var/stick
mkdir -p /var/root
mount /dev/mtdblock1 /var/root
cp -a /var/stick /var/root/FritzBox
umount /var/stick
Ein Rootverzeichnis erstellt. BTW Der Stick hat ein ext2.

Nun einen Reboot gemacht.
Doch leider bootet er nicht zum USB-Root.
Zum Testen habe ich
Code:
# cat /proc/cmdline
Welches sagt
Code:
... init=/etc/init.d/rc.usbroot usbroot=/dev/sda1:/FritzBox ...
Usbroot wird also gestartet.

Nun ein Auszug aus dem Kernelringbuffer Log:
Code:
# dmesg
[...]
usb 1-1: new full speed USB device using ahci and address 3
usb 1-1: device not accepting address 3, error -64
usb 1-1: new full speed USB device using ahci and address 4
usb 1-1: device not accepting address 4, error -64
[...]
Dies sagt mir das er Schmerzen hat den Stick zu erkennen. Da ich jetzt drei Sticks (1x 1.1 und 2x 2.0) getestet habe jeweils mit dem selbigem Ergebniss.
, gehe ich davon aus das der AHCI-Host Probleme den Stick zu konfigurieren.

Hat jemand ähnliche Probleme oder eine Lösung?
Ich habe schon probiert, das Laden der Treiber fuer den Host und das Laden der Treiber fuer USB-Storage im USB-Root-Script zeitlich mit 5sek Abstand zu trennen. Pustekuchen -> Selbes Problem, da sobald der HOST da ist, er versucht mit und ohne Treiber fuer das Gerät, es zu konfigurieren.

Im laufenden Betrieb funktioniert jedoch das Konfigrieren des USB-Sticks und die darauf folgende Benutzung.

Zweites Problem, was ich um so wichtiger finde, ist:
Ist der USB-Stick mit EXT3 formatiert, und wird im laufenden Betrieb eingesteckt (Images ohne Automount fuer ext3) lässt es sich nicht mounten trotz vorherigem
Code:
modprobe jbd
modprobe ext3

Ein mount auf die ext3-Partition lässt die laufende Telnet- oder Serial-Sitzung hängen. Strace sagt, dass er den mount-Syscall aufruft und danach hängt. d.h. er hängt im Kernel.
Hat jemand ähnliche Problem? Oder Fixes oder weitere Test Ideen?

Ich konnte leider noch nicht mit dem Beta Image 7622 fuer den Speedport testen da ich es nicht habe.

cya
 
Das mounten im laufenden USB-Root-Betreib geht aktuell weder beim SPW900V noch bei der 7170.

Da hängt die Box dann. Das Ticket #2 im Trac besagt das schon.
 
Hi, danke fuer die schnelle Antwort.

Das mounten im laufenden USB-Root-Betreib geht aktuell weder beim SPW900V noch bei der 7170.

Da hängt die Box dann. Das Ticket #2 im Trac besagt das schon.
Auf welches Problem gehst du jetzt ein?
Ich versuche erstmal USB-Root verwenden zu können, also USB-Root läuft noch nicht.
Und Ticket 2 besagt nur, dass die übrigen Partitionen auf dem USB-Stick nicht gemountet werden, und das ein USB-Hub Stabilitätsproblem bereitet.
Meinst du evtl ein anderes Ticket?

cya
 
[teilweise gelöst] Speedport 900 Freetz/Ext2/Ext3 Mount und USBROOT

tach !

Ich konnte eine Speedport 7622-beta2 Firmware bekommen, daher beziehe ihc mich in der folgeden Antwort auf freetz-svn2080 mit FritzBox-7170-r10575 mit der 7622beta2 fw.

Bzgl. dieses Problems:
Leider Funktioniert auf dem Speedport das USB-Root nicht wie erwartet.

Ich bin investigativ tätig geworden. Ich abe mir zum debuggen eine serielle Konsole an den Speedport gebaut. Zusaätzlich habe ich ein debug script /etc/init.d/rc.init-user geschrieben, welches als init nur /bin/sh + kleinigkeiten aufruft. (Anhang).

Es scheint so zu sein das der AHCI-Hostcontroller im Speedport W900V nicht vernünftig läuft, wenn
die capi, also das Modul isdn_fbox nicht geladen ist.
isdn_fbox benötigt aber leider auch das tiatm- und den ubik2-Modul. Daher habe ich ein vorläufiges
USB-Root-Script nur fuer den Speedport geschrieben, welches das nötige tut. (Anhang).

Was das Debuggen zusätlich erschwert ist: Wenn das Piglet-Modul geladen ist, stirbt die serielle Konsole :( Keine Eingabe sind mehr möglich. Zum Glück sieht man noch Kernelmeldungen.

BTW ich habe eingebaut dass Filesysteme readonly einghängt werden und das zuerst ext3 und dann ext2 probiert wird.

cya
 

Anhänge

  • usbroot.tar.gz
    9 KB · Aufrufe: 54
Zuletzt bearbeitet von einem Moderator:
Es scheint so zu sein das der AHCI-Hostcontroller im Speedport W900V nicht vernünftig läuft, wenn die capi, also das Modul isdn_fbox nicht geladen ist.
isdn_fbox benötigt aber leider auch das tiatm- und den ubik2-Modul. Daher habe ich ein vorläufiges USB-Root-Script nur fuer den Speedport geschrieben, welches das nötige tut. (Anhang).

Erst einmal ein herzliches Danke für die gute Vorarbeit von allen. Für meine Tests nutze ich ein freetz-devel-2146M ( und die Versionen davor ) auf einer W900V. Leider will auch mir USBROOT option nicht gelingen. Ich hab mir das Script downgeladen und in das entsprechende DIR der Freetz Quellen kopiert. Dann hab ich das System uebersetzt und auf die Box gebracht.

Um zu testen das USB generell geht habe ich SWAP ( sowohl als swap partition als auch swap-file ) auf einem USB Stick 1gb aktiviert. Mit dem originalen Kernel funktioniert SWAP nicht ( "Funktion nicht Implementiert" ).

Nach dem Ersatz des Kernels ist in /proc/swaps der Swapspace vorhanden und kann benutzt werden.

Nun kommt mein Problem. Ich habe in der /etc/init.d/ einmal rc.usbroot und rc.usbroot.w900v und rc.init-user. Meine SWAP ist /dev/sda1, mein ROOTSYSTEM ist direkt im ROOT von /dev/sda2 auf einer ext2 Partition

Code:
mount
/dev/sda2 on /var/media/ftp/uStor02 type ext2 (rw,noatime,nodiratime)

/var/mod/root # cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/sda1                               partition       62424   740     -1

/var/mod/root # /etc/init.d/rc.usbroot.w900v store
/dev/sda2:/

/var/mod/root # /etc/init.d/rc.usbroot.w900v on
USB root switched on (reboot to apply)

/var/mod/root # cat /proc/cmdline
init=init=/etc/init.d/rc.usbroot.w900v idle=4 usbroot=/dev/sda2:/ console=ttyS0,38400n8r

Aus dem Schnipsel ist zu ersehen das SWAP auf der USB Partition funktioniert( allerdings zeigt top der Busybox swap nicht an, die Weboberflaeche wird er angezeigt. Ich habe mit dem usbroot.w900v init durch usbroot.w900v ersetzt, leider ohne erfolg. In der Commandline ist der Script als INI eingetragen.

Im Startlog steht u.a.
Code:
  rc.mod version freetz-devel-2146M
crond is disabled
telnetd is disabled
Starting webinterface...done.
Starting syslogd...done.
downloader is disabled
Updating inetd config for dropbear: inactive.
Updating inetd config for telnetd: inactive.
Updating inetd config for webcfg: inactive.
Reloading inetd...not running.
Writing /var/flash/freetz...done.
24576 bytes written.
Starting inetd...done.
checkmaild is disabled
Starting ssh server...done.
Looking for user 'ntp' ... found
Starting ntp server...
 * Stopping multid ntp client...
done.
Starting Tor Proxy...done.
Starting samba...Looking for user 'ftpuser' ... found
sh: yes: unknown operand  ( noch nicht gefunden warum die Meldung kommt )
done.
Usage: rc.usbroot [on|off|status|store [usb_device]|nostore]
USB root mount script - can only be called as an 'init' replacement.
Parameters:
  status  - check status of USB root; returns 'running' if USB root mount on '/'
            is active, 'stopped' otherwise.
  on      - activate replacing 'init' by 'rc.usbroot' -> boot with USB root,
            but only if 'share' has also been set up. Adds something like
            'init=/etc/init.d/rc.usbroot' to bootloader environment variable
            'kernel_args'.
  store   - persistently store USB device name in bootloader environment for
            later use with 'mount'. This setting must be configured at least
            once before USB root can be used. If called without parameter,
            this option prints the current values.
  nostore - remove USB storage name from bootloader environment. Even though it
            does no harm to have the USB variable around int the environment all
            the time, you may optionally remove it again using this option.
  off     - deactivate replacing 'init' by 'rc.usbroot' -> boot without
            USB root. Removes 'init' from bootloader environment variable
            'kernel_args'.
Examples:
  - rc.usbroot on
  - rc.usbroot store /dev/sda1:/usbroot
  - rc.usbroot store
  - rc.usbroot status
  - rc.usbroot off
  - rc.usbroot nostore
Starting ngircd server...
done.
Starting swap...done.

Der USBRoot wird hier versucht ein zweites mal zu starten weil er sich immer noch im /etc/init.d/ dir befindet. Da aber keine Parameter uebergeben werden kommt hier die Usage Meldung denke ich? Muss nicht auch hier ein Parameter Uebergeben werden wie "check" oder aehnliches ?

Was koennte ich noch falsch gemacht haben und was ist benotigt fuer weitere Analyse ?
Code:
Firmware: 34.04.21freetz-devel-2146M
Branding:
	Uptime: 23 min
Physikalischer Speicher (RAM)

13284 von 30420 KB belegt (ohne Cache 16104 KB)

  43 %
Flash-Speicher (TFFS) für Konfigurationsdaten

23 von 256 KB belegt

  9 %
Swap-Speicher (RAM)

1452 von 62424 KB belegt (ohne Cache 1108 KB)

  2 %
Eingehängte Partitionen

/var/media/ftp/uStor02 (/dev/sda2):
50.6 MB von 895.9 MB belegt

  6 %

Code:
 /var/mod/root # dmesg
Linux version 2.6.13.1-ohio (bagside@bagvapp) (gcc version 3.4.6) #1 Mon Apr 28 00:43:51 CEST 2008
YAMON MEMORY DESCRIPTOR dump:
prom_memsize = 0x02000000
memsize=32 MByte
prom_flashsize = 0x00800000
flashsize=8 MByte
&_end=0x94216854 PFN_ALIGN(&_end)=0x94217000 CPHYSADDR(PFN_ALIGN(&_end))=0x14217000 memsize=0x2000000
[0,941effc0]: base<14000000> size<00217000> type<Dont use memory>
[0,941effcc]: base<14217000> size<01de9000> type<Free memmory>
prom_memsize = 0x02000000
memsize=32 MByte
prom_flashsize = 0x00800000
flashsize=8 MByte
&_end=0x94216854 PFN_ALIGN(&_end)=0x94217000 CPHYSADDR(PFN_ALIGN(&_end))=0x14217000 memsize=0x2000000
CPU revision is: 00018448
ohio_setup+0x0/0x100
[ohio_clk_init]: dsl xtal 35328000Hz lan xtal 25000000Hz
[ohio_gpio_init]
Determined physical RAM map:
 memory: 00217000 @ 14000000 (reserved)
 memory: 01de9000 @ 14217000 (usable)
On node 0 totalpages: 8192
[alloc_node_mem_map] reduce size from 2883616 Bytes to  262176 Bytes
[alloc_node_mem_map]: (org) sizeof(mem_map) = 262176 mem_map=0x9421a000-0x9425a020
[alloc_node_mem_map]: sizeof(mem_map) = 2883616 mem_map=0x93f9a000-0x9425a020
  DMA zone: 8192 pages, LIFO batch:3
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: idle=4 usbroot=/dev/sda2:/ console=ttyS0,38400n8r
[ld_mmu_r4xx0] memcpy((void *)(CAC_BASE   + 0x100), &except_vec2_generic, 0x30)
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions). Base=0x941ed834
TLB synthesizer field overflow (simm)
Synthesized TLB load handler fastpath (34 instructions) Base=0x941f0760.
TLB synthesizer field overflow (simm)
Synthesized TLB store handler fastpath (34 instructions) Base=0x941f0960.
TLB synthesizer field overflow (simm)
Synthesized TLB modify handler fastpath (33 instructions) Base=0x941f0b60.
PID hash table entries: 256 (order: 8, 4096 bytes)
[ohio_set_clock_notify] avm_clock_id_cpu notify disable 0x940013d8 0x941a5e18
[ohio_set_clock_notify] avm_clock_id_cpu notify enable 0x940013d8 0x941a5e18
CPU frequency 211.97 MHz
Using 105.984 MHz high precision timer.
[setup_irq]: irq 127 irqaction->handler 0x940419a0 (no_action+0x0/0x8 )
[register_console] enable commandline console 0
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30244k/30628k available (1513k kernel code, 320k reserved, 351k data, 112k init, 0k highmem)
totalram_pages= 7577
Calibrating delay loop... 211.35 BogoMIPS (lpj=1056768)
loops_per_jiffy=1056768
Mount-cache hash table entries: 512
Checking for 'wait' instruction... [speedup] idle_mode = 4
 with idle values available.
Calling initcall 0x941e1300: helper_init+0x0/0x30()
Calling initcall 0x941e1444: ksysfs_init+0x0/0x3c()
Calling initcall 0x941e333c: filelock_init+0x0/0x48()
Calling initcall 0x941e3b80: init_script_binfmt+0x0/0xc()
Calling initcall 0x941e3b8c: init_elf_binfmt+0x0/0xc()
Calling initcall 0x941e89c0: netlink_proto_init+0x0/0x2ac()
NET: Registered protocol family 16
Calling initcall 0x941e4418: kobject_uevent_init+0x0/0x50()
Calling initcall 0x941e46a0: tty_class_init+0x0/0x34()
Calling initcall 0x941d851c: frame_info_init+0x0/0xb4()
Can't analyze prologue code at 94178b50
Calling initcall 0x941e302c: init_bio+0x0/0x17c()
Calling initcall 0x941e4d4c: misc_init+0x0/0xc0()
Calling initcall 0x941e6758: genhd_device_init+0x0/0x44()
Calling initcall 0x941e6e70: init_mtd+0x0/0x48()
Calling initcall 0x941e7c34: input_init+0x0/0x1e0()
Calling initcall 0x941e8458: proto_init+0x0/0x48()
Calling initcall 0x941e861c: net_dev_init+0x0/0x1dc()
Calling initcall 0x941e3290: init_pipe_fs+0x0/0x6c()
Calling initcall 0x941e4530: chr_dev_init+0x0/0xb4()
Calling initcall 0x941e0980: create_proc_profile+0x0/0x64()
Calling initcall 0x941e0a60: ioresources_init+0x0/0x6c()
Calling initcall 0x941e0c14: uid_cache_init+0x0/0x88()
Calling initcall 0x941e0ff0: param_sysfs_init+0x0/0x208()
Calling initcall 0x941e11f8: init_posix_timers+0x0/0x108()
Calling initcall 0x941e1330: init_posix_cpu_timers+0x0/0xd4()
Calling initcall 0x941e1404: kallsyms_init+0x0/0x40()
Calling initcall 0x941e2688: init_per_zone_pages_min+0x0/0x64()
Calling initcall 0x941e2acc: pdflush_init+0x0/0x28()
Calling initcall 0x941e2af4: cpucache_init+0x0/0x20()
Calling initcall 0x941e2e40: kswapd_init+0x0/0x70()
Calling initcall 0x941e2ef4: procswaps_init+0x0/0x40()
Calling initcall 0x941e2f34: init_tmpfs+0x0/0x3c()
Calling initcall 0x941e32fc: fasync_init+0x0/0x40()
Calling initcall 0x941e3a00: aio_setup+0x0/0x8c()
Calling initcall 0x941e3a8c: inotify_setup+0x0/0xf4()
Calling initcall 0x941e40c4: init_devpts_fs+0x0/0x48()
Calling initcall 0x941e410c: init_squashfs_fs+0x0/0x90()
squashfs: version 3.3 (2007/10/31) Phillip Lougher
Calling initcall 0x941e419c: init_ramfs_fs+0x0/0xc()
Calling initcall 0x941e41b4: ipc_init+0x0/0x30()
Calling initcall 0x941e43a8: init_crypto+0x0/0x34()
Initializing Cryptographic API
Calling initcall 0x941e45e4: rand_initialize+0x0/0x3c()
Calling initcall 0x941e46d4: tty_init+0x0/0x184()
Calling initcall 0x941e4858: pty_init+0x0/0x4f4()
Calling initcall 0x941e4e0c: avm_power_init+0x0/0x11c()
Calling initcall 0x941e4f28: avm_sammel_init+0x0/0x158()
[avm] configured: watchdog eventled enable shift register enable direct gpio 
	gpio usage: reset=12 clock=13 store=10 data=9 
AR7WDT: Watchdog Driver for AR7 Hardware (Version 1.0, build: Apr 28 2008 00:43:16)
Calling initcall 0x941e5da8: serial8250_init+0x0/0x10c()
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
[uart_add_one_port]
ttyS0 at MMIO 0x0 (irq = 15) is a OHIO_UART
[uart_add_one_port] dont rigister console port->type = 16
port->cons = 0x941b3880 port->cons->flags = 0x7
[uart_add_one_port] sucess
Calling initcall 0x941e679c: noop_init+0x0/0xc()
io scheduler noop registered
Calling initcall 0x941e67a8: cpmac_main_probe+0x0/0xd8()
Calling initcall 0x941e6880: cpphy_entry_probe+0x0/0xcc()
Calling initcall 0x941e694c: cpphy_entry_probe+0x0/0xe8()
cpmac_if_register, dev cpmac0 (phy_id 0) registered
Calling initcall 0x941e6a34: cpphy_entry_probe+0x0/0xcc()
Calling initcall 0x941e6b00: cpphy_entry_probe+0x0/0xe8()
cpmac_if_register, phy_id 0 already registered
Calling initcall 0x941e6c78: net_olddevs_init+0x0/0x100()
Calling initcall 0x941e6de0: tun_init+0x0/0x90()
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Calling initcall 0x941e6eb8: cmdline_parser_init+0x0/0xc()
Calling initcall 0x941e6ec4: init_mtdchar+0x0/0xc0()
Calling initcall 0x941e6f84: init_mtdblock+0x0/0xc()
Calling initcall 0x941e6f90: cfi_probe_init+0x0/0x24()
Calling initcall 0x941e6fb4: cfi_amdstd_init+0x0/0x30()
Calling initcall 0x941e6fe4: cfi_intelext_init+0x0/0x4c()
Calling initcall 0x941e7030: jedec_probe_init+0x0/0x24()
Calling initcall 0x941e7054: map_ram_init+0x0/0x24()
Calling initcall 0x941e7078: init_physmap+0x0/0x170()
physmap flash device: 400000 at 10000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
phys_mapped_flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Calling initcall 0x941e71e8: platram_init+0x0/0x30()
Generic platform RAM MTD, (c) 2004 Simtec Electronics
Calling initcall 0x941e7218: init_ohio_flash+0x0/0xa1c()
Ohio flash driver (size->0x400000 mem->0x10000000)
flash_size=0x800000
Ohio flash memory: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
Ohio flash memory: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[mtd]: jffs2_size = 5 * 64KByte (0x50000 Bytes)
[ohio_find_hidden_filesystem]: super block found: bytes_used: 0x0/7120770
[init_ohio_flash] find hidden filesystem size=0x6d2600 offset=0xada00
[mtd] configure jffs2 partition
[mtd] fs_size=0x770000 max=0x0 is=0x50000 max jffs2_size value 0
[mtd] ERROR jffs2_size too big, reduce to max
Creating 5 MTD partitions on "Ohio flash memory":
0x000ada00-0x00780000 : "filesystem"
	'nor-flash'
	'Bits can be cleared (flash)'
	'Has an erase function'
mtd: partition "filesystem" doesn't start on an erase block boundary -- force read-only
0x00010000-0x00780000 : "kernel"
	'nor-flash'
	'Bits can be cleared (flash)'
	'Has an erase function'
0x00000000-0x00010000 : "bootloader"
	'nor-flash'
	'Bits can be cleared (flash)'
	'Has an erase function'
	'Virtual blocks not allowed'
0x00780000-0x007c0000 : "tffs (1)"
	'nor-flash'
	'Bits can be cleared (flash)'
	'Has an erase function'
	'Virtual blocks not allowed'
0x007c0000-0x00800000 : "tffs (2)"
	'nor-flash'
	'Bits can be cleared (flash)'
	'Has an erase function'
	'Virtual blocks not allowed'
Calling initcall 0x941e7e14: kcapi_init+0x0/0x9c()
Calling initcall 0x941e7f58: capi_init+0x0/0x324()
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
Calling initcall 0x941e827c: capifs_init+0x0/0x108()
capifs: Rev 1.1.2.3
Calling initcall 0x941e96dc: inet_init+0x0/0x504()
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
Calling initcall 0x941ec0f4: init+0x0/0x8()
Calling initcall 0x941ec0fc: bictcp_register+0x0/0xc()
TCP bic registered
Calling initcall 0x941ec108: mcfw_init_module+0x0/0x88()
mcfw_init: ok
Calling initcall 0x941ec190: af_unix_init+0x0/0xa0()
NET: Registered protocol family 1
Calling initcall 0x941ec230: packet_init+0x0/0x80()
NET: Registered protocol family 17
Calling initcall 0x941ec2b0: br_init+0x0/0x68()
Calling initcall 0x941ec36c: atm_init+0x0/0xec()
NET: Registered protocol family 8
NET: Registered protocol family 20
Calling initcall 0x941ec510: br2684_init+0x0/0x54()
Calling initcall 0x941ec564: vlan_proto_init+0x0/0xf4()
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
Calling initcall 0x941d7280: ohio_install_dummy_irq_functions+0x0/0x58()
[setup_irq]: irq 1 irqaction->handler 0x94001644 (dummy_timer_irq+0x0/0x14 )
[setup_irq]: irq 6 irqaction->handler 0x94001658 (dummy_system_irq_2+0x0/0x18 )
Calling initcall 0x9400172c: ohio_late_init+0x0/0x3c()
[ohio_late_init] 
[ohio_set_clock_notify] avm_clock_id_system notify disable 0x9400167c 0x94285e48
[ohio_set_clock_notify] avm_clock_id_system notify enable 0x9400167c 0x94285e48
Calling initcall 0x941d73d8: ohio_clk_switch_init+0x0/0x60()
Calling initcall 0x941d7688: speedup_init+0x0/0x2c()
Calling initcall 0x941e4620: seqgen_init+0x0/0x20()
Calling initcall 0x940cc838: avm_event_push_button_init+0x0/0x114()
Calling initcall 0x941e555c: tffs_init+0x0/0x2e4()
[tffs] alloc_chrdev_region() param=mtd4
[tffs] CONFIG_TFFS_MTD_DEVICE_0=4 CONFIG_TFFS_MTD_DEVICE_1=5
[tffs] Character device init successfull 
TFFS: tiny flash file system driver. GPL (c) AVM Berlin (Version 2.0)
      mount on mtd4 and mtd5 (double buffering)
Adam2 environment variables API installed.
Calling initcall 0x941e646c: early_uart_console_switch+0x0/0xb4()
Calling initcall 0x9411a668: net_random_reseed+0x0/0x34()
Calling initcall 0x941eabfc: ip_auto_config+0x0/0x1120()
tffsd: wait for events
[prepare_namespace] new mount root /dev/mtdblock1
NumProbs = 7990 / 2 -> 15980
VFS: Mounted root (squashfs filesystem) readonly.
Freeing prom memory: 0kb freed
Freeing unused kernel memory: 112k freed (7605 free)
[setup_irq]: irq 15 irqaction->handler 0x940d619c (serial8250_interrupt+0x0/0x124 )
AR7WDT: System Init UEberwachung 240 Sekunden
TFFS Name Table 8
Piglet: module license '
(C) Copyright 2005 by AVM
' taints kernel.
registered device TI Avalanche SAR
tiatm driver (patch_annex=0xc00cd9ec)
[tiatm] Set StrictPriority=0
DSP binary filesize = 300480 bytes
[setup_irq]: irq 23 irqaction->handler 0xc00b520c (tn7atm_sar_irq+0x0/0x30 [tiatm] )
[setup_irq]: irq 31 irqaction->handler 0xc00b523c (tn7atm_dsl_irq+0x0/0x28 [tiatm] )
[tiatm]: Powermanagment (States => 1,3,10) supported!
Texas Instruments ATM driver: version:[4.06.04.30]
ubik2 driver (ubik2 - 0x10=0xc00dff54)
atm_dsp_register_ubik2: ubik2_ToMIPS_notify=0xc00d1c00
atm_dsp_register_ubik2: dsp mem pointer 0xa1c0f1f0
ubik2_init_interface: DSP-Link Version v3 8480
isdn_fbox: Loading...
isdn_fbox: Driver 'isdn_fbox' attached to stack
isdn_fbox: CAPI driver registered.
isdn_fbox: AVM F!Box expected @ port 0x0000, irq 0
isdn_fbox: Loading...
gpio_ssi_init: done
isdn_fbox: Stack version 3.11-07
isdn_fbox: D-channel 0: DSS1  
isdn_fbox: D-channel 1: DSS1  
isdn_fbox: D-channel 2: DSS1_N
isdn_fbox: D-channel 3: POTS  
isdn_fbox: D-channel 4: SIP   
isdn_fbox: Loaded.
BLK: DECT StartUp, mode = WAIT, firmware: 00.13.12
BLK: DECT StartUp, mode = MASTER INIT, firmware: 00.13.12
usbcore: registered new driver usbfs
usbcore: registered new driver hub
	AHCI RevisionID = 0x02, RamSize = 16384, NumPorts= 1
[setup_irq]: irq 9 irqaction->handler 0xc00ac3b0 (ahci_irq+0x0/0x8a0 [usbahcicore] )
ahci : new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
[speedup] disable
usb 1-1: new full speed USB device using ahci and address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor: USB2.0    Model: CardReader SD0    Rev:     
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 1989632 512-byte hdwr sectors (1019 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1989632 512-byte hdwr sectors (1019 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1 sda2
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
usb-storage: device scan complete
[setup_irq]: irq 27 irqaction->handler 0x940e6c2c (cpmac_main_isr+0x0/0x78 )
cpmac_main_ioctl, unknown ioctl 35142
device eth0 entered promiscuous mode
device cpmac0 entered promiscuous mode
lan: port 1(eth0) entering learning state
[avm_led] virt led not registered
[avm_led] format error: "SET Name,Instanz = state"
BLK: DECT StartUp, mode = NORMAL, firmware: 00.13.12
AR7WDT: System Init UEberwachung abgeschlossen (189950 ms noch verfuegbar)
SysRq : Changing Loglevel
Loglevel set to 4
lan: topology change detected, propagating
lan: port 1(eth0) entering forwarding state
Adding 62424k swap on /dev/sda1.  Priority:-1 extents:1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
/var/mod/root # df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    6976      6976         0 100% /
/dev/root                 6976      6976         0 100% /
/dev/sda2               917384     51836    818944   6% /var/media/ftp/uStor02
/var/mod/root # 

/var/mod/root # mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
dev on /dev type tmpfs (rw,nosuid)
proc on /proc type proc (rw,nodiratime,nosuid,nodev,noexec)
tmpfs on /var type tmpfs (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda2 on /var/media/ftp/uStor02 type ext2 (rw,noatime,nodiratime)
 
Aus dem Schnipsel ist zu ersehen das SWAP auf der USB Partition funktioniert( allerdings zeigt top der Busybox swap nicht an, die Weboberflaeche wird er angezeigt. Ich habe mit dem usbroot.w900v init durch usbroot.w900v ersetzt, leider ohne erfolg. In der Commandline ist der Script als INI eingetragen.

Im Startlog steht u.a.
[...]

Der USBRoot wird hier versucht ein zweites mal zu starten weil er sich immer noch im /etc/init.d/ dir befindet. Da aber keine Parameter uebergeben werden kommt hier die Usage Meldung denke ich? Muss nicht auch hier ein Parameter Uebergeben werden wie "check" oder aehnliches ?

Was koennte ich noch falsch gemacht haben und was ist benotigt fuer weitere Analyse ?
Fuer uns waere die Ausgabe von /proc/cmdline interessant.

Das zweite ausführen des Scriptes ist nicht schlimm. Es hängt idealerweise den alten Root-Tree aus, wenn es später im bootUp-Process ausgeführt wird.

BTW auch diese Methode hat noch komische Seiteneffekte, wie ich mit einer seriellen Konsole nachvollziehen konnte, ich nutze derzeit diesen Weg um ein Root auf dem USB-Stick zu bekommen.

cya
 
Zuletzt bearbeitet von einem Moderator:
Fuer uns waere die Ausgabe von /proc/cmdline interessant.

Wow, danke fuer die prompte Antwort . In meinem ersten Codeschnipsel ist die Angabe enthalten, ist evtl untergegangen :)

Code:
/var/mod/root # cat /proc/cmdline
init=init=/etc/init.d/rc.usbroot.w900v idle=4 usbroot=/dev/sda2:/ console=ttyS0,38400n8r

seriellen Konsole nachvollziehen konnte, ich nutze derzeit diesen Weg um ein Root auf dem USB-Stick zu bekommen.

Das werd ich jetzt testen, dankeschoen

EDIT1: Tja, oehm .... :)
Automount ist an ( filesystem auf dem stick ist ext2 und swap ), wird auch automatisch gemounted
Code:
/var/media/ftp/uStor02 # ls -lisa
      2    4 drwxr-xr-x   18 root     root         4096 Apr 29 21:37 .
   1483    0 lrwxrwxrwx    1 root     root           19 Apr 29 21:37 .#autorun.sh -> [email protected]
    600    0 drwxr-xr-x    3 ftpuser  root            0 Apr 29 21:34 ..
   1473  596 -rwxr-xr-x    1 root     root       602556 Apr 28 19:16 apache
   1479    8 -rwxr-xr-x    1 root     root         6755 Apr 29 21:29 autorun.sh
   1481    0 -rw-r--r--    1 root     root            0 Apr 29 21:29 autostart.log.txt
  43777    4 drwxr-xr-x    2 root     root         4096 Apr 28 00:46 bin
  14593    4 drwxr-xr-x    2 root     root         4096 Apr 28 19:19 cgi-bin
  72961    4 drwxr-xr-x    2 root     root         4096 Apr 28 19:14 conf
  58369    4 drwx------    2 root     root         4096 Apr 28 20:24 data
  87553    4 drwxr-xr-x    7 root     root         4096 Apr 28 20:24 dev
  29185    4 drwxr-xr-x   35 root     root         4096 Apr 28 20:24 etc
   1474    0 lrwxrwxrwx    1 root     root           12 Apr 28 20:25 home -> var/mod/home
  58370    4 drwxr-xr-x    2 root     root         4096 Apr 28 19:14 htdocs
  14596    4 drwxr-xr-x    3 root     root         4096 Apr 28 20:23 lib
  43860    4 drwxr-xr-x    2 root     root         4096 Apr 28 19:14 logs
   1482    4 drwx------    2 root     root         4096 Apr 29 21:14 lost+found
   1475    0 lrwxrwxrwx    1 root     root            7 Apr 28 20:25 mod -> var/mod
  72965    4 drwxr-xr-x    2 root     root         4096 Sep 28  2006 proc
  58372    4 drwxr-xr-x    2 root     root         4096 Apr 29 20:47 rom
   1480    0 lrwxrwxrwx    1 root     root            4 Apr 29 20:47 rootfs -> rom/
     11    4 drwxr-xr-x    2 root     root         4096 Apr 28 19:49 sbin
  72966    4 drwxr-xr-x    2 root     root         4096 Apr 28 00:06 sys
   1478  124 -rw-------    1 root     root       121149 Apr 29 21:39 syslog
   1476    0 lrwxrwxrwx    1 root     root            7 Apr 28 20:25 tmp -> var/tmp
     72    4 drwxr-xr-x   10 root     root         4096 Apr 23 16:57 usr
  43861    4 drwxr-xr-x    2 root     root         4096 Sep 28  2006 var
   1477   32 -rw-r--r--    1 root     root        30720 Apr 28 20:24 var.tar

Ich denke der Pfad ist ok, der Link ebenfalls. Mein usbroot ist direkt im root des Stick - hab ich etwas missverstanden und ich brauch ein Unterdirektory ? Den Stift spaeter dranstecken geht meines Erachtens nach nicht ohne weiteres weil sonst SWAP failed, allerdings lässt sich SWAP später erneut starten wenn der Stick dransteckt.

Ich kann autorun mit der hand starten aber es passiert nichts. Ich hab mal chroot getestet ( mkdir tmp, ln -s /dev/ dev, mount -t proc /proc proc, chroot . ), das ging soweit, nur sind die terminaleinstellungen falsch und ein paar andere problme, aber auch hier konnte ich den mc starten. Nur leider immernoch kein usbroot. Ich weiss ich mach was falsch - aber was ? :)

Edit2: Der Pfad war falsch. Das script erwartet im rootfs ein directory rom, wenn ich jetzt kein explizites root dir habe sondern die dateien im root des sticks liegen klappt das mit dem link nicht. "ln -s rootfs rootfs" geht zwar, laesst sich aber nicht hinwechseln, ln -s /var/media/ftp/uStor02/ rootfs geht, aber jetzt bootet die Box im Kreis - was bedeutet das script wird erst einmal ausgeführt :) - nun geht es an die weitere Suche.

Danke an abraXxl
 
Zuletzt bearbeitet:
DAS habe ich auch noch nicht herausgefunden :)
 
Zuletzt bearbeitet von einem Moderator:
Ein großes Hoch auf die Entwickler :)

Wie man in der SIG sieht bin ich immernoch feste am spielen :D, aber jetzt sieht mein df so aus:

/var/mod/root # df

Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 917384 50288 820492 6% /
/dev/root 6976 6976 0 100% /rom
/dev/sda2 917384 50288 820492 6% /rom/data
/dev/sda2 917384 50288 820492 6% /

/var/mod/root #

Das ist doch schon mal ein klasse Anfang. Da die generelle Machbarkeit feststeht kann man jetzt am Feinschliff der chroot Umgebung arbeiten. Selbstverstaendlich läuft nicht alles was ich in der SIG habe, das ist nur alles das was ich in das System hineincompiliert habe. Später mehr .....
 
Hi !

Jau, welchen Weg gehst du ? USB-Root on Demand oder rc.usbroot.w900v ?
Wenn du bei ersterem ein Script in /etc legst das x-Rechte hat und Preinit heist wird es vor /sbin/init ausgeführt und du kannst fast alles unter /rom noch aushängen.

cya
 
Zuletzt bearbeitet von einem Moderator:
ich nutz das chroot on demand ( mit der autorun.sh ). das gefällt mir fast noch besser, weil ich so die box in fast originalem zustand lassen kann und erst wenn ein stick dransteckt die box modifiziert wird. aber das mit dem preinit werd ich auch mal testen - ich lass die box jetzt erst mal laufen um zu sehen wie oft sie crasht .....
 
Zuletzt bearbeitet von einem Moderator:
Ist das hier ein Übungsplatz für Fullquotes?
Bitte unterlasst diese ständigen und unsinnigen Fullquotes!
Die Forenregeln sollten euch doch noch im Kopf sein, also haltet euch bitte daran.
BtW: Folgepostings werden erst nach >=24 Std akzeptiert. Also nutzt auch den "Ändern"-Button um weitere Infos nachzureichen.
 

Zurzeit aktive Besucher

Statistik des Forums

Themen
244,868
Beiträge
2,219,775
Mitglieder
371,585
Neuestes Mitglied
PauSchmitz
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.