1

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Hej ZUZIA, coś się stało z Twoim chomikiem. Jest szansa na dostęp do Twoich plików?

2

(511 odpowiedzi, napisanych Sprzęt / Hardware)

kipronar napisał/a:

@Zuzia
...
Wzbudzenie się wyświetlacza podczas odtwarzania dźwięku wyraźnie zakłóca pracę MPD.
...

Wyświetlacz można łatwo wyłączyć jeśli powoduje problemy.
np: #/etc/init.d/lcd4linux stop
Docelowo dobrze by było żeby ograniczyć interferencje w inny sposób bo ekran przyda się do wyświetlania np. nazwy utworu, przyda się też klawiatura choćby do regulacji głośności. Lcd4linux obsługuje również mpd.
Proponuję nie pozbywać się z configa żadnych wpisów zawierających "easybox904" lub "eb904" w nazwie.

3

(511 odpowiedzi, napisanych Sprzęt / Hardware)

kipronar napisał/a:

Kompiluję pod Debianem 8.7.  Próby kompilacji w jego nowszej wersji bądź w OpenSuse wykładają się na czymś o wdzięcznej nazwie "luajit"...

edit 2:
Kompilacja z usługą MPD:

https://www.dropbox.com/sh/ixp3v18i68ud … 37tPa?dl=0

Przetestowane, działa. Należy wyedytować /etc/mpd.conf
MPD z routera? Dlaczego nie.
EB 904xDSL sprawdza się w tej roli znakomicie.
Przetwornik USB do S/PDIF  i gramy.
Efekt mocno przerósł moje oczekiwania.
Ponieważ ma to być urządzenie dedykowane więc wskazany minimalizm i wyczyszczenie wszystkiego co zbędne.
Plik .manifest zawiera listę wszystkich zainstalowanych pakietów.
Z całą pewnością gro z nich to zbędni statyści (Luci  usunę na koniec procesu).

Proszę o pomoc w ustaleniu, które pakiety skreślić.
Może łatwiej będzie określić- co zostawić?
(Urządzenie z MPD będzie funkcjonować w domowej sieci zarządzanej innym routerem, zbędne mi Wi-Fi, wyświetlacz, DSL, telefon. Biblioteka z plikami audio jako udział nfs na routerze głównym.)

Brawo. Mi w dalszym ciągu się nie kompiluje, może dlatego że mam debiana 9.5, spróbuje na innym.
Jesli chodzi o zamieszczoną kompilację to muszę powiedzieć że pierwszy raz wersja z smp nie gubi pamięci. Niestety za dużo pakietów wyrzuciłeś z configa. Nie działa lcd4linux, przyciski na ekranie i wifi.
sprawdzę jeszcze mpd ale dziś nie mam pod ręką karty na usb.

4

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Na moim 904xdsl żadna wersja smp spompilowana przez Quallenauge nie trzyma ustawień, zawsze po rozłączeniu zasilania przywracane są ustawienia fabryczne łącznie z hasłem roota. Tego problemu nie ma w wersjach bez smp.
Próbowałem też wiele razy skompilować ze źródeł ale jak na razie mi się nie udaje.
kipronar możesz się pochwalić jak udało Ci się to wszystko skompilować?

5

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Właśnie się zorientowałem, że 904 LTE ma domyślnie openwrt.

root@vodafone:~# cat /etc/openwrt_version
10.03.1-RC5

Da się z tego wyciągnąć config i samemu skompilować lede?

6

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Witam.
Szukam i nie mogę znaleźć nigdzie w internecie lede do wersji LTE tego routera. Czy jest to ta sama co DSL?, czy trzeba samemu skompilować system?. Jeśli tak to skąd wziąć patch? znalazłem tylko do wersji DSL.

7

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Ten błąd to jak się dowiedziałem jakiś bug w jądrze. Podobno jest poprawiony w którejś tam wersji, próbowałem skompilować sobie wersję 2.6.32.27 bo do takiej wersji mam patche na mój sprzęt, ale jakoś nie mogłem ogarnąć się z różnymi błędami i problemami. Na razie działa tak jak poradził Cezary czyli przeładowaniem modułu option. Napisałem nawet skrypcik, który wykrywa brak urządzenia /sys/bus/usb-serial/devices/ttyUSB0 i przeładowuje ten moduł.
Dzieki, pozdrawiam.

8

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Obie karty aktywne i w obu piny wyłączone. Mimo połączenia, mimo prawidłowego wyświetlania w formie graficznej, w trybie tekstowym nie rozpoznaje modelu ani siły sygnału. Zamieściłem to tylko dlatego, że może kiedyś komuś to się przyda.
Pozdrawiam.

9

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Interfejsy są 2 ttyUSB0 i ttyUSB1 więc pomylić się nie dało. Po włożeniu karty tmobile przez przeglądarkę wszystko poprawnie wyświetla, nawet się połączył przyciskiem na stronie.
OK

Ostatnio podłączałem różne modemy i natknąłem się na jakiś błąd przy modemie Huawei E176G  logo PLAY ONLINE.

root@MGB100:~# 3ginfo
Status: Rozlaczony
Czas polaczenia: -
Przeslano danych: - / -
Operator:
Tryb pracy: -
Sila sygnalu: 0%
Urzadzenie: T+CSQ T+CSQ
MCC MNC: - -
LAC: - (-)
LCID: - (-)
RNC: - (-)
CID: - (-)
CSQ: -
RSSI: - dBm
UP/DOWN: -/
root@MGB100:~# 3ginfo-test

^SYSINFO:4,0,0,0,1,,0
+CREG: 2,0
+CGREG: 2,0
DEVICE:huawei T+CSQ
---------------------------------------------------------------
/dev/tty      /dev/ttyS0    /dev/ttyS1    /dev/ttyUSB0  /dev/ttyUSB1
---------------------------------------------------------------

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:0a.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:0a.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1003 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
---------------------------------------------------------------
root@MGB100:~# opkg list | grep 3ginfo
3ginfo - 1-42

Przez przeglądarkę wygląda to tak
Błąd 1
i sama siła sygnału
Błąd 1
Włożona karta sim play i brak zasięgu. Sprawdzę jeszcze jak to jest z zasięgiem.
Po włożeniu innej karty, zasięg i nazwa modemu jest wyświetlana bez błędów ale tylko w wersji przeglądarkowej, w tekstowej jest dalej źle

root@MGB100:~# 3ginfo-test

+CSQ: 17,99
^SYSINFO:2,1,0,3,1,,3
+COPS: 0,2,"26002",0
+CGREG: 2,0
DEVICE:T+CSQ T+CSQ
---------------------------------------------------------------
/dev/tty      /dev/ttyS0    /dev/ttyS1    /dev/ttyUSB0  /dev/ttyUSB1
---------------------------------------------------------------

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:0a.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:0a.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  9 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1003 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
---------------------------------------------------------------
root@MGB100:~# 3ginfo
Status: Rozlaczony
Czas polaczenia: -
Przeslano danych: - / -
Operator: T-Mobile
Tryb pracy: EDGE
Sila sygnalu: 0%
Urzadzenie: T+CSQ T+CSQ
MCC MNC: 260 02
LAC: - (-)
LCID: - (-)
RNC: - (-)
CID: - (-)
CSQ: -
RSSI: - dBm
UP/DOWN: -/
root@MGB100:~#

Dziwne ale w przeglądarce wyświetla nawet CID, LAC, itp.

11

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Poradziłem sobie z większością problemów. Poprzednio po wyłączeniu jffs2 o squash w jądrze przestał montować pliki z obszaru jffs2 i brak tych plików oraz innych, których zabrakło na skompilowanym systemie plików było powodem niewstawania systemu.
Podmieniłem jądro w mtd0 i już bez cyrków z tftp uruchamia się z pełnym rootem na dysku zewnętrznym hda1 którym jest karta CF 128MB na przejściówce do PATA 2,5" podzielona na 64MB root ext3 i 64MB swap.
Uruchomiłem też modem e353 i po ciężkich bojach udało mi się wszystko skonfigurować. Router odpalał z podpiętym modemem i prawidłowo go przełączał i wykrywał oraz automatycznie łączył z internetem, a były z tym problemy. Niestety w pewnym momencie to jest po włączeniu procesu 3ginfo przez www oraz po skonfigurowaniu obsługi jednej diody led do sygnalizacji połączenia 3G, modem przestał łączyć się z internetem. Poniżej logi z modemu

