Temat: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Witam !

Dawno nie grzebałem nic u siebie pod OpenWRT, ale postanowiłem zaktualizować system z AA do CC. Niestety pojawił się problem. Mianowicie nowy system nie che w ogóle wystartować. Podejrzewam że to wina parametrów U-Boot'a. Z reguły wykrzacza się na "starting kernel" lub "kernel panic". Sprzęt to Seagate GoFlexHome (kirkwood). Na wiki nie ma wiele, pod Dockstara jest więcej, ale też żadna konfiguracja nie powoduje uruchomienia systemu.

Z logu(fragment) wydaje mi się że to przez to że niemoże zamontować rootfs'a. Choć w ustawieniach wszystko odnośnie partycji jest ustawione.

[    1.010856] Waiting 10 sec before mounting root device...
[   11.017652] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[   11.025331] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   11.032687] Please append a correct "root=" boot option; here are the available partitions:
[   11.041093] 1f00            1024 mtdblock0  (driver?)
[   11.046179] 1f01            4096 mtdblock1  (driver?)
[   11.051280] 1f02           32768 mtdblock2  (driver?)
[   11.056362] 1f03          221184 mtdblock3  (driver?)
[   11.061455] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.069756] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.507574] random: nonblocking pool is initialized

Tu z kolei ustawienia:

U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
GoFlexHome> printenv
arcNumber=3338
baudrate=115200
bootargs=ttyS0,115200 mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root) ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw
bootargs_console=console=ttyS0,115200
bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw
bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000
bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200
bootcmd_usb=usb start; if ext2load usb 0:1 0x00800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd; then setenv bootargs $(bootargs_console); bootm 0x00800000 0x01100000; else bootm 0x6400000; fi;
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:d2:23:37
fdt=/boot/dockstar.dtb
fileaddr=800000
filesize=6f1e0
ipaddr=203.0.113.32
kernel=/boot/zImage
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtddevname=uboot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root)
netmask=255.255.255.0
partition=nand0,0
serverip=203.0.113.1
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
ubiboot_n1=ubifsload 0x800000 ${kernel}; ubifsumount; bootz 0x800000
ubifinish1=ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; run ubifinish2
ubifinish2=fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_init=usb start
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2

Environment size: 2099/131068 bytes
GoFlexHome>

Jak ktoś ma jakąś sugestie pomysł, chętnie przetestuje.

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

2

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Cały log ze startu pokaż. Uruchamiania się, tylko flash nie widzi.

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

3

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Na wiki dziwnie piszą żeby spróbować uruchomić na dwa sposoby:

OpenWrt rootfs should now be successfully installed on you Dockstar, but it does not boot, correctly. We need to boot in to the system once manually.

setenv bootargs ${console} ${mtdparts} ${bootargs_root}
tftpboot 0x800000 openwrt-15.05-kirkwood-dockstar-zImage
OMIT* tftpboot 0x700000 openwrt-15.05-kirkwood-dockstar.dtb
OMIT* fdt addr 0x700000; fdt resize; fdt chosen
OMIT* bootz 0x800000 - 0x700000;
bootz 0x800000;

Że niby powinno pójść bez tych linii z "OMIT*", ale jak nie pójdzie to odpalić z nimi. Jak odpalam bez nich to nawet logu nie ma jest "starting kernel" i koniec, a jak z tymi dodatkowymi liniiami to startuje z logiem:

