Temat: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Witam wszystkich miłośników OpenWrt.

Nabyłem ostatnio całkiem niezłą płytkę SBC6020 (http://www.armkits.com/product/sbc6020.asp), która miałaby posłużyć m.in. jako router 3G wykorzystując modemy na miniPCI. Oczywiście producent dostarczył działający system, jednakże wiele w nim brakuje, więc i tak korzystne będzie przygotowanie własnego. OpenWrt jest idealne do tego celu. Producent owej płytki niestety nie daje żadnego wsparcia dla tej dystrybucji (odpowiedź na próbę kontaktu: "Sorry, we never try OpenWRT...."), więc należy wszystko przygotować samemu. Jedyne co posiadam co spatchowany kernel 2.6.30 dla tej płytki, który zawiera już wszelkie zmiany dla peryferiów. Udało mi się podłożyć cały kernel do OpenWrt (12.09), skompilować i coś uruchomić. Niestety kernel nie uruchamia się do końca, nie jestem do końca przekonany co może być przyczyną. Log uruchomienia poniżej:

RomBOOT


U-Boot 1.3.4 (Jan 28 2010 - 11:36:04)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa0000, size 0x300000
 3145728 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3106016 Bytes =  3 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.30 (lukasz@hp) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Tue Aug 27 12:05:03 CEST 2013
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Atmel AT91SAM9G20-EK
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,4M(linux),-(root) rw rootfstype=jffs2
[    0.000000] NR_IRQS:192
[    0.000000] AT91: 96 gpio irqs in 3 banks
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.080000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.090000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.100000] Memory: 64MB = 64MB total
[    0.100000] Memory: 61712KB available (2792K code, 237K data, 120K init, 0K highmem)
[    0.110000] Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
[    0.330000] Mount-cache hash table entries: 512
[    0.330000] CPU: Testing write buffer coherency: ok
[    0.340000] net_namespace: 296 bytes
[    0.350000] NET: Registered protocol family 16
[    0.360000] AT91: Power Management
[    0.360000] AT91: Starting after user reset
[    0.390000] bio: create slab <bio-0> at 0
[    0.400000] SCSI subsystem initialized
[    0.400000] usbcore: registered new interface driver usbfs
[    0.410000] usbcore: registered new interface driver hub
[    0.420000] usbcore: registered new device driver usb
[    0.430000] NET: Registered protocol family 2
[    0.430000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.450000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.460000] TCP reno registered
[    0.460000] NET: Registered protocol family 1
[    0.470000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.480000] JFFS2 version 2.2. (NAND) Š 2001-2006 Red Hat, Inc.
[    0.490000] msgmni has been set to 120
[    0.490000] io scheduler noop registered
[    0.490000] io scheduler anticipatory registered (default)
[    0.540000] atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
[    0.550000] atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
[    0.560000] atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
[    0.570000] atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
[    0.580000] atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
[    0.580000] atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
[    0.590000] atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
[    0.610000] brd: module loaded
[    0.630000] loop: module loaded
[    0.630000] ssc ssc.0: Atmel SSC device at 0xc4898000 (irq 14)
[    0.640000] Driver 'sd' needs updating - please use bus_type methods
[    0.640000] scsi0 : pata_at91
[    0.650000] ata1: PATA max PIO4 mmio cmd 0x50c00000 ctl 0x50e00000 irq 88
[    0.650000] dm9000 Ethernet Driver, V1.31
[    0.660000] dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
[    0.670000] eth0 (dm9000): not using net_device_ops yet
[    0.670000] eth0: dm9000e at c4876000,c487e004 IRQ 89 MAC: 00:00:00:00:00:00 (chip)
[    0.690000] MACB_mii_bus: probed
[    0.690000] eth1: Atmel MACB at 0xfffc4000 irq 21 (00:04:9f:ef:01:01)
[    0.700000] eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
[    0.710000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[    0.720000] AT91 NAND: 8-bit, Software ECC
[    0.730000] Scanning device for bad blocks
[    0.740000] Bad eraseblock 386 at 0x000003040000
[    0.760000] 6 cmdlinepart partitions found on MTD device atmel_nand
[    0.770000] Creating 6 MTD partitions on "atmel_nand":
[    0.780000] 0x000000000000-0x000000020000 : "bootstrap"
[    0.780000] 0x000000020000-0x000000060000 : "uboot"
[    0.790000] 0x000000060000-0x000000080000 : "env1"
[    0.800000] 0x000000080000-0x0000000a0000 : "env2"
[    0.800000] 0x0000000a0000-0x0000004a0000 : "linux"
[    0.810000] 0x0000004a0000-0x000008000000 : "root"
[    0.820000] usbmon: debugfs is not available
[    0.820000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.830000] at91_ohci at91_ohci: AT91 OHCI
[    0.840000] at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
[    0.840000] at91_ohci at91_ohci: irq 20, io mem 0x00500000
[    0.910000] usb usb1: configuration #1 chosen from 1 choice
[    0.920000] hub 1-0:1.0: USB hub found
[    0.920000] hub 1-0:1.0: 2 ports detected
[    0.930000] Initializing USB Mass Storage driver...
[    0.930000] usbcore: registered new interface driver usb-storage
[    0.940000] USB Mass Storage support registered.
[    0.940000] udc: at91_udc version 3 May 2006
[    0.950000] mice: PS/2 mouse device common for all mice
[    0.950000] rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
[    0.960000] IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
[    0.970000] rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
[    0.970000] i2c /dev entries driver
[    0.980000] at24 0-0050: 256 byte 24c02 EEPROM (writable)
[    0.980000] i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
[    0.990000] Registered led device: ds1
[    1.000000] usbcore: registered new interface driver usbhid
[    1.010000] usbhid: v2.6:USB HID core driver
[    1.010000] TCP cubic registered
[    1.020000] NET: Registered protocol family 17
[    1.020000] RPC: Registered udp transport module.
[    1.030000] RPC: Registered tcp transport module.
[    1.030000] rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
[    1.040000] CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
[    1.060000] CLEANMARKER node found at 0x00020000 has totlen 0xc != normal 0x0
[    1.090000] CLEANMARKER node found at 0x00040000 has totlen 0xc != normal 0x0
[    1.110000] CLEANMARKER node found at 0x00060000 has totlen 0xc != normal 0x0
[    1.130000] CLEANMARKER node found at 0x00080000 has totlen 0xc != normal 0x0
[    1.150000] CLEANMARKER node found at 0x000a0000 has totlen 0xc != normal 0x0
[    1.180000] CLEANMARKER node found at 0x000c0000 has totlen 0xc != normal 0x0
[    1.200000] CLEANMARKER node found at 0x000e0000 has totlen 0xc != normal 0x0
[    1.240000] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0xadde instead
[    1.820000] VFS: Mounted root (jffs2 filesystem) on device 31:5.
[    1.830000] Freeing init memory: 120K
[    1.830000] Warning: unable to open an initial console.
[    1.930000] Kernel panic - not syncing: Attempted to kill init!
[    1.940000] Backtrace:
[    1.940000] [<c002a35c>] (dump_backtrace+0x0/0x110) from [<c0240138>] (dump_stack+0x18/0x1c)
[    1.950000]  r6:c3812c40 r5:0000000b r4:c02fe7d4
[    1.950000] [<c0240120>] (dump_stack+0x0/0x1c) from [<c0240298>] (panic+0x48/0x10c)
[    1.960000] [<c0240250>] (panic+0x0/0x10c) from [<c003d398>] (do_exit+0x68/0x5c0)
[    1.970000]  r3:c02e7b1c r2:00000017 r1:00002710 r0:c029ff12
[    1.970000]  r7:c3818e40
[    1.980000] [<c003d330>] (do_exit+0x0/0x5c0) from [<c003dbec>] (do_group_exit+0x94/0xc8)
[    1.980000]  r7:c3818e40
[    1.990000] [<c003db58>] (do_group_exit+0x0/0xc8) from [<c00464d0>] (get_signal_to_deliver+0x300/0x338)
[    2.000000]  r4:00106001
[    2.000000] [<c00461d0>] (get_signal_to_deliver+0x0/0x338) from [<c0028eb0>] (do_signal.part.0+0x68/0x4c8)
[    2.010000] [<c0028e48>] (do_signal.part.0+0x0/0x4c8) from [<c002978c>] (do_notify_resume+0x40/0x44)
[    2.020000] [<c002974c>] (do_notify_resume+0x0/0x44) from [<c0026c4c>] (work_pending+0x1c/0x20)

Komunikat Kernel panic - not syncing: Attempted to kill init! jest zbyt ogólny, więc nie wiem w czym problem. Oczywiście pomijając Backtrace, z którego dla mnie nic nie wynika.

Może Ktoś z doświadczonych forumowiczów jest w stanie naprowadzić mnie na źródło problemu. Wydaje mi się że gdzieś widziałem jakąś opcję w kernelu, aby podczas uruchamiania wyświetlał więcej komunikatów, które może naprowadzą na problem. Niestety nie pamiętam jak to mogło się nazywać ?

Pozdrawiam

2 (edytowany przez Cezary 2013-08-28 11:19:08)

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

System plików na którym jest rootfs, który wgrałeś to był jffs2? wielkość bloku kasowania była taka jak flash wymaga?

EDIT: ponieważ tam jest nand, ja bym jffs ogóle nie stosował. Ponieważ nie zapewnia on dostatecznego rozłożenia bloków ani nie zapewnia wykrywania błędnych bloków które nand się zdarzają to bym w ogóle go wywalił na rzecz np. ubifs, który w tym przypadku świetnie sobie radzi.

EDIT2: identycznie w propoxie było który wieki temu opisywałem: http://openrouter.info/forum/viewtopic.php?p=6165#p6165

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

3

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Tak, system plików na pewno jest  jffs2, wielkość bloku jest 128k. Sprawdziłem to w uboot (komenda nand info) zwraca sector size 128KiB, dodatkowo ten rozmiar sprawdziłem w karcie katalogowej kości pamięci która jest na płytce:
http://www1.futureelectronics.com/doc/S … CB0T00.pdf

Wychodzi że ma być 128kB.

4

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

OK, spróbuje przerobić to na UBIFS. Jednakże zazwyczaj używałem jffs2 i jakoś specjalnych problemów nie sprawiał. Ale.. przyszło mi do głowy jeszcze jedna rzecz. Otóż oryginalnie pracował tam Linux z systemem plików yaffs2. Może problemem jest pamięć metadanych we flash który przechowuje system plików. Nowe obrazy wgrywałem bezpośrednio przez uboota, więc nie zaszła operacja scrub na pamięci flash. Może teraz systemowi plików jffs2 nie podobają się metadane które pozostawił pierwotnie yaffs2 ??? Cezary - myślisz że to możliwe ?

5

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

jffs2 nie zapewnia odpowiedniego rozłożenia bloków danych na całym nośniku, nie ma też kompletne żadnych mechanizmów weryfikacji i kontroli bloków. Jak znajdzie błędy to pewnie się rozjedzie z okazji błędów odczyty.

Inne pytanie: czy wgrałeś całą partycję zapełnioną jffs? czy tylko część a pozostała część nośnika nie została ruszona i przeformatowana na jffs (czyli inne metadane są?).

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

6

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Wgrałem tylko część obszaru, tyle ile zajmował rootfs. Reszta pamięci nie była ruszana (owszem skasowana) ale metadane raczej pozostały. Faktycznie poczytałem, ubifs jest polecany.

Mimo wszystko chciałbym najpierw uruchomić na jffs2, potem przejdę na ubifs. Sprawdzę to wszystkie wieczorem lub jutro, dam znać o efektach. Na szybko zrobiłem jeszcze eksperyment porównania obszaru pamięci nand gdzie zapisany jest rootfs i pamięci ram gdzie załadowałem obraz rootfs przez tftp (z poziomu uboota). Obszary są identyczne. Chciałem wykluczyć właśnie uszkodzenie obszaru gdzie nagrywam rootfs.

7 (edytowany przez Lucas286 2013-08-29 10:14:36)

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Niestety żadne metody czyszczenia scrub nie dają efektów. Nie mam więcej pomysłów dlaczego ten jffs2 ma problem z montowaniem.

Jak więc zmusić OpenWrt aby wygenerować obraz w ubifs ? Co ustawić, co zmienić w bootarg w uboot ?

Włączyłem ubifs, kompilator mówi że nie mam pliku ubinize.cfg. Jak go ustawić i gdzie go wrzucić ?

8

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Długa historia. Zobacz jak to dla propoxa było robione: http://www.propox.com/download/docs/MMn … nux_pl.pdf

Gdzieś na sieci były tez łatki dodające propoxa dla openwrt.

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

9

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Przejrzałem instrukcje od Propoxa. Widać że tworzą obraz UBI ręcznie, bo jak napisali OperWrt nie wspiera tworzenia obrazów ubi. Ale oni używali wersji Kamikaze, która może faktycznie nie wspierała, ale w Attitude Adjustment jest opcja ubifs w sekcji Target Images. Ktoś korzystał z tej opcji budowania obrazów ? Chodzi mi czy ta opcja w ogóle działa skoro pojawiła się w aktualnej wersji.

10

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

xburst i omap35xx wspierają ubifs, więc możesz się na tym wzorować jak chcesz "full automat"

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

11

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Odpaliłem, wydaje się że wyszło wszystko ok:

RomBOOT


U-Boot 1.3.4 (Jan 28 2010 - 11:36:04)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa0000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3385664 Bytes =  3.2 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.30 (lukasz@hp) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Thu Aug 29 12:23:24 CEST 2013
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Atmel AT91SAM9G20-EK
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,4M(linux),-(root) rw rootfstype=ubifs
[    0.000000] NR_IRQS:192
[    0.000000] AT91: 96 gpio irqs in 3 banks
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.080000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.090000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.100000] Memory: 64MB = 64MB total
[    0.110000] Memory: 61432KB available (3060K code, 241K data, 124K init, 0K highmem)
[    0.110000] Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
[    0.330000] Mount-cache hash table entries: 512
[    0.330000] CPU: Testing write buffer coherency: ok
[    0.340000] net_namespace: 296 bytes
[    0.350000] NET: Registered protocol family 16
[    0.360000] AT91: Power Management
[    0.360000] AT91: Starting after user reset
[    0.390000] bio: create slab <bio-0> at 0
[    0.400000] SCSI subsystem initialized
[    0.400000] usbcore: registered new interface driver usbfs
[    0.410000] usbcore: registered new interface driver hub
[    0.420000] usbcore: registered new device driver usb
[    0.430000] NET: Registered protocol family 2
[    0.430000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.450000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.460000] TCP reno registered
[    0.460000] NET: Registered protocol family 1
[    0.470000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.480000] JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
[    0.490000] JFFS2: default compression mode: priority
[    0.490000] msgmni has been set to 120
[    0.500000] io scheduler noop registered
[    0.500000] io scheduler anticipatory registered (default)
[    0.550000] atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
[    0.560000] atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
[    0.570000] atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
[    0.570000] atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
[    0.580000] atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
[    0.590000] atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
[    0.600000] atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
[    0.620000] brd: module loaded
[    0.630000] loop: module loaded
[    0.640000] ssc ssc.0: Atmel SSC device at 0xc4898000 (irq 14)
[    0.640000] Driver 'sd' needs updating - please use bus_type methods
[    0.650000] scsi0 : pata_at91
[    0.650000] ata1: PATA max PIO4 mmio cmd 0x50c00000 ctl 0x50e00000 irq 88
[    0.660000] dm9000 Ethernet Driver, V1.31
[    0.670000] dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
[    0.670000] eth0 (dm9000): not using net_device_ops yet
[    0.680000] eth0: dm9000e at c4876000,c487e004 IRQ 89 MAC: 00:00:00:00:00:00 (chip)
[    0.690000] MACB_mii_bus: probed
[    0.700000] eth1: Atmel MACB at 0xfffc4000 irq 21 (00:04:9f:ef:01:01)
[    0.700000] eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
[    0.720000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[    0.730000] AT91 NAND: 8-bit, Software ECC
[    0.730000] Scanning device for bad blocks
[    0.770000] 6 cmdlinepart partitions found on MTD device atmel_nand
[    0.770000] Creating 6 MTD partitions on "atmel_nand":
[    0.780000] 0x000000000000-0x000000020000 : "bootstrap"
[    0.780000] 0x000000020000-0x000000060000 : "uboot"
[    0.790000] 0x000000060000-0x000000080000 : "env1"
[    0.800000] 0x000000080000-0x0000000a0000 : "env2"
[    0.800000] 0x0000000a0000-0x0000004a0000 : "linux"
[    0.810000] 0x0000004a0000-0x000008000000 : "root"
[    0.820000] UBI: attaching mtd5 to ubi0
[    0.820000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.830000] UBI: logical eraseblock size:    129024 bytes
[    0.830000] UBI: smallest flash I/O unit:    2048
[    0.840000] UBI: sub-page size:              512
[    0.840000] UBI: VID header offset:          512 (aligned 512)
[    0.850000] UBI: data offset:                2048
[    1.000000] UBI: attached mtd5 to ubi0
[    1.000000] UBI: MTD device name:            "root"
[    1.010000] UBI: MTD device size:            123 MiB
[    1.010000] UBI: number of good PEBs:        987
[    1.020000] UBI: number of bad PEBs:         0
[    1.020000] UBI: max. allowed volumes:       128
[    1.020000] UBI: wear-leveling threshold:    4096
[    1.030000] UBI: number of internal volumes: 1
[    1.030000] UBI: number of user volumes:     1
[    1.040000] UBI: available PEBs:             0
[    1.040000] UBI: total number of reserved PEBs: 987
[    1.050000] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.050000] UBI: max/mean erase counter: 1/0
[    1.060000] UBI: background thread "ubi_bgt0d" started, PID 362
[    1.060000] usbmon: debugfs is not available
[    1.070000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.080000] at91_ohci at91_ohci: AT91 OHCI
[    1.080000] at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
[    1.090000] at91_ohci at91_ohci: irq 20, io mem 0x00500000
[    1.150000] usb usb1: configuration #1 chosen from 1 choice
[    1.160000] hub 1-0:1.0: USB hub found
[    1.160000] hub 1-0:1.0: 2 ports detected
[    1.170000] Initializing USB Mass Storage driver...
[    1.170000] usbcore: registered new interface driver usb-storage
[    1.180000] USB Mass Storage support registered.
[    1.180000] udc: at91_udc version 3 May 2006
[    1.190000] mice: PS/2 mouse device common for all mice
[    1.190000] rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
[    1.200000] IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
[    1.210000] rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
[    1.210000] i2c /dev entries driver
[    1.220000] at24 0-0050: 256 byte 24c02 EEPROM (writable)
[    1.220000] i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
[    1.230000] Registered led device: ds1
[    1.240000] usbcore: registered new interface driver usbhid
[    1.250000] usbhid: v2.6:USB HID core driver
[    1.250000] TCP cubic registered
[    1.260000] NET: Registered protocol family 17
[    1.260000] RPC: Registered udp transport module.
[    1.270000] RPC: Registered tcp transport module.
[    1.280000] rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
[    1.320000] UBIFS: recovery needed
[    1.360000] UBIFS: recovery completed
[    1.360000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.370000] UBIFS: file system size:   124250112 bytes (121338 KiB, 118 MiB, 963 LEBs)
[    1.370000] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[    1.380000] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    1.390000] UBIFS: default compressor: lzo
[    1.390000] UBIFS: reserved for root:  0 bytes (0 KiB)
[    1.400000] VFS: Mounted root (ubifs filesystem) on device 253:1.
[    1.400000] Freeing init memory: 124K
[    1.410000] Warning: unable to open an initial console.
[    1.430000] Kernel panic - not syncing: Attempted to kill init!
[    1.430000] Backtrace:
[    1.430000] [<c002b35c>] (dump_backtrace+0x0/0x110) from [<c027322c>] (dump_stack+0x18/0x1c)
[    1.440000]  r6:c3812c40 r5:0000000b r4:c0342c34
[    1.450000] [<c0273214>] (dump_stack+0x0/0x1c) from [<c027338c>] (panic+0x48/0x10c)
[    1.450000] [<c0273344>] (panic+0x0/0x10c) from [<c003e398>] (do_exit+0x68/0x5c0)
[    1.460000]  r3:c032bb1c r2:00000019 r1:00002710 r0:c02d8582
[    1.470000]  r7:c3818e40
[    1.470000] [<c003e330>] (do_exit+0x0/0x5c0) from [<c003ebec>] (do_group_exit+0x94/0xc8)
[    1.480000]  r7:c3818e40
[    1.480000] [<c003eb58>] (do_group_exit+0x0/0xc8) from [<c00474d0>] (get_signal_to_deliver+0x300/0x338)
[    1.490000]  r4:00106001
[    1.490000] [<c00471d0>] (get_signal_to_deliver+0x0/0x338) from [<c0029eb0>] (do_signal.part.0+0x68/0x4c8)
[    1.500000] [<c0029e48>] (do_signal.part.0+0x0/0x4c8) from [<c002a78c>] (do_notify_resume+0x40/0x44)
[    1.510000] [<c002a74c>] (do_notify_resume+0x0/0x44) from [<c0027c4c>] (work_pending+0x1c/0x20)