+Ethernet eth0: MAC address 00:50:18:48:d6:09
IP: 192.168.1.123/255.255.255.0, Gateway: 192.168.1.1
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version v2_0 - built 10:33:29, Mar 19 2010

Platform: PC (I386) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x000f0000, 0x00072190-0x000a0000 available
Redboot for openWRT (lintel  2010)
<press Ctrl+C to enter prompt mode>

RedBoot> 
copying kernel: 0xFFC00000 -> 0x00400000 (1048576 Bytes)
copying ramdisk: 0xFFD00000 -> 0x00400000 (2621440 Bytes)

mem_size: 2000000
initrd 1d60000 len 280000
early_serial_init...ok!

MGB100 Linux @ Lintel 2010

Uncompressing Linux...Done,
 booting Kernel!

[    0.000000] Linux version 2.6.30.10 (krzysiek@neutrino) (gcc version 4.1.2) #
5 PREEMPT Sun Apr 15 20:06:50 CEST 2012
[    0.000000] KERNEL supported cpus:
[    0.000000]   RDC RDC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
[    0.000000]  BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
[    0.000000] last_pfn = 0x2000 max_arch_pfn = 0x100000
[    0.000000] init_memory_mapping: 0000000000000000-0000000002000000
[    0.000000] 32MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 02000000
[    0.000000]   low ram: 0 - 02000000
[    0.000000]   node 0 low ram: 00000000 - 02000000
[    0.000000]   node 0 bootmap 00001000 - 00001400
[    0.000000] (6 early reservations) ==> bootmem [0000000000 - 0002000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000100000 - 00003330ac]    TEXT DATA BSS ==> [0000100000 - 00003330ac]
[    0.000000]   #2 [000009f000 - 0000100000]    BIOS reserved ==> [000009f000 - 0000100000]
[    0.000000]   #3 [0000334000 - 0000336000]              BRK ==> [0000334000 - 0000336000]
[    0.000000]   #4 [0000007000 - 000000d000]          PGTABLE ==> [0000007000 - 000000d000]
[    0.000000]   #5 [0000001000 - 0000002000]          BOOTMAP ==> [0000001000 - 0000002000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x00002000
[    0.000000] Allocating PCI resources starting at 10000000 (gap: 2000000:fe000000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8031
[    0.000000] Kernel command line: rootfstype=ext3 root=/dev/hda1 console=ttyS0,38400
[    0.000000] Initializing CPU#0
[    0.000000] NR_IRQS:16
[    0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[    0.000000] console [ttyS0] enabled
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 29804k/32768k available (1589k kernel code, 2572k reserved, 449k data, 112k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffeb000 - 0xfffff000   (  80 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xfffe9000   ( 983 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]       .init : 0xc0300000 - 0xc031c000   ( 112 kB)
[    0.000000]       .data : 0xc028d554 - 0xc02fdc3c   ( 449 kB)
[    0.000000]       .text : 0xc0100000 - 0xc028d554   (1589 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.004000] Calibrating delay loop... 50.17 BogoMIPS (lpj=100352)
[    0.096000] Mount-cache hash table entries: 512
[    0.100000] CPU: RDC AMITRISC20000/20010
[    0.108000] Checking 'hlt' instruction... OK.
[    0.132000] net_namespace: 500 bytes
[    0.140000] NET: Registered protocol family 16
[    0.156000] PCI: Using configuration type 1 for base access
[    0.172000] bio: create slab <bio-0> at 0
[    0.180000] PCI: Probing PCI hardware
[    0.204000] pci 0000:00:01.0: BAR 0: can't allocate resource
[    0.224019] NET: Registered protocol family 2
[    0.232018] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248021] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.254845] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259817] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260724] TCP reno registered
[    0.265096] NET: Registered protocol family 1
[    0.280015] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.292018] Registering mini_fo version $Id$
[    0.299019] msgmni has been set to 58
[    0.316021] alg: No test for stdrng (krng)
[    0.323012] io scheduler noop registered
[    0.325886] io scheduler deadline registered (default)
[    0.332013] r6030gpio: gpio base 0
[    0.344021] gpiodev: gpio device registered with major 253
[    0.350143] gpiodev: gpio platform device registered with access mask FFFFFFFF
[    0.353293] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.360016] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.412020] brd: module loaded
[    0.418219] Uniform Multi-Platform E-IDE driver
[    0.424014] it821x 0000:00:04.0: IDE controller (0x1283:0x8211 rev 0x11)
[    0.430383] it821x 0000:00:04.0: forcing bypass mode
[    0.435863] it821x 0000:00:04.0: controller in pass through mode
[    0.439790] it821x 0000:00:04.0: 100% native mode on irq 9
[    0.442337]     ide0: BM-DMA at 0x4400-0x4407
[    0.731997] hda: SanDisk SDCFB-128, CFA DISK drive
[    1.407997] ide0 at 0x4000-0x4007,0x4102 on irq 9
[    1.416017] ide-gd driver 1.18
[    1.421600] hda: max request size: 128KiB
[    1.424786] hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
[    1.437687]  hda: hda1 hda2
[    1.460018] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.466621] r6040: Use MAC address form MGB1OO Redboot.
[    1.468689] r6040: MAC address not initialized, generating random
[    1.480013] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.486885] r6040: Use MAC address form MGB1OO Redboot.
[    1.500034] physmap platform flash device: 00400000 at ffc00000
[    1.504085] physmap-flash: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.510962]  CFI mfr 0x000000c2
[    1.515355]  CFI id  0x000022a7
[    1.519729]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.521574]   Amd/Fujitsu Extended Query version 1.1.
[    1.526991] physmap-flash: Swapping erase regions for broken CFI table.
[    1.528489] number of CFI chips: 1
[    1.533566] cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[    1.538017] cmdlinepart partition parsing not available
[    1.541099] RedBoot partition parsing not available
[    1.547056] Using physmap partition information
[    1.551147] Creating 9 MTD partitions on "physmap-flash":
[    1.553444] 0x000000000000-0x000000100000 : "kernel"
[    1.564022] 0x000000100000-0x0000003e0000 : "rootfs"
[    1.572017] mtd: partition "rootfs_data" created automatically, ofs=340000, len=A0000 
[    1.576242] 0x000000340000-0x0000003e0000 : "rootfs_data"
[    1.584016] 0x0000003e0000-0x0000003f8000 : "Redboot (low part)"
[    1.596018] 0x0000003f8000-0x0000003fa000 : "MAC and device ID"
[    1.604018] 0x0000003fa000-0x000000400000 : "Redboot (high part)"
[    1.612013] 0x0000003e0000-0x000000400000 : "Redboot(full)"
[    1.620013] 0x000000000000-0x0000003e0000 : "linux"
[    1.632022] 0x000000000000-0x000000400000 : "fullflash"
[    1.644020] 0x000000100000-0x0000003e0000 : "rootfs-full"
[    1.656019] i2c /dev entries driver
[    1.668018] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    1.672462] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.680009] i2c-gpio i2c-gpio.0: using pins 16 (SDA) and 17 (SCL)
[    1.685482] Registered led device: USB1
[    1.690078] Registered led device: USB2
[    1.693585] Registered led device: BACKUP
[    1.697501] Registered led device: HDD_Status
[    1.716013] TCP westwood registered
[    1.722969] NET: Registered protocol family 17
[    1.726765] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    1.729092] All bugs added by David S. Miller <davem@redhat.com>
[    1.744017] rtc-pcf8563 0-0051: setting system clock to 2012-04-18 19:07:43 UTC (1334776063)
[    1.800020] kjournald starting.  Commit interval 5 seconds
[    1.806657] EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
[    1.931997] EXT3 FS on hda1, internal journal
[    1.942122] EXT3-fs: mounted filesystem with writeback data mode.
[    1.946245] VFS: Mounted root (ext3 filesystem) on device 3:1.
[    1.949795] Freeing unused kernel memory: 112k freed
[    2.004013] Please be patient, while OpenWrt loads ...- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Checking MGB100 Key status...No pressed!
- regular preinit -
[    9.528018] SCSI subsystem initialized
[   10.040017] usbcore: registered new interface driver usbfs
[   10.048017] usbcore: registered new interface driver hub
[   10.056017] usbcore: registered new device driver usb
[   10.320022] xfs: Unknown symbol exportfs_decode_fh
[   10.584018] Driver 'sd' needs updating - please use bus_type methods
[   10.696021] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.701110] ehci_hcd 0000:00:0a.1: EHCI Host Controller
[   10.708040] ehci_hcd 0000:00:0a.1: new USB bus registered, assigned bus number 1
[   10.713990] ehci_hcd 0000:00:0a.1: irq 14, io mem 0xc1000000
[   10.727999] ehci_hcd 0000:00:0a.1: USB 2.0 started, EHCI 1.00
[   10.740016] usb usb1: configuration #1 chosen from 1 choice
[   10.748013] hub 1-0:1.0: USB hub found
[   10.753778] hub 1-0:1.0: 2 ports detected
[   10.856018] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   10.860924] ohci_hcd 0000:00:0a.0: OHCI Host Controller
[   10.868024] ohci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 2
[   10.873786] ohci_hcd 0000:00:0a.0: irq 15, io mem 0xc1001000
[   10.936017] usb usb2: configuration #1 chosen from 1 choice
[   10.944016] hub 2-0:1.0: USB hub found
[   10.948031] hub 2-0:1.0: 2 ports detected
[   11.068021] usb 1-1: new high speed USB device using ehci_hcd and address 2
[   11.208020] usb 1-1: configuration #1 chosen from 1 choice
[   11.248018] Initializing USB Mass Storage driver...
[   11.264024] scsi0 : SCSI emulation for USB Mass Storage devices
[   11.280020] scsi1 : SCSI emulation for USB Mass Storage devices
[   11.296018] usbcore: registered new interface driver usb-storage
[   11.301132] USB Mass Storage support registered.
[   16.275999] scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[   16.292023] scsi 1:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
[   16.328024] sd 1:0:0:0: [sda] Attached SCSI removable diskswitching to jffs2
[   31.816018] mini_fo: using base directory: /
[   31.820153] mini_fo: using storage directory: /overlay
- init -

