OpenWrt Forum Archive

Topic: Howto install OpenWRT on Ubiquiti Edge Router Lite ?

The content of this topic has been archived between 24 Apr 2018 and 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I did not find documentation on how to install openwrt firmware on Edge Router Lite.

Can anyone help me?

Att,

Edison

up

I'm very interested in running openwrt on this...

+1

Hi,

I installed the openwrt rootfs and kept the EdgeOS kernel.
It's working, but ubnt kernel module does not have the L7 Filter.

Hi,

Can anybody write some lines about how we can run openwrt on this piece of hw.
Can we also expect to be added to the list of supported devices?

It will be nice to have the openwrt-base kernel, so we can add some additional features to the device, like VXLAN support.

(Last edited by dir2cas on 9 Jun 2014, 07:29)

Friend has tested this Edge Router POE version (same hardware as Lite) and got over 90Mbits while running OpenVPN tunnelling!!! Best performance so far he got was 60-70Mbits on Mikrotik Cloud routers which are much more expensive!

So this little guy has great crypto performance, and should be awesome addition to OpenWrt supported devices with unprecedented performance.

The wdr4900 has hardware crypto, its openssl benchmarks are awesome. The wiki is broken now ,  but I remember it was on top, over  most of routers, only behind x86 Atom based hardware

(Last edited by dabyd64 on 26 Jun 2014, 02:41)

Is there complete howto add openwrt on edgerouter lite?

openwrt-octeon-erlite-sysupgrade.tar

tar xf $tar_file sysupgrade-erlite/kernel -O > /boot/vmlinux.64
md5sum /boot/vmlinux.64 | cut -f1 -d " " > /boot/vmlinux.64.md5
tar xf $tar_file sysupgrade-erlite/root -O | dd of=/dev/sda2 bs=4096

Thanks kt212878 I'll try that.

