176

(7 odpowiedzi, napisanych Oprogramowanie / Software)

ale jeśli wejścia masz wkompilowane w jądro to działają odrazu, np przez uci konfigurujesz które wejście jak ma zadziałać i co wywołać

177

(250 odpowiedzi, napisanych Oprogramowanie / Software)

prosze powiedzcie co jest nie tak:

jump to linux code!!


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

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

Linux version 2.6.32.27 (pklamka@pklamka-laptop) (gcc version 4.3.3 (GCC) ) #3 W
ed Jun 8 20:08:40 CEST 2011
bootconsole [early0] enabled
CPU revision is: 0001800b (MIPS 4Kc)
SoC      : ADM5120P rev 8, running at 175.000 MHz
Bootdev  : NOR flash
Prom     : Generic
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,115200 root=/dev/sda1 init=/etc/preinit ro ro
otwait
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
Memory: 13756k/16384k available (1885k kernel code, 2628k reserved, 342k data, 1
36k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:24
Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Edimax BR-6104K
PCI: not available on ADM5120P
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
Serial: AMBA driver
apb:uart0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
apb:uart1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 CFI mfr 0x000000c2
 CFI id  0x00002249
 Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.0.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: adding static partitions
Creating 3 MTD partitions on "adm5120-flash.0":
0x000000000000-0x000000008000 : "admboot"
0x000000008000-0x000000010000 : "config"
0x000000010000-0x000000200000 : "firmware"
ADM5120 built-in ethernet switch driver version 0.1.1
admhc-hcd: ADMtek USB 1.1 Host Controller Driver version 0.27.0
admhc-hcd: block sizes: ed 64 td 64
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
adm5120_wdt: Watchdog Timer version 0.1
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Waiting for root device /dev/sda1...

pendrive ma jedną partycje ext3 , na niego rozpakowałem plik openwrt-adm5120-router_le-rootfs.tar.gz

178

(250 odpowiedzi, napisanych Oprogramowanie / Software)

a jak np skompilowałem jądro i powstał mi plik xmodem powiedzmy 1.9mb , dokonuje zmian tzn wycinam pakiety w menuconfig i kompiluje od nowa, mimo usunięcia pakietów plik xmodem  dalej ma 1.9 mb-  kurcze ciężko straszni żejść poniżej 1.8mb a rozumie że żeby stworzyć extroot musze mieć  więcej pamięci na flash?
mam takie pakiety:

base-files_43.18-r27031_adm5120_mipsel.ipk 
kernel_2.6.32.27-1_adm5120_mipsel.ipk
kmod-usb-core_2.6.32.27-1_adm5120_mipsel.ipk     
libgcc_4.3.3+cs-43.18_adm5120_mipsel.ipk      Packages
block-extroot_0.0.1-2_adm5120_mipsel.ipk    
kmod-crc16_2.6.32.27-1_adm5120_mipsel.ipk       
kmod-usb-ohci_2.6.32.27-1_adm5120_mipsel.ipk   
libpthread_0.9.30.1-43.18_adm5120_mipsel.ipk  Packages.gz
block-mount_0.1.0-2_adm5120_mipsel.ipk      
kmod-fs-ext4_2.6.32.27-1_adm5120_mipsel.ipk    
 kmod-usb-storage_2.6.32.27-1_adm5120_mipsel.ipk  
librt_0.9.30.1-43.18_adm5120_mipsel.ipk       
uci_12012009.6-3_adm5120_mipsel.ipk
busybox_1.15.3-2_adm5120_mipsel.ipk       
kmod-fs-mbcache_2.6.32.27-1_adm5120_mipsel.ipk 
libblkid_1.41.11-1_adm5120_mipsel.ipk          
libuci_12012009.6-3_adm5120_mipsel.ipk        
udevtrigger_106-1_adm5120_mipsel.ipk
e2fsprogs_1.41.11-1_adm5120_mipsel.ipk     
kmod-nls-base_2.6.32.27-1_adm5120_mipsel.ipk  
libc_0.9.30.1-43.18_adm5120_mipsel.ipk         
libuuid_1.41.11-1_adm5120_mipsel.ipk
hotplug2_1.0-beta-3_adm5120_mipsel.ipk      
kmod-scsi-core_2.6.32.27-1_adm5120_mipsel.ipk   
libext2fs_1.41.11-1_adm5120_mipsel.ipk           
opkg_576-1_adm5120_mipsel.ipk

179

(250 odpowiedzi, napisanych Oprogramowanie / Software)

więc jak wygląda cała procedura extroot-a, skompilowałem jądro z extroot niestety ma 1,7mb,
komenda lsmod wysypuje mi:
root@OpenWrt:/# lsmod
Module                  Size  Used by    Not tainted
usb_storage            32832  0
ohci_hcd               16192  0
adm5120_hcd            10656  0
sd_mod                 22176  0
usbcore                99424  4 usb_storage,ohci_hcd,adm5120_hcd
scsi_mod               70512  2 usb_storage,sd_mod
nls_base                4832  1 usbcore
crc16                    976  0
leds_gpio               1520  0
button_hotplug          2576  0
gpio_buttons            2144  0
input_polldev           1360  1 gpio_buttons
input_core             17456  4 button_hotplug,gpio_buttons,input_polldev


co moge jeszcze wywalić,

180

(30 odpowiedzi, napisanych Oprogramowanie / Software)

ok powoli, przyjmijmy że pierwszy port jest wyprowadzony do złącza a drugi na pinach od procka...
chcemy uruchomić dwa równolegle, do naszej dyspozycji , gdzie tego szukać przy kompilacji

181

(32 odpowiedzi, napisanych Oprogramowanie / Software)

to co, coś źle skompilowane?  o boże - po prostu:)