Please press Enter to activate this console. 
[   36.508015] device eth1 entered promiscuous mode
[   36.513612] br-lan: port 1(eth1) entering forwarding state
[   38.424051] Compat-wireless backport release: compat-wireless-2010-12-10-3-g880bb0b
[   38.444022] Backport based on wireless-testing.git master-2010-12-16
[   40.384015] cfg80211: Calling CRDA to update world regulatory domain
[   41.392022] cfg80211: World regulatory domain updated:
[   41.400007] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   41.408017] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   41.420014] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   41.448018] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   41.460020] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   41.496021] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   45.192018] Registered led device: rt2500pci-phy0::radio
[   45.252019] Registered led device: rt2500pci-phy0::quality
[   46.816020] RPC: Registered udp transport module.
[   46.821534] RPC: Registered tcp transport module.
[   47.428025] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[   47.708016] PPP generic driver version 2.4.2
[   48.356016] ip_tables: (C) 2000-2006 Netfilter Core Team
[   49.472018] nf_conntrack version 0.5.0 (512 buckets, 2048 max)
[   51.088021] usbcore: registered new interface driver usbserial
[   51.096018] USB Serial support registered for generic
[   51.104013] usbcore: registered new interface driver usbserial_generic
[   51.112021] usbserial: USB Serial Driver core
[   51.688017] USB Serial support registered for GSM modem (1-port)
[   51.696019] usbcore: registered new interface driver option
[   51.700693] option: v0.7.2:USB Driver for GSM modems
[   52.372023] Adding 63012k swap on /dev/hda2.  Priority:-1 extents:1 across:63012k 
[   55.516022] device wlan0 entered promiscuous mode
[   55.524020] br-lan: port 2(wlan0) entering forwarding state
[   58.104020] device wlan0 left promiscuous mode
[   58.109530] br-lan: port 2(wlan0) entering disabled state
[   58.356028] device wlan0 entered promiscuous mode
[   58.361873] br-lan: port 2(wlan0) entering forwarding state
[   69.116021] usb 1-1: usbfs: process 1182 (usb_modeswitch) did not claim interface 0 before use
[   69.148020] usb 1-1: USB disconnect, address 2
[   72.548007] usb 1-1: new high speed USB device using ehci_hcd and address 3
[   72.692024] usb 1-1: configuration #1 chosen from 1 choice
[   72.708025] option 1-1:1.0: GSM modem (1-port) converter detected
[   72.720026] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   72.732025] option 1-1:1.1: GSM modem (1-port) converter detected
[   72.744025] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   72.752026] option 1-1:1.2: GSM modem (1-port) converter detected
[   72.757078] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   72.764027] option 1-1:1.3: GSM modem (1-port) converter detected
[   72.784012] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[   72.800026] option 1-1:1.4: GSM modem (1-port) converter detected
[   72.808023] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
[   72.852022] scsi2 : SCSI emulation for USB Mass Storage devices
[   72.888020] scsi3 : SCSI emulation for USB Mass Storage devices
[   73.924008] option: option_instat_callback: error -108
[   73.928548] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   73.934519] option 1-1:1.0: device disconnected
[   77.871999] scsi 2:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[   77.900018] scsi 3:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
[   77.924028] sd 3:0:0:0: [sda] Attached SCSI removable disk

BusyBox v1.15.3 (2012-04-14 20:22:35 CEST) 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
 Backfire (10.03, r260) --------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua 
  * 1/3 shot Bailey's  on the bottom, then Bailey's, 
  * 1/3 shot Vodka     then Vodka.
        Mod by lintel
 ---------------------------------------------------
root@MGB100:/# 3ginfo-test 

