Differences

This shows you the differences between two versions of the page.

toh:iomega:iconnect [2013/07/08 11:15]
toh:iomega:iconnect [2014/06/24 23:55] (current)
diizzy Fix code block and spelling
Line 61: Line 61:
[[http://tftpd32.jounin.net|tftpd]]\\ [[http://tftpd32.jounin.net|tftpd]]\\
[[http://downloads.openwrt.org/snapshots/trunk/kirkwood/|Files from Trunk]] [[http://downloads.openwrt.org/snapshots/trunk/kirkwood/|Files from Trunk]]
 +
 +:!: Correctly if you want to use UBIFS you need to compile your own images. \\
 +Make sure that you **enable** "Include kernel in root filesystem" and "Include DTB in root filesystem" which you can find under "Target Images" in menuconfig.
 +
==== 1. Connect Serial Cable ==== ==== 1. Connect Serial Cable ====
Line 189: Line 193:
</code> </code>
-There are two ways to do that.+There are three ways to do that.
=== 5.1 Remove unwanted env (safe way) === === 5.1 Remove unwanted env (safe way) ===
Line 199: Line 203:
reapeat for each variable to remove. reapeat for each variable to remove.
-=== 5.2 Erase flash where env is stored (little bit risky) ===+=== 5.2 Reset bootenv (safe) === 
 +<code> 
 +env default -a 
 +saveenv 
 +</code> 
 + 
 +=== 5.3 Erase flash where env is stored (little bit risky) ===
To force U-Boot to recreate whole env with basic configuration you may erase this part of flash memory. It can be risky if env storage location is changed with future version and you erase part of U-Boot. To force U-Boot to recreate whole env with basic configuration you may erase this part of flash memory. It can be risky if env storage location is changed with future version and you erase part of U-Boot.
Line 236: Line 246:
reset reset
</code> </code>
 +
 +=== 6.2 Flashing JFFS2 images/filesystem (not recommended) ===
 +:!: Please refer to section 6.4 if you want to use ubifs (recommended)
Set boot parameters: Set boot parameters:
Line 262: Line 275:
</code> </code>
- +=== 6.3 Flashing images (jffs2) ====
-=== 6.2 Flashing images ====+
Flash images by executing: Flash images by executing:
<code> <code>
Line 319: Line 331:
</code> </code>
-=== 6.3 First boot ====+=== 6.4 Flashing images (ubifs) === 
 +It's **important** that you reset u-boot before flashing otherwise it will most likely fail to boot. 
 + 
 +<code> 
 +nand erase 0x200000 0x1fe00000 
 +ubi part root ; ubi remove rootfs ; ubi create rootfs 
 +tftpboot 0x800000 openwrt-kirkwood-iconnect-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset 
 +</code> 
 + 
 +=== 6.5 First boot (jffs2) ====
This is a bootlog from first start of OpenWRT: This is a bootlog from first start of OpenWRT:
<code> <code>
Line 409: Line 430:
We have working OpenWRT. We have working OpenWRT.
-==== 7. Accesing iConnect with SSH ====+=== 6.6 First boot (ubifs) ==== 
 +This is a bootlog from first start of OpenWRT: 
 +<code> 
 +U-Boot 2014.04 (Jun 23 2014 - 12:47:24) 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: physical eraseblock size:  131072 bytes (128 KiB) 
 +UBI: logical eraseblock size:    129024 bytes 
 +UBI: smallest flash I/O unit:    2048 
 +UBI: sub-page size:              512 
 +UBI: VID header offset:          512 (aligned 512) 
 +UBI: data offset:                2048 
 +UBI: attached mtd1 to ubi0 
 +UBI: MTD device name:            "mtd=3" 
 +UBI: MTD device size:            510 MiB 
 +UBI: number of good PEBs:        4080 
 +UBI: number of bad PEBs:        0 
 +UBI: max. allowed volumes:      128 
 +UBI: wear-leveling threshold:    4096 
 +UBI: number of internal volumes: 1 
 +UBI: number of user volumes:    1 
 +UBI: available PEBs:            0 
 +UBI: total number of reserved PEBs: 4080 
 +UBI: number of PEBs reserved for bad PEB handling: 40 
 +UBI: max/mean erase counter: 4/1 
 +UBIFS: mounted UBI device 0, volume 0, name "rootfs" 
 +UBIFS: mounted read-only 
 +UBIFS: file system size:  519321600 bytes (507150 KiB, 495 MiB, 4025 LEBs) 
 +UBIFS: journal size:      9033728 bytes (8822 KiB, 8 MiB, 71 LEBs) 
 +UBIFS: media format:      w4/r0 (latest is w4/r0) 
 +UBIFS: default compressor: LZO 
 +UBIFS: reserved for root:  0 bytes (0 KiB) 
 +Loading file '/boot/zImage' to addr 0x00800000 with size 1535068 (0x00176c5c)... 
 +Done 
 +Loading file '/boot/iconnect.dtb' to addr 0x00700000 with size 8674 (0x000021e2)... 
 +Done 
 +Unmounting UBIFS volume rootfs! 
 +Kernel image @ 0x800000 [ 0x000000 - 0x176c58 ] 
 +## 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 0fb13000, end 0fb18fff ... OK 
 + 
 +Starting kernel ... 
 + 
 +Uncompressing Linux... done, booting the kernel. 
 +[    0.000000] Booting Linux on physical CPU 0x0 
 +[    0.000000] Linux version 3.10.36 (root@devbox) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41029) ) #3 Mon Jun 23 15:37:45 CEST 2014 
 +[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 
 +[    0.000000] CPU: VIVT data cache, VIVT instruction cache 
 +[    0.000000] Machine: Marvell Kirkwood (Flattened Device Tree), model: Iomega Iconnect 
 +[    0.000000] Memory policy: ECC disabled, Data cache writeback 
 +[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024 
 +[    0.000000] Kernel command line: 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 
 +[    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: 256MB = 256MB total 
 +[    0.000000] Memory: 252296k/252296k available, 9848k reserved, 0K highmem 
 +[    0.000000] Virtual kernel memory layout: 
 +[    0.000000]    vector  : 0xffff0000 - 0xffff1000  (  4 kB) 
 +[    0.000000]    fixmap  : 0xfff00000 - 0xfffe0000  ( 896 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 - 0xc03e2d64  (3948 kB) 
 +[    0.000000]      .init : 0xc03e3000 - 0xc040427c  ( 133 kB) 
 +[    0.000000]      .data : 0xc0406000 - 0xc042a69c  ( 146 kB) 
 +[    0.000000]        .bss : 0xc042a69c - 0xc045676c  ( 177 kB) 
 +[    0.000000] NR_IRQS:114 
 +[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms 
 +[  12.340147] Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064) 
 +[  12.380122] pid_max: default: 32768 minimum: 301 
 +[  12.380256] Mount-cache hash table entries: 512 
 +[  12.382629] CPU: Testing write buffer coherency: ok 
 +[  12.383014] Setting up static identity map for 0xc0010390 - 0xc00103cc 
 +[  12.384671] pinctrl core: initialized pinctrl subsystem 
 +[  12.385733] regulator-dummy: no parameters 
 +[  12.386266] NET: Registered protocol family 16 
 +[  12.386728] DMA: preallocated 256 KiB pool for atomic coherent allocations 
 +[  12.389621] Kirkwood: MV88F6281-A0, TCLK=200000000. 
 +[  12.389645] Feroceon L2: Enabling L2 
 +[  12.389690] Feroceon L2: Cache support initialised. 
 +[  12.402763] bio: create slab <bio-0> at 0 
 +[  12.403299] mvebu-pcie pcie-controller.1: PCIe0.0: link down 
 +[  12.403552] mvebu-pcie pcie-controller.1: PCI host bridge to bus 0000:00 
 +[  12.403573] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff] 
 +[  12.403587] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff] 
 +[  12.403601] pci_bus 0000:00: root bus resource [bus 00-ff] 
 +[  12.403912] PCI: bus0: Fast back to back transfers disabled 
 +[  12.403931] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring 
 +[  12.404152] PCI: bus1: Fast back to back transfers enabled 
 +[  12.404214] pci 0000:00:01.0: PCI bridge to [bus 01] 
 +[  12.404235] PCI: enabling device 0000:00:01.0 (0140 -> 0143) 
 +[  12.405353] SCSI subsystem initialized 
 +[  12.406095] usbcore: registered new interface driver usbfs 
 +[  12.406262] usbcore: registered new interface driver hub 
 +[  12.406463] usbcore: registered new device driver usb 
 +[  12.408047] Switching to clocksource orion_clocksource 
 +[  12.410025] NET: Registered protocol family 2 
 +[  12.410536] TCP established hash table entries: 2048 (order: 2, 16384 bytes) 
 +[  12.410603] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) 
 +[  12.410639] TCP: Hash tables configured (established 2048 bind 2048) 
 +[  12.410703] TCP: reno registered 
 +[  12.410717] UDP hash table entries: 256 (order: 0, 4096 bytes) 
 +[  12.410747] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) 
 +[  12.410946] NET: Registered protocol family 1 
 +[  12.411198] Unpacking initramfs... 
 +[  12.411213] Initramfs unpacking failed: junk in compressed archive 
 +[  12.421530] Freeing initrd memory: 3068K (c4501000 - c4800000) 
 +[  12.423119] squashfs: version 4.0 (2009/01/31) Phillip Lougher 
 +[  12.423136] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. 
 +[  12.423383] msgmni has been set to 498 
 +[  12.423790] io scheduler noop registered 
 +[  12.423802] io scheduler deadline registered (default) 
 +[  12.424790] kirkwood-pinctrl f1010000.pinctrl: registered pinctrl driver 
 +[  12.506810] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled 
 +[  12.508327] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A 
 +[  12.934469] console [ttyS0] enabled 
 +[  12.940258] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64 
 +[  12.952181] Scanning device for bad blocks 
 +[  13.262706] 4 cmdlinepart partitions found on MTD device orion_nand 
 +[  13.269012] Creating 4 MTD partitions on "orion_nand": 
 +[  13.274175] 0x000000000000-0x0000000e0000 : "uboot" 
 +[  13.280185] 0x0000000e0000-0x000000100000 : "uboot_env" 
 +[  13.286452] 0x000000100000-0x000000200000 : "second_stage_uboot" 
 +[  13.293478] 0x000000200000-0x000020000000 : "root" 
 +[  13.300542] libphy: orion_mdio_bus: probed 
 +[  13.305424] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 
 +[  13.313588] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:0d:99:d3 
 +[  13.322527] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 
 +[  13.329106] ehci-pci: EHCI PCI platform driver 
 +[  13.333733] ehci-platform: EHCI generic platform driver 
 +[  13.339198] ehci-orion: EHCI orion driver 
 +[  13.343328] orion-ehci f1050000.ehci: EHCI Host Controller 
 +[  13.348887] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 
 +[  13.356689] orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000 
 +[  13.378089] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 
 +[  13.384810] hub 1-0:1.0: USB hub found 
 +[  13.388622] hub 1-0:1.0: 1 port detected 
 +[  13.393209] usbcore: registered new interface driver usb-storage 
 +[  13.399747] cpuidle: using governor ladder 
 +[  13.404642] leds-gpio gpio-leds.2: pins are not configured from the driver 
 +[  13.413818] TCP: cubic registered 
 +[  13.417153] NET: Registered protocol family 17 
 +[  13.421902] 8021q: 802.1Q VLAN Support v1.8 
 +[  13.427255] regulator-dummy: disabling 
 +[  13.431526] UBI: attaching mtd3 to ubi0 
 +[  13.708290] usb 1-1: new high-speed USB device number 2 using orion-ehci 
 +[  13.898279] hub 1-1:1.0: USB hub found 
 +[  13.902335] hub 1-1:1.0: 4 ports detected 
 +[  14.246031] UBI: scanning is finished 
 +[  14.264588] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 40, need 80 
 +[  14.276801] UBI: attached mtd3 (name "root", size 510 MiB) to ubi0 
 +[  14.283046] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes 
 +[  14.289880] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 
 +[  14.296520] UBI: VID header offset: 512 (aligned 512), data offset: 2048 
 +[  14.303263] UBI: good PEBs: 4080, bad PEBs: 0, corrupted PEBs: 0 
 +[  14.309314] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 
 +[  14.316481] UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 0 
 +[  14.324805] UBI: available PEBs: 0, total reserved PEBs: 4080, PEBs reserved for bad PEB handling: 40 
 +[  14.334085] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) 
 +[  14.341108] UBI: background thread "ubi_bgt0d" started, PID 748 
 +[  14.377820] UBIFS: background thread "ubifs_bgt0_0" started, PID 750 
 +[  14.410442] UBIFS: start fixing up free space 
 +[  17.118001] UBIFS: free space fixup complete 
 +[  17.179311] UBIFS: mounted UBI device 0, volume 0, name "rootfs" 
 +[  17.185355] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes 
 +[  17.194560] UBIFS: FS size: 519321600 bytes (495 MiB, 4025 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs) 
 +[  17.204531] UBIFS: reserved for root: 0 bytes (0 KiB) 
 +[  17.209622] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 776A9DD4-F13A-4884-ACFA-A71ECCBAAC6E, small LPT model 
 +[  17.269677] VFS: Mounted root (ubifs filesystem) on device 0:10. 
 +[  17.276181] Freeing unused kernel memory: 132K (c03e3000 - c0404000) 
 +procd: Console is alive 
 +[  17.737666] Button Hotplug driver version 0.4.1 
 +procd: - preinit - 
 +Press the [f] key and hit [enter] to enter failsafe mode 
 +Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level 
 +mounting /dev/root 
 +procd: - early - 
 +procd: - ubus - 
 +procd: - init - 
 +Please press Enter to activate this console. 
 +[  25.216079] NET: Registered protocol family 10 
 +[  25.266254] RPC: Registered named UNIX socket transport module. 
 +[  25.272250] RPC: Registered udp transport module. 
 +[  25.276978] RPC: Registered tcp transport module. 
 +[  25.281719] RPC: Registered tcp NFSv4.1 backchannel transport module. 
 +[  25.361168] tun: Universal TUN/TAP device driver, 1.6 
 +[  25.366246] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> 
 +[  25.434358] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). 
 +[  25.456325] nf_conntrack version 0.5.0 (3992 buckets, 15968 max) 
 +[  25.468764] ip6_tables: (C) 2000-2006 Netfilter Core Team 
 +[  25.504973] hidraw: raw HID events driver (C) Jiri Kosina 
 +[  25.516603] ip_tables: (C) 2000-2006 Netfilter Core Team 
 +[  25.540339] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 
 +[  25.558819] usbcore: registered new interface driver usbhid 
 +[  25.564424] usbhid: USB HID core driver 
 +[  25.580701] xt_time: kernel timezone is -0000 
 +[  28.151391] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 
 +procd: - init complete - 
 +[  30.401641] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled 
 +[  30.411873] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
 + 
 + 
 + 
 +BusyBox v1.22.1 (2014-06-23 01:37:36 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 
 + ----------------------------------------------------- 
 + BARRIER BREAKER (Bleeding Edge, r41029) 
 + ----------------------------------------------------- 
 +  * 1/2 oz Galliano        Pour all ingredients into 
 +  * 4 oz cold Coffee        an irish coffee mug filled 
 +  * 1 1/2 oz Dark Rum      with crushed ice. Stir. 
 +  * 2 tsp. Creme de Cacao 
 + ----------------------------------------------------- 
 +root@OpenWrt:/# 
 +</code> 
 + 
 +==== 7. Accessing iConnect with SSH ====
To activate SSH you must first login with telnet. To activate SSH you must first login with telnet.
Line 429: Line 684:
</code> </code>
-Telnet access will be disabled, SHH will be enabled.+Telnet access will be disabled, SsH will be enabled.
==== 8. Setting up Internet access ==== ==== 8. Setting up Internet access ====
Line 458: Line 713:
More about network configuration: [[http://wiki.openwrt.org/doc/uci/network|Network Wiki]] More about network configuration: [[http://wiki.openwrt.org/doc/uci/network|Network Wiki]]
 +
 +==== 9. Setting up the Wireless Adapter access ====
 +
 +To install the RT3090 driver you need to install the kmod-rt2800-pci package:
 +
 +<code>
 +opkg update
 +opkg install kmod-rt2800-pci
 +opkg install iw
 +</code>
 +
 +Then you should see the options to enable the wireless adapter in luci.
===== Flashing U-Boot with JTAG (unbricking bootloader) ===== ===== Flashing U-Boot with JTAG (unbricking bootloader) =====

Back to top

toh/iomega/iconnect.1373274901.txt.bz2 · Last modified: 2013/07/08 11:15 (external edit)