Tylko że ciekawe efekt identyczny jak z jffs2....

12

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Nie, teraz wykrzaczył się na montowaniu rootfs

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

13

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Jakieś pomysły co dalej ?

14

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Pokaż jak zrobiłeś volumny ubifs we flash

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

15

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Wykorzystałem automat generujący obraz z OpenWrt, konfiguracja jest następująca:
woluminy są w pliku ubinize.cfg

[rootfs]
# Volume mode (other option is static)
mode=ubi
# Source image
image=root.ubifs
# Volume ID in UBI image
vol_id=0
# Allow for dynamic resize
vol_type=dynamic
# Volume name
vol_name=rootfs
# Autoresize volume at first mount
vol_flags=autoresize

Parametry obrazów w Makefile:

UBIFS_OPTS = -m 2048 -e 126KiB -c 1996 -U
UBINIZE_OPTS = -m 2048 -p 128KiB -s 512

Może mógłbyś te wartości zweryfikować z kartą katalogową którą umieściłęm powyżej.

16

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Ok, a teraz polecenie jakim to wgrałeś.

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

17

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Z poziomu uboota:

mw.b 0x20400000 0xFF 0x400000
wykonuję taką operacją gdy obrazy nie są wyrównane do rozmiaru strony
tftp 0x20400000 rootfs
nand erase 0x4A0000
nand write 0x20400000 0x4A0000 0x400000

