Temat: Kopia systemu - edimax

Witam
Mam starego edimaxa w ktorym wrzysstko działa ok, jest wkompilowane nawet wifi na usb
Problem w tym że przy zmianie debiana gdzieś wcieło mi plik .config
W jaki sposób mogę zgrać z flasha obraz, bo z pendrive'a to wiadomo smile

2

Odp: Kopia systemu - edimax

Analogicznie do http://rpc.one.pl/index.php/lista-artyk … l-wr1043nd

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

3

Odp: Kopia systemu - edimax

U mnie /dev/mtd5 nie ma bo mam edimaxa który wstaje na rootfs

Mam inny problem

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r30676) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@(none):/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   57.0M      7.3M     46.7M  14% /
/dev/root                57.0M      7.3M     46.7M  14% /
tmpfs                     6.6M      4.0K      6.6M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
root@(none):/# ifconfig
root@(none):/# logread
logread: can't find syslogd buffer: No such file or directory
root@(none):/# ifup wan
/sbin/ifdown: line 20: uci_load: not found
interface not found.
grep: /etc/config/wireless: No such file or directory
/sbin/ifup: line 46: uci_load: not found
/sbin/ifup: line 1: uci_toggle_state: not found
/sbin/ifup: line 1: uci_toggle_state: not found
Interface type  not supported.

Odkurzyłem swój router i miałem problem z jego uruchomieniem toteż wgrałem obraz ponownie na pendrive'a

Niby się uruchamia ale nie nawiązuje połączenia po dhcp.

Wyskakują jakieś dziwne błędy.
O co chodzi ?

4

Odp: Kopia systemu - edimax

W /proc/mtd zobacz jakie masz partycje. Przecież nie na każdym będą takie same.

Masz coś co jest nowsze w stosunku do systemu. Powinieneś wyczyścić wszystko, zróbić firstboota, zgrać flash i tyle.

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

5

Odp: Kopia systemu - edimax

Skompilowałem sobie jednak z trunka obraz dla edimaxa

root@OpenWrt:/# opkg list_installed
admswconfig - 0.1-1
base-files - 117-r33675
blkid - 2.21.2-1
block-mount - 0.2.0-8
busybox - 1.19.4-5
firewall - 2-53
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
jshn - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
kernel - 3.3.8-1-b5945bae6dc373ae85d336174a3d9d15
kmod-button-hotplug - 3.3.8-3
kmod-input-core - 3.3.8-1
kmod-input-polldev - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-leds-gpio - 3.3.8-1
kmod-ledtrig-adm5120-switch - 3.3.8-1
kmod-nls-base - 3.3.8-1
kmod-usb-adm5120 - 3.3.8-1
kmod-usb-core - 3.3.8-1
libblkid - 2.21.2-1
libblobmsg-json - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libjson - 0.9-2
libnl-tiny - 0.1-3
libubox - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuuid - 2.21.2-1
libxtables - 1.4.10-4
mtd - 19
netifd - 2012-09-29-6653b861748719ab58e21a81e01d59d4d8afe10c
opkg - 618-2
swap-utils - 2.21.2-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
root@OpenWrt:/# 

I nawet wstaje. Próbuję właśnie zrobić extroota ale chyba niestety na system plików już mi miejsca zabrakło

Co mogę jeszcze wyrzucić ?

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  384.0K    340.0K     44.0K  89% /
/dev/root               768.0K    768.0K         0 100% /rom
tmpfs                     6.7M     40.0K      6.6M   1% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock5          384.0K    340.0K     44.0K  89% /overlay
overlayfs:/overlay      384.0K    340.0K     44.0K  89% /
root@OpenWrt:/# 

6

Odp: Kopia systemu - edimax

iptables, później możesz to zainstalować na extroocie.

Możesz też zerwać zależności block-mount od swap-utils i blkid, a te zaznaczyć jako opcję w busyboxie a nie jako osobne pakiety. Też parę KB powinno przybyć.

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

7 (edytowany przez viper_lasser 2012-10-10 19:21:06)

Odp: Kopia systemu - edimax

