Temat: openwrt problem z preinit extroot

Witam, skompilowałem sobie openwrt, pojawia mi sie błąd, wie ktoś może czym to spowodowane?
proszę o pomoc

pozdrawiam

jump to linux code!!


LZMA loader for BR-6104KP, Copyright (C) 2007-2008 OpenWrt.org

Looking for TRX header... found at 00012000, kernel:0000001C len:000E2FE4
decompressing kernel... done!
launching kernel...

[    0.000000] Linux version 2.6.32.33 (aikon@ubuntu) (gcc version 4.6.3 2012020
1 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Mar 4 15:48:22 CET 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001800b (MIPS 4Kc)
[    0.000000] SoC      : ADM5120P rev 8, running at 175.000 MHz
[    0.000000] Bootdev  : NOR flash
[    0.000000] Prom     : Generic
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00001000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00001000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pa
ges: 4064
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 init=/et
c/preinit ro rootdelay=10
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 byte
s
[    0.000000] Memory: 13452k/16384k available (2141k kernel code, 2932k reserve
d, 395k data, 132k init, 0k highmem)
[    0.000000] SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No
des=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:24
[    0.000000] Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)
[    0.084000] Mount-cache hash table entries: 512
[    0.096000] NET: Registered protocol family 16
[    0.112000] MIPS: machine is Edimax BR-6104KP
[    0.128000] PCI: not available on ADM5120P
[    0.172000] bio: create slab <bio-0> at 0
[    0.184000] SCSI subsystem initialized
[    0.188000] usbcore: registered new interface driver usbfs
[    0.192000] usbcore: registered new interface driver hub
[    0.196000] usbcore: registered new device driver usb
[    0.208000] Switching to clocksource MIPS
[    0.228000] NET: Registered protocol family 2
[    0.232000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.240000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.248000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.256000] TCP: Hash tables configured (established 512 bind 512)
[    0.260000] TCP reno registered
[    0.264000] NET: Registered protocol family 1
[    0.280000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.288000] Registering mini_fo version $Id$
[    0.292000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY
) (c) 2001-2006 Red Hat, Inc.
[    0.304000] yaffs Mar  4 2012 15:41:09 Installing.
[    0.308000] msgmni has been set to 26
[    0.312000] io scheduler noop registered
[    0.316000] io scheduler deadline registered (default)
[    1.736000] Serial: AMBA driver
[    1.740000] apb:uart0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
[    1.744000] console [ttyS0] enabled, bootconsole disabled
[    1.744000] console [ttyS0] enabled, bootconsole disabled
[    1.760000] apb:uart1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
[    1.776000] adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bi
ts
[    1.784000] adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.792000]  CFI mfr 0x000000c2
[    1.796000]  CFI id  0x00002249
[    1.800000]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.804000]   Amd/Fujitsu Extended Query version 1.0.
[    1.808000] number of CFI chips: 1
[    1.812000] cfi_cmdset_0002: Disabling erase-suspend-program due to code brok
enness.
[    1.820000] adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits

[    1.828000] adm5120-flash.0: adding static partitions
[    1.832000] Creating 3 MTD partitions on "adm5120-flash.0":
[    1.840000] 0x000000000000-0x000000008000 : "admboot"
[    1.856000] 0x000000008000-0x000000010000 : "config"
[    1.868000] 0x000000010000-0x000000200000 : "firmware"
[    1.884000] ADM5120 built-in ethernet switch driver version 0.1.1
[    1.916000] admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.27.0
[    1.920000] admhc-hcd: block sizes: ed 64 td 64
[    1.928000] adm5120-hcd adm5120-hcd: ADM5120 built-in USB 1.1 Host Controller