182

(32 odpowiedzi, napisanych Oprogramowanie / Software)

ok odchudziłem i rzeczywiści zrobił sie xmodem.
wgrałem, wstaje ale...


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

Linux version 2.6.32.33 () (gcc version 4.5.2 (Linaro GCC                                                                               
4.5-2011.02-0) ) #1 Sun May 29 20:17:58 CEST 2011                                                 
bootconsole [early0] enabled                            
CPU revision is: 0001800b (MIPS 4Kc)                                    
SoC      : ADM5120P rev 8, running at 175.000 MHz                                                 
Bootdev  : NOR flash                    
Prom     : Generic                  
Determined physical RAM map:                            
 memory: 01000000 @ 00000000 (usable)                                     
Initrd not found or empty - disabling initrd                                            
Zone PFN ranges:                
  Normal   0x00000000 -> 0x00001000                                   
Movable zone start PFN for each node                                    
early_node_map[1] active PFN ranges                                   
    0: 0x00000000 -> 0x00001000                               
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064                                                                          
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2                                                                          
PID hash table entries: 64 (order: -4, 256 bytes)                                                 
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)                                                            
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)                                                           
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.                                                              
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes                                                                  
Memory: 13768k/16384k available (1891k kernel code, 2616k reserved, 327k data, 1                                                                                
32k init, 0k highmem)                     
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                                                                      
Hierarchical RCU implementation.                                
NR_IRQS:2       
Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)                                                      
Mount-cache hash table entries: 512                                   
NET: Registered protocol family 16                                  
MIPS: machine is Edimax BR-6104KP                                 
PCI: not available on ADM5120P                              
bio: create slab <bio-0> at 0                             
Switching to clocksource MIPS                             
NET: Registered protocol family 2                                 
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                              
TCP established hash table entries: 512 (order: 0, 4096 bytes)                                                              
TCP bind hash table entries: 512 (order: -1, 2048 bytes)                                                        
TCP: Hash tables configured (established 512 bind                                                 
TCP reno registered                   
NET: Registered protocol family 1                                 
squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                  
Registering mini_fo version $Id$                                
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006                                                                                
 Red Hat, Inc.              
yaffs May 29 2011 20:14:59 Installing.                                      
msgmni has been set to 26                         
io scheduler noop registered                            
io scheduler deadline registered (default)                                          
Serial: AMBA driver                   
apb:uart0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA                                                       
console [ttyS0] enabled, bootconsole disabled                                             
console [ttyS0] enabled, b                        
apb:uart1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA                                                        
adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits                                                                   
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank                                                          
 CFI mfr 0x000000c2                   
 CFI id  0x00002249                   
 Amd/Fujitsu Extended Query Table at 0x0040                                           
  Amd/Fujitsu Extended Query version 1.0.                                         
number of CFI chips: 1                      
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.                                                                        
adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits                                                                 
adm5120-flash.0: adding static partitions                                         
Creating 3 MTD partitions on "adm5120-flash.0":!                    


LZMA loader for BR-6104
0x000000000000-0x000000008000 : "admboot"                                       
adm5120_wdt: Watchdog Timer version 0.1
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
trxsplit: searching TRX header in 'admboot'
trxsplit: searching TRX header in 'config'
trxsplit: searching TRX header in 'firmware'
trxsplit: TRX header found at 0x2000
trxsplit: creating TRX partitions in 'firmware' (31,2)
Creating 2 MTD partitions on "firmware":
0x00000000201c-0x0000000c9400 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be s
maller than an erase block -- forcing read-only
0x0000000c9400-0x0000001f0000 : "rootfs"
mtd: partition "rootfs" must either start or end on erase block boundary or be s
maller than an erase block -- forcing read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=190000, len=60000
0x000000190000-0x0000001f0000 : "rootfs_data"
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...

i nic stoi i czeka....... na co?

183

(32 odpowiedzi, napisanych Oprogramowanie / Software)

ok, skompilowało sie , coś chyba z ubuntu było nie tak, ale dalej coś mi si nie zgadza, wszyscy piszą że powinie powstać plik /openwrt/bin....xmodem.bin, hmm u mnie jest tylko z rozszerzeniem tar.gz żadnego bin-a nie tworzy make....wie ktoś dlaczego??

184

(32 odpowiedzi, napisanych Oprogramowanie / Software)

CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-mips
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  CC      arch/mips/adm5120/edimax/br-6104k.o
arch/mips/adm5120/edimax/br-6104k.c:35:79: error: macro "MIPS_MACHINE" passed 4 arguments, but takes just 3
arch/mips/adm5120/edimax/br-6104k.c:35: warning: data definition has no type or storage class
arch/mips/adm5120/edimax/br-6104k.c:35: warning: type defaults to 'int' in declaration of 'MIPS_MACHINE'
make[6]: *** [arch/mips/adm5120/edimax/br-6104k.o] Error 1


dalej to samo, linia poprawiona, nawet z kopii przegrałem z niezmienionymi nazwami i lipa:

MIPS_MACHINE(MACH_ADM5120_BR6104K, "BR-6104K", "Edimax BR-6104K",br6104k_setup);


i nikt nic ??? nie ma pomysłu?

185

(32 odpowiedzi, napisanych Oprogramowanie / Software)

arch/mips/adm5120/edimax/br-6104k.c:36:20: error: macro "MIPS_MACHINE" passed 4 arguments, but takes just 3
arch/mips/adm5120/edimax/br-6104k.c:35: warning: data definition has no type or storage class
arch/mips/adm5120/edimax/br-6104k.c:35: warning: type defaults to 'int' in declaration of 'MIPS_MACHINE'

ciekawe bo tu zmieniłem tylko nawy gpio, w tych linikach nic nie ruszałem oto 35 i 36:

MIPS_MACHINE(MACH_ADM5120_BR6104K, "BR-6104K", "Edimax BR-6104K",
<------>     br6104k_setup);

186

(32 odpowiedzi, napisanych Oprogramowanie / Software)

arch/mips/adm5120/edimax/br-61xx.c:56: error: expected expression before '.' token
arch/mips/adm5120/edimax/br-61xx.c:61: error: expected expression before '}' token
arch/mips/adm5120/edimax/br-61xx.c:68: error: expected identifier or '(' before ',' token
arch/mips/adm5120/edimax/br-61xx.c:75: error: expected identifier or '(' before ',' token
arch/mips/adm5120/edimax/br-61xx.c:83: error: expected identifier or '(' before '}' token


przecinki nie pomogły:(

soorki kwadratowy nawias wstawiłem, poszło dalej

187

(32 odpowiedzi, napisanych Oprogramowanie / Software)

teraz mam taki:
arch/mips/adm5120/edimax/br-61xx.c:48: error: expected '}' before '{' token
rozumie że w 48 linii?zaznaczyłem wykrzyknikiem
a w pliku mam tak:

static struct gpio_button br61xx_gpio_buttons[] __initdata = {
<------>{
<------><------>.desc<-><------>= "reset_button",
<------><------>.type<-><------>= EV_KEY,
<------><------>.code<-><------>= BTN_0,
<------><------>.threshold<---->= 5,
<------><------>.gpio<-><------>= ADM5120_GPIO_PIN2,
<------>}
!<------>{
<------><------>.desc<-><------>= "1_button",
<------><------>.type<-><------>= EV_KEY,
<------><------>.code<-><------>= BTN_1,
<------><------>.threshold<---->= 5,
<------><------>.gpio<-><------>= ADM5120_GPIO_P0L2,
<------>}
<------>{
<------><------>.desc<-><------>= "2_button",
<------><------>.type<-><------>= EV_KEY,
<------><------>.code<-><------>= BTN_2,
<------><------>.threshold<---->= 5,
<------><------>.gpio<-><------>= ADM5120_GPIO_P1L2,


czyli powinno być bez nawiasów?
pozdrawiam

188

(32 odpowiedzi, napisanych Oprogramowanie / Software)

ok. więc tak , w tej chwili mam edimaxa 6104k z usb i exrootem,  diody mam podpięte przez optoizolator i tranzystory do przekaźników, z procka odciąłem piny i wyprowadziłem sobie 5 gpio, podpoiłem wszystko wg twojego tutka i działa, zmieniają sie 1 na 0 podczas zwarcia - więc działa..
problem jest taki że chciałbym wkompilować w jądro te nowe przyciski...
pobieram svn co svn://svn.openwrt.org/openwrt/branches/backfire
zmieniam zawartość pliku konfiguracyjnego w /target/linux/adm5120/files/arch/mips/edimax/br-6104k.c - zmieniam tylko nazwy gpio,
/target/linux/adm5120/files/arch/mips/edimax/br-61xx.c  - dopisuje kolejne przyciski do konkretnych pinów procesora.
powiedzmy że tyle w zmianach.
choć chciałbym żeby diody nie zapalały sie po restarcie rtr..
make menuconfig
wybieram platformę, model rtr, dodaje pakiety usb-storage,
troszke skożystałem z tego opisu:https://forum.openwrt.org/viewtopic.php?id=18570
potem   : make i czekam.... i czekam...
....
make[3] -C tools/missing-macros compile
make[3] -C tools/missing-macros install
make[3] -C tools/lzma compile
make[3] -C tools/lzma install
make[3] -C tools/squashfs4 compile
make[3] -C tools/squashfs4 install
make[2] toolchain/install
make[3] -C toolchain/binutils prepare
make[3] -C toolchain/binutils compile
make[3] -C toolchain/binutils install
make[3] -C toolchain/gcc prepare
make[3] -C toolchain/kernel-headers prepare
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/kernel-headers install
make[3] -C toolchain/uClibc prepare
make[3] -C toolchain/gcc compile
make[3] -C toolchain/uClibc compile
make[3] -C toolchain/gcc install
make[3] -C toolchain/uClibc install
make[2] target/compile
make[3] -C target/linux compile
make -r world: build failed. Please re-run make with V=99 to see what's going on
make: *** [world] Błąd 1

więc robie make V=99 ,


znalazłem gpio buttons error

189

(32 odpowiedzi, napisanych Oprogramowanie / Software)

może znajdzie jakaś dobra dusza i skompiluje mi openwrt?bo mnie na ubuntu ...... trafi wiecznie jakiś błąd.. a mówili że to takie proste:)
pozdr

190

(32 odpowiedzi, napisanych Oprogramowanie / Software)

czyli rs232 i flashowanie? jest inna możliwość?

191

(32 odpowiedzi, napisanych Oprogramowanie / Software)

witam, jeśli teraz na edimaxie mam exroot  i oczywiście wszystko działa, ale gdybym kompilował jądro od nawa w tej samej wersji to muszę wrzucać coś do flash czy tylko na pendrive? w jakim "target Image" tar.gz??


pozdrawiam

192

(5 odpowiedzi, napisanych Oprogramowanie / Software)

ok, znalazłem w /trunk/target/linux/adm5120/files/arch/mips/adm5120/edimax   w pliku br-6104k.c ,zdefiniowane diody, zastanawiam sie tylko czym różni sie GPIO_LED_STD od GPIO_LED_INV. Czy moge zmienić nazwy diodom? gdzie znajduje sie przypożądkowanie konkretnej diody do konkretnego zadania?

Są jeszcze 2 pliki br-61xx.c i br-61xxh wygląda na to że jest tam obsługa przycisku, a jak pisałem wcześniej chciałbym ich dodatkowo 5
wpis w pliku wygląda tak:
static struct gpio_button br61xx_gpio_buttons[] __initdata ={

                       .desc = "reset_button",
                       .type =  EV_KEY
                       .code = BTN_0
                       .threshold = 5
                       .gpio = ADM5120_GPI0_PIN2
}

czy tutaj mam doklepać kolejne przyciski?


pozdrawiam

193

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary możesz mi podpowiedzieć gdzie w make menuconfig będą ustawienia gpio tzn chciałbym wkompilować :
gpoi 10,13,16,19,22 jako wejścia pozostałe 10 (diody 6104k) jako wyjścia.
W poprzedniej konfiguracji miałem tak zrobione że diody link_act i Link_speed nie zaświecały sie przy starcie.
Gdzie tego szukać przy kompilacji?

pozdrawiam

194

(5 odpowiedzi, napisanych Oprogramowanie / Software)

witam, oryginalnie zamontowany przycisk w systemie jest widziany jako btn_1, dodałem do systemu wg opisy jeszcze pięć przycisków, wszystko działa po odczycie /sys/class/gpio*/value po zwarciu zmienia sie stan z 1 na 0 - cz\yli działa.
pytanie tylko jak skorzystać w systemie  skoro logread nie widzi zmian? musi być wkompilowane w jądro obsługa tych przycisków?

pozdrawiam

Witam , jest możliwe odczytanie stanu linii EOL i 2EOL w openwrt? chciałem wykorzystać kilka wejść mmnet1002 jako centrala alarmowa.
pozdrawiam

196

(39 odpowiedzi, napisanych Oprogramowanie / Software)

to może i ja sie przyłącze...
RB411U dysk samsung z przejściówką sata=USB

root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs (rw,noatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14752k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /home/public type ext3 (rw,relatime,errors=continue,barrier=0,data=writeback)
mountd(pid1159) on /tmp/run/mountd type autofs (rw,relatime,fd=5,pgrp=1159,timeout=60,minproto=5,maxproto=5,indirect)
root@OpenWrt:~#

hdparm -t -T /dev/sda1

/dev/sda1:
 Timing cached reads:    82 MB in  2.02 seconds =  40.59 MB/sec
 Timing buffered disk reads:   50 MB in  3.09 seconds =  16.21 MB/sec
root@OpenWrt:~#

fstab

config 'global' 'automount'
        option 'from_fstab' '1'
        option 'anon_mount' '1'

config 'global' 'autoswap'
        option 'from_fstab' '1'
        option 'anon_swap' '0'

config 'mount'
        option 'device' '/dev/sda1'
        option 'fstype' 'ext3'
        option 'options' 'rw'
        option 'enabled' '1'
        option 'target' '/home/public'

config 'swap'
        option 'device' '/dev/sda2'
        option 'enabled' '0'

rzeczywisty transfer to 800-1200kb , wiem że dysk nie jest szatanem prędkości ale czy po lanie czy po wifi to samo.
ale po podłączeniu do laptopa około 50-60mb/sek.Zna ktoś rozwiazanie?


pozdrawiam

197

(3 odpowiedzi, napisanych Oprogramowanie / Software)

dwa edimaxy już mam można powiedzieć prawie gratis...docelowo chce się przesiąść na mmnet1002 ale to trochę kosztuje do tego trzeba jakąś płytkę drukowaną itp. na razie muszę zostać przy edimaxie:)

witam.
mam dwa edimaxy 6104k jednego już zagospodarowałem ale brakło mi I/O. Pomyślałem że użyje drugiego i skonfiguruje to tak żeby jeden miał powiedzmy wejścia a drugi wyjścia na pinach gpio. pytanie takie jak zrobić żeby wejście w jednym wzbudzało wyjście w drugim...?czytałem w internecie o ssh ale jak to sie je - nie mam pojęcia?

pozdrawiam

skompilowałem wg tego opisu http://blog.vodkamelone.de/archives/148 … RB433.html i wgrałem na rb, wiem że plik w mtdblock1 mam zamienić openwrt-ar71xx-vmlinux.elf na  "kernel" i tak też zrobiłem , natomiast w mtdblock2 nie zmieniamy nazwy?wgrałem tam openwrt-ar71xx-root.squashfs .

mam taki błąd przy starcie:


RouterBOOT booter 2.23

RouterBoard 411U

CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
loading kernel from nand... OK
setting up elf image... not an elf header
kernel loading failed

help:)

już wiem co było nie tak , nie przestawiłem protokołu bootowania.
Ale teraz natrafiłemna następny problem , a mianowicie nie mam katalogu /dev/mtdblock1

mam takie katalogi w /dev/
root@(none):/# dev/
dev/console             dev/network_throughput  dev/shm/
dev/cpu_dma_latency     dev/null                dev/tty
dev/full                dev/port                dev/ttyS0
dev/kmsg                dev/ptmx                dev/urandom
dev/mem                 dev/pts/                dev/watchdog
dev/network_latency     dev/random              dev/zero
root@(none):/# dev/

tak startuje:

RouterBOOT booter 2.23                     

RouterBoard 411Uruction cache 64

CPU frequency: 300 MHze 32 bytes.           
  Memory size:  32 MB                     

Press any key within 2 seconds to enter setup.......................... failedata cache 32kB,
trying dhcp protocol... OK linesize 32 bytes       
resolved mac address 00:18:8B:A5:10:F8                                     
Gateway: 192.168.1.1                   
transfer started ........................ transfer ok, time=1.89ster 2.23 ErrCtl register=0001f                                   
setting up elf image... OK               

CPU freq
jumping to kernel code90                   
Linux version 2.6.30.5 (alex@motard) (gcc version 4.   
NR_IRQS:56         

                       


RouterBOOT booter 2.23                     

Rout
Determined physical RAM map:

CPU frequency: 300 MHz. 19
memory: 02000000 @ 00000000 (usable)                       
  Memory siz
Initrd not found or empty - disabling initrd within 2 seconds to enter setup..s: 512   
Zone PFN ranges:               
  Normal   0x00000000 -> 0x00002000hcp protocol.......................
Movable zone start PFN for each node                                   
early_node_map[1] active PFN ranges       
MIPS: machine is Generic A
    0: 0x00000000 -> 0x00002000               
..............
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128                     


CPU frequency: 300 MHz                     
  M
Mount-cache hash table entries: 512...................................
net_namespace: 528 bytes                       
NET: Registered protocol family 16                                 
MIPS: machine is Generic AR71xx board.....................................
bio: create slab <bio-0> at 0....                         
NET: Registered protocol family 2                     
Atheros AR7
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Sep  1 2009 09:06:39 Installing.
msgmni has been set to 56
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
Freeing unused kernel memory: 716k freed
- preinit -
Press CTRL-C for failsafe

Please press Enter to activate this console.



nie zakłada mtd1, mtd2 itd

BusyBox v1.14.3 (2009-09-01 08:45:27 EEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (bleeding edge, r17456) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#