+CSQ: 11,99
^SYSINFOEX:2,2,0,1,,3,"WCDMA",41,"WCDMA"
^SYSINFO:2,2,0,5,1,,4
+COPS: 0,2,"26017",2
+CREG: 2,0
+CGREG: 2,1, C352, 4504B72
DEVICE:huawei E353
---------------------------------------------------------------
/dev/tty      /dev/ttyS1    /dev/ttyUSB1  /dev/ttyUSB3
/dev/ttyS0    /dev/ttyUSB0  /dev/ttyUSB2  /dev/ttyUSB4
---------------------------------------------------------------

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:0a.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.30.10 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:0a.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(unk. ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 0.00
S:  Manufacturer=Huawei Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=09 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=08 Driver=option
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
---------------------------------------------------------------
root@MGB100:/# cat /dev/ttyroot@MGB100:/# cat /dev/ttyUroot@MGB100:/# cat /dev/ttyUSB0
cat: can't open '/dev/ttyUSB0': No such device
root@MGB100:/# root@MGB100:/# cat /dev/ttyUSB1
^C
root@MGB100:/# root@MGB100:/# cat /dev/ttyUSB2
^C
root@MGB100:/# root@MGB100:/# cat /dev/ttyUSB3
^C
root@MGB100:/# root@MGB100:/# cat /dev/ttyUSB4
^C
root@MGB100:/# logread|tail
Apr 18 21:12:42 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:13:12 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:13:42 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:14:01 MGB100 cron.err crond[1139]: USER root pid 1682 cmd /bin/tester.sh
Apr 18 21:14:12 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:14:43 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:15:13 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:15:43 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
Apr 18 21:16:01 MGB100 cron.err crond[1139]: USER root pid 1687 cmd /bin/tester.sh
Apr 18 21:16:13 MGB100 daemon.err pppd[1550]: Failed to open /dev/ttyUSB0: No such device
root@MGB100:/#

Z logów widać że wykrywa wszystkie 5 portów USB ale znika mu najważniejszy /dev/ttyUSB0. Nie wiem tylko co może być przyczyną, może wskazówką będzie to:

[   73.924008] option: option_instat_callback: error -108
[   73.928548] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0


Proszę o pomoc.

12

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Niestety po wyrzuceniu z jądra obsługi jffs2, squashfs i initrd mam "kernel panic"

RedBoot> load -r -v -m tftp -h 192.168.1.2 -b 0x400000 bzimage
*
Raw file loaded 0x00400000-0x004ecdcf, assumed entry at 0x00400000
RedBoot> linux -b 0x400000 -l 0xecdcf -c "root=/dev/hda1 rootfs=ext2 console=tty
S0,38400"

mem_size: 2000000
initrd 1fa3000 len 3d000
early_serial_init...ok!

MGB100 Linux @ Lintel 2010

Uncompressing Linux...Done,
 booting Kernel!

[    0.000000] Linux version 2.6.30.10 (krzysiek@neutrino) (gcc version 4.1.2) #
4 PREEMPT Sun Apr 15 14:26:23 CEST 2012
[    0.000000] KERNEL supported cpus:
[    0.000000]   RDC RDC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
[    0.000000]  BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
[    0.000000] last_pfn = 0x2000 max_arch_pfn = 0x100000
[    0.000000] init_memory_mapping: 0000000000000000-0000000002000000
[    0.000000] 32MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 02000000
[    0.000000]   low ram: 0 - 02000000
[    0.000000]   node 0 low ram: 00000000 - 02000000
[    0.000000]   node 0 bootmap 00001000 - 00001400
[    0.000000] (6 early reservations) ==> bootmem [0000000000 - 0002000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000100000 - 00003330ac]    TEXT DATA BSS ==> [0000100000 - 00003330ac]
[    0.000000]   #2 [000009f000 - 0000100000]    BIOS reserved ==> [000009f000 - 0000100000]
[    0.000000]   #3 [0000334000 - 0000336000]              BRK ==> [0000334000 - 0000336000]
[    0.000000]   #4 [0000007000 - 000000d000]          PGTABLE ==> [0000007000 - 000000d000]
[    0.000000]   #5 [0000001000 - 0000002000]          BOOTMAP ==> [0000001000 - 0000002000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x00002000
[    0.000000] Allocating PCI resources starting at 10000000 (gap: 2000000:fe000
000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 8031
[    0.000000] Kernel command line: rootfstype=ext2 root=/dev/hda1 console=ttyS0
,38400 root=/dev/hda1 rootfs=ext2 console=ttyS0,38400
[    0.000000] Initializing CPU#0
[    0.000000] NR_IRQS:16
[    0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[    0.000000] console [ttyS0] enabled
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 29804k/32768k available (1589k kernel code, 2572k reserved, 449k data, 112k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffeb000 - 0xfffff000   (  80 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xfffe9000   ( 983 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]       .init : 0xc0300000 - 0xc031c000   ( 112 kB)
[    0.000000]       .data : 0xc028d554 - 0xc02fdc3c   ( 449 kB)
[    0.000000]       .text : 0xc0100000 - 0xc028d554   (1589 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.004000] Calibrating delay loop... 50.17 BogoMIPS (lpj=100352)
[    0.096000] Mount-cache hash table entries: 512
[    0.100000] CPU: RDC AMITRISC20000/20010
[    0.108000] Checking 'hlt' instruction... OK.
[    0.132000] net_namespace: 500 bytes
[    0.140000] NET: Registered protocol family 16
[    0.156000] PCI: Using configuration type 1 for base access
[    0.172000] bio: create slab <bio-0> at 0
[    0.180000] PCI: Probing PCI hardware
[    0.204000] pci 0000:00:01.0: BAR 0: can't allocate resource
[    0.224019] NET: Registered protocol family 2
[    0.232018] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248019] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.254731] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.259703] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260609] TCP reno registered
[    0.264986] NET: Registered protocol family 1
[    0.280021] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.292021] Registering mini_fo version $Id$
[    0.298729] msgmni has been set to 58
[    0.312017] alg: No test for stdrng (krng)
[    0.318518] io scheduler noop registered
[    0.321182] io scheduler deadline registered (default)
[    0.328015] r6030gpio: gpio base 0
[    0.340035] gpiodev: gpio device registered with major 253
[    0.345530] gpiodev: gpio platform device registered with access mask FFFFFFFF
[    0.348611] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.354480] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.408019] brd: module loaded
[    0.413406] Uniform Multi-Platform E-IDE driver
[    0.417424] it821x 0000:00:04.0: IDE controller (0x1283:0x8211 rev 0x11)
[    0.421453] it821x 0000:00:04.0: forcing bypass mode
[    0.426746] it821x 0000:00:04.0: controller in pass through mode
[    0.430817] it821x 0000:00:04.0: 100% native mode on irq 9
[    0.433361]     ide0: BM-DMA at 0x4400-0x4407
[    0.723997] hda: SanDisk SDCFB-128, CFA DISK drive
[    1.399997] ide0 at 0x4000-0x4007,0x4102 on irq 9
[    1.408018] ide-gd driver 1.18
[    1.413533] hda: max request size: 128KiB
[    1.416721] hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
[    1.429618]  hda: hda1 hda2
[    1.452014] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.458577] r6040: Use MAC address form MGB1OO Redboot.
[    1.460645] r6040: MAC address not initialized, generating random
[    1.472013] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.478889] r6040: Use MAC address form MGB1OO Redboot.
[    1.492043] physmap platform flash device: 00400000 at ffc00000
[    1.496290] physmap-flash: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.503167]  CFI mfr 0x000000c2
[    1.507562]  CFI id  0x000022a7
[    1.512004]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.517850]   Amd/Fujitsu Extended Query version 1.1.
[    1.523265] physmap-flash: Swapping erase regions for broken CFI table.
[    1.524763] number of CFI chips: 1
[    1.529840] cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[    1.534290] cmdlinepart partition parsing not available
[    1.537325] RedBoot partition parsing not available
[    1.543283] Using physmap partition information
[    1.547376] Creating 9 MTD partitions on "physmap-flash":
[    1.549673] 0x000000000000-0x000000100000 : "kernel"
[    1.560019] 0x000000100000-0x0000003e0000 : "rootfs"
[    1.568017] mtd: partition "rootfs_data" created automatically, ofs=340000, len=A0000 
[    1.572468] 0x000000340000-0x0000003e0000 : "rootfs_data"
[    1.580016] 0x0000003e0000-0x0000003f8000 : "Redboot (low part)"
[    1.592026] 0x0000003f8000-0x0000003fa000 : "MAC and device ID"
[    1.600018] 0x0000003fa000-0x000000400000 : "Redboot (high part)"
[    1.608018] 0x0000003e0000-0x000000400000 : "Redboot(full)"
[    1.616018] 0x000000000000-0x0000003e0000 : "linux"
[    1.624019] 0x000000000000-0x000000400000 : "fullflash"
[    1.636026] 0x000000100000-0x0000003e0000 : "rootfs-full"
[    1.648038] i2c /dev entries driver
[    1.660020] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    1.664940] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.668321] i2c-gpio i2c-gpio.0: using pins 16 (SDA) and 17 (SCL)
[    1.676017] Registered led device: USB1
[    1.682553] Registered led device: USB2
[    1.686015] Registered led device: BACKUP
[    1.690047] Registered led device: HDD_Status
[    1.708010] TCP westwood registered
[    1.715492] NET: Registered protocol family 17
[    1.719290] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    1.721612] All bugs added by David S. Miller <davem@redhat.com>
[    1.736014] rtc-pcf8563 0-0051: setting system clock to 2012-04-14 13:47:33 UTC (1334411253)
[    1.744018] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[    1.751670] VFS: Mounted root (ext2 filesystem) on device 3:1.
[    1.756008] Freeing unused kernel memory: 112k freed
[    1.847997] Please be patient, while OpenWrt loads ...
[    1.895997] Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Spróbuję wrócić do poprzednich ustawień i wyrzucać pojedynczo.

13

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Nie napisałem na wstępie, że zamin zacząłem łądować jądro przez bootloader, podmieniłem je w mtd0 bez podłączania dysku hda1. System się uruchomił ale nie ładowały się moduły prawdopodobnie dlatego że jądro ze ściągniętego systemu skompilowane było pod procesor zgodny z 486 a jądro kompilowane ze źródeł m już natywną obsługę tego procesora czyli AMRISC 20000 RDC R3210. po podmianie jądra z bootloadera i zmianie parametrów wywołania jądra, system wstaje bez błędów bo prawidłowo montuje hda1 na / (choć nie pokazuje tego po poleceniu mount) ale później montuje też między innymi /overlay
poniżej są logi systemu załadowanego z flasha

root@MGB100:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=15259648,mode=1777)
tmpfs on /dev type tmpfs (rw,relatime,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock2 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@MGB100:/# ls
bin      etc      mnt      proc     root     sys      usr      www
dev      lib      overlay  rom      sbin     tmp      var
root@MGB100:/dmesg
) ==> bootmem [0000000000 - 0002000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 -
 0000001000]