[    0.000000] Linux version 3.10.49 (johnny@ThinkPad) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r41989) ) #3 SMP Fri Aug 8 21:49:58 CST 2014
[    0.000000] CVMSEG size: 2 cache lines (256 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 000d0601 (Cavium Octeon+)
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000006800000 @ 0000000001600000 (usable)
[    0.000000]  memory: 0000000007c00000 @ 0000000008200000 (usable)
[    0.000000]  memory: 000000000fc00000 @ 0000000410000000 (usable)
[    0.000000]  memory: 00000000004a9bd0 @ 0000000001100000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using internal Device Tree.
[    0.000000] software IO TLB [mem 0x01d8b000-0x05d8b000] (64MB) mapped at [a800000001d8b000-a800000005d8afff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x01100000-0xefffffff]
[    0.000000]   Normal   [mem 0xf0000000-0x41fbfffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x01100000-0x015a8fff]
[    0.000000]   node   0: [mem 0x01600000-0x07dfffff]
[    0.000000]   node   0: [mem 0x08200000-0x0fdfffff]
[    0.000000]   node   0: [mem 0x410000000-0x41fbfffff]
[    0.000000] On node 0 totalpages: 124073
[    0.000000]   DMA32 zone: 815 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 59561 pages, LIFO batch:15
[    0.000000]   Normal zone: 882 pages used for memmap
[    0.000000]   Normal zone: 64512 pages, LIFO batch:15
[    0.000000] Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
[    0.000000] Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @a800000005e46000 s12160 r8192 d20608 u40960
[    0.000000] pcpu-alloc: s12160 r8192 d20608 u40960 alloc=10*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 122376
[    0.000000] Kernel command line:  bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rootdelay=15 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) console=ttyS0,115200
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 417168k/496292k available (3163k kernel code, 79124k reserved, 1050k data, 264k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]         CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]         RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:127
[    7.760874] Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=2000000)
[    7.768969] pid_max: default: 32768 minimum: 301
[    7.773801] Mount-cache hash table entries: 256
[    7.779170] Checking for the daddi bug... no.
[    7.785162] SMP: Booting CPU01 (CoreId  1)...
[    7.789416] CPU revision is: 000d0601 (Cavium Octeon+)
[    7.789829] Brought up 2 CPUs
[    7.802177] NET: Registered protocol family 16
[    7.808832] Not in host mode, PCI Controller not initialized
[    7.837077] bio: create slab <bio-0> at 0
[    7.843245] SCSI subsystem initialized
[    7.848520] usbcore: registered new interface driver usbfs
[    7.854260] usbcore: registered new interface driver hub
[    7.859906] usbcore: registered new device driver usb
[    7.866962] Switching to clocksource OCTEON_CVMCOUNT
[    7.876778] NET: Registered protocol family 2
[    7.881806] TCP established hash table entries: 4096 (order: 4, 65536 bytes)
[    7.888877] TCP bind hash table entries: 4096 (order: 5, 131072 bytes)
[    7.895440] TCP: Hash tables configured (established 4096 bind 4096)
[    7.901733] TCP: reno registered
[    7.904893] UDP hash table entries: 256 (order: 2, 24576 bytes)
[    7.910791] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes)
[    7.917521] NET: Registered protocol family 1
[    7.921814] PCI: CLS 0 bytes, default 128
[    7.934833] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    7.940625] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    7.950699] msgmni has been set to 814
[    7.954987] io scheduler noop registered
[    7.958790] io scheduler deadline registered (default)
[    7.964365] octeon_gpio 1070000000800.gpio-controller: version: 1.0
[    7.971326] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.979751] octeon_rng octeon_rng: Octeon Random Number Generator
[    7.989191] of-flash 1f400000.nor: Can't get bank width from device tree
[    7.996579] libphy: mdio-octeon: probed
[    8.002690] mdio-octeon 1180000001800.mdio: Version 1.0
[    8.008588] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.015377] ehci-pci: EHCI PCI platform driver
[    8.020077] ehci-platform: EHCI generic platform driver
[    8.025648] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    8.032804] usbcore: registered new interface driver usb-storage
[    8.038687] octeon_wdt: Initial granularity 5 Sec
[    8.043927] cavium-ethernet 1.9
[    8.049639] Interface 0 has 3 ports (RGMII)
[    8.070507] OcteonUSB OcteonUSB.0: Octeon Host Controller
[    8.075799] OcteonUSB OcteonUSB.0: new USB bus registered, assigned bus number 1
[    8.083210] OcteonUSB OcteonUSB.0: irq 124, io mem 0x00000000
[    8.089978] hub 1-0:1.0: USB hub found
[    8.093646] hub 1-0:1.0: 1 port detected
[    8.098391] TCP: cubic registered
[    8.101591] NET: Registered protocol family 17
[    8.106793] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34) is a OCTEON
[    8.114615] console [ttyS0] enabled, bootconsole disabled
[    8.126230] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35) is a OCTEON
[    8.134977] Bootbus flash: Setting flash for 4MB flash at 0x1f800000
[    8.141430] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7
[    8.151807] Amd/Fujitsu Extended Query Table at 0x0040
[    8.156978]   Amd/Fujitsu Extended Query version 1.1.
[    8.162049] phys_mapped_flash: Swapping erase regions for top-boot CFI ta??ޭ
[    8.169028] number of CFI chips: 1
[    8.172656] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
[    8.179549] Creating 3 MTD partitions on "phys_mapped_flash":
[    8.185320] 0x000000000000-0x000000080000 : "boot0"
[    8.192217] 0x000000080000-0x000000100000 : "boot1"
[    8.199122] 0x000000300000-0x000000310000 : "eeprom"
[    8.207984] Waiting 15sec before mounting root device...
[    8.439884] usb 1-1: new high-speed USB device number 2 using OcteonUSB
[    8.625646] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.632120] scsi0 : usb-storage 1-1:1.0
[    9.052002] eth0: 1000 Mbps Full duplex, port  0, queue  0
[    9.057644] eth1: 1000 Mbps Full duplex, port  1, queue  1
[    9.636578] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       5.00 PQ: 0 ANSI: 2
[    9.647165] sd 0:0:0:0: [sda] 6593280 512-byte logical blocks: (3.37 GB/3.14 GiB)
[    9.655371] sd 0:0:0:0: [sda] Write Protect is off
[    9.660238] sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
[    9.660609] sd 0:0:0:0: [sda] No Caching mode page found
[    9.665976] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.674470] sd 0:0:0:0: [sda] No Caching mode page found
[    9.679851] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.686975]  sda: sda1 sda2
[    9.693226] sd 0:0:0:0: [sda] No Caching mode page found
[    9.698616] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.704756] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   23.217998] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[   23.227732] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
[   23.415785] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[   23.422944] VFS: Mounted root (ext4 filesystem) on device 8:2.
[   23.429070] Freeing unused kernel memory: 264K (ffffffff8151e000 - ffffffff81560000)
[   23.840729] uhci_hcd: USB Universal Host Controller Interface driver
[   27.742353] EXT4-fs (sda2): re-mounted. Opts: (null)
[   29.952959] NET: Registered protocol family 10
[   29.969073] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[   29.986372] tun: Universal TUN/TAP device driver, 1.6
[   29.991469] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   30.005420] sit: IPv6 over IPv4 tunneling driver
[   30.026879] nf_conntrack version 0.5.0 (3261 buckets, 13044 max)
[   30.039739] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   30.082894] u32 classifier
[   30.085720]     input device check on
[   30.089486]     Actions configured
[   30.101030] Mirror/redirect action on
[   30.125245] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   30.133239] Backport generated by backports.git backports-20140320-37-g5c33da0
[   30.149987] ip_tables: (C) 2000-2006 Netfilter Core Team
[   30.207372] usbcore: registered new interface driver ums-alauda
[   30.214828] usbcore: registered new interface driver ums-cypress
[   30.222461] usbcore: registered new interface driver ums-datafab
[   30.229996] usbcore: registered new interface driver ums-freecom
[   30.237663] usbcore: registered new interface driver ums-isd200
[   30.245234] usbcore: registered new interface driver ums-jumpshot
[   30.253015] usbcore: registered new interface driver ums-karma
[   30.260615] usbcore: registered new interface driver ums-sddr09
[   30.268248] usbcore: registered new interface driver ums-sddr55
[   30.275913] usbcore: registered new interface driver ums-usbat
[   30.319581] xt_time: kernel timezone is -0000
[   30.350287] cfg80211: Calling CRDA to update world regulatory domain
[   30.358918] cfg80211: World regulatory domain updated:
[   30.364134] cfg80211:  DFS Master region: unset
[   30.368570] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   30.378389] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   30.386452] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   30.394506] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   30.402555] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   30.410674] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   30.418786] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   30.426896] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   30.434921] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   30.499563] PPP generic driver version 2.4.2
[   30.506773] NET: Registered protocol family 24
[   42.064747] device eth0 entered promiscuous mode
[   42.070516] br-lan: port 1(eth0) entered forwarding state
[   42.076035] br-lan: port 1(eth0) entered forwarding state
[   44.079875] br-lan: port 1(eth0) entered forwarding state