GoFlexHome> bootz 0x800000 - 0x700000;
Kernel image @ 0x800000 [ 0x000000 - 0x181e40 ]
## Flattened Device Tree blob at 00700000
   Booting using the fdt blob at 0x700000
   reserving fdt memory region: addr=700000 size=3000
   Loading Device Tree to 07b11000, end 07b16fff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.20 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46450) ) #1 Fri Sep 4 16:57:13 CEST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Seagate GoFlex Home
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 125304K/131072K available (3502K kernel code, 152K rwdata, 540K rodata, 140K init, 191K bss, 5768K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03fad4c   (4044 kB)
[    0.000000]       .init : 0xc03fb000 - 0xc041e000   ( 140 kB)
[    0.000000]       .data : 0xc041e000 - 0xc04440e4   ( 153 kB)
[    0.000000]        .bss : 0xc04440e4 - 0xc0473f64   ( 192 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000016] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000153] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090098] pid_max: default: 32768 minimum: 301
[    0.090240] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090259] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090748] CPU: Testing write buffer coherency: ok
[    0.091060] Setting up static identity map for 0x108c8 - 0x10904
[    0.091303] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.092839] pinctrl core: initialized pinctrl subsystem
[    0.093226] regulator-dummy: no parameters
[    0.096796] NET: Registered protocol family 16
[    0.097172] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.097887] cpuidle: using governor ladder
[    0.098212] Feroceon L2: Enabling L2
[    0.098257] Feroceon L2: Cache support initialised.
[    0.098541] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.105886] platform regulators:regulator@1: Driver reg-fixed-voltage requests probe deferral
[    0.106281] SCSI subsystem initialized
[    0.106601] usbcore: registered new interface driver usbfs
[    0.106679] usbcore: registered new interface driver hub
[    0.106745] usbcore: registered new device driver usb
[    0.107557] Switched to clocksource orion_clocksource
[    0.108450] NET: Registered protocol family 2
[    0.109162] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109186] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109205] TCP: Hash tables configured (established 1024 bind 1024)
[    0.109262] TCP: reno registered
[    0.109273] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.109294] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.109457] NET: Registered protocol family 1
[    0.110241] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.111141] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.111154] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.111386] msgmni has been set to 244
[    0.112156] io scheduler noop registered
[    0.112167] io scheduler deadline registered (default)
[    0.113251] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.113795] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.114107] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.146206] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.149217] console [ttyS0] disabled
[    0.149288] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.540245] console [ttyS0] enabled
[    0.545046] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.551455] nand: Micron MT29F2G08AAD
[    0.555135] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[    0.560846] Scanning device for bad blocks
[    0.601655] Bad eraseblock 345 at 0x000002b20000
[    0.786983] 4 ofpart partitions found on MTD device orion_nand
[    0.792856] Creating 4 MTD partitions on "orion_nand":
[    0.798030] 0x000000000000-0x000000100000 : "u-boot"
[    0.803763] 0x000000100000-0x000000500000 : "uImage"
[    0.809461] 0x000000500000-0x000002500000 : "pogoplug"
[    0.815357] 0x000002500000-0x00000fd00000 : "root"
[    0.821671] libphy: orion_mdio_bus: probed
[    0.876470] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.884654] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 02:50:43:d2:23:37
[    0.893470] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.900044] ehci-pci: EHCI PCI platform driver
[    0.904571] ehci-platform: EHCI generic platform driver
[    0.909953] ehci-orion: EHCI orion driver
[    0.914128] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.919690] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.927498] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    0.947577] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.954239] hub 1-0:1.0: USB hub found
[    0.958067] hub 1-0:1.0: 1 port detected
[    0.962585] usbcore: registered new interface driver usb-storage
[    0.969681] TCP: cubic registered
[    0.973016] NET: Registered protocol family 17
[    0.977547] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.990263] Bridge firewalling registered
[    0.994399] 8021q: 802.1Q VLAN Support v1.8
[    0.999824] USB Power: 5000 mV
[    1.003390] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.010856] Waiting 10 sec before mounting root device...
[   11.017652] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[   11.025331] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   11.032687] Please append a correct "root=" boot option; here are the available partitions:
[   11.041093] 1f00            1024 mtdblock0  (driver?)
[   11.046179] 1f01            4096 mtdblock1  (driver?)
[   11.051280] 1f02           32768 mtdblock2  (driver?)
[   11.056362] 1f03          221184 mtdblock3  (driver?)
[   11.061455] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.069756] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.507574] random: nonblocking pool is initialized
Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

4

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Założyłeś na tych partycjach w ogóle system plików ubifs?

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

5

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Tak zrobiłem coś takiego:

nand erase 0x200000 0xfe00000
ubi part root
ubi create rootfs 0xA00000
tftpboot 0x800000 openwrt-15.05-kirkwood-XXX-rootfs.ubifs
ubi write 0x800000 rootfs ${filesize}
ubi create rootfs_data

Wszystko niby poszło...