[    1.936000] adm5120-hcd adm5120-hcd: new USB bus registered, assigned bus num
ber 1
[    1.944000] adm5120-hcd adm5120-hcd: irq 11, io mem 0x11200000
[    2.008000] usb usb1: configuration #1 chosen from 1 choice
[    2.016000] hub 1-0:1.0: USB hub found
[    2.020000] hub 1-0:1.0: 2 ports detected
[    2.028000] Initializing USB Mass Storage driver...
[    2.036000] usbcore: registered new interface driver usb-storage
[    2.040000] USB Mass Storage support registered.
[    2.048000] adm5120_wdt: Watchdog Timer version 0.1
[    2.056000] TCP westwood registered
[    2.060000] NET: Registered protocol family 17
[    2.064000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    2.072000] All bugs added by David S. Miller <davem@redhat.com>
[    2.088000] Waiting 10sec before mounting root device...
[    2.448000] usb 1-1: new full speed USB device using adm5120-hcd and address
2
[    2.716000] usb 1-1: configuration #1 chosen from 1 choice
[    2.728000] scsi0 : SCSI emulation for USB Mass Storage devices
[    7.744000] scsi 0:0:0:0: Direct-Access     USB      DISK 2.0         1219 PQ
: 0 ANSI: 0 CCS
[    7.780000] sd 0:0:0:0: [sda] 3915776 512-byte logical blocks: (2.00 GB/1.86
GiB)
[    7.796000] sd 0:0:0:0: [sda] Write Protect is off
[    7.800000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.828000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.836000]  sda: sda1
[    7.864000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.868000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.160000] kjournald starting.  Commit interval 5 seconds
[   12.168000] EXT3-fs: mounted filesystem with writeback data mode.
[   12.176000] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.184000] Freeing unused kernel memory: 132k freed
[   12.212000] Please be patient, while OpenWrt loads ...
[   12.268000] Failed to execute /etc/preinit.  Attempting defaults...
[   12.272000] Kernel panic - not syncing: No init found.  Try passing init= opt
ion to kernel.

a  to mój /etc/preinit

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

pi_ifname=
pi_ip=192.168.1.1
pi_broadcast=192.168.1.255
pi_netmask=255.255.255.0

fs_failsafe_ifname=
fs_failsafe_ip=192.168.1.1
fs_failsafe_broadcast=192.168.1.255
fs_failsafe_netmask=255.255.255.0

fs_failsafe_wait_timeout=2

pi_suppress_stderr="y"
pi_init_suppress_stderr="y"
pi_init_path="/bin:/sbin:/usr/bin:/usr/sbin"
pi_init_cmd="/sbin/init"

. /etc/functions.sh
. /lib/functions/boot.sh

boot_hook_init preinit_essential
boot_hook_init preinit_main
boot_hook_init failsafe
boot_hook_init initramfs
boot_hook_init preinit_mount_root