[    0.000000]   #1 [0000100000 - 000035268c]    TEXT DATA BSS ==> [0000100000 -
 000035268c]
[    0.000000]   #2 [0001d60000 - 0001fe0000]          RAMDISK ==> [0001d60000 -
 0001fe0000]
[    0.000000]   #3 [000009f000 - 0000100000]    BIOS reserved ==> [000009f000 -
 0000100000]
[    0.000000]   #4 [0000353000 - 0000355000]              BRK ==> [0000353000 -
 0000355000]
[    0.000000]   #5 [0000007000 - 000000d000]          PGTABLE ==> [0000007000 -
 000000d000]
[    0.000000]   #6 [0000001000 - 0000002000]          BOOTMAP ==> [0000001000 -
 0000002000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x00002000
[    0.000000] On node 0 totalpages: 8095
[    0.000000] free_area_init_node: node 0, pgdat c0314740, node_mem_map c100000
0
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3967 pages, LIFO batch:0
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 4064 pages, LIFO batch:0
[    0.000000] Allocating PCI resources starting at 10000000 (gap: 2000000:fe000
000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 8031
[    0.000000] Kernel command line: console=ttyS0,38400 rootfstype=squashfs,jffs
2 console=ttyS0,38400 root=/dev/ram0 rw
[    0.000000] Initializing CPU#0
[    0.000000] NR_IRQS:16
[    0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[    0.000000] console [ttyS0] enabled
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 27120k/32768k available (1539k kernel code, 5256k reserve
d, 615k data, 124k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffeb000 - 0xfffff000   (  80 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xfffe9000   ( 983 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]       .init : 0xc031e000 - 0xc033d000   ( 124 kB)
[    0.000000]       .data : 0xc0280f44 - 0xc031abbc   ( 615 kB)
[    0.000000]       .text : 0xc0100000 - 0xc0280f44   (1539 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor 
mode...Ok.
[    0.004000] Calibrating delay loop... 50.17 BogoMIPS (lpj=100352)
[    0.092000] Mount-cache hash table entries: 512
[    0.100000] CPU: RDC AMITRISC20000/20010
[    0.108000] Checking 'hlt' instruction... OK.
[    0.132000] net_namespace: 500 bytes
[    0.140000] NET: Registered protocol family 16
[    0.148000] i2c-core: driver [dummy] registered
[    0.156000] PCI: Using configuration type 1 for base access
[    0.176000] bio: create slab <bio-0> at 0
[    0.188000] PCI: Probing PCI hardware
[    0.192000] PCI: Probing PCI hardware (bus 00)
[    0.196000] pci 0000:00:01.0: reg 10 32bit mmio: [0x00e000-0x00ffff]
[    0.196000] pci 0000:00:04.0: reg 10 io port: [0x4000-0x4007]
[    0.196000] pci 0000:00:04.0: reg 14 io port: [0x4100-0x4103]
[    0.196000] pci 0000:00:04.0: reg 18 io port: [0x4200-0x4207]
[    0.196000] pci 0000:00:04.0: reg 1c io port: [0x4300-0x4303]
[    0.196000] pci 0000:00:04.0: reg 20 io port: [0x4400-0x440f]
[    0.196000] pci 0000:00:04.0: reg 30 32bit mmio: [0x000000-0x01ffff]
[    0.196000] pci 0000:00:08.0: reg 10 io port: [0xe800-0xe8ff]
[    0.196000] pci 0000:00:08.0: reg 14 32bit mmio: [0xd1900000-0xd19000ff]
[    0.196000] pci 0000:00:09.0: reg 10 io port: [0xe900-0xe9ff]
[    0.200000] pci 0000:00:09.0: reg 14 32bit mmio: [0xd2900000-0xd29000ff]
[    0.200000] pci 0000:00:0a.0: reg 10 32bit mmio: [0xc1001000-0xc1001fff]
[    0.200000] pci 0000:00:0a.1: reg 10 32bit mmio: [0xc1000000-0xc1000fff]
[    0.212000] pci 0000:00:01.0: BAR 0: can't allocate resource
[    0.232019] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.232019] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
[    0.232019] NET: Registered protocol family 2
[    0.240012] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.256016] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.262751] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.267743] TCP: Hash tables configured (established 1024 bind 1024)
[    0.268651] TCP reno registered
[    0.273027] NET: Registered protocol family 1
[    0.278021] Trying to unpack rootfs image as initramfs...
[    0.281659] rootfs image is not initramfs (junk in compressed archive); looks
 like an initrd
[    0.364018] Freeing initrd memory: 2560k freed
[    0.400017] platform rtc_cmos: registered platform RTC device (no PNP device 
found)
[    0.412019] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.417363] Registering mini_fo version $Id$
[    0.420907] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.424858] msgmni has been set to 57
[    0.440016] alg: No test for stdrng (krng)
[    0.445208] io scheduler noop registered
[    0.452002] io scheduler deadline registered (default)
[    0.457665] r6030gpio 0000:00:07.0: setting latency timer to 64
[    0.457665] r6030gpio: gpio base 0
[    0.468023] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.476008] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.528017] brd: module loaded
[    0.535438] Uniform Multi-Platform E-IDE driver
[    0.540012] it821x 0000:00:04.0: IDE controller (0x1283:0x8211 rev 0x11)
[    0.547623] it821x 0000:00:04.0: forcing bypass mode
[    0.549100] it821x 0000:00:04.0: controller in pass through mode
[    0.553050] it821x 0000:00:04.0: 100% native mode on irq 9
[    0.559596]     ide0: BM-DMA at 0x4400-0x4407
[    0.563195] Probing IDE interface ide0...
[    0.851993] hda: SanDisk SDCFB-128, CFA DISK drive
[    1.527993] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[    1.527993] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[    1.527993] ide0 at 0x4000-0x4007,0x4102 on irq 9
[    1.536016] ide-gd driver 1.18
[    1.541632] hda: max request size: 128KiB
[    1.544794] hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
[    1.557669]  hda: hda1 hda2
[    1.580014] ide-cd driver 5.00
[    1.588017] physmap platform flash device: 00400000 at ffc00000
[    1.596023] physmap-flash: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.602956]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.604860] physmap-flash: Swapping erase regions for broken CFI table.
[    1.610425] number of CFI chips: 1
[    1.615505] cfi_cmdset_0002: Disabling erase-suspend-program due to code brok
enness.
[    1.620065] cmdlinepart partition parsing not available
[    1.628013] RedBoot partition parsing not available
[    1.633196] Using physmap partition information
[    1.637217] Creating 8 MTD partitions on "physmap-flash":
[    1.643608] 0x000000000000-0x000000100000 : "linux"
[    1.648019] 0x000000100000-0x0000003e0000 : "rootfs"
[    1.656023] mtd: partition "rootfs_data" created automatically, ofs=340000, l
en=A0000 
[    1.661927] 0x000000340000-0x0000003e0000 : "rootfs_data"
[    1.668017] 0x0000003e0000-0x0000003f8000 : "Redboot (low part)"
[    1.676013] 0x0000003f8000-0x0000003fa000 : "MAC and device ID"
[    1.684016] 0x0000003fa000-0x000000400000 : "Redboot (high part)"
[    1.696019] 0x0000003e0000-0x000000400000 : "Redboot(full)"
[    1.708027] 0x000000000000-0x0000003e0000 : "Flash without Redboot"
[    1.716040] 0x000000000000-0x000000400000 : "MGB100-allflash"
[    1.728017] i8042.c: Warning: Keylock active.
[    1.734491] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.740044] gpio-keys: Unable to get irq number for GPIO 0, error -38
[    1.747604] gpio-keys: probe of gpio-keys failed with error -38
[    1.752020] gpio-buttons driver version 0.1.2
[    1.756611] i2c-core: driver [rtc-pcf8563] registered
[    1.756611] i2c /dev entries driver
[    1.760094] i2c-core: driver [dev_driver] registered
[    1.760094] i2c-adapter i2c-0: adapter [i2c-gpio0] registered
[    1.764016] i2c 0-0051: uevent
[    1.764016] rtc-pcf8563 0-0051: probe
[    1.764016] rtc-pcf8563 0-0051: pcf8563_probe
[    1.764016] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    1.769432] rtc-pcf8563: dev (254:0)
[    1.769432] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.772858] i2c-adapter i2c-0: client [pcf8563] registered with bus id 0-0051
[    1.772858] i2c-dev: adapter [i2c-gpio0] registered as minor 0
[    1.772858] i2c-gpio i2c-gpio.0: using pins 16 (SDA) and 17 (SCL)
[    1.780016] Registered led device: USB1
[    1.788008] Registered led device: USB2
[    1.796013] Registered led device: BACKUP
[    1.804018] Registered led device: HDD_Status
[    1.820009] TCP westwood registered
[    1.827825] NET: Registered protocol family 17
[    1.832008] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    1.838098] All bugs added by David S. Miller <davem@redhat.com>
[    1.848019] i2c-adapter i2c-0: master_xfer[0] W, addr=0x51, len=1
[    1.848019] i2c-adapter i2c-0: master_xfer[1] R, addr=0x51, len=13
[    1.852018] rtc-pcf8563 0-0051: pcf8563_get_datetime: raw data is st1=08, st2
=00, sec=12, min=09, hr=10, mday=14, wday=16, mon=04, year=12
[    1.852018] rtc-pcf8563 0-0051: pcf8563_get_datetime: tm is secs=12, mins=9, 
hours=10, mday=14, mon=3, year=112, wday=6
[    1.856153] rtc-pcf8563 0-0051: setting system clock to 2012-04-14 10:09:12 U
TC (1334398152)
[    2.551993] RAMDISK: squashfs filesystem found at block 0
[    2.558851] RAMDISK: Loading 2290KiB [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\done.
[    3.120007] VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
[    3.128000] Freeing unused kernel memory: 124k freed
[    3.172008] Please be patient, while OpenWrt loads ...
[    9.908019] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    9.913950] r6040 0000:00:08.0: setting latency timer to 64
[    9.913950] r6040: MAC address not initialized, generating random
[    9.928013] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    9.932529] r6040 0000:00:09.0: setting latency timer to 64
[   13.808015] mini_fo: using base directory: /
[   13.815050] mini_fo: using storage directory: /overlay
[   23.300023] device eth1 entered promiscuous mode
[   23.305867] br-lan: port 1(eth1) entering forwarding state
[   29.424024] Generic kernel compatibility enabled based on linux-next next-201
00113
[   32.556023] cfg80211: Calling CRDA to update world regulatory domain
[   36.024022] SCSI subsystem initialized
[   36.048020] cfg80211: World regulatory domain updated:
[   36.052718]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_e
irp)
[   36.056536]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   36.063234]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   36.065935]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   36.068636]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   36.075339]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.092019] usbcore: registered new interface driver usbfs
[   37.100015] usbcore: registered new interface driver hub
[   37.128022] usbcore: registered new device driver usb
[   39.532024] rt2500pci 0000:00:01.0: setting latency timer to 64
[   39.576018] phy0: Selected rate control algorithm 'minstrel'
[   39.592016] Registered led device: rt2500pci-phy0::radio
[   39.598511] Registered led device: rt2500pci-phy0::quality
[   39.860023] usbcore: registered new interface driver rtl8187
[   41.244027] RPC: Registered udp transport module.
[   41.250810] RPC: Registered tcp transport module.
[   43.392019] NTFS driver 2.1.29 [Flags: R/O MODULE].
[   45.656023] PPP generic driver version 2.4.2
[   46.152023] tun: Universal TUN/TAP device driver, 1.6
[   46.159672] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   47.628024] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   48.780023] ip_tables: (C) 2000-2006 Netfilter Core Team
[   50.168021] NET: Registered protocol family 24
[   50.960023] Driver 'sd' needs updating - please use bus_type methods
[   51.588024] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   51.592424] ehci_hcd 0000:00:0a.1: EHCI Host Controller
[   51.598833] ehci_hcd 0000:00:0a.1: new USB bus registered, assigned bus numbe
r 1
[   51.603236] ehci_hcd 0000:00:0a.1: irq 14, io mem 0xc1000000
[   51.616022] ehci_hcd 0000:00:0a.1: USB 2.0 started, EHCI 1.00
[   51.621162] usb usb1: configuration #1 chosen from 1 choice
[   51.625909] hub 1-0:1.0: USB hub found
[   51.628890] hub 1-0:1.0: 2 ports detected
[   52.376024] nf_conntrack version 0.5.0 (512 buckets, 2048 max)
[   56.308022] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   56.314324] ohci_hcd 0000:00:0a.0: OHCI Host Controller
[   56.316800] ohci_hcd 0000:00:0a.0: new USB bus registered, assigned bus numbe
r 2
[   56.321089] ohci_hcd 0000:00:0a.0: irq 15, io mem 0xc1001000
[   56.384018] usb usb2: configuration #1 chosen from 1 choice
[   56.392016] hub 2-0:1.0: USB hub found
[   56.398179] hub 2-0:1.0: 2 ports detected
[   57.428025] usbcore: registered new interface driver usblp
[   58.052024] Initializing USB Mass Storage driver...
[   58.060009] usbcore: registered new interface driver usb-storage
[   58.064845] USB Mass Storage support registered.
[   58.492023] usbcore: registered new interface driver asix
[   58.600022] usbcore: registered new interface driver cdc_ether
[   59.236021] usbcore: registered new interface driver dm9601
[   59.676023] usbcore: registered new interface driver kaweth
[   59.816023] usbcore: registered new interface driver MOSCHIP usb-ethernet dri
ver
[   60.416023] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet dr
iver
[   60.422874] usbcore: registered new interface driver pegasus
[   60.568023] usbcore: registered new interface driver rndis_host
[   60.660023] option: Unknown symbol usb_serial_port_softint
[   60.688023] option: Unknown symbol usb_serial_disconnect
[   60.700024] option: Unknown symbol usb_serial_suspend
[   60.716023] option: Unknown symbol kmem_cache_alloc_notrace
[   60.732023] option: Unknown symbol __tracepoint_kmalloc
[   60.740021] option: Unknown symbol slab_buffer_size
[   60.748019] option: Unknown symbol usb_serial_probe
[   60.756012] option: Unknown symbol usb_serial_register
[   60.764022] option: Unknown symbol usb_serial_deregister
[   60.772018] option: Unknown symbol usb_serial_resume
[   67.132023] device wlan0 entered promiscuous mode
[   67.140018] br-lan: port 2(wlan0) entering forwarding state
[   67.216023] phy0: failed to set TX queue parameters for queue 2
[   67.216023] phy0: failed to set TX queue parameters for queue 3
[   69.696022] device wlan0 left promiscuous mode
[   69.703575] br-lan: port 2(wlan0) entering disabled state
[   69.884022] device wlan0 entered promiscuous mode
[   69.889683] br-lan: port 2(wlan0) entering forwarding state
root@MGB100:/# 

