HowTo: OpenWrt on Kirkwood boxes June 06, 2019 04:22PM |
Registered: 13 years ago Posts: 157 |
fw_printenv mtdparts
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
mtdparts=mtdparts=orion_nand:0x200000@0x0(u-boot),-@0x100000(ubi)
mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)Important note: This must be changed on the Zyxels for the following to work, so if for some reason you need the above layout, you will have to figure out the necessary modifications yourself!
fw_setenv mtdparts 'mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)'(same as for Pogo E02 or the old Seagate boxes)
fw_setenv partition 'nand0,0' fw_setenv set_bootargs_owrt 'setenv bootargs console=ttyS0,115200 $mtdparts' fw_setenv bootcmd_owrt 'run set_bootargs_owrt; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000'
fw_setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_owrt'
targets/kirkwood/genericThen, download the uImage appropriate for your box. Rename it to uImage and place it in the root of a FAT32 formatted USB device.
nc -l -u -p 6666Wait until after a few error messages you see the prompt, e.g.
Dockstar>in the console window.
nand erase.part ubi
usb reset; fatload usb 0 0x800000 uImage; run set_bootargs_owrt; bootm 0x800000
This should end with
Starting kernel ...in the console output, meaning that OpenWrt is now running in RAM.
root@OpenWrt:/tmp# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 07f00000 00020000 "ubi"
┌─[root@pogo-mobile]─[~] └──> cat /proc/mtd dev: size erasesize name mtd0: 00200000 00020000 "u-boot" mtd1: 07f00000 00020000 "ubi"
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000If not, or the file does not exist at all, the easiest way to generate/overwrite it is
echo '/dev/mtd0 0xc0000 0x20000 0x20000' > /etc/fw_env.configAfterwards, check that the uBoot environment is found by printing the variables to screen using
fw_printenv
opkg update opkg install ca-certificates cd /tmp wget <URL of our desired sysupgrade file> sysupgrade <name of our desired sysupgrade file>The desired upgrade file may be found the same way as we found the image in step 2 above starting from the release page (but, ideally, you kept the browser tab open in step 2). There you can just copy the link address to the sysupgrade file (tar or bin depending on the release) and paste it into the ssh window.
https:// <IP of your box>
Re: HowTo: OpenWrt on Kirkwood boxes June 07, 2019 02:07AM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
Find the IP address of your box and ssh into it (user root without password). I am not entirely sure whether the next part is strictly necessary, but I believe so, since without it, I ran into problems when I first tried the procedure on a Dockstar.
Generate or modify /etc/fw_env.config
Check whether the file /etc/fw_env.config has the following contents:
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
If not, modify it accordingly (e.g., using vim, which is available in OpenWrt/LEDE).
Generate or modify /etc/fw_env.config Check whether the file /etc/fw_env.config has the following contents: # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: HowTo: OpenWrt on Kirkwood boxes June 07, 2019 04:46AM |
Registered: 13 years ago Posts: 157 |
Re: HowTo: OpenWrt on Kirkwood boxes June 08, 2019 09:57PM |
Registered: 7 years ago Posts: 373 |
Dockstar>tftp 0x800000 openwrt_dockstar_uImage Dockstar>bootm 0x800000
root login to openwrt ok, tried to install the packages to the initial file system, openwrt complains no space on /overlay
root@OpenWrt:/tmp# opkg install ca-bundle ca-certificates libustream-openssl ubi -utils Installing ca-bundle (20190110-1) to root... Installing ca-certificates (20190110-1) to root... Installing libustream-openssl (2018-07-30-23a3f283-1) to root... Package ubi-utils (2.0.2-1) installed in root is up to date. Collected errors: * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg ca-bundle needs 113 * opkg_install_cmd: Cannot install package ca-bundle. * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg ca-certificates needs 122 * opkg_install_cmd: Cannot install package ca-certificates. * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg libustream-openssl needs 4 * opkg_install_cmd: Cannot install package libustream-openssl. root@OpenWrt:/tmp# df -h Filesystem Size Used Available Use% Mounted on tmpfs 60.2M 668.0K 59.5M 1% /tmp tmpfs 512.0K 0 512.0K 0% /dev
Edited 1 time(s). Last edit at 06/08/2019 10:05PM by daviddyer.
Re: HowTo: OpenWrt on Kirkwood boxes June 08, 2019 10:14PM |
Registered: 7 years ago Posts: 373 |
Re: HowTo: OpenWrt on Kirkwood boxes June 08, 2019 10:44PM |
Registered: 7 years ago Posts: 373 |
Re: HowTo: OpenWrt on Kirkwood boxes June 10, 2019 05:21PM |
Registered: 10 years ago Posts: 94 |
setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi'its only an extension of bodhis original and is required for correct warm booting either Lede/openwrt from nand or debian from stick.
Re: HowTo: OpenWrt on Kirkwood boxes June 11, 2019 03:17AM |
Registered: 13 years ago Posts: 157 |
Re: HowTo: OpenWrt on Kirkwood boxes June 11, 2019 03:22AM |
Registered: 13 years ago Posts: 157 |
Re: HowTo: OpenWrt on Kirkwood boxes June 11, 2019 10:02AM |
Admin Registered: 13 years ago Posts: 18,900 |
setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi'
Re: HowTo: OpenWrt on Kirkwood boxes June 12, 2019 05:33AM |
Registered: 13 years ago Posts: 157 |
> setenv bootcmd_exec 'if run load_uimage; then; if > run load_initrd; then if run load_dtb; then bootm > $load_uimage_addr $load_initrd_addr > $load_dtb_addr; else bootm $load_uimage_addr > $load_initrd_addr; fi; else if run load_dtb; then > bootm $load_uimage_addr - $load_dtb_addr; else > bootm $load_uimage_addr; fi; fi; fi' >>
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi)
Re: HowTo: OpenWrt on Kirkwood boxes June 12, 2019 06:57AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: HowTo: OpenWrt on Kirkwood boxes June 12, 2019 07:26AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: HowTo: OpenWrt on Kirkwood boxes June 12, 2019 09:26AM |
Registered: 7 years ago Posts: 373 |
Re: HowTo: OpenWrt on Kirkwood boxes June 12, 2019 10:19AM |
Registered: 13 years ago Posts: 157 |
Re: HowTo: OpenWrt on Kirkwood boxes June 13, 2019 12:14PM |
Registered: 7 years ago Posts: 373 |
Re: HowTo: OpenWrt on Kirkwood boxes June 13, 2019 07:04PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
https://forum.doozan.com/read.php?4,42279
# when you change/add a new partition layout you always need to erase the ubi nand first before new install:
nand erase.part ubi
Re: HowTo: OpenWrt on Kirkwood boxes June 29, 2019 03:26PM |
Registered: 7 years ago Posts: 4 |
[rootfs] mode=ubi image=kirkwood-pogo_e02-root.ubifs vol_id=0 vol_type=dynamic vol_name=rootfs vol_alignment=1 vol_flags=autoresize
wget -c https://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/openwrt-18.06.2-kirkwood-cloudengines_pogoe02-squashfs-sysupgrade.bin
tar xf openwrt-kirkwood-cloudengines_pogoe02-squashfs-sysupgrade.bin unsquashfs sysupgrade-pogo_e02/root mkdir squashfs-root/boot cp sysupgrade-pogo_e02/kernel squashfs-root/boot/uImage mkfs.ubifs -r squashfs-root/ -m 2048 -e 129024 -c 1032 -o kirkwood-pogo_e02-root.ubifs ubinize -vv -o kirkwood-pogo_e02-root.ubi -m 2048 -p 131072 -s 512 kirkwood-pogo_e02-root.ubifs.conf
mtdparts delall mtdparts add nand0 0x00100000@0x0 u-boot mtdparts add nand0 0x07f00000@0x00100000 data tftpboot 0x2000000 uboot.2016.05-tld-1.pogo_e02.mtd0.kwb or tftpboot 0x2000000 uboot.2017.07-tld-1.pogo_e02.mtd0.kwb nand erase 0x0 0x80000 nand write 0x2000000 0x0 ${filesize} tftpboot 0x2000000 kirkwood-pogo_e02-root.ubi nand erase 0x00100000 0x07f00000 nand write 0x2000000 0x00100000 ${filesize} setenv ubifs_boot 'if ubi part data && ubifsmount ubi:rootfs && ubifsload 0x800000 /boot/uImage && ubifsumount; then bootm 0x800000; fi' setenv ubifs_bootcmd 'run ubifs_set_bootargs; run ubifs_boot' setenv ubifs_set_bootargs 'setenv bootargs console=$console $mtdparts' setenv bootcmd 'run ubifs_bootcmd; usb start; run usb_bootcmd; usb stop; reset' saveenv reset
setenv ethaddr '52:xx:xx:xx:xx:xx' saveenv
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 ubi0: attaching mtd1 ubi0: scanning is finished ubi0: attached mtd1 (name "mtd=1", size 127 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 ubi0: VID header offset: 512 (aligned 512), data offset: 2048 ubi0: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1873734927 ubi0: available PEBs: 0, total reserved PEBs: 1016, PEBs reserved for bad PEB handling: 20 Loading file '/boot/uImage' to addr 0x00800000... Done Unmounting UBIFS volume rootfs! ## Booting kernel from Legacy Image at 00800000 ... Image Name: ARM OpenWrt Linux-4.14.128 Created: 2019-06-21 12:17:25 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2247378 Bytes = 2.1 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.128 (user@t30) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7798-97ae9e0ccb)) #0 Fri Jun 21 12:17:25 2019 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: Cloud Engines Pogoplug E02 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] random: get_random_bytes called from start_kernel+0x70/0x424 with crng_init=0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1m(u-boot),127m(data) [ 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: 251044K/262144K available (4808K kernel code, 312K rwdata, 1332K rodata, 1024K init, 210K bss, 11100K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05b23d8 (5801 kB) [ 0.000000] .init : 0xc0800000 - 0xc0900000 (1024 kB) [ 0.000000] .data : 0xc0900000 - 0xc094e120 ( 313 kB) [ 0.000000] .bss : 0xc094e120 - 0xc0982af4 ( 211 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000039] Switching to timer-based delay loop, resolution 5ns [ 0.000104] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000125] pid_max: default: 32768 minimum: 301 [ 0.000248] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000268] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000818] CPU: Testing write buffer coherency: ok [ 0.001609] Setting up static identity map for 0x100000 - 0x10003c [ 0.001867] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2 [ 0.005009] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.005036] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.005126] pinctrl core: initialized pinctrl subsystem [ 0.005975] NET: Registered protocol family 16 [ 0.006350] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.007322] cpuidle: using governor ladder [ 0.007684] Feroceon L2: Enabling L2 [ 0.007727] Feroceon L2: Cache support initialised. [ 0.007986] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.011380] No ATAGs? [ 0.027741] SCSI subsystem initialized [ 0.028428] usbcore: registered new interface driver usbfs [ 0.028490] usbcore: registered new interface driver hub [ 0.028547] usbcore: registered new device driver usb [ 0.030500] clocksource: Switched to clocksource orion_clocksource [ 0.061187] NET: Registered protocol family 2 [ 0.061744] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 0.061780] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.061810] TCP: Hash tables configured (established 2048 bind 2048) [ 0.061894] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.061916] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.062047] NET: Registered protocol family 1 [ 0.064859] Crashlog allocated RAM at address 0x3f00000 [ 0.065446] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 0.069685] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.069697] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.077018] io scheduler noop registered [ 0.077032] io scheduler deadline registered (default) [ 0.078274] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 0.102124] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.102997] console [ttyS0] disabled [ 0.103073] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A [ 0.568636] console [ttyS0] enabled [ 0.573345] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1 [ 0.579732] nand: Samsung NAND 128MiB 3,3V 8-bit [ 0.584400] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 0.592028] Scanning device for bad blocks [ 0.704167] 2 cmdlinepart partitions found on MTD device orion_nand [ 0.710463] Creating 2 MTD partitions on "orion_nand": [ 0.715638] 0x000000000000-0x000000100000 : "u-boot" [ 0.721171] 0x000000100000-0x000008000000 : "data" [ 0.727350] libphy: Fixed MDIO Bus: probed [ 0.731743] libphy: orion_mdio_bus: probed [ 0.738581] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 0.747156] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:xx:xx:xx:xx:xx [ 0.755995] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.762567] ehci-pci: EHCI PCI platform driver [ 0.767078] ehci-orion: EHCI orion driver [ 0.771284] orion-ehci f1050000.ehci: EHCI Host Controller [ 0.776820] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 0.784655] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000 [ 0.820516] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 0.827104] hub 1-0:1.0: USB hub found [ 0.831099] hub 1-0:1.0: 1 port detected [ 0.835479] usbcore: registered new interface driver usb-storage [ 1.200514] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 1.402528] hub 1-1:1.0: USB hub found [ 1.406669] hub 1-1:1.0: 4 ports detected [ 1.730513] usb 1-1.4: new high-speed USB device number 3 using orion-ehci [ 1.780500] random: fast init done [ 1.920514] rtc-mv f1010300.rtc: internal RTC not ticking [ 1.926061] i2c /dev entries driver [ 1.930184] orion_wdt: Initial timeout 21 sec [ 1.938564] marvell-cesa f1030000.crypto: CESA device successfully registered [ 1.946556] NET: Registered protocol family 10 [ 1.952673] Segment Routing with IPv6 [ 1.956411] NET: Registered protocol family 17 [ 1.960945] 8021q: 802.1Q VLAN Support v1.8 [ 1.968035] UBI: auto-attach mtd1 [ 1.971414] ubi0: attaching mtd1 [ 2.160382] ubi0: scanning is finished [ 2.175716] ubi0: attached mtd1 (name "data", size 127 MiB) [ 2.181355] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes [ 2.188260] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 2.195007] ubi0: VID header offset: 512 (aligned 512), data offset: 2048 [ 2.201841] ubi0: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0 [ 2.207958] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 2.215228] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1873734927 [ 2.224409] ubi0: available PEBs: 0, total reserved PEBs: 1016, PEBs reserved for bad PEB handling: 20 [ 2.234051] hctosys: unable to open rtc device (rtc0) [ 2.239538] ubi0: background thread "ubi_bgt0d" started, PID 919 [ 2.273276] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 922 [ 2.365412] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 2.372873] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 2.382848] UBIFS (ubi0:0): FS size: 126572544 bytes (120 MiB, 981 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs) [ 2.393515] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 2.399377] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 8D73FE77-B530-46E6-8B52-1CE57FB8B341, small LPT model [ 2.411497] VFS: Mounted root (ubifs filesystem) on device 0:11. [ 2.420383] Freeing unused kernel memory: 1024K [ 2.518417] init: Console is alive [ 2.522820] init: - watchdog - [ 2.732292] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 2.802520] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 2.810951] init: - preinit - [ 2.983000] random: jshn: uninitialized urandom read (4 bytes read) [ 3.019086] random: jshn: uninitialized urandom read (4 bytes read) [ 3.050228] random: jshn: uninitialized urandom read (4 bytes read) [ 3.152708] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 3.162631] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down [ 3.169757] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 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 [ 6.177361] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 6.187297] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 6.291166] mount_root: mounting /dev/root [ 6.302339] mount_root: loading kmods from internal overlay [ 6.327803] kmodloader: loading kernel modules from //etc/modules-boot.d/* [ 6.335954] kmodloader: done loading kernel modules from //etc/modules-boot.d/* [ 6.455656] block: attempting to load /etc/config/fstab [ 6.463329] block: extroot: not configured [ 6.469819] urandom-seed: Seeding with /etc/urandom.seed [ 6.507920] procd: - early - [ 6.511352] procd: - watchdog - [ 7.313584] procd: - watchdog - [ 7.316950] procd: - ubus - [ 7.337549] urandom_read: 3 callbacks suppressed [ 7.337555] random: ubusd: uninitialized urandom read (4 bytes read) [ 7.372678] random: ubusd: uninitialized urandom read (4 bytes read) [ 7.380093] random: ubusd: uninitialized urandom read (4 bytes read) [ 7.387416] procd: - init - Please press Enter to activate this console. [ 7.598405] kmodloader: loading kernel modules from /etc/modules.d/* [ 7.639049] NET: Registered protocol family 38 [ 7.707422] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com [ 7.756548] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 7.806635] cryptodev: driver 1.9 loaded. [ 7.826579] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180 [ 7.834666] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d [ 7.862595] ip_tables: (C) 2000-2006 Netfilter Core Team [ 7.879375] lib80211: common routines for IEEE802.11 drivers [ 7.905060] nf_conntrack version 0.5.0 (4096 buckets, 16384 max) [ 7.955633] xt_time: kernel timezone is -0000 [ 8.185188] PPP generic driver version 2.4.2 [ 8.191497] NET: Registered protocol family 24 [ 8.243900] batman_adv: B.A.T.M.A.N. advanced openwrt-2018.1-8 (compatibility version 15) loaded [ 8.370520] usb 1-1.4: reset high-speed USB device number 3 using orion-ehci [ 8.531297] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected [ 8.567296] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected [ 8.576346] usbcore: registered new interface driver rt2800usb [ 8.593406] kmodloader: done loading kernel modules from /etc/modules.d/* [ 13.581905] br-lan: port 1(eth0) entered blocking state [ 13.587160] br-lan: port 1(eth0) entered disabled state [ 13.592675] device eth0 entered promiscuous mode [ 13.609843] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 13.693764] IPv6: ADDRCONF(NETDEV_UP): eth0_17: link is not ready [ 14.007087] batman_adv: bat0: Adding interface: dummy0 [ 14.012310] batman_adv: bat0: The MTU of interface dummy0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem. [ 14.036520] batman_adv: bat0: Interface activated: dummy0 [ 14.043281] 8021q: adding VLAN 0 to HW filter on device bat0 [ 14.049997] br-lan: port 2(bat0) entered blocking state [ 14.055309] br-lan: port 2(bat0) entered disabled state [ 14.060785] device bat0 entered promiscuous mode [ 14.065481] br-lan: port 2(bat0) entered blocking state [ 14.070752] br-lan: port 2(bat0) entered forwarding state [ 14.077145] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 14.510631] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled [ 14.518769] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled [ 14.565349] batman_adv: bat0: distributed_arp_table: Changing from: enabled to: disabled [ 14.652750] batman_adv: bat0: Changing gw mode from: off to: client [ 14.659299] batman_adv: bat0: multicast_mode: Changing from: enabled to: disabled [ 16.237228] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 16.247245] br-lan: port 1(eth0) entered blocking state [ 16.252526] br-lan: port 1(eth0) entered forwarding state [ 16.288201] IPv6: ADDRCONF(NETDEV_CHANGE): eth0_17: link becomes ready [ 16.681009] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin' [ 16.770748] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36 [ 17.205685] IPv6: ADDRCONF(NETDEV_UP): wlan0-ap: link is not ready [ 17.315092] br-lan: port 3(wlan0-ap) entered blocking state [ 17.320876] br-lan: port 3(wlan0-ap) entered disabled state [ 17.326741] device wlan0-ap entered promiscuous mode [ 17.434469] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-ap: link becomes ready [ 17.441357] br-lan: port 3(wlan0-ap) entered blocking state [ 17.446962] br-lan: port 3(wlan0-ap) entered forwarding state [ 17.470929] br-lan: port 4(wlan0-apname) entered blocking state [ 17.476881] br-lan: port 4(wlan0-apname) entered disabled state [ 17.483135] device wlan0-apname entered promiscuous mode [ 17.548024] IPv6: ADDRCONF(NETDEV_UP): wlan0-apname: link is not ready [ 17.554642] br-lan: port 4(wlan0-apname) entered blocking state [ 17.560612] br-lan: port 4(wlan0-apname) entered forwarding state [ 17.623889] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-apname: link becomes ready [ 17.902508] IPv6: ADDRCONF(NETDEV_UP): wlan0-mesh: link is not ready [ 18.256466] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-mesh: link becomes ready [ 18.876094] batman_adv: bat0: Adding interface: wlan0-mesh_29 [ 18.881909] batman_adv: bat0: Interface activated: wlan0-mesh_29 [ 39.492954] random: crng init done [ 39.496381] random: 1 urandom warning(s) missed due to ratelimiting BusyBox v1.28.4 () built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 18.06.3, r7798-97ae9e0ccb ----------------------------------------------------- ___ __ __ _______ __ | |_|__| |--.----.-----.| | |-----.-----| |--. | | | _ | _| -__|| | -__|__ --| | |_____|__|_____|__| |_____||__|_|__|_____|_____|__|__| ------------------------------------------------------ LiMe master development (master rev. ce7a730 20190629_1306) ------------------------------------------------------ http://libremesh.org ------------------------------------------------------ === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- root@LiMe-9c1151:/#
Re: HowTo: OpenWrt on Kirkwood boxes December 25, 2019 01:14PM |
Registered: 4 years ago Posts: 11 |
Re: HowTo: OpenWrt on Kirkwood boxes July 11, 2020 12:02PM |
Registered: 4 years ago Posts: 2 |
Re: HowTo: OpenWrt on Kirkwood boxes July 11, 2020 04:51PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
https://forum.doozan.com/read.php?2,23630
Rescue Systems
Rescue System V2 (Original)
MacPlug & SMBPLug
Rescue System Pogo V3
Rescue System V4, using a custom LEDE firmware (BETA)
Rescue System for Pogo E02 using LEDE/OpenWrt (Install with Serial Console)
Rescue System for Pogo V4/Mobile using OpenWrt (Install with NetConsole)
Re: HowTo: OpenWrt on Kirkwood boxes July 11, 2020 06:51PM |
Registered: 4 years ago Posts: 2 |
Quote
bodhi Wrote:
-------------------------------------------------------
frollic,
Thanks for the feedback! I did not add this to the
Wiki as I did for the other tutorials because I
think some of the steps were incorrect or need
enhancements.
Quote
https://forum.doozan.com/read.php?2,23630
Rescue Systems
Rescue System V2 (Original)
MacPlug & SMBPLug
Rescue System Pogo V3
Rescue System V4, using a custom LEDE firmware
(BETA)
Rescue System for Pogo E02 using LEDE/OpenWrt
(Install with Serial Console)
Rescue System for Pogo V4/Mobile using OpenWrt
(Install with NetConsole)
But since you have confirmed that, I will look at
that again to see my reservation was justifed or
not, and add it to the Wiki.
Re: HowTo: OpenWrt on Kirkwood boxes October 24, 2020 09:56AM |
Registered: 6 years ago Posts: 183 |
setenv bootcmd 'nboot 60500000 0 440000; bootm' saveenv boot
setenv bootcmd 'run dt_bootcmd_usb' saveenv boot
Re: HowTo: OpenWrt on Kirkwood boxes October 24, 2020 08:44PM |
Registered: 9 years ago Posts: 454 |
Re: HowTo: OpenWrt on Kirkwood boxes October 24, 2020 09:25PM |
Admin Registered: 13 years ago Posts: 18,900 |
printenv
Re: HowTo: OpenWrt on Kirkwood boxes October 25, 2020 11:34AM |
Registered: 6 years ago Posts: 183 |
Re: HowTo: OpenWrt on Kirkwood boxes May 02, 2022 03:22PM |
Registered: 2 years ago Posts: 23 |
Re: HowTo: OpenWrt on Kirkwood boxes May 02, 2022 04:00PM |
Registered: 2 years ago Posts: 23 |
mtdparts=mtdparts=orion_nand:1M(uboot),-(ubi) bootubi=echo Trying to boot from NAND ...; ubi part ubi; ubi read 0x800000 kernel; setenv bootargs console=ttyS0,115200 ${mtdparts}; bootm 0x800000 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootubi
dmesg [ 0.608281] Creating 2 MTD partitions on "orion_nand": [ 0.613444] 0x000000000000-0x000000100000 : "uboot" [ 0.618988] 0x000000100000-0x000008000000 : "ubi"
root@OpenWrt:/tmp# ubinfo -a UBI version: 1 Count of UBI devices: 1 UBI control device major/minor: 10:62 Present UBI devices: ubi0 ubi0 Volumes count: 3 Logical eraseblock size: 129024 bytes, 126.0 KiB Total amount of logical eraseblocks: 1016 (131088384 bytes, 125.0 MiB) Amount of available logical eraseblocks: 0 (0 bytes) Maximum count of volumes 128 Count of bad physical eraseblocks: 0 Count of reserved physical eraseblocks: 20 Current maximum erase counter value: 4 Minimum input/output unit size: 2048 bytes Character device major/minor: 250:0 Present volumes: 0, 1, 2 Volume ID: 0 (on ubi0) Type: dynamic Alignment: 1 Size: 19 LEBs (2451456 bytes, 2.3 MiB) State: OK Name: kernel Character device major/minor: 250:1 ----------------------------------- Volume ID: 1 (on ubi0) Type: dynamic Alignment: 1 Size: 18 LEBs (2322432 bytes, 2.2 MiB) State: OK Name: rootfs Character device major/minor: 250:2 ----------------------------------- Volume ID: 2 (on ubi0) Type: dynamic Alignment: 1 Size: 955 LEBs (123217920 bytes, 117.5 MiB) State: OK Name: rootfs_data Character device major/minor: 250:3
Re: HowTo: OpenWrt on Kirkwood boxes May 28, 2022 12:51PM |
Registered: 2 years ago Posts: 11 |
Re: HowTo: OpenWrt on Kirkwood boxes May 28, 2022 01:55PM |
Registered: 2 years ago Posts: 23 |