@kt212878 maybe I'm doing something wrong, but I don't know what. Here's what I have done and still doesn't work:

$ sudo fdisk -l
...
Disk /dev/sdc: 3,9 GiB, 4127195136 bytes, 8060928 sectors
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x96610b00

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdc1         2048  292863  290816  142M  c W95 FAT32 (LBA)
/dev/sdc2       292864 3710975 3418112  1,6G 83 Linux

$ tar xf Downloads/openwrt-octeon-erlite-sysupgrade.tar

$ ls -l ./sysupgrade-erlite
total 53808
-rw-r--r-- 1 thiagoc users       13 Ago 10 04:06 CONTROL
-rwxr-xr-x 1 thiagoc users  4760712 Ago 10 04:06 kernel*
-rw-r--r-- 1 thiagoc users 50331648 Ago 10 04:06 root

$ sudo cp ./sysupgrade-erlite/kernel /mnt/sdc1/vmlinux.64

$ md5sum /mnt/sdc1/boot/vmlinux.64 | cut -d " " -f 1 | sudo tee /mnt/sdc1/vmlinux.64.md5

$ sudo dd if=sysupgrade-erlite/root of=/dev/sdc2 bs=4096
thiagoc wrote:

@kt212878 maybe I'm doing something wrong, but I don't know what. Here's what I have done and still doesn't work:

$ sudo fdisk -l
...
Disk /dev/sdc: 3,9 GiB, 4127195136 bytes, 8060928 sectors
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x96610b00

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdc1         2048  292863  290816  142M  c W95 FAT32 (LBA)
/dev/sdc2       292864 3710975 3418112  1,6G 83 Linux

$ tar xf Downloads/openwrt-octeon-erlite-sysupgrade.tar

$ ls -l ./sysupgrade-erlite
total 53808
-rw-r--r-- 1 thiagoc users       13 Ago 10 04:06 CONTROL
-rwxr-xr-x 1 thiagoc users  4760712 Ago 10 04:06 kernel*
-rw-r--r-- 1 thiagoc users 50331648 Ago 10 04:06 root

$ sudo cp ./sysupgrade-erlite/kernel /mnt/sdc1/vmlinux.64

$ md5sum /mnt/sdc1/boot/vmlinux.64 | cut -d " " -f 1 | sudo tee /mnt/sdc1/vmlinux.64.md5

$ sudo dd if=sysupgrade-erlite/root of=/dev/sdc2 bs=4096

don't use rc2
Try rc1 、rc3 or trunk

kt212878 wrote:

don't use rc2
Try rc1 、rc3 or trunk

Thanks, it worked with rc3!

(Last edited by thiagoc on 21 Aug 2014, 13:54)

I've just installed OpenWRT on my Edgerouter Lite and I have to say this thing is fast.

I've been a long time user of dd-wrt and having made the switch I'm loving the speed and simplicity of OpenWRT!

I followed the instructions and used dd to put OpenWRT on to another 4GB USB drive and it works fine, however the filesystem is only ~40MB. Is there a way of using the rest of the space available? I've read around squash/jffs/overlay but I don't believe this image uses any of these, is that correct? Could you just use resize2fs to expand it?

This router is dual core right? does openwrt use both cores..?

I am trying to install OpenWRT on an Edgerouter Lite. I have built the image and rootfs, and copied them to the usb drive as described below. I get a kernel panic apparently when I try to execute /sbin/init. The log claims it couldn't find it, although the root fs seems to have mounted properly and I know the squashfs contains /sbin/init.

Here is what I did:
Build steps:
// this is the revision of the trunk which supports Octeon
svn co --revision=36784 svn://svn.openwrt.org/openwrt/trunk/
cd openwrt
./scripts/feeds update -a
./scripts/feeds install –a
make defconfig
make prereq
make menuconfig (set to Octeon)
make

Install steps:
I used a USB drive which was an exact duplicate of the drive that came with the ERL. This USB drive successfully booted EdgeOS.

// For ease of typing
cp openwrt-octeon-vmlinux.elf vmlinuxWRT
cp openwrt-octeon-root.squashfs squashfs.img

// copy image to fat partition
sudo mount /dev/sdb1 /mnt/openwrt
cp vmlinuxWRT /mnt/openwrt
sudo umount /mnt/openwrt

