Hi,
first of all thank you QAuge for your excellent work on this device (904xDSL)! I found a way to boot from nand. You will need serial access to modify bootargs and a custom kernel with CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER=y (target/linux/lantiq/config-4.9)
I use the device in this config since seven days without problems as my home router on a 16/1 Mbit DSL link (easybell) with sqm. I dont need the FSX ports/asterisk. Thats why i enabled SMP again to have a dual core router. :-)
1. Do the steps 1.-12. mentioned in post 254. Then you should have a device, which boots nicely from sda3.
2. On your PC (not on the easybox904!) prepare an ubifs.img.
2.1. decompress in a new directory (e.g. /tmp/rootfs) the lede-lantiq-xrx200-device-vgv952cjw33-rootfs.tar.gz (sudo tar -xzf lede-lantiq-xrx200-device-vgv952cjw33-rootfs.tar.gz)
2.2. change directory to /tmp
2.3. sudo mkfs.ubifs -q -r rootfs/ -v -m 2048 -e 126976 -c 2047 -F -o ubifs.img
3. log via ssh into the easybox904xDSL to prepare ubi and ubifs on /dev/mtd12 (it is a big partition, like 300 MB, label "misc", i suppose the vendor used it for the answering machine)
3.1. ubiformat /dev/mtd12 -s 2048 ---> say yes to the errors
3.2. ubiattach -m 12 -O 2048
3.3. ubimkvol /dev/ubi0 -N rootfs -m
3.4. transfer the ubifs.img from step 2 to the device and do ubiupdatevol /dev/ubi0_0 ubifs.img
4. change the bootargs in u-boot to
setenv bootargs ubi.mtd=12,2048 root=ubi0:rootfs rootfstype=ubifs console=ttyLTQ0,115200
5. Enjoy "out of the box experience" :-)
Bootlog with succesful boot from nand:
[ 0.000000] Linux version 4.9.8 (tim@neuron) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3503-023da1a) ) #0 SMP Wed Mar 1 21:56:15 2017
[ 0.000000] SoC: xRX200 rev 1.2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[ 0.000000] MIPS: machine is VGV952CJW33-E-IR - EasyBox 904 xDSL
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Detected 1 available secondary CPU(s)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 80681120, node_mem_map 8100a0e0
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] percpu: Embedded 13 pages/cpu @8110d000 s21584 r8192 d23472 u53248
[ 0.000000] pcpu-alloc: s21584 r8192 d23472 u53248 alloc=13*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: ubi.mtd=12,2048 root=ubi0:rootfs rootfstype=ubifs console=ttyLTQ0,115200
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 121564K/131072K available (5075K kernel code, 200K rwdata, 1380K rodata, 1264K init, 248K bss, 9508K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:256
[ 0.000000] Setting up vectored interrupts
[ 0.000000] Setting up IPI vectored interrupts
[ 0.000000] arch/mips/lantiq/xway/sysctrl.c:ltq_soc_init:517 LTQ_EBU_BUSCON2: 0x0001d3dd
[ 0.000000] arch/mips/lantiq/xway/sysctrl.c:ltq_soc_init:520 LTQ_EBU_BUSCON2: 0x0001d3dd
[ 0.000000] CPU Clock: 500MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
[ 0.000011] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[ 0.008037] Console: colour dummy device 80x25
[ 0.012363] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[ 0.046867] pid_max: default: 32768 minimum: 301
[ 0.051741] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.058281] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.069843] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.069861] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.070088] CPU1 revision is: 00019556 (MIPS 34Kc)
[ 0.129191] Synchronize counters for CPU 1:
[ 0.129193] done.
[ 0.135470] Brought up 2 CPUs
[ 0.143870] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.153599] pinctrl core: initialized pinctrl subsystem
[ 0.159694] NET: Registered protocol family 16
[ 0.173887] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.179932] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[ 0.294573] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[ 0.305711] FPU Affinity set after 2008 emulations
[ 0.533639] ifx_pcie_wait_phy_link_up timeout
[ 0.545914] random: fast init done
[ 0.753650] ifx_pcie_wait_phy_link_up timeout
[ 0.970420] ifx_pcie_wait_phy_link_up timeout
[ 1.187191] ifx_pcie_wait_phy_link_up timeout
[ 1.403974] ifx_pcie_wait_phy_link_up timeout
[ 1.408192] pcie_rc_initialize link up failed!!!!!
[ 1.445061] gpio-stp-xway 1e100bb0.stp: Init done
[ 1.450834] SCSI subsystem initialized
[ 1.455512] usbcore: registered new interface driver usbfs
[ 1.461093] usbcore: registered new interface driver hub
[ 1.466474] usbcore: registered new device driver usb
[ 1.474685] clocksource: Switched to clocksource MIPS
[ 1.498908] NET: Registered protocol family 2
[ 1.504733] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 1.511637] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 1.518036] TCP: Hash tables configured (established 1024 bind 1024)
[ 1.524545] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.530365] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.537009] NET: Registered protocol family 1
[ 1.541297] PCI: CLS 0 bytes, default 32
[ 1.542317] gptu: totally 6 16-bit timers/counters
[ 1.547394] gptu: misc_register on minor 63
[ 1.551548] gptu: succeeded to request irq 126
[ 1.556066] gptu: succeeded to request irq 127
[ 1.560553] gptu: succeeded to request irq 128
[ 1.565089] gptu: succeeded to request irq 129
[ 1.569579] gptu: succeeded to request irq 130
[ 1.574104] gptu: succeeded to request irq 131
[ 1.581667] lantiq,vmmc 1f103000.vmmc: requested GPIO 499
[ 1.586964] lantiq,vmmc 1f103000.vmmc: reserved 1MB at 0x07400000
[ 1.593582] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a2x.bin
[ 1.600821] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7F40000
[ 1.607178] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7F40000
[ 1.714740] No VPEs reserved for AP/SP, not initialize VPE loader
[ 1.714740] Pass maxvpes=<n> argument as kernel argument
[ 1.726119] No TCs reserved for AP/SP, not initializing RTLX.
[ 1.726119] Pass maxtcs=<n> argument as kernel argument
[ 1.738970] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 1.745086] Crashlog allocated RAM at address 0x3f00000
[ 1.751011] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 1.778412] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.784136] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.800872] io scheduler noop registered
[ 1.804703] io scheduler deadline registered (default)
[ 1.811200] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[ 1.820111] console [ttyLTQ0] enabled
[ 1.827442] bootconsole [early0] disabled
[ 1.838254] gen_nand 14000000.nand-parts: platform_nand_data is missing
[ 1.843502] gen_nand: probe of 14000000.nand-parts failed with error -22
[ 1.850766] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xdc
[ 1.856486] nand: Samsung NAND 512MiB 3,3V 8-bit
[ 1.861101] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.868803] Scanning device for bad blocks
[ 2.137494] Bad eraseblock 2618 at 0x000014740000
[ 2.289553] 16 ofpart partitions found on MTD device 14000000.nand-parts
[ 2.294844] Creating 16 MTD partitions on "14000000.nand-parts":
[ 2.300879] 0x000000000000-0x000000040000 : "uboot"
[ 2.308060] 0x000000040000-0x000003c40000 : "rootfs1"
[ 2.314641] 0x000003c40000-0x000004140000 : "kernel1"
[ 2.320574] 0x000004140000-0x000004240000 : "tmp1"
2.326360] 0x000004240000-0x000004440000 : "tmp2"
[ 2.332022] 0x000004440000-0x000004540000 : "sysconfig"
[ 2.338306] 0x000004540000-0x000004640000 : "ubootconfig"
[ 2.344537] 0x000004640000-0x000004700000 : "fwdiag"
[ 2.350862] 0x000004700000-0x000004a00000 : "lcdimage"
[ 2.356798] 0x000004a00000-0x000004b00000 : "mfgconfig"
[ 2.362918] 0x000004b00000-0x000004c00000 : "sipdata"
[ 2.368714] 0x000004c00000-0x000008c00000 : "voice"
[ 2.375191] 0x000008c00000-0x00001be00000 : "misc"
[ 2.384340] 0x00001be00000-0x00001fa00000 : "rootfs2"
[ 2.391064] 0x00001fa00000-0x00001ff00000 : "kernel2"
[ 2.396904] 0x00001ff00000-0x000020000000 : "mystery"
[ 2.407394] libphy: Fixed MDIO Bus: probed
[ 2.489856] libphy: lantiq,xrx200-mdio: probed
[ 2.566637] Intel XWAY PHY11G (xRX integrated) 0:11: attached PHY driver [Intel XWAY PHY11G (xRX integrated)] (mii_bus:phy_addr=0:11, irq=-1)
[ 2.650642] Intel XWAY PHY11G (xRX integrated) 0:13: attached PHY driver [Intel XWAY PHY11G (xRX integrated)] (mii_bus:phy_addr=0:13, irq=-1)
[ 2.664262] dwc2 1e101000.ifxhcd: requested GPIO 495
[ 2.768487] dwc2 1e101000.ifxhcd: DWC OTG Controller
[ 2.772143] dwc2 1e101000.ifxhcd: new USB bus registered, assigned bus number 1
[ 2.779417] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000
[ 2.784964] dwc2 1e101000.ifxhcd: Hardware does not support descriptor DMA mode -
[ 2.792375] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode.
[ 2.800308] hub 1-0:1.0: USB hub found
[ 2.802836] hub 1-0:1.0: 1 port detected
[ 2.908258] dwc2 1e106000.ifxhcd: DWC OTG Controller
[ 2.911886] dwc2 1e106000.ifxhcd: new USB bus registered, assigned bus number 2
[ 2.919173] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000
[ 2.924698] dwc2 1e106000.ifxhcd: Hardware does not support descriptor DMA mode -
[ 2.932145] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode.
[ 2.940051] hub 2-0:1.0: USB hub found
[ 2.942564] hub 2-0:1.0: 1 port detected
[ 2.947711] usbcore: registered new interface driver usb-storage
[ 3.053965] ltq-cputemp cputemp@0: Current CPU die temperature: 52.5 °C
[ 3.059696] wdt 1f8803f0.watchdog: Init done
[ 3.067556] NET: Registered protocol family 10
[ 3.073025] NET: Registered protocol family 17
[ 3.076225] 8021q: 802.1Q VLAN Support v1.8
[ 3.083964] rtl8367b rtl8367b: using bus lantiq,xrx200-mdio
[ 3.088433] rtl8367b rtl8367b: RTL8367RB chip found
[ 4.423594] ubi0: attaching mtd12
[ 4.846589] ubi0: scanning is finished
[ 4.866113] ubi0: attached mtd12 (name "misc", size 306 MiB)
[ 4.870376] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 4.877249] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 4.883952] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 4.890914] ubi0: good PEBs: 2447, bad PEBs: 1, corrupted PEBs: 0
[ 4.896984] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 4.904251] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1396515132
[ 4.913365] ubi0: available PEBs: 0, total reserved PEBs: 2447, PEBs reserved for bad PEB handling: 79
[ 4.922738] ubi0: background thread "ubi_bgt0d" started, PID 544
[ 4.978080] UBIFS (ubi0:0): recovery needed
[ 5.042967] UBIFS (ubi0:0): recovery deferred
[ 5.046079] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[ 5.054188] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 5.064104] UBIFS (ubi0:0): FS size: 258523136 bytes (246 MiB, 2036 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 5.074813] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 5.080630] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID C50B1FC8-721D-4E09-A6C2-26BCA56B1F62, small LPT model
[ 5.092879] VFS: Mounted root (ubifs filesystem) readonly on device 0:10.
[ 5.102630] Freeing unused kernel memory: 1264K (80684000 - 807c0000)
[ 5.107673] This architecture does not have kernel memory protection.
[ 5.214279] init: Console is alive
[ 5.216559] init: - watchdog -
[ 5.476119] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.512001] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.521419] init: - preinit -
[ 7.995755] mount_root: mounting /dev/root
[ 7.999406] UBIFS (ubi0:0): completing deferred recovery
[ 8.047930] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 604
[ 8.051525] UBIFS (ubi0:0): deferred recovery completed
[ 8.062618] urandom-seed: Seeding with /etc/urandom.seed
[ 8.117784] procd: - early -
[ 8.120410] procd: - watchdog -
[ 8.814541] procd: - ubus -
[ 8.873363] procd: - init -
[ 9.307024] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.337477] fbtft_of_value: buswidth = 8
[ 9.340051] fbtft_of_value: debug = 1
[ 9.343649] fbtft_of_value: rotate = 270
[ 9.347591] fbtft_of_value: fps = 30
[ 9.351662] fb_ili9341_eb904 0.easybox904-display: fbtft_request_one_gpio: 'reset-gpios' = GPIO468
[ 9.360202] fb_ili9341_eb904 0.easybox904-display: fbtft_request_one_gpio: 'led-gpios' = GPIO490
[ 9.490325] ili9341_Probe: Probed ID4: 9341
[ 9.656979] graphics fb0: fb_ili9341_eb904 frame buffer, 320x240, 150 KiB video memory, 16 KiB DMA buffer memory, fps=31
[ 9.672138] IFXOS, Version 1.5.19 (c) Copyright 2009, Lantiq Deutschland GmbH
[ 9.707068] Lantiq TAPI device driver, version 3.13.0.2, (c) 2001-2010 Lantiq Deutschland GmbH
[ 9.726067] NET: Registered protocol family 8
[ 9.729001] NET: Registered protocol family 20
[ 9.787547] RPC: Registered named UNIX socket transport module.
[ 9.792155] RPC: Registered udp transport module.
[ 9.796841] RPC: Registered tcp transport module.
[ 9.801470] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 9.827895] tun: Universal TUN/TAP device driver, 1.6
[ 9.831626] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 9.951517] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 9.966116] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.054941] Lantiq (VRX) DSL CPE MEI driver, version 1.5.17.6, (c) 2007-2015 Lantiq Beteiligungs-GmbH & Co. KG
[ 10.075149] i2c /dev entries driver
[ 10.115094]
[ 10.115094]
[ 10.115094] Lantiq CPE API Driver version: DSL CPE API V4.17.18.6
[ 10.122793]
[ 10.122793] Predefined debug level: 3
[ 10.134204] i2c-gpio 0.i2c: using pins 481 (SDA) and 476 (SCL)
[ 12.731549] input: eb904_keypad as /devices/platform/0.i2c/i2c-0/0-0014/input/input0
[ 12.762561] hidraw: raw HID events driver (C) Jiri Kosina
[ 12.783903] u32 classifier
[ 12.785178] input device check on
[ 12.788857] Actions configured
[ 12.794835] Mirror/redirect action on
[ 12.819020] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 12.849055] Console: switching to colour frame buffer device 40x30
[ 12.918541] Lantiq MIPS34KEc MPS driver, version 2.2.2.5, (c) 2006-2010 Lantiq Deutschland GmbH
[ 12.925886] request_timer(2, 0x000001AE, 1)...
[ 12.930114] successful!
[ 12.933078] Lantiq VMMC device driver, version 1.9.0.3, (c) 2006-2010 Lantiq Deutschland GmbH
[ 12.947387] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 12.961520] Infineon Technologies DEU driver version 2.0.0
[ 12.967661] IFX DEU DES initialized (multiblock).
[ 12.972321] IFX DEU AES initialized (multiblock).
[ 12.976230] IFX DEU ARC4 initialized (multiblock).
[ 12.980737] IFX DEU SHA1 initialized.
[ 12.984496] IFX DEU MD5 initialized.
root@LEDE:~# df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 227.4M 34.0M 193.4M 15% /
tmpfs 60.0M 1.5M 58.4M 3% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
root@LEDE:~# mount
ubi0:rootfs on / type ubifs (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
root@LEDE:~#
(Last edited by chipmunk on 14 Mar 2017, 12:23)