for pi_source_file in /lib/preinit/*; do
    . $pi_source_file
done

boot_run_hook preinit_essential

pi_mount_skip_next=false
pi_jffs2_mount_success=false
pi_failsafe_net_message=false

boot_run_hook preinit_main

2

Odp: openwrt problem z preinit extroot

Skoro ustawiłeś że rootfs jest na /dev/sda1 to wszystko musisz wkompilować w kernel (nie jako moduły) - wsparcie dla usb, usb-storage i dany system plików. Extroot nie ma wtedy kompletnie żadnego zastosowania. Jeżeli przeniosłeś 1:1 system na dysk to raczej wywal ten init z linii cmd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: openwrt problem z preinit extroot

przepraszam ale nie rozumie, wkompilowałem w kernel wsparcie dla usb, i storage, iscsi,itd itp  wskazany jest w init, że system plików jest na pendrive (sda1). resztę powinien już z pendriva zaciągnąć.

4

Odp: openwrt problem z preinit extroot

rootfs tak. opcję z init wywal.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez tipsntrix 2012-08-27 20:29:03)

Odp: openwrt problem z preinit extroot

znalazłem kiedys taki opisdo edimaxa 6104k - takie howto dla ciemnych:)
Zwróć uwage na ostatnią linike:
Mówisz że usunąć init?

* make menuconfig
** Target System -> Infineon/ADMtek ADM5120 [2.6]
** Target Profile -> Edimax BR-6104KP (Unofficial)
** busybox -> Configuration -> Coreutil -> stty (don't know if necessary)
** removed some packages (to fit firmware size): dnsmasq, dropbear, iptables (will be installed later with opkg)
* make kernel_menuconfig
** Machine selection -> Infineon/ADMtek ADM5120 SoC based machines
** Device drivers -> Memory Technology Device (MTD) support:
*** disable Automatically set 'rootfs' partition to be root filesystem
*** disable Automatically split 'rootfs' partition for squashfs
*** disable Automatically find and split TRX partitions
** Device drivers -> SCSI device support:
*** {*} SCSI device support
*** <*> SCSI disk support
** Device drivers -> [*] USB support:
*** <*> Support for Host-side USB
*** [*] USB device filesystem
*** <*> USB Storage support
*** <*> ADM5120 HCD support (EXPERIMENTAL)
** File systems -> <*> Ext3 journalling filsystem support
** Kernel hacking -> Default kernel command string (last setting): console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit ro rootdelay=10

6

Odp: openwrt problem z preinit extroot

No wywal to, pozwól mu domyślnie robić po swojemu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez tipsntrix 2012-08-28 18:56:11)

Odp: openwrt problem z preinit extroot

zrobiłem jak zasugerowałeś. skompilowałem z opcją "console=ttyS0,115200 root=/dev/sda1 ro rootdelay=10" w  kernel Hacking.
juz głupi jestem, jakiś pomysł?

ADM5120 Boot:
jump to linux code!!


LZMA loader for BR-6104KP, Copyright (C) 2007-2008 OpenWrt.org

Looking for TRX header... found at 00012000, kernel:0000001C len:000E2FE4
decompressing kernel... done!
launching kernel...

[    0.000000] Linux version 2.6.32.33 (aikon@ubuntu) (gcc version 4.6.3 2012020
1 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Aug 28 16:01:59 CEST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001800b (MIPS 4Kc)
[    0.000000] SoC      : ADM5120P rev 8, running at 175.000 MHz
[    0.000000] Bootdev  : NOR flash
[    0.000000] Prom     : Generic
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00001000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00001000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pa
ges: 4064
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 ro rootd
elay=10
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 byte
s
[    0.000000] Memory: 13452k/16384k available (2141k kernel code, 2932k reserve
d, 395k data, 132k init, 0k highmem)
[    0.000000] SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No
des=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:24
[    0.000000] Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)
[    0.084000] Mount-cache hash table entries: 512
[    0.096000] NET: Registered protocol family 16
[    0.112000] MIPS: machine is Edimax BR-6104KP
[    0.128000] PCI: not available on ADM5120P
[    0.172000] bio: create slab <bio-0> at 0
[    0.184000] SCSI subsystem initialized
[    0.188000] usbcore: registered new interface driver usbfs
[    0.192000] usbcore: registered new interface driver hub
[    0.196000] usbcore: registered new device driver usb
[    0.208000] Switching to clocksource MIPS
[    0.228000] NET: Registered protocol family 2
[    0.232000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.240000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.248000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.256000] TCP: Hash tables configured (established 512 bind 512)
[    0.260000] TCP reno registered
[    0.264000] NET: Registered protocol family 1
[    0.280000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.288000] Registering mini_fo version $Id$
[    0.292000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY
) (c) 2001-2006 Red Hat, Inc.
[    0.304000] yaffs Aug 28 2012 15:56:27 Installing.
[    0.308000] msgmni has been set to 26
[    0.312000] io scheduler noop registered
[    0.316000] io scheduler deadline registered (default)
[    1.736000] Serial: AMBA driver
[    1.740000] apb:uart0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
[    1.744000] console [ttyS0] enabled, bootconsole disabled
[    1.744000] console [ttyS0] enabled, bootconsole disabled
[    1.760000] apb:uart1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
[    1.776000] adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bi
ts
[    1.784000] adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.792000]  CFI mfr 0x000000c2
[    1.796000]  CFI id  0x00002249
[    1.800000]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.804000]   Amd/Fujitsu Extended Query version 1.0.
[    1.808000] number of CFI chips: 1
[    1.812000] cfi_cmdset_0002: Disabling erase-suspend-program due to code brok
enness.
[    1.820000] adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits

[    1.828000] adm5120-flash.0: adding static partitions
[    1.832000] Creating 3 MTD partitions on "adm5120-flash.0":
[    1.840000] 0x000000000000-0x000000008000 : "admboot"
[    1.856000] 0x000000008000-0x000000010000 : "config"
[    1.868000] 0x000000010000-0x000000200000 : "firmware"
[    1.884000] ADM5120 built-in ethernet switch driver version 0.1.1
[    1.916000] admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.27.0
[    1.920000] admhc-hcd: block sizes: ed 64 td 64
[    1.928000] adm5120-hcd adm5120-hcd: ADM5120 built-in USB 1.1 Host Controller

[    1.936000] adm5120-hcd adm5120-hcd: new USB bus registered, assigned bus num
ber 1
[    1.944000] adm5120-hcd adm5120-hcd: irq 11, io mem 0x11200000
[    2.008000] usb usb1: configuration #1 chosen from 1 choice
[    2.016000] hub 1-0:1.0: USB hub found
[    2.020000] hub 1-0:1.0: 2 ports detected
[    2.028000] Initializing USB Mass Storage driver...
[    2.036000] usbcore: registered new interface driver usb-storage
[    2.040000] USB Mass Storage support registered.
[    2.048000] adm5120_wdt: Watchdog Timer version 0.1
[    2.056000] TCP westwood registered
[    2.060000] NET: Registered protocol family 17
[    2.064000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    2.072000] All bugs added by David S. Miller <davem@redhat.com>
[    2.088000] Waiting 10sec before mounting root device...
[    2.448000] usb 1-1: new full speed USB device using adm5120-hcd and address
2
[    2.716000] usb 1-1: configuration #1 chosen from 1 choice
[    2.728000] scsi0 : SCSI emulation for USB Mass Storage devices
[    7.744000] scsi 0:0:0:0: Direct-Access     USB      DISK 2.0         1219 PQ
: 0 ANSI: 0 CCS
[    7.780000] sd 0:0:0:0: [sda] 3915776 512-byte logical blocks: (2.00 GB/1.86
GiB)
[    7.796000] sd 0:0:0:0: [sda] Write Protect is off
[    7.800000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.828000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.836000]  sda: sda1
[    7.864000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.868000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.160000] kjournald starting.  Commit interval 5 seconds
[   12.168000] EXT3-fs: mounted filesystem with writeback data mode.
[   12.172000] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.180000] Freeing unused kernel memory: 132k freed
[   12.208000] Please be patient, while OpenWrt loads ...
[   12.264000] Kernel panic - not syncing: No init found.  Try passing init= opt
ion to kernel.

8

Odp: openwrt problem z preinit extroot

Czy masz na tym dysku obraz systemu openwrt?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: openwrt problem z preinit extroot

no tak ,sformatowane  na ext3 i rozpakowany plik openwrt-adm5120-router_le-rootfs.tar  z katalogami   wrzucony na pendrive(katalogi bin, etc itd  w głównym katalogu)

10

Odp: openwrt problem z preinit extroot

Daj init jako init=/bin/sh i zobacz czy się uruchomi shell.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: openwrt problem z preinit extroot

poszukam jakiegoś gotowego obrazu , może coś z usb..
spróbuje jeszcze backfire skompilować, ale błędy mi wysypuje...

12

Odp: openwrt problem z preinit extroot

witam ponownie, zastanawiam sie czy to może być problem z uprawnieniami. Pendrive formatuje na ext3 na ubuntu, tam jest zaznaczona opcja "przejęcie uprawnień systemu plików" - mo ze tutaj szukać rozwiązania.
Wżuciłem na edimaxa obraz znajomego, u mnie  efekt jest taki sam , u niego chodzi bez problemu.
pliki w folderach mają uprawnienia 755 właścicielem jest root. - wydaje sie wszystko ok

13 (edytowany przez tipsntrix 2012-10-28 20:25:38)

Odp: openwrt problem z preinit extroot

witam ,ponownie. Znalazłem nz chomiku obraz gotowy , wżuciłem do rtr i działa bez problemu. Zastanawiam sie gdzie jest problem, kompilacja najnowszego backfire wywala błąd:

....
All bugs added by David S. Miller <davem@redhat.com>
Waiting 10sec before mounting root device...
usb 1-2: new full speed USB device using adm5120-hcd and address 2
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     USB      DISK 2.0         1219 PQ: 0 ANSI: 0 CCS

sd 0:0:0:0: [sda] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
Freeing unused kernel memory: 140k freed
Please be patient, while OpenWrt loads ...
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

i podobny opis znalazłem:

* make menuconfig
** Target System -> Infineon/ADMtek ADM5120 [2.6]
** Target Profile -> Edimax BR-6104KP (Unofficial)
** busybox -> Configuration -> Coreutil -> stty (don't know if necessary)
** removed some packages (to fit firmware size): dnsmasq, dropbear, iptables (will be installed later with opkg)
* make kernel_menuconfig
** Machine selection -> Infineon/ADMtek ADM5120 SoC based machines
** Device drivers -> Memory Technology Device (MTD) support:
*** disable Automatically set 'rootfs' partition to be root filesystem
*** disable Automatically split 'rootfs' partition for squashfs
*** disable Automatically find and split TRX partitions
** Device drivers -> SCSI device support:
*** {*} SCSI device support
*** <*> SCSI disk support
** Device drivers -> [*] USB support:
*** <*> Support for Host-side USB
*** [*] USB device filesystem
*** <*> USB Storage support
*** <*> ADM5120 HCD support (EXPERIMENTAL)
** File systems -> <*> Ext3 journalling filsystem support
** Kernel hacking -> Default kernel command string (last setting): console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit ro rootdelay=10

Then run make and wait for OpenWRT to be built. Then under bin/ you'll find:
* openwrt-adm5120-br-6104kp-squashfs-webui.bin
* openwrt-adm5120-br-6104kp-squashfs-xmodem.bin
* openwrt-adm5120-rootfs.tgz

Format a USB-stick with ext3 fs (assuming /dev/sdb1) and untar the rootfs:
# mkfs.ext3 /dev/sdb1
# mount /dev/sdb1 /mnt
# cd /mnt
# tar -xzf /path/to/openwrt/bin/openwrt-adm5120-rootfs.tgz

Then plug the usbstick and upload openwrt-adm5120-br-6104kp-squashfs-xmodem.bin to the board via xmodem (use the attached script). When upload is done, watch the board booting with minicom.

w pliku preinit mam:

#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

export PATH=/bin:/sbin:/usr/bin:/usr/sbin
. /etc/diag.sh

pi_ifname=
pi_ip=192.168.1.1
pi_broadcast=192.168.1.255
pi_netmask=255.255.255.0

fs_failsafe_ifname=
fs_failsafe_ip=192.168.1.1
fs_failsafe_broadcast=192.168.1.255
fs_failsafe_netmask=255.255.255.0

fs_failsafe_wait_timeout=2

pi_suppress_stderr="y"
pi_init_suppress_stderr="y"
pi_init_path="/bin:/sbin:/usr/bin:/usr/sbin"
pi_init_cmd="/sbin/init"

. /etc/functions.sh
. /lib/functions/boot.sh

boot_hook_init preinit_essential
boot_hook_init preinit_main
boot_hook_init failsafe
boot_hook_init initramfs
boot_hook_init preinit_mount_root

for pi_source_file in /lib/preinit/*; do
    . $pi_source_file
done

boot_run_hook preinit_essential

pi_mount_skip_next=false
pi_jffs2_mount_success=false
pi_failsafe_net_message=false

boot_run_hook preinit_main

14

Odp: openwrt problem z preinit extroot

A ma on prawa wykonania?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: openwrt problem z preinit extroot

tak , ma dałem mu chmod 777 preinit,mam brak pomysłów..