// copy rootfs to ext3 partition
tar -cjf squashfs.tar.bz2 squashfs.img
sudo mount /dev/sdb2 /mnt/openwrt
tar –xvjfp squashfs.tar.bz2 /mnt/openwrt
sudo umount /mnt/openwrt

The kernel boot output looks like:
reading vmlinuxwrt
......................

4461704 bytes read
argv[2]: coremask=0x3
argv[3]: root=/dev/sda2
argv[4]: rw
argv[5]: rootwait
argv[6]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom)
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x488358
Allocated memory for ELF segment: addr: 0xffffffff81100000, size 0x488358
Processing PHDR 0
  Loading 430f00 bytes at ffffffff81100000
  Clearing 57458 bytes at ffffffff81530f00
## Loading Linux kernel with entry point: 0xffffffff81106410 ...
Bootloader: Done loading app on coremask: 0x3
[    0.000000] Linux version 3.10.0 (jjohnston@64bitLinux) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r37684) ) #1 SMP Wed Feb 25 18:35:36 EST 2015
[    0.000000] CVMSEG size: 2 cache lines (256 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 000d0601 (Cavium Octeon+)
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000006d00000 @ 0000000001100000 (usable)
[    0.000000]  memory: 0000000007c00000 @ 0000000008200000 (usable)
[    0.000000]  memory: 000000000fc00000 @ 0000000410000000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using internal Device Tree.
[    0.000000] software IO TLB [mem 0x01d14000-0x05d14000] (64MB) mapped at [a800000001d14000-a800000005d13fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x01100000-0xefffffff]
[    0.000000]   Normal   [mem 0xf0000000-0x41fbfffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x01100000-0x07dfffff]
[    0.000000]   node   0: [mem 0x08200000-0x0fdfffff]
[    0.000000]   node   0: [mem 0x410000000-0x41fbfffff]
[    0.000000] Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
[    0.000000] Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @a800000005dcf000 s12032 r8192 d20736 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 122462
[    0.000000] Kernel command line:  bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rw rootwait mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@3072k(eeprom) console=ttyS0,115200
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 417628k/496640k available (3019k kernel code, 79012k reserved, 1030k data, 300k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:127
[   26.442788] Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=2000000)
[   26.450881] pid_max: default: 32768 minimum: 301
[   26.455709] Mount-cache hash table entries: 256
[   26.461060] Checking for the daddi bug... no.
[   26.466922] SMP: Booting CPU01 (CoreId  1)...
[   26.471172] CPU revision is: 000d0601 (Cavium Octeon+)
[   26.471567] Brought up 2 CPUs
[   26.483442] NET: Registered protocol family 16
[   26.489578] Not in host mode, PCI Controller not initialized
[   26.514109] bio: create slab <bio-0> at 0
[   26.520036] SCSI subsystem initialized
[   26.525159] usbcore: registered new interface driver usbfs
[   26.530880] usbcore: registered new interface driver hub
[   26.536479] usbcore: registered new device driver usb
[   26.543303] Switching to clocksource OCTEON_CVMCOUNT
[   26.552790] NET: Registered protocol family 2
[   26.557810] TCP established hash table entries: 4096 (order: 4, 65536 bytes)
[   26.564888] TCP bind hash table entries: 4096 (order: 5, 131072 bytes)
[   26.571445] TCP: Hash tables configured (established 4096 bind 4096)
[   26.577741] TCP: reno registered
[   26.580877] UDP hash table entries: 256 (order: 2, 24576 bytes)
[   26.586784] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes)
[   26.593496] NET: Registered protocol family 1
[   26.609817] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   26.615578] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[   26.625684] msgmni has been set to 815
[   26.629912] io scheduler noop registered
[   26.633710] io scheduler deadline registered (default)
[   26.639241] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   26.647475] octeon_rng octeon_rng: Octeon Random Number Generator
[   26.656555] of-flash 1f400000.nor: Can't get bank width from device tree
[   26.663860] libphy: mdio-octeon: probed
[   26.669937] mdio-octeon 1180000001800.mdio: Version 1.0
[   26.676070] usbcore: registered new interface driver usb-storage
[   26.681946] octeon_wdt: Initial granularity 5 Sec
[   26.687079] cavium-ethernet 1.9
[   26.692899] Interface 0 has 3 ports (RGMII)
[   26.713367] OcteonUSB OcteonUSB.0: Octeon Host Controller
[   26.718654] OcteonUSB OcteonUSB.0: new USB bus registered, assigned bus number 1
[   26.726055] OcteonUSB OcteonUSB.0: irq 122, io mem 0x00000000
[   26.732775] hub 1-0:1.0: USB hub found
[   26.736433] hub 1-0:1.0: 1 port detected
[   26.741113] TCP: cubic registered
[   26.744305] NET: Registered protocol family 17
[   26.749449] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34) is a OCTEON
[   26.757270] console [ttyS0] enabled, bootconsole disabled
[   26.757270] console [ttyS0] enabled, bootconsole disabled
[   26.768854] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35) is a OCTEON
[   26.777514] Bootbus flash: Setting flash for 4MB flash at 0x1f800000
[   26.783973] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7
[   26.794355] Amd/Fujitsu Extended Query Table at 0x0040
[   26.799521]   Amd/Fujitsu Extended Query version 1.1.
[   26.804593] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
[   26.811741] number of CFI chips: 1
[   26.815180] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
[   26.822076] Creating 3 MTD partitions on "phys_mapped_flash":
[   26.827840] 0x000000000000-0x000000080000 : "boot0"
[   26.834522] 0x000000080000-0x000000100000 : "boot1"
[   26.841460] 0x000000300000-0x000000310000 : "eeprom"
[   26.850247] Waiting for root device /dev/sda2...
[   27.096214] usb 1-1: new high-speed USB device number 2 using OcteonUSB
[   27.282139] usb-storage 1-1:1.0: USB Mass Storage device detected
[   27.288566] scsi0 : usb-storage 1-1:1.0
[   28.293050] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.27 PQ: 0 ANSI: 6
[   28.303642] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   28.312605] sd 0:0:0:0: [sda] Write Protect is off
[   28.317968] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   28.331881]  sda: sda1 sda2
[   28.338212] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   28.349980] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   28.373998] EXT4-fs (sda2): recovery complete
[   28.378425] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[   28.386151] VFS: Mounted root (ext3 filesystem) on device 8:2.
[   28.392347] Freeing unused kernel memory: 300K (ffffffff814f5000 - ffffffff81540000)
[   28.401455] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