Skompilowałem ponownie

[   17.664000] usbcore: registered new interface driver hub
[   17.672000] usbcore: registered new device driver usb
[   18.476000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.920000] admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.27.0
[   18.928000] admhc-hcd: block sizes: ed 64 td 64
[   18.932000] adm5120-hcd adm5120-hcd: ADM5120 built-in USB 1.1 Host Controller
[   18.940000] adm5120-hcd adm5120-hcd: new USB bus registered, assigned bus number 1
[   18.952000] adm5120-hcd adm5120-hcd: irq 11, io mem 0x11200000
[   19.016000] hub 1-0:1.0: USB hub found
[   19.020000] hub 1-0:1.0: 2 ports detected
[   19.448000] usb 1-1: new full-speed USB device number 2 using adm5120-hcd
[   28.200000] device eth0 entered promiscuous mode
[   28.208000] br-lan: port 1(eth0) entered forwarding state
[   28.212000] br-lan: port 1(eth0) entered forwarding state
[   30.216000] br-lan: port 1(eth0) entered forwarding state
[   31.684000] usb 1-1: USB disconnect, device number 2
[   32.220000] usb 1-1: new full-speed USB device number 3 using adm5120-hcd
[   34.312000] jffs2: Too few erase blocks (3)
[   36.496000] adm5120_wdt: enabling watchdog timer

Zastanawia mnie ten wpis "[   34.312000] jffs2: Too few erase blocks (3)" Czy już mam za mało danych na zapis ?

Jak zmieniłem wpis w /etc/config/fstab to po reboocie niestety nie widać zmian ...

Pakiet mtd i uci jest mi potrzebny ?

8

Odp: Kopia systemu - edimax

Za duzo pakietów, za mało  miejsca wolnego na utworzenie jffs. Coś musisz wywalić z obrazu.

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

9

Odp: Kopia systemu - edimax

hotplug2 jest potrzebny ?

10

Odp: Kopia systemu - edimax

Jest w podstawowych pakietach, więc tak.

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

11

Odp: Kopia systemu - edimax

Hotplug2 zostawiłem ale wywaliłem mtd

Błąd "Too few erase blocks" nie pojawia mi się ale niestety system za każdym razem stoi na tym

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:000D27E4
decompressing kernel... done!
launching kernel...