GoFlexHome> ubi part root
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: empty MTD device detected
UBI: attached mtd1 (name "mtd=3", size 254 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 2031, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 1988, total reserved PEBs: 43, PEBs reserved for bad PEB ha                                              ndling: 39
GoFlexHome> ubi create rootfs 0xA00000
Creating dynamic volume rootfs of size 10485760
GoFlexHome> tftpboot 0x800000 openwrt-15.05-kirkwood-goflexhome-rootfs.ubifs
Using egiga0 device
TFTP from server 203.0.113.1; our IP address is 203.0.113.32
Filename 'openwrt-15.05-kirkwood-goflexhome-rootfs.ubifs'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################################
         4.1 MiB/s
done
Bytes transferred = 4644864 (46e000 hex)
GoFlexHome> ubi write 0x800000 rootfs 0x46e000
4644864 bytes written to volume rootfs
GoFlexHome> ubi create rootfs_data
No size specified -> Using max size (245919744)
Creating dynamic volume rootfs_data of size 245919744
Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

6

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10



Ty startujesz z usb a nie z flash.

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

7

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

to przez parametr env  "usb_root=/dev/sda1" ?
Trochę dziwne w AA ten parametr ni przeszkadzał, mam tak bo kiedyś miałem że jak jest usb wpięte to startował z niego system, jak nie było wpiętego usb to startował normalnie z flasha.

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

8

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

bootcmd masz najpierw z usb.

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

9

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Raczej to nie to, polecenia

bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000

bootargs=ttyS0,115200 mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root) ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw

Żadne nie odwołuje się do usb ani innej zmiennej która mogłaby wywołać jakiś polecenie z USB.
Problem wygląda mi na to że  ubi nie montuje na stałę rootfs i przezto później w logu jest że nie może otworzyć rootfs.
Z kolei UBI wywala błąd że nie ma plików /boot/zImage oraz /boot/goflexhome.dtb i odmontowywuje rootfs

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

10

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

A jednak do kernela masz /dev/sda1 przekazane jako root.

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

11

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Jest jakieś polecenie na przywrócenie czystego env w U-boot ?

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

12

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Zapewne masz jakieś reset/resetenv czy coś takiego.

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

13

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Jakoś uruchomiłem CC skompilowałem sobie obraz z uImage i jffs2 i pszło, ale jest coś dziwnego:

[    1.028113] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[    1.037158] jffs2: CLEANMARKER node found at 0x00000000 has totlen 0xc != normal 0x0
[    1.072854] jffs2: CLEANMARKER node found at 0x00020000 has totlen 0xc != normal 0x0
[    1.108352] jffs2: CLEANMARKER node found at 0x00040000 has totlen 0xc != normal 0x0
[    1.143537] jffs2: CLEANMARKER node found at 0x00060000 has totlen 0xc != normal 0x0
[    1.178011] jffs2: CLEANMARKER node found at 0x00080000 has totlen 0xc != normal 0x0
[    1.212198] jffs2: CLEANMARKER node found at 0x000a0000 has totlen 0xc != normal 0x0
[    1.246429] jffs2: CLEANMARKER node found at 0x000c0000 has totlen 0xc != normal 0x0
[    1.280744] jffs2: CLEANMARKER node found at 0x000e0000 has totlen 0xc != normal 0x0
[    1.315194] jffs2: CLEANMARKER node found at 0x00100000 has totlen 0xc != normal 0x0
[    1.349793] jffs2: CLEANMARKER node found at 0x00120000 has totlen 0xc != normal 0x0
[    1.384511] jffs2: CLEANMARKER node found at 0x00140000 has totlen 0xc != normal 0x0
[    1.419786] jffs2: CLEANMARKER node found at 0x00160000 has totlen 0xc != normal 0x0
[    1.454550] jffs2: CLEANMARKER node found at 0x00180000 has totlen 0xc != normal 0x0
[    1.488766] jffs2: CLEANMARKER node found at 0x001a0000 has totlen 0xc != normal 0x0
[    1.523113] jffs2: CLEANMARKER node found at 0x001c0000 has totlen 0xc != normal 0x0
[    1.566318] jffs2: Empty flash at 0x001d47b4 ends at 0x001d4800
[    3.089384] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    3.109239] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    3.115691] Freeing unused kernel memory: 140K (c043d000 - c0460000)

Mam się martwić ?

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

14

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

jffs2 na nandzie? Nie szkoda ci tej pamięci?

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

15

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

W jakim sensie szkoda ? Po za tym cc na ubifs za chiny nie mogę uruchomić.

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

16

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