What have I done wrong? Any help would be appreciated.

Resolution: My problem turned out to be that I was using 14.07 rc1. Once I moved to 14.07 with no rc qualifier (released 14.07 I assume) or the current trunk, my router came up happy as a clam.

I installed Openwrt 15.05.1 on two recently purchased EdgeRouter LITE. Everything seems fine after installation but everytime I powercycle it resets to openwrt defaults and I lose all my settings.
This happens on both of them.
I already done the same with another EdgeRouter LITE a few months ago and everything worked like a charm.

Any ideas?

Thanks.

Be so kind to move this support request to an appropriate forum,

HINT: jffs2 is full (employ Image Generator)

Hi Guys,

I'm looking in the latest trunk and I can no longer build or see any erlite ext4 images.

With 15.05 we had a octeon-erlite-ext4, but now it's only octeon-generic-ext4 which doesn't seem to work.

Any ideas?

hongkongkiwi wrote:

Hi Guys,

I'm looking in the latest trunk and I can no longer build or see any erlite ext4 images.

With 15.05 we had a octeon-erlite-ext4, but now it's only octeon-generic-ext4 which doesn't seem to work.

Any ideas?

Why do you use ext4 image? Is ext4 suited for flash storage?

(Last edited by valentt on 29 Sep 2016, 11:30)