18

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

I to może być problem, bo powinieneś ubiformat zrobić na partycji, z poziomu działającego systemu np. ramie.

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

19

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Hmmm, to być może przerasta moje możliwości.
Ale wpadła mi do głowy inna alternatywa, przynajmniej tymczasowa. Ta płytka wyposażona jest w gniazdo CompactFlash. Po włożeniu karty kernel wykrywa ją przy starcie. Może tam umieścić rootfs i wtedy system wstanie. Czy jeśli tę kartę sformatuje do np. ext2 i wrzucę na nią pliki, ustawię w uboot odpowiednie parametry to system wstanie ?

20

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

O ile wkompilujesz obsługe ext2 w kernel to tak, jak zwykły linux.

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

21

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Albo ja nie potrafię przygotować rootfs albo jest jakiś inny problem:

RomBOOT


U-Boot 1.3.4 (Jan 28 2010 - 11:36:04)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa0000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3385664 Bytes =  3.2 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.30 (lukasz@hp) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Thu Aug 29 12:23:24 CEST 2013
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Atmel AT91SAM9G20-EK
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 ubi.mtd=5 root=/dev/sda1 mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,4M(linux),-(root) rw rootfstype=ext2 init=/etc/preinit
[    0.000000] NR_IRQS:192
[    0.000000] AT91: 96 gpio irqs in 3 banks
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.080000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.090000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.100000] Memory: 64MB = 64MB total
[    0.110000] Memory: 61432KB available (3060K code, 241K data, 124K init, 0K highmem)
[    0.120000] Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
[    0.330000] Mount-cache hash table entries: 512
[    0.330000] CPU: Testing write buffer coherency: ok
[    0.340000] net_namespace: 296 bytes
[    0.350000] NET: Registered protocol family 16
[    0.360000] AT91: Power Management
[    0.360000] AT91: Starting after user reset
[    0.390000] bio: create slab <bio-0> at 0
[    0.400000] SCSI subsystem initialized
[    0.400000] usbcore: registered new interface driver usbfs
[    0.410000] usbcore: registered new interface driver hub
[    0.420000] usbcore: registered new device driver usb
[    0.430000] NET: Registered protocol family 2
[    0.430000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.450000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.460000] TCP reno registered
[    0.460000] NET: Registered protocol family 1
[    0.470000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.480000] JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
[    0.490000] JFFS2: default compression mode: priority
[    0.490000] msgmni has been set to 120
[    0.500000] io scheduler noop registered
[    0.500000] io scheduler anticipatory registered (default)
[    0.550000] atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
[    0.560000] atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
[    0.570000] atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
[    0.570000] atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
[    0.580000] atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
[    0.590000] atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
[    0.600000] atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
[    0.620000] brd: module loaded
[    0.630000] loop: module loaded
[    0.640000] ssc ssc.0: Atmel SSC device at 0xc4898000 (irq 14)
[    0.640000] Driver 'sd' needs updating - please use bus_type methods
[    0.650000] scsi0 : pata_at91
[    0.650000] ata1: PATA max PIO4 mmio cmd 0x50c00000 ctl 0x50e00000 irq 88
[    0.660000] dm9000 Ethernet Driver, V1.31
[    0.670000] dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
[    0.670000] eth0 (dm9000): not using net_device_ops yet
[    0.680000] eth0: dm9000e at c4876000,c487e004 IRQ 89 MAC: 00:00:00:00:00:00 (chip)
[    0.690000] MACB_mii_bus: probed
[    0.700000] eth1: Atmel MACB at 0xfffc4000 irq 21 (00:04:9f:ef:01:01)
[    0.700000] eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
[    0.720000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[    0.730000] AT91 NAND: 8-bit, Software ECC
[    0.730000] Scanning device for bad blocks
[    0.770000] 6 cmdlinepart partitions found on MTD device atmel_nand
[    0.770000] Creating 6 MTD partitions on "atmel_nand":
[    0.780000] 0x000000000000-0x000000020000 : "bootstrap"
[    0.780000] 0x000000020000-0x000000060000 : "uboot"
[    0.790000] 0x000000060000-0x000000080000 : "env1"
[    0.800000] 0x000000080000-0x0000000a0000 : "env2"
[    0.800000] 0x0000000a0000-0x0000004a0000 : "linux"
[    0.810000] 0x0000004a0000-0x000008000000 : "root"
[    0.820000] UBI: attaching mtd5 to ubi0
[    0.820000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.830000] UBI: logical eraseblock size:    129024 bytes
[    0.830000] UBI: smallest flash I/O unit:    2048
[    0.840000] UBI: sub-page size:              512
[    0.840000] UBI: VID header offset:          512 (aligned 512)
[    0.850000] UBI: data offset:                2048
[    1.000000] UBI: attached mtd5 to ubi0
[    1.000000] UBI: MTD device name:            "root"
[    1.010000] UBI: MTD device size:            123 MiB
[    1.010000] UBI: number of good PEBs:        987
[    1.020000] UBI: number of bad PEBs:         0
[    1.020000] UBI: max. allowed volumes:       128
[    1.020000] UBI: wear-leveling threshold:    4096
[    1.030000] UBI: number of internal volumes: 1
[    1.030000] UBI: number of user volumes:     1
[    1.040000] UBI: available PEBs:             0
[    1.040000] UBI: total number of reserved PEBs: 987
[    1.050000] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.050000] UBI: max/mean erase counter: 2/0
[    1.060000] UBI: background thread "ubi_bgt0d" started, PID 362
[    1.070000] usbmon: debugfs is not available
[    1.070000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.080000] at91_ohci at91_ohci: AT91 OHCI
[    1.080000] ata1.00: ATA-0: Turbo Industrial CF Card, YUAN1026, max UDMA/33
[    1.090000] ata1.00: 2031120 sectors, multi 0: LBA
[    1.100000] at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
[    1.100000] at91_ohci at91_ohci: irq 20, io mem 0x00500000
[    1.120000] ata1.00: configured for PIO4
[    1.160000] ata1.00: configured for PIO4
[    1.160000] ata1: EH complete
[    1.160000] scsi 0:0:0:0: Direct-Access     ATA      Turbo Industrial YUAN PQ: 0 ANSI: 5
[    1.180000] sd 0:0:0:0: [sda] 2031120 512-byte hardware sectors: (1.03 GB/991 MiB)
[    1.190000] sd 0:0:0:0: [sda] Write Protect is off
[    1.190000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.200000]  sda: sda1
[    1.210000] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.210000] usb usb1: configuration #1 chosen from 1 choice
[    1.220000] hub 1-0:1.0: USB hub found
[    1.220000] hub 1-0:1.0: 2 ports detected
[    1.230000] Initializing USB Mass Storage driver...
[    1.230000] usbcore: registered new interface driver usb-storage
[    1.240000] USB Mass Storage support registered.
[    1.240000] udc: at91_udc version 3 May 2006
[    1.250000] mice: PS/2 mouse device common for all mice
[    1.260000] rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
[    1.260000] IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
[    1.270000] rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
[    1.270000] i2c /dev entries driver
[    1.280000] at24 0-0050: 256 byte 24c02 EEPROM (writable)
[    1.280000] i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
[    1.290000] Registered led device: ds1
[    1.310000] usbcore: registered new interface driver usbhid
[    1.310000] usbhid: v2.6:USB HID core driver
[    1.320000] TCP cubic registered
[    1.320000] NET: Registered protocol family 17
[    1.320000] RPC: Registered udp transport module.
[    1.330000] RPC: Registered tcp transport module.
[    1.340000] rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
[    1.350000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[    1.360000] VFS: Mounted root (ext2 filesystem) on device 8:1.
[    1.370000] Freeing init memory: 124K
[    1.370000] Warning: unable to open an initial console.
[    1.410000] Kernel panic - not syncing: Attempted to kill init!
[    1.410000] Backtrace:
[    1.420000] [<c002b35c>] (dump_backtrace+0x0/0x110) from [<c027322c>] (dump_stack+0x18/0x1c)
[    1.420000]  r6:c3812c40 r5:0000000b r4:c0342c34
[    1.430000] [<c0273214>] (dump_stack+0x0/0x1c) from [<c027338c>] (panic+0x48/0x10c)
[    1.440000] [<c0273344>] (panic+0x0/0x10c) from [<c003e398>] (do_exit+0x68/0x5c0)
[    1.440000]  r3:c032bb1c r2:00000019 r1:00002710 r0:c02d8582
[    1.450000]  r7:c3818e40
[    1.450000] [<c003e330>] (do_exit+0x0/0x5c0) from [<c003ebec>] (do_group_exit+0x94/0xc8)
[    1.460000]  r7:c3818e40
[    1.460000] [<c003eb58>] (do_group_exit+0x0/0xc8) from [<c00474d0>] (get_signal_to_deliver+0x300/0x338)
[    1.470000]  r4:00106001
[    1.470000] [<c00471d0>] (get_signal_to_deliver+0x0/0x338) from [<c0029eb0>] (do_signal.part.0+0x68/0x4c8)
[    1.480000] [<c0029e48>] (do_signal.part.0+0x0/0x4c8) from [<c002a78c>] (do_notify_resume+0x40/0x44)
[    1.490000] [<c002a74c>] (do_notify_resume+0x0/0x44) from [<c0027c4c>] (work_pending+0x1c/0x20)

z CompactFlash na ext2 też mi nie chce ruszyć...

22

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

No to już ciekawe zaczyna się robić smile

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

23

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Podstawiłem na próbę oryginalny skompilowany kernel od producenta, efekt identyczny, czyli chyba to nie sprawa lipnego kernela. Zaczynałem już tak mysleć.

24

Odp: Uruchomienie OpenWrt na klonie AT91SAM9G20EK

Po małej przerwie... Podłożyłem oryginalną zawartość rootfs od producenta na kartę CompactFlash w ext2 i system uruchamia się. Kernel skompilowany z OpenWrt.

RomBOOT


U-Boot 1.3.4 (Jan 28 2010 - 11:36:04)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xa0000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3336512 Bytes =  3.2 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Linux version 2.6.30 (lukasz@hp) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #3 Mon Sep 2 19:49:48 CEST 2013
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Atmel AT91SAM9G20-EK
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Clocks: CPU 396 MHz, master 132 MHz, main 18.432 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,4M(linux),-(root) rw rootfstype=ext2 init=/etc/preinit
[    0.000000] NR_IRQS:192
[    0.000000] AT91: 96 gpio irqs in 3 banks
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.080000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.090000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.100000] Memory: 64MB = 64MB total
[    0.110000] Memory: 61480KB available (3008K code, 241K data, 124K init, 0K highmem)
[    0.110000] Calibrating delay loop... 197.83 BogoMIPS (lpj=989184)
[    0.330000] Mount-cache hash table entries: 512
[    0.330000] CPU: Testing write buffer coherency: ok
[    0.340000] net_namespace: 296 bytes
[    0.350000] NET: Registered protocol family 16
[    0.360000] AT91: Power Management
[    0.360000] AT91: Starting after user reset
[    0.390000] bio: create slab <bio-0> at 0
[    0.400000] SCSI subsystem initialized
[    0.400000] usbcore: registered new interface driver usbfs
[    0.410000] usbcore: registered new interface driver hub
[    0.420000] usbcore: registered new device driver usb
[    0.430000] NET: Registered protocol family 2
[    0.430000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.450000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.460000] TCP reno registered
[    0.460000] NET: Registered protocol family 1
[    0.470000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.480000] JFFS2 version 2.2. (NAND) Š 2001-2006 Red Hat, Inc.
[    0.490000] msgmni has been set to 120
[    0.490000] io scheduler noop registered
[    0.500000] io scheduler anticipatory registered (default)
[    0.540000] atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
[    0.550000] atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
[    0.560000] atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
[    0.570000] atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
[    0.580000] atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
[    0.580000] atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
[    0.590000] atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
[    0.620000] brd: module loaded
[    0.630000] loop: module loaded
[    0.630000] ssc ssc.0: Atmel SSC device at 0xc4898000 (irq 14)
[    0.640000] Driver 'sd' needs updating - please use bus_type methods
[    0.640000] scsi0 : pata_at91
[    0.650000] ata1: PATA max PIO4 mmio cmd 0x50c00000 ctl 0x50e00000 irq 88
[    0.660000] dm9000 Ethernet Driver, V1.31
[    0.660000] dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
[    0.670000] eth0 (dm9000): not using net_device_ops yet
[    0.680000] eth0: dm9000e at c4876000,c487e004 IRQ 89 MAC: 00:00:00:00:00:00 (chip)
[    0.690000] MACB_mii_bus: probed
[    0.690000] eth1: Atmel MACB at 0xfffc4000 irq 21 (00:04:9f:ef:01:01)
[    0.700000] eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
[    0.710000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[    0.720000] AT91 NAND: 8-bit, Software ECC
[    0.730000] Scanning device for bad blocks
[    0.760000] 6 cmdlinepart partitions found on MTD device atmel_nand
[    0.770000] Creating 6 MTD partitions on "atmel_nand":
[    0.770000] 0x000000000000-0x000000020000 : "bootstrap"
[    0.780000] 0x000000020000-0x000000060000 : "uboot"
[    0.790000] 0x000000060000-0x000000080000 : "env1"
[    0.790000] 0x000000080000-0x0000000a0000 : "env2"
[    0.800000] 0x0000000a0000-0x0000004a0000 : "linux"
[    0.810000] 0x0000004a0000-0x000008000000 : "root"
[    0.810000] usbmon: debugfs is not available
[    0.820000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.830000] at91_ohci at91_ohci: AT91 OHCI
[    0.830000] at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
[    0.840000] at91_ohci at91_ohci: irq 20, io mem 0x00500000
[    0.850000] ata1.00: ATA-0: Turbo Industrial CF Card, YUAN1026, max UDMA/33
[    0.850000] ata1.00: 2031120 sectors, multi 0: LBA
[    0.880000] ata1.00: configured for PIO4
[    0.910000] usb usb1: configuration #1 chosen from 1 choice
[    0.920000] ata1.00: configured for PIO4
[    0.920000] ata1: EH complete
[    0.920000] scsi 0:0:0:0: Direct-Access     ATA      Turbo Industrial YUAN PQ: 0 ANSI: 5
[    0.930000] hub 1-0:1.0: USB hub found
[    0.940000] hub 1-0:1.0: 2 ports detected
[    0.940000] sd 0:0:0:0: [sda] 2031120 512-byte hardware sectors: (1.03 GB/991 MiB)
[    0.950000] sd 0:0:0:0: [sda] Write Protect is off
[    0.960000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    0.970000]  sda: sda1
[    0.970000] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.980000] Initializing USB Mass Storage driver...
[    0.980000] usbcore: registered new interface driver usb-storage
[    0.990000] USB Mass Storage support registered.
[    0.990000] udc: at91_udc version 3 May 2006
[    1.000000] mice: PS/2 mouse device common for all mice
[    1.010000] rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
[    1.010000] IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
[    1.020000] rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
[    1.020000] i2c /dev entries driver
[    1.030000] at24 0-0050: 256 byte 24c02 EEPROM (writable)
[    1.030000] i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
[    1.040000] Registered led device: ds1
[    1.060000] usbcore: registered new interface driver usbhid
[    1.060000] usbhid: v2.6:USB HID core driver
[    1.070000] TCP cubic registered
[    1.070000] NET: Registered protocol family 17
[    1.070000] RPC: Registered udp transport module.
[    1.080000] RPC: Registered tcp transport module.
[    1.090000] rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
[    1.100000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[    1.110000] VFS: Mounted root (ext2 filesystem) on device 8:1.
[    1.120000] Freeing init memory: 124K
[    1.120000] Failed to execute /etc/preinit.  Attempting defaults...
running /etc/init.d/rcS
starting udevd...
cannot open /dev/null
[    2.090000] dm9000 dm9000.0: WARNING: no IRQ resource flags set.
[    2.140000] eth0: link down
[    2.180000] SPI-Microchip MCP2515 CAN Driver 3.5.3_SSV_MCP2515 (c) Jan 15 2010 14:56:33
[    2.180000]  Atmel AT91 and MCP2515 port by H.J. Oertel (oe@port.de)
[    2.190000]  MAX_CHANNELS 1
[    2.190000]  CAN_MAX_OPEN 2
[    2.250000] at91adc: Loaded module
/opt/apache/bin/apachectl start: httpd (pid 494) already running

Please press Enter to activate this console. [    3.690000] eth1: link up (100/Full)

running /etc/profile
~ $

Widać, że problem leży w samej zawartości rootfs którą generuje OpenWrt. Metoda kopiowania zawartości na nośnik jest raczej dobra, skoro inna zawartość się uruchamia. Może teraz Ktoś zauważy gdzie jest problem ?

Rootfs od producenta, który uruchamia się: http://www.embedded-systems.pl/sbc6020/ … 20.tar.bz2

Rootfs wygenerowany z OpenWrt który sprawia problem jak wyżej: http://www.embedded-systems.pl/sbc6020/ … tfs.tar.gz