jffs2 nie zawiera pewnych mechanizmów wear leveling i sprawdzania wadliwych bloków. ubifs to ma, a na nandzie wadliwe bloki są normalnością. jffs ci się rozjedzie na czym takim.

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

17

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Brak mi sił na te całe CC i UBIFS. Co był nie ustawił w "bootargs" to i tak dostaje:

Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10

Jakby w ogóle nie przekazywało. Na ekranie pojawia się "coś więcej" (log) tylko jak ręcznie załaduje zImage.
Teraz nawet skompilowałem sobie obraz ubifs z zImage i DTB na pokładzie ale i tak system nie wstaje. Podczas rozruchu wykrywane są pliki zImage i DTB (widać wage itp):

UBI: detaching mtd1 from ubi0
UBI: mtd1 is detached from ubi0
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 255 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 2039, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 0, total reserved PEBs: 2039, PEBs reserved for bad PEB handling: 39
Loading file '/boot/zImage' to addr 0x00800000 with size 1686500 (0x0019bbe4)...
Done
Loading file '/boot/openwrt-kirkwood-goflexhome.dtb' to addr 0x00700000 with size 10309 (0x00002845)...
Done
Unmounting UBIFS volume rootfs!
Kernel image @ 0x800000 [ 0x000000 - 0x19bbe0 ]
## Flattened Device Tree blob at 00700000
   Booting using the fdt blob at 0x700000
   reserving fdt memory region: addr=700000 size=3000
   Loading Device Tree to 07b11000, end 07b16fff ... OK

Starting kernel ...

Ale i tak nie wstaje, nie wiem czemu ;/

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

18

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Skąd masz pliki  w ogóle? Sam kompilowałeś?

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

19

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Tak sam kompilowałem bo z tego co zrozumiałem na wiki
http://wiki.openwrt.org/toh/seagate/dockstar

To make it reboot safe, we need to store the kernel into the rootfs 

to trzeba po wgraniu ubifs załadować do niego później ręcznie zImage i ten dtb.
A podczas własnej kompilacji zauważyłem ze można dodać od razu do ubifs te dwa pliki.

http://s1.zrzut.pl/GtM2p4L.png

Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

20

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

W końcu udało mi się uruchomić CC 15.05 na moim Seagate GoFlexHome (platforma kirkwood). Zarówno z użyciem jffs2 jak i ubifs. Niestety nigdzie nie ma informacji jak tego dokonać, na OpenWRT Wiki dot. GoflexHome nie ma wzmiank o instalacji z użyciem systemu plików UBIFS. Inne modele z platformy kirkwood (dockstar, goflexnet, iconnect) też nie są odpowiednio opisane. Dodatkowo bardzo pokrętnie jest opisany Dockstar, którego opis instalacji jest maksymalnie skaszaniony. Poniżej można zapoznać się w miarę "łopatologicznie" jak przeprowadzić cały proces.

Do rzeczy, poniżej przedstawiam sposób na poprawną instalację i uruchomienie OpenWRT CC 15.05 na Seagate GoFlexHome (kirkwood). Dla innych modeli bazujących na tej platformie będzie bardzo podobnie. Na wstępie zaznaczę że nie jest potrzebny "second stage u-boot" !

List potrzebnych plików (pod dane urządzenie np. goflexhome itp.):
- Nowy U-Boot (2015)
- zImage
- rootfs.ubifs
- plik .dtb (opcjonalnie)

Nawet jeśli posiadamy wyżej wymienione pliki to musimy posiadać połączenie po przez Serial, więcej informacji tutaj:
https://wiki.openwrt.org/doc/hardware/p … ial.cables

A tutaj przykład wyprowadzenia pinów pod serial dla Seagate Dockstar, u mnie w GoFlexHome jest identyczne złącze Serial.
https://wiki.openwrt.org/_media/media/seagate/dockstar-board-stripped-caption.png

Pierwsza czynność to zaktualizowanie U-Boot'a. Jako że jest to first stage u-boot, to aktualizacji jest bardzo delikatna. To znaczy że "literówka" w linii poleceń może "uwalić" nasz sprzęt. W gwoli ścisłości urządzenia Dockstar,GoFlexHome,GofFexNet można uruchomić nawet z "uwalonym" u-boot'em (U-Boot over Serial).
Aby móc wgrać jakiekolwiek pliki należy wiedzieć na jakim IP ma być nasz serwer TFTP(nasz komputer) oraz jakie IP ma nasz sprzęt. Można to sprawdzić w parametrach U-Boot'a (env). W tym celu przerywamy start urządzenia i wywołujemy polecenie "printenv", zostanie wyświetlona lista wszystkich parametrów naszego U-Boot'a. Nas interesują parametry "ipaddr", "serverip", "netmask". Jeśli ich nie ma lub chcemy ustawić inne, to wówczas można tego dokonać przez polecenia:

setenv ipaddr  203.0.113.32
setenv serverip 203.0.113.1
setenv netmask 255.255.255.0
saveenv

Po odpowiednim skonfigurowaniu połączeń należny uruchomić serwer TFTP i umieścić na nim nasze niezbędne pliki.
Prostym serwerem TFTP jest:
http://tftpd32.jounin.net/

Teraz możemy przystąpić do aktualizacji naszego U-boot'a:

tftpboot 0x0800000 uboot.2015.10-tld-1.goflexhome.mtd0.kwb
nand erase 0x0 0x70000
nand write 0x0800000 0x0 0x70000
reset

*UWAGA* "uboot.2015.10-tld-1.goflexhome.mtd0.kwb" to u-boot dla Seagate GoFlexHome, dla innego urządzenia będzie inna nazwa pliku ! Wybrane pliki U-Boot dla danego urządzenia znajdziesz w pierwszym linku.
*UWAGA* Nie wywołuj polecenia "nand erase 0x0 0x70000" jeśli plik nowy U-Boot nie został pomyślnie pobrany z serwera TFTP !!!

Po pomyślnej aktualizacji powinniśmy ujrzeć zaktualizowany nagłówek naszego U-Boot'a:

U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
GoFlexHome>

Teraz należy ustawić odpowiednie parametry naszego U-Boot'a. Parametry te są niezbędne do poprawnego uruchomienia OpenWRT CC 15.05.

setenv arcNumber 3338
setenv baudrate 115200
setenv bootargs 'console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),223M(rootfs) ubi.mtd=1 root=ubi0:rootfs rw rootfstype=ubifs'
setenv bootcmd 'ubi part rootfs; ubifsmount ubi0:rootfs; ubifsload 0x800000 ${kernel}; ubifsumount; bootz 0x800000
mtdparts 'mtdparts=orion_nand:1M(u-boot),223M(rootfs)'
setenv fdt /boot/goflexhome.dtb
setenv kernel=/boot/zImage
saveenv
reset

Parametr "ftd" jest opcjonalny, we wczesny fazach CC był niezbędny. Parametr "arcNumber" jest opcjonalny, jest niezbędny dla wersji OpenWRT AA oraz BackFire.

Gdy już wprowadzimy powyższe polecenia możemy przystąpić do instalacji OpenWRT w wersji CC.

nand erase 0x100000 0xfe00000
ubi part rootfs ubi create rootfs 0xA00000
tftpboot 0x800000 openwrt-15.05-kirkwood-dockstar-rootfs.ubifs
ubi write 0x800000 rootfs 0x??????
ubi create rootfs_data

Bardzo ważne miejsce ?????? wstawiamy wartość HEX która ukaże się nam po wykonaniu polecenia "tftpboot 0x800000 openwrt-15.05-kirkwood-goflexhome-rootfs.ubifs". Rózne kompilacje pliku *.ubifs bedą mieć inna wartość/wagę w HEX, mniej więcej tak to wygląda (wytłuszczona wartość):

GoFlexHome> tftpboot 0x800000 openwrt-15.05-kirkwood-goflexhome-rootfs.ubifs
Using egiga0 device
TFTP from server 203.0.113.1; our IP address is 203.0.113.32
Filename 'openwrt-15.05-kirkwood-goflexhome-rootfs.ubifs'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################################
         4.1 MiB/s
done
Bytes transferred = 4644864 (46e000 hex)

W tym momencie mamy większość z głowy, pozostaje nam uruchomić system poprzez ręczne "podanie" kernela, aby po uruchomieniu całego systemu, pobrać go na stałe. Niestey na chwilę obecną pomimo możliwość integracji kernela i pliku dtb, publikowane kompilacje mają osobno pliki zImage i *.dtb.

tftpboot 0x800000 openwrt-15.05-kirkwood-dockstar-zImage
bootz 0x800000