[    0.000000] Linux version 3.3.8 (user@user-VirtualBox) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #4 Wed Oct 10 19:56:30 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 memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00001000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,115200 rootfstype=squashfs,jffs2
[    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 bytes
[    0.000000] Memory: 13496k/16384k available (1984k kernel code, 2888k reserved, 342k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:24
[    0.000000] Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)
[    0.040000] pid_max: default: 32768 minimum: 301
[    0.044000] Mount-cache hash table entries: 512
[    0.056000] NET: Registered protocol family 16
[    0.072000] gpiochip_add: registered GPIOs 0 to 3 on device: adm5120 gpio0
[    0.076000] gpiochip_add: registered GPIOs 8 to 22 on device: adm5120 gpio1
[    0.080000] MIPS: machine is Edimax BR-6104KP
[    0.096000] PCI: not available on ADM5120P
[    0.140000] bio: create slab <bio-0> at 0
[    0.156000] Switching to clocksource MIPS
[    0.180000] NET: Registered protocol family 2
[    0.188000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.196000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.204000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.208000] TCP: Hash tables configured (established 512 bind 512)
[    0.216000] TCP reno registered
[    0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.224000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.232000] NET: Registered protocol family 1
[    0.252000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.256000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.268000] msgmni has been set to 26
[    0.272000] io scheduler noop registered
[    0.276000] io scheduler deadline registered (default)
[    1.296000] Serial: AMBA driver
[    1.300000] apb:uart0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
[    1.304000] console [ttyS0] enabled, bootconsole disabled
[    1.304000] console [ttyS0] enabled, bootconsole disabled
[    1.320000] apb:uart1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
[    1.336000] adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits
[    1.344000] adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x002249
[    1.356000] Amd/Fujitsu Extended Query Table at 0x0040
[    1.360000]   Amd/Fujitsu Extended Query version 1.0.
[    1.368000] number of CFI chips: 1
[    1.372000] adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits
[    1.380000] Creating 3 MTD partitions on "adm5120-flash.0":
[    1.384000] 0x000000000000-0x000000008000 : "admboot"
[    1.400000] 0x000000008000-0x000000010000 : "config"
[    1.416000] 0x000000010000-0x000000200000 : "firmware"
[    1.436000] ADM5120 built-in ethernet switch driver version 0.1.1
[    1.480000] adm5120_wdt: Watchdog Timer version 0.1
[    1.488000] TCP cubic registered
[    1.492000] NET: Registered protocol family 17
[    1.496000] 8021q: 802.1Q VLAN Support v1.8
[    1.504000] trxsplit: searching TRX header in 'admboot'
[    1.508000] trxsplit: searching TRX header in 'config'
[    1.516000] trxsplit: searching TRX header in 'firmware'
[    1.520000] trxsplit: TRX header found at 0x2000
[    1.524000] trxsplit: creating TRX partitions in 'firmware' (31,2)
[    1.532000] Creating 2 MTD partitions on "firmware":
[    1.540000] 0x00000000201c-0x0000000d4800 : "kernel"
[    1.544000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.568000] 0x0000000d4800-0x0000001f0000 : "rootfs"
[    1.572000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.596000] mtd: partition "rootfs" set to be root filesystem
[    1.604000] mtd: partition "rootfs_data" created automatically, ofs=1D0000, len=20000 
[    1.612000] 0x0000001d0000-0x0000001f0000 : "rootfs_data"
[    1.640000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.652000] Freeing unused kernel memory: 164k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -

Please press Enter to activate this console. [   16.904000] SCSI subsystem initialized
[   17.308000] usbcore: registered new interface driver usbfs
[   17.312000] usbcore: registered new interface driver hub
[   17.324000] usbcore: registered new device driver usb
[   18.088000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.592000] admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.27.0
[   18.600000] admhc-hcd: block sizes: ed 64 td 64
[   18.604000] adm5120-hcd adm5120-hcd: ADM5120 built-in USB 1.1 Host Controller
[   18.612000] adm5120-hcd adm5120-hcd: new USB bus registered, assigned bus number 1
[   18.620000] adm5120-hcd adm5120-hcd: irq 11, io mem 0x11200000

12

Odp: Kopia systemu - edimax

Ktoś nie dawno też mówił, że na edimaxie potrafi czasami stać na tym i się nie uruchamiać. Zrób kilka razy restart i zobacz.

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

13

Odp: Kopia systemu - edimax

IMHO odwrotnie - zostaw go włączonego na dłuższy czas - musi się zrobić ten jffs2. To wymaga trochę czasu a ten router demonem prędkości nie jest.

14 (edytowany przez viper_lasser 2012-10-11 02:59:02)

Odp: Kopia systemu - edimax

Wczoraj jak dodałem ponownie mtd to router chodził a dziś już nie. A chciałem podać to że jak mtd był wkompilowany ale opkg usunięty to system startował ale 2 bloków brakowało do jffs2.
I tak chciałem zobaczyć co jeszcze ra radę wywalić żeby odchudzić obraz. Może niektóre polecenia z busybox'a ?

Zostawiam swojego edimaxa włączonego. Chociaż wydaje mi się że za długo to on przy tym stoi. Jak wszystko jest ok to poleci dalej w ciągu kilku sekund.

15

Odp: Kopia systemu - edimax

Skompilowałem sobie backfire i też na tym samym etapie wysypuje mi się edimax. WTF ?

16

Odp: Kopia systemu - edimax

Spróbowałem też przeróbki z bootowaniem z pendrive'a ale tak czy siak router staje mi na etapie

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     Mass     Storage Device        PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 122624 512-byte logical blocks: (62.7 MB/59.8 MiB)
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: 144k freed
Please be patient, while OpenWrt loads ...

Przed przeróbką bootowania z pendrive'a też stał na "Please be patient, while OpenWrt loads ..."
Czego może brakować ?