błędy usbserial są dlatego że próbowałem zainstalować modem i ustawienia zapisało w /overlay
Tu są logi z jądra ładowanego z tftp:

root@MGB100:/# ls /
bin         etc         mnt         rom         sys         var
boot        lib         overlay     root        tmp         www
dev         lost+found  proc        sbin        usr
root@MGB100:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=15280128,mode=1777)
tmpfs on /dev type tmpfs (rw,relatime,mode=0755,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock2 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
root@MGB100:/# dmesg
[    0.000000] Linux version 2.6.30.10 (krzysiek@neutrino) (gcc version 4.1.2) #
3 PREEMPT Sat Apr 14 21:26:28 CEST 2012
[    0.000000] KERNEL supported cpus:
[    0.000000]   RDC RDC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
[    0.000000]  BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
[    0.000000] last_pfn = 0x2000 max_arch_pfn = 0x100000
[    0.000000] init_memory_mapping: 0000000000000000-0000000002000000
[    0.000000]  0000000000 - 0002000000 page 4k
[    0.000000] kernel direct mapping tables up to 2000000 @ 7000-12000
[    0.000000] RAMDISK: 01fa3000 - 01fe0000
[    0.000000] 32MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 02000000
[    0.000000]   low ram: 0 - 02000000
[    0.000000]   node 0 low ram: 00000000 - 02000000
[    0.000000]   node 0 bootmap 00001000 - 00001400
[    0.000000] (7 early reservations) ==> bootmem [0000000000 - 0002000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 -
 0000001000]
[    0.000000]   #1 [0000100000 - 000034916c]    TEXT DATA BSS ==> [0000100000 -
 000034916c]
[    0.000000]   #2 [0001fa3000 - 0001fe0000]          RAMDISK ==> [0001fa3000 -
 0001fe0000]
[    0.000000]   #3 [000009f000 - 0000100000]    BIOS reserved ==> [000009f000 -
 0000100000]
[    0.000000]   #4 [000034a000 - 000034c000]              BRK ==> [000034a000 -
 000034c000]
[    0.000000]   #5 [0000007000 - 000000d000]          PGTABLE ==> [0000007000 -
 000000d000]
[    0.000000]   #6 [0000001000 - 0000002000]          BOOTMAP ==> [0000001000 -
 0000002000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x00002000
[    0.000000] On node 0 totalpages: 8095
[    0.000000] free_area_init_node: node 0, pgdat c030a120, node_mem_map c100000
0
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3967 pages, LIFO batch:0
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 4064 pages, LIFO batch:0
[    0.000000] Allocating PCI resources starting at 10000000 (gap: 2000000:fe000
000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 8031
[    0.000000] Kernel command line: rootfstype=ext2 root=/dev/hda1 console=ttyS0
,38400
[    0.000000] Initializing CPU#0
[    0.000000] NR_IRQS:16
[    0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[    0.000000] console [ttyS0] enabled
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 29472k/32768k available (1641k kernel code, 2904k reserve
d, 469k data, 128k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffeb000 - 0xfffff000   (  80 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xfffe9000   ( 983 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]       .init : 0xc0312000 - 0xc0332000   ( 128 kB)
[    0.000000]       .data : 0xc029a634 - 0xc030fbdc   ( 469 kB)
[    0.000000]       .text : 0xc0100000 - 0xc029a634   (1641 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor 
mode...Ok.
[    0.004000] Calibrating delay loop... 50.17 BogoMIPS (lpj=100352)
[    0.092000] Mount-cache hash table entries: 512
[    0.100000] CPU: RDC AMITRISC20000/20010
[    0.108000] Checking 'hlt' instruction... OK.
[    0.132000] net_namespace: 500 bytes
[    0.140000] NET: Registered protocol family 16
[    0.156000] PCI: Using configuration type 1 for base access
[    0.172000] bio: create slab <bio-0> at 0
[    0.184000] PCI: Probing PCI hardware
[    0.188000] PCI: Probing PCI hardware (bus 00)
[    0.192000] pci 0000:00:01.0: reg 10 32bit mmio: [0x00e000-0x00ffff]
[    0.192000] pci 0000:00:04.0: reg 10 io port: [0x4000-0x4007]
[    0.192000] pci 0000:00:04.0: reg 14 io port: [0x4100-0x4103]
[    0.192000] pci 0000:00:04.0: reg 18 io port: [0x4200-0x4207]
[    0.192000] pci 0000:00:04.0: reg 1c io port: [0x4300-0x4303]
[    0.192000] pci 0000:00:04.0: reg 20 io port: [0x4400-0x440f]
[    0.192000] pci 0000:00:04.0: reg 30 32bit mmio: [0x000000-0x01ffff]
[    0.192000] pci 0000:00:08.0: reg 10 io port: [0xe800-0xe8ff]
[    0.192000] pci 0000:00:08.0: reg 14 32bit mmio: [0xd1900000-0xd19000ff]
[    0.192000] pci 0000:00:09.0: reg 10 io port: [0xe900-0xe9ff]
[    0.192000] pci 0000:00:09.0: reg 14 32bit mmio: [0xd2900000-0xd29000ff]
[    0.192000] pci 0000:00:0a.0: reg 10 32bit mmio: [0xc1001000-0xc1001fff]
[    0.192000] pci 0000:00:0a.1: reg 10 32bit mmio: [0xc1000000-0xc1000fff]
[    0.208000] pci 0000:00:01.0: BAR 0: can't allocate resource
[    0.228020] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.228020] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
[    0.232020] NET: Registered protocol family 2
[    0.236398] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248016] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.252247] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.257238] TCP: Hash tables configured (established 1024 bind 1024)
[    0.262144] TCP reno registered
[    0.268015] NET: Registered protocol family 1
[    0.276010] Trying to unpack rootfs image as initramfs...
[    0.284014] rootfs image is not initramfs (junk in compressed archive); looks
 like an initrd
[    0.296021] Freeing initrd memory: 244k freed
[    0.312019] platform rtc_cmos: registered platform RTC device (no PNP device 
found)
[    0.328016] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.333607] Registering mini_fo version $Id$
[    0.336965] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.341385] msgmni has been set to 58
[    0.356016] alg: No test for stdrng (krng)
[    0.362223] io scheduler noop registered
[    0.364913] io scheduler deadline registered (default)
[    0.370547] r6030gpio 0000:00:07.0: setting latency timer to 64
[    0.372029] r6030gpio: gpio base 0
[    0.384044] gpiodev: gpio device registered with major 253
[    0.388917] gpiodev: gpio platform device registered with access mask FFFFFFF
F
[    0.396064] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.401914] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.456029] brd: module loaded
[    0.460404] Uniform Multi-Platform E-IDE driver
[    0.464608] it821x 0000:00:04.0: IDE controller (0x1283:0x8211 rev 0x11)
[    0.468455] it821x 0000:00:04.0: forcing bypass mode
[    0.473768] it821x 0000:00:04.0: controller in pass through mode
[    0.477909] it821x 0000:00:04.0: 100% native mode on irq 9
[    0.480454]     ide0: BM-DMA at 0x4400-0x4407
[    0.484055] Probing IDE interface ide0...
[    0.771995] hda: SanDisk SDCFB-128, CFA DISK drive
[    1.447994] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[    1.447994] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO1
[    1.447994] ide0 at 0x4000-0x4007,0x4102 on irq 9
[    1.456018] ide-gd driver 1.18
[    1.461601] hda: max request size: 128KiB
[    1.464788] hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
[    1.477664]  hda: hda1 hda2
[    1.500019] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.506647] r6040 0000:00:08.0: setting latency timer to 64
[    1.506647] r6040: Use MAC address form MGB1OO Redboot.
[    1.508737] r6040: MAC address not initialized, generating random
[    1.520012] <6>r6040: RDC R6040 NAPI net driver,version 0.22 (25Mar2009)
[    1.524092] r6040 0000:00:09.0: setting latency timer to 64
[    1.524092] r6040: Use MAC address form MGB1OO Redboot.
[    1.540011] physmap platform flash device: 00400000 at ffc00000
[    1.548003] physmap-flash: Found 1 x16 devices at 0x0 in 16-bit bank
[    1.553463]  CFI mfr 0x000000c2
[    1.557853]  CFI id  0x000022a7
[    1.562227]  Amd/Fujitsu Extended Query Table at 0x0040
[    1.564075]   Amd/Fujitsu Extended Query version 1.1.
[    1.569509] physmap-flash: Swapping erase regions for broken CFI table.
[    1.575009] number of CFI chips: 1
[    1.576087] cfi_cmdset_0002: Disabling erase-suspend-program due to code brok
enness.
[    1.580536] cmdlinepart partition parsing not available
[    1.588014] RedBoot partition parsing not available
[    1.593738] Using physmap partition information
[    1.597757] Creating 9 MTD partitions on "physmap-flash":
[    1.600127] 0x000000000000-0x000000100000 : "kernel"
[    1.608016] 0x000000100000-0x0000003e0000 : "rootfs"
[    1.616018] mtd: partition "rootfs_data" created automatically, ofs=340000, l
en=A0000 
[    1.622874] 0x000000340000-0x0000003e0000 : "rootfs_data"
[    1.628016] 0x0000003e0000-0x0000003f8000 : "Redboot (low part)"
[    1.636018] 0x0000003f8000-0x0000003fa000 : "MAC and device ID"
[    1.648020] 0x0000003fa000-0x000000400000 : "Redboot (high part)"
[    1.656017] 0x0000003e0000-0x000000400000 : "Redboot(full)"
[    1.664018] 0x000000000000-0x0000003e0000 : "linux"
[    1.676019] 0x000000000000-0x000000400000 : "fullflash"
[    1.684018] 0x000000100000-0x0000003e0000 : "rootfs-full"
[    1.696016] i2c /dev entries driver
[    1.704014] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    1.712015] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    1.720041] i2c-gpio i2c-gpio.0: using pins 16 (SDA) and 17 (SCL)
[    1.724453] Registered led device: USB1
[    1.729053] Registered led device: USB2
[    1.732538] Registered led device: BACKUP
[    1.736453] Registered led device: HDD_Status
[    1.756011] TCP westwood registered
[    1.761691] NET: Registered protocol family 17
[    1.765488] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    1.771815] All bugs added by David S. Miller <davem@redhat.com>
[    1.788013] rtc-pcf8563 0-0051: setting system clock to 2012-04-14 10:37:28 U
TC (1334399848)
[    1.796042] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[    1.927996] VFS: Mounted root (ext2 filesystem) on device 3:1.
[    1.932372] Freeing unused kernel memory: 128k freed
[    1.983997] Please be patient, while OpenWrt loads ...
[    9.856019] SCSI subsystem initialized
[   10.376021] usbcore: registered new interface driver usbfs
[   10.380609] usbcore: registered new interface driver hub
[   10.388033] usbcore: registered new device driver usb
[   10.652017] xfs: Unknown symbol exportfs_decode_fh
[   10.928019] Driver 'sd' needs updating - please use bus_type methods
[   11.040020] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.048008] ehci_hcd 0000:00:0a.1: EHCI Host Controller
[   11.056018] ehci_hcd 0000:00:0a.1: new USB bus registered, assigned bus numbe
r 1
[   11.060719] ehci_hcd 0000:00:0a.1: irq 14, io mem 0xc1000000
[   11.075995] ehci_hcd 0000:00:0a.1: USB 2.0 started, EHCI 1.00
[   11.088018] usb usb1: configuration #1 chosen from 1 choice
[   11.096012] hub 1-0:1.0: USB hub found
[   11.101687] hub 1-0:1.0: 2 ports detected
[   11.212035] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   11.216475] ohci_hcd 0000:00:0a.0: OHCI Host Controller
[   11.224016] ohci_hcd 0000:00:0a.0: new USB bus registered, assigned bus numbe
r 2
[   11.229227] ohci_hcd 0000:00:0a.0: irq 15, io mem 0xc1001000
[   11.287995] usb usb2: configuration #1 chosen from 1 choice
[   11.294658] hub 2-0:1.0: USB hub found
[   11.297732] hub 2-0:1.0: 2 ports detected
[   11.548018] Initializing USB Mass Storage driver...
[   11.556009] usbcore: registered new interface driver usb-storage
[   11.562636] USB Mass Storage support registered.
[   32.063994] mini_fo: using base directory: /
[   32.068866] mini_fo: using storage directory: /overlay
[   36.520018] device eth1 entered promiscuous mode
[   36.536019] br-lan: port 1(eth1) entering forwarding state
[   37.788023] Compat-wireless backport release: compat-wireless-2010-12-10-3-g8
80bb0b
[   37.793698] Backport based on wireless-testing.git master-2010-12-16
[   38.456023] cfg80211: Calling CRDA to update world regulatory domain
[   40.428020] cfg80211: World regulatory domain updated:
[   40.452018] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_g
ain, max_eirp)
[   40.476019] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[   40.481053] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[   40.504020] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[   40.524021] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[   40.529065] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[   42.112018] rt2500pci 0000:00:01.0: setting latency timer to 64
[   42.240022] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   42.284019] Registered led device: rt2500pci-phy0::radio
[   42.300019] Registered led device: rt2500pci-phy0::quality
[   42.860023] SGI XFS with security attributes, large block/inode numbers, no d
ebug enabled
[   43.160025] PPP generic driver version 2.4.2
[   43.632025] ip_tables: (C) 2000-2006 Netfilter Core Team
[   44.624018] nf_conntrack version 0.5.0 (512 buckets, 2048 max)
[   46.000014] usbcore: registered new interface driver usblp
[   46.248016] usbcore: registered new interface driver usbserial
[   46.256016] USB Serial support registered for generic
[   46.264020] usbcore: registered new interface driver usbserial_generic
[   46.268536] usbserial: USB Serial Driver core
[   46.476023] option: version magic '2.6.30.10 mod_unload 486 ' should be '2.6.
30.10 preempt mod_unload 486 '
[   49.984018] device wlan0 entered promiscuous mode
[   49.992032] br-lan: port 2(wlan0) entering forwarding state
[   50.096040] ieee80211 phy0: failed to set TX queue parameters for queue 2
[   50.100055] ieee80211 phy0: failed to set TX queue parameters for queue 3
[   52.628020] device wlan0 left promiscuous mode
[   52.632938] br-lan: port 2(wlan0) entering disabled state
[   52.876038] device wlan0 entered promiscuous mode
[   52.881871] br-lan: port 2(wlan0) entering forwarding state
root@MGB100:/# 

Jak widać pojawia się katalog /lost+found, którego nie było a który jest na partycji hda1 i w logach pojawia się błąd kompatybilności modułu, który został z podmontowania flasha a więc jest to moduł ze starego jądra niekompatybilny z nowym. pozostałe ładują się poprawnie.

14

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Wkompilowałem parametry w kernela (przez make kernel_menuconfig") i dodatkowo zaznaczyłem żeby pominął parametry bootloadera, niestety mini_fo dalej montuje. Pomyślałem że pewnie pomogło by wyrzucenie jffs2 i sqash z jądra ale nie wiem czy nie zkończyło by się "kernel panic". Sprawdzę jeszcze w logach startowych co jest przekazywane. I wdaje mi się że root montuje na hda1 bo widzę liki z hda1 włąśnie choć nie ma tego w mount. niestety montuje też /overlay.

15

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Jestem tu nowy więc witam wszystkich serdecznie.

Mam nietypowy problem ale myślę że znajdzie się tu ktoś kto potrafi mi pomóc w temacie openwrt.
Otóż posiadam router SMCWAPS-G czyli klon MGB100. Jest dysk sieciowy PATA na dyski 2,5" z procesorem RDC kompatybilny z x86, 32MB ram, 4MB flash, 2 portami USB 2.0, jednym portem ethernet i wifi.
Na ten sprzęt dostępny jest port openwrt, który można pobrać ze strony:
http://www.macsat.com/forum/index.php?topic=956.0
oraz źródła z tej strony: http://www.macsat.com/forum/index.php/topic,1283.0.html
Ponieważ skompilowany openwrt nie zawierał między innymi obsługi usbserial potrzebnego do wiadomych celów, skompilowałem własną wersję. Niestety z nieznanego mi powodu skompilowany system nie udało się w żaden sposób wgrać do routera. W najlepszym wypadku występował "kernel panic" na etapie uruchomienia systemu z ramdysku a w najgorszym trzeba było podnosić bootloadera jtag-iem.
Na ten sprzęt niejaki rafald zmodyfikował oryginalny firmware i bootloader minigrub, opis znajdował się na stronie, która jużnie istnieje, zrobiłem w porę jej kopię: http://rafald.neostrada.pl/index.html
Korzystałem z tego rozwiązania i uruchomiłem nawet normalną wersję debiana i slackware ale niestety padł mi dysk ssd na którym miałem wszystkie pliki i nie mogę ich odtworzyć, brakuje mi zwłaszcza minigrub.tar.gz.
Po długich bojach wkońcu udalo mi się uruchomić skompilowane jądro z obsługą usbserial ale z routera zrobił się mały potworek, który do bootowania (bootloaderem jest redboot) poleceniami przez port szeregowy pobiera nowe jądro przez tftp: load -r -v -m tftp -h 192.168.1.2 -b 0x400000 bzimage, po czym uruchamiam je z przez:
linux -b 0x400000 -l 0xf5acf -c "root=/dev/hda1 rootfstype=ext2 console=ttyS0,38400"
Openwrt się podnosi, niestety w dalszym ciągu montuje mini_fo i overlay więc wszystkie ustawienia lądują we flashu zamiast na hda1. W jądrze zmieniłem parametry wywołania i nie muszę już ich dodawać przy ładowaniu z tftp.
I teraz mam 2 pytania
1. jak pozbyć się mini_fo i overlay,
2. jak bootować się z hda1
Z bootowaniem mogę sobie poradzić w ten sposób, że przez mtd lub dd podmienię mtd0 gdzie przechowywane jest jądro. Nie będzie to eleganckie rozwiązanie bo w przypadku odpięcia dysku, system się nie uruchomi, ale przynajmniej nie będzie trzeba tego robić ręcznie przez konsolę i tftp.

Proszę o pomoc.
Pozdrawiam.