W tym momencie powinien uruchomić nam się system. Musimy skonfigurować połączenie internetowe lub inne które umożliwi nam pobranie plików i umieszczenie ich w folderze "/rom/boot" (plik *.dtb opcjonalnie).

mkdir -p /rom/boot
wget -O /rom/boot/goflexhome.dtb http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/openwrt-15.05-kirkwood-goflexhome.dtb
wget -O /rom/boot/zImage http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/openwrt-15.05-kirkwood-goflexhome-zImage

Od teraz nasz system jest w pełni sprawny i powinien uruchamiać się bez problemów ! Mam nadzieje że komuś się przyda...


*Przypomnę tylko że dla danego urządzenia nazwy plików będą odpowiednio inne !!! GoflexHome posiada nand 256Mb, dla innych modeli z inną pamięcią partycję będą wyglądać inaczej. MTD0 to U-Boot a MTD1 to rootfs.

**Warto również zapisać sobie mac adres karty i w razie problemów z nią ustawić go na nowo mac

setenv ethaddr xx:xx:xx:xx:xx
saveenv
Sprzęt: Seagate GoFlex Home
OS: OpenWrt 18.06.4
Info: 128MB RAM / 1,2GHz CPU /  USB / sATA / RJ45
Osprzęt: 500GB SATA / LCD DPF 2,4" / USB rt2800

21 (edytowany przez zontar 2016-03-22 18:39:02)

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Kto podpowie co tu jest źle, męczę się już z tym 3 dzień, nie startuje

U-Boot 2014.10 (Jul 24 2015 - 20:09:53) Iomega iConnect

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=3", size 510 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 4079, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 0, total reserved PEBs: 4079, PEBs reserved for bad PEB handling: 79
Loading file '/boot/zImage' to addr 0x00800000 with size 1591922 (0x00184a72)...
Done
Loading file '/boot/iconnect.dtb' to addr 0x00700000 with size 11314 (0x00002c32)...
Done
Unmounting UBIFS volume rootfs!
Kernel image @ 0x800000 [ 0x000000 - 0x181e40 ]
## Flattened Device Tree blob at 00700000
   Booting using the fdt blob at 0x700000
   reserving fdt memory region: addr=700000 size=3000
   Loading Device Tree to 0fb12000, end 0fb17fff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.20 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46450) ) #1 Fri Sep 4 16:57:13 CEST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Iomega Iconnect
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 252176K/262144K available (3502K kernel code, 152K rwdata, 540K rodata, 140K init, 191K bss, 9968K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03fad4c   (4044 kB)
[    0.000000]       .init : 0xc03fb000 - 0xc041e000   ( 140 kB)
[    0.000000]       .data : 0xc041e000 - 0xc04440e4   ( 153 kB)
[    0.000000]        .bss : 0xc04440e4 - 0xc0473f64   ( 192 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000019] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000192] Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064)
[    0.090100] pid_max: default: 32768 minimum: 301
[    0.090274] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090297] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090879] CPU: Testing write buffer coherency: ok
[    0.091258] Setting up static identity map for 0x108c8 - 0x10904
[    0.091564] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.093366] pinctrl core: initialized pinctrl subsystem
[    0.093834] regulator-dummy: no parameters
[    0.098627] NET: Registered protocol family 16
[    0.099057] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.099920] cpuidle: using governor ladder
[    0.100348] Feroceon L2: Enabling L2
[    0.100402] Feroceon L2: Cache support initialised.
[    0.100754] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.110102] SCSI subsystem initialized
[    0.110509] usbcore: registered new interface driver usbfs
[    0.110604] usbcore: registered new interface driver hub
[    0.110682] usbcore: registered new device driver usb
[    0.111642] Switched to clocksource orion_clocksource
[    0.112720] NET: Registered protocol family 2
[    0.113584] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.113626] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.113662] TCP: Hash tables configured (established 2048 bind 2048)
[    0.113729] TCP: reno registered
[    0.113742] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.113767] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.113963] NET: Registered protocol family 1
[    0.114209] Unpacking initramfs...
[    0.114224] Initramfs unpacking failed: junk in compressed archive
[    0.124549] Freeing initrd memory: 3072K (c4500000 - c4800000)
[    0.125200] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.126270] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.126286] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.126566] msgmni has been set to 498
[    0.127371] io scheduler noop registered
[    0.127384] io scheduler deadline registered (default)
[    0.128687] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.129350] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.129738] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.130375] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.130398] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.130413] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.130428] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.130731] PCI: bus0: Fast back to back transfers disabled
[    0.130749] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.131258] PCI: bus1: Fast back to back transfers disabled
[    0.131376] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.131398] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff]
[    0.131418] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.131435] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.169968] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.173645] console [ttyS0] disabled
[    0.173724] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    0.639469] console [ttyS0] enabled
[    0.644609] nand: Could not find valid ONFI parameter page; aborting
[    0.651030] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    0.657440] nand: Hynix NAND 512MiB 3,3V 8-bit
[    0.661916] nand: 512MiB, SLC, page size: 2048, OOB size: 64
[    0.667619] Scanning device for bad blocks
[    0.687311] Bad eraseblock 203 at 0x000001960000
[    0.989332] 4 ofpart partitions found on MTD device orion_nand
[    0.995212] Creating 4 MTD partitions on "orion_nand":
[    1.000381] 0x000000000000-0x0000000e0000 : "u-boot"
[    1.006280] 0x0000000e0000-0x0000001e0000 : "u-boot environment"
[    1.013125] 0x000000100000-0x000000300000 : "second stage u-boot"
[    1.019956] 0x000000200000-0x000020000000 : "root"
[    1.027260] libphy: orion_mdio_bus: probed
[    1.092252] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.100711] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:11:21:31:41
[    1.109544] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.116116] ehci-pci: EHCI PCI platform driver
[    1.120657] ehci-platform: EHCI generic platform driver
[    1.126071] ehci-orion: EHCI orion driver
[    1.130295] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.135865] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.143724] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    1.161667] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.168461] hub 1-0:1.0: USB hub found
[    1.172299] hub 1-0:1.0: 1 port detected
[    1.176918] usbcore: registered new interface driver usb-storage
[    1.184907] TCP: cubic registered
[    1.188240] NET: Registered protocol family 17
[    1.192817] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.205526] Bridge firewalling registered
[    1.209690] 8021q: 802.1Q VLAN Support v1.8
[    1.215697] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.223865] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[    1.231559] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.239134] Please append a correct "root=" boot option; here are the available partitions:
[    1.247553] 1f00             896 mtdblock0  (driver?)
[    1.252661] 1f01            1024 mtdblock1  (driver?)
[    1.257740] 1f02            2048 mtdblock2  (driver?)
[    1.262843] 1f03          522240 mtdblock3  (driver?)
[    1.267925] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.276225] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.501663] random: nonblocking pool is initialized


iconnect => printenv
baudrate=115200
bootargs=console=ttyS0,115200 mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root) ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw
bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw
bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000
bootdelay=3
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:D0:11:21:31:41
fdt=/boot/iconnect.dtb
filesize=44e800
ipaddr=192.168.0.222
kernel=/boot/zImage
mtddevname=uboot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(root)
partition=nand0,0
serverip=192.168.0.5
stderr=serial
stdin=serial
stdout=serial

Environment size: 984/131068 bytes
iconnect =>

22

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Że masz partycję o nazwie root a nie rootfs?

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

23 (edytowany przez zontar 2016-03-22 18:59:29)

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

były w poradnikach takie wpisy:

Create flash UBIFS
ubi part root ; ubi remove rootfs ; ubi create rootfs

to tu zmienić ?

może coś pozmieniane jest w domyślnym env bo żaden poradnik nie zadziałał,

na tej konfiguracji z palca moge odpalić po komendach:
tftpboot 0x800000 openwrt-15.05-kirkwood-iconnect-zImage
bootz 0x800000

ale z pamięci nie idzie

24

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

Tu masz tworzenie rootfs. Ty masz root. Z jakiego poradnika korzystałeś?

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

25 (edytowany przez zontar 2016-03-22 19:31:02)

Odp: Pomoc w ustawieniu parametrów bootowania dla CC na kirkwood

z tego powyżej próbowałem, z wiki,
a teraz mam z tej strony bo najczytelniej było:
http://randominfo.pyret.net/index.php?c … id_post=13

dograłem tylko pliki zImage i iconnect.dtb do katalogu /boot bo system domagał sie przy starcie




Cezary napisał/a:

Że masz partycję o nazwie root a nie rootfs?

która to linijka ?