Hi
I have a Tilgin 2831 (labeled "tilgin 2381_EU") on my spare router shelf. I'd really like to have OpenWrt on it, but the model is not in the supported devices list.
I was hoping that someone here could help out to somehow learn me the procedure of getting this done.
So far i've grabbed the following on the UART pins: (part1/2)
ROM VER: 1.0.0
CFG 06
NAND
ROM VER: 1.0.0
CFG 06
NAND
DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa3ffffff
DDR check ok... start booting...
Tilgin UBI HG228x/238x U-Boot 2010.06-LANTIQ-v-2.3.10 (Mar 09 2015 - 22:07:17) 02_07_00_42
CLOCK CPU 720M RAM 360M
16 Bit RAM
DRAM: 128 MiB
NAND: NAND device: Manufacturer ID: 0xc2, Chip ID: 0xf1 (Macronix NAND 128MiB 3,3V 8-bit)
128 MiB
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000000080000 : "U-Boot"
Creating 1 MTD partitions on "nand0":
0x000000080000-0x000008000000 : "ubi"
UBI: attaching mtd2 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: max. sequence number: 13131
UBI: attached mtd2 to ubi0
UBI: MTD device name: "ubi"
UBI: MTD device size: 127 MiB
UBI: number of good PEBs: 1018
UBI: number of bad PEBs: 2
UBI: number of corrupted PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 256
UBI: number of internal volumes: 1
UBI: number of user volumes: 13
UBI: available PEBs: 689
UBI: total number of reserved PEBs: 329
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 268/13
UBI: image sequence number: 1377090127
Volume Environment (ID 4) found at slot 4
Read 7936 bytes from volume 4 to 86c332a8(buf address)
In: serial
Out: serial
Err: serial
Board reset caused by unknown (3c08a060).
Net: internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
PHY version 8435
ar10 Switch
Type "run flash_flash" to start the Linux kernel
Hit any key to stop autoboot: 0
No private boot packet is detected
Volume kernel (ID 7) found at slot 7
Read 0 bytes from volume 7 to 80500000(buf address)
Read [1417059] bytes
## Booting kernel from Legacy Image at 80500000 ...
Image Name: MIPS Linux-2.6.32
Created: 2016-12-01 21:23:11 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1416995 Bytes = 1.4 MiB
Load Address: 80002000
Entry Point: 80006150
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
Lantiq xDSL CPE GRX390
mips_hpt_frequency = 360000000, counter_resolution = 2
Linux version 2.6.32.42 (lajo@tilgin00144) (gcc version 4.3.3 (GCC) ) #1 Thu Dec 1 22:23:02 CET 2016
printk buffer from the previous boot:
-----------------------------------
ä "9J
`àê@&H
"UPäTuYA È
-----------------------------------
phym = 08000000, mem = 07f00000, max_pfn = 00007f00
Reserving memory for CP1 @0xa7f00000, size 0x00100000
CPU revision is: 00019556 (MIPS 34Kc)
Determined physical RAM map:
AR10 mem final size = 3207168
AR10 mem final size = 5177344
AR10 mem final size = 107999232
User-defined physical RAM map:
memory: 0030f000 @ 00000000 (usable)
memory: 004f0000 @ 00410000 (usable)
memory: 066ff000 @ 00a01000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00007100
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
0: 0x00000000 -> 0x0000030f
0: 0x00000410 -> 0x00000900
0: 0x00000a01 -> 0x00007100
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 28188
Kernel command line: mtdparts=ifx_nand:0x80000@0x0(U-Boot),-@0x80000(ubi) ubi.mtd=ubi root=mtd:rootfs ip=192.168.1.1:192.168.1.3::::eth0:on console=ttyS0,115200 ethaddr=00:02:61:BA:50:80 ID_ProductID=HG2381 ID_MAC_0=00:02:61:BA:50:80 ID_MAC_1=00:02:61:BA:50:81 ID_MAC_2=00:02:61:BA:50:82 ID_MAC_3=00:02:61:BA:50:83 ID_MAC_4=00:02:61:BA:50:84 ID_MAC_5=00:02:61:BA:50:85 ID_MAC_6=00:02:61:BA:50:86 ID_MAC_7=00:02:61:BA:50:87 panic=1 UBOOT_VERSION="02_07_00_42" UBOOT_DATETIME="Mar 9 2015 - 22:07:37" RESET_CAUSE=unknown boot_cond=0 vpe1_load_addr=0x87f00000 vpe1_mem=1M wlanm=126 mem=0x40f000 mem=0x5f0000@0x410000 mem=0x67ff000@0xa01000
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=0005f4f0
Readback ErrCtl register=0005f4f0
Memory: 108696k/113656k available (3048k kernel code, 4784k reserved, 1119k data, 192k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:185
Lantiq ICU driver, version 3.0.1, (c) 2001-2013 Lantiq Deutschland GmbH
console [ttyS0] enabled
Calibrating delay loop... 478.41 BogoMIPS (lpj=2392064)
Security Framework initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
| |
~|~~~ | | ,~~~~. | ,~~~~.
| | | | | | | |
`~~` ' ' `~~~ ; ' ' '
~~~~
Home gateway product HG2381
Registered platform device tilgin-hg-ltq-nand:-1
Registered platform device tilgin-hg-ltq-gphy:-1
Registered platform device ar10-ssi0:-1
Registered platform device ar10-mdio:-1
Registered platform device danube-ledc-gpo:-1
Registered platform device on-off-sw-gpio:0
Registered platform device on-off-sw-gpio:2
Registered platform device on-off-sw-gpio:3
Registered platform device on-off-sw-gpio:4
Registered platform device leds-gpio:5
Registered platform device ar10-usif:-1
Registered platform device on-off-sw-gpio:1
Registered platform device cosic-catiq:-1
!!!!!!! WAVE400 system registeration on AHB
MTLK_MEM_BAR0_START is 7e00000
MTLK_MEM_BAR0_END is 7efffff
MTLK_MEM_BAR1_START is 1a000000
MTLK_MEM_BAR1_END is 1a7fffff
MTLK_WIRELESS_IRQ_IN_INDEX is 18
Lantiq Danube/Twinpass/Vinax GPIO
danube-gpio danube-gpio.0: gpio_base=0
danube-gpio danube-gpio.1: gpio_base=16
danube-gpio danube-gpio.2: gpio_base=32
Lantiq Danube/Twinpass/Vinax LED controller GPO
danube-ledc-gpo danube-ledc-gpo: gpio_base=64
On/off switch class
GPIO-based on/off switch with auto-off
Registered on/off switch device: slic_reset
Registered on/off switch device: usb_power
Registered on/off switch device: pcie0_rst
Registered on/off switch device: pcie2_rst
Registered on/off switch device: cosic_reset
ifx_pcie_wait_phy_link_up port 0 timeout
ifx_pcie_wait_phy_link_up port 0 timeout
ifx_pcie_wait_phy_link_up port 0 timeout
ifx_pcie_wait_phy_link_up port 0 timeout
ifx_pcie_wait_phy_link_up port 0 timeout
pcie_rc_initialize port 0 link up failed!!!!!
on/off switch 'pcie1_rst' not found
Lantiq PCIe Root Complex driver, version 2.0.0, (c) 2001-2013 Lantiq Deutschland GmbH
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ifx_pcie_rc_class_early_fixup port 2: fixed pcie host bridge to pci-pci bridge
pci 0000:00:00.0: PME# supported from D0 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:01:00.0: PME# supported from D0 D1 D3hot
pci 0000:01:00.0: PME# disabled
pci 0000:00:00.0: PCI bridge, secondary bus 0000:01
pci 0000:00:00.0: IO window: disabled
pci 0000:00:00.0: MEM window: 0x1b000000-0x1b1fffff
pci 0000:00:00.0: PREFETCH window: 0x1b200000-0x1b2fffff
NET: Registered protocol family 8
NET: Registered protocol family 20
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
gptu: totally 6 16-bit timers/counters
gptu: misc_register on minor 63
gptu: succeeded to request irq 118
gptu: succeeded to request irq 119
gptu: succeeded to request irq 120
gptu: succeeded to request irq 121
gptu: succeeded to request irq 122
gptu: succeeded to request irq 123
IFX DMA driver, version ifxmips_dma_core.c:v1.1.5
,(c)2009 Infineon Technologies AG
Lantiq CGU driver, version 1.1.38, (c) 2001-2013 Lantiq Deutschland GmbH
vpe1_mem = 100000
Wired TLB entries for Linux read_c0_wired() = 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Squashfs 2.2-r2 (released 2005/09/08) (C) 2002-2005 Phillip Lougher
msgmni has been set to 212
alg: No test for stdrng (krng)
Infineon Technologies DEU driver version 2.0.0
Lantiq Technologies DEU Driver version 2.0.0
alg: cipher: setkey failed on test 5 for ifxdeu-des: flags=100
alg: skcipher: setkey failed on test 5 for ifxdeu-ecb(des): flags=100
alg: cipher: setkey failed on test 1 for ifxdeu-des3_ede: flags=200000
IFX DEU DES initialized (multiblock).
Lantiq Technologies DEU Driver version 2.0.0
IFX DEU AES initialized (multiblock).
Infineon Technologies DEU driver version 2.0.0
IFX DEU ARC4 initialized (multiblock).
Infineon Technologies DEU driver version 2.0.0
IFX DEU SHA1 initialized.
Infineon Technologies DEU driver version 2.0.0
IFX DEU MD5 initialized.
Infineon Technologies DEU driver version 2.0.0
Key length exceeds maximum key length
alg: hash: setkey failed on test 5 for ifxdeu-sha1_hmac: ret=22
IFX DEU SHA1_HMAC initialized.
Infineon Technologies DEU driver version 2.0.0
alg: hash: setkey failed on test 5 for ifxdeu-md5_hmac: ret=22
IFX DEU MD5_HMAC initialized.
DEU driver initialization complete!
io scheduler noop registered (default)
I/O Memory GPIO Emulation
ifx_pmu_init: Major 253
Lantiq PMU driver, version 1.2.6, (c) 2001-2013 Lantiq Deutschland GmbH
Lantiq GPIO driver, version 1.3.2, (c) 2001-2013 Lantiq Deutschland GmbH
Infineon Technologies RCU driver version 1.1.1
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: Lantiq GPHY kthread created
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: gpio_base=96
Tilgin initialization is OK
ttyS0 at MMIO 0xbe100c00 (irq = 105) is a IFX_ASC
Lantiq ASC (UART) driver, version 1.0.14, (c) 2001-2013 Lantiq Deutschland GmbH
loop: module loaded
slram: not enough parameters.
Tilgin HG Lantiq NAND driver
ifx_nand_init
Probe for NAND flash...
Checking if ONFI complient
NAND device: Manufacturer ID: 0xc2, Chip ID: 0xf1 (Macronix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 44 at 0x000000580000
Bad eraseblock 1020 at 0x000007f80000
2 cmdlinepart partitions found on MTD device ifx_nand
Creating 2 MTD partitions on "ifx_nand":
0x000000000000-0x000000080000 : "U-Boot"
0x000000080000-0x000008000000 : "ubi"
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: max. sequence number: 13131
UBI: attached mtd1 to ubi0
UBI: MTD device name: "ubi"
UBI: MTD device size: 127 MiB
UBI: number of good PEBs: 1018
UBI: number of bad PEBs: 2
UBI: number of corrupted PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 256
UBI: number of internal volumes: 1
UBI: number of user volumes: 13
UBI: available PEBs: 689
UBI: total number of reserved PEBs: 329
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 268/13
UBI: image sequence number: 1377090127
UBI: background thread "ubi_bgt0d" started, PID 242
Lantiq SSC driver, version 2.4.2, (c) 2001-2013 Lantiq Deutschland GmbH
Lantiq USIF-SPI driver, version 1.3.2, (c) 2001-2013 Lantiq Deutschland GmbH
PPP generic driver version 2.4.2
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
Lantiq PCIe EP driver, version 1.0.1, (c) 2001-2013 Lantiq Deutschland GmbH
IFX SWITCH API, Version 1.2.6
SWAPI: Registered character device [switch_api] with major no [81]
Switch API: PCE MicroCode loaded !!
GPHY FW load for ARX300 !!
Lantiq GPHY #0 in GE mode
Lantiq GPHY #1 in GE mode
Lantiq GPHY #2 in GE mode
Lantiq GPHY #3 in GE mode
IFX GPHY driver version ifxmips_xrx_gphy: V1.1.1 - Firmware: GPHY0 GE 8435, GPHY1 GE 8435, GPHY2 GE 8435, GPHY3 GE 8435
res = 86d2e400
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: input-gpio-polled as /devices/platform/input-gpio-polled.0/input/input0
Lantiq Danube/Twinpass/Vinax Watchdog
danube-wdt danube-wdt: Starting Watchdog Timer
Start watchdog with maximum timeout 44 seconds
Registered led device: 1:green
Registered led device: 3:green
Registered led device: 3:red
Registered led device: 4:green
Registered led device: 4:red
Registered led device: 5:green
Registered led device: 5:red
Registered led device: 6:red
Registered led device: 6:green
Registered led device: 7:red
Registered led device: 7:green
Registered led device: 8:red
Registered led device: 8:green
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1701 buckets, 6804 max)
ctnetlink v0.93: registering with nfnetlink.
nf_ct_ipsec_ike: registering helper for pf: 2 port: 500
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
Ebtables v2.0 registered
KOAM is loaded successfully.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: switch port #1 PHY ID is 0x1
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: switch port #2 PHY ID is 0x2
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: switch port #3 PHY ID is 0x3
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: switch port #4 PHY ID is 0x4
tilgin-hg-ltq-gphy tilgin-hg-ltq-gphy: switch port #5 PHY ID is 0x5
Firmware version for port 1 is 435 - may be it's timeto enable power saving?
Firmware version for port 2 is 435 - may be it's timeto enable power saving?
Firmware version for port 3 is 435 - may be it's timeto enable power saving?
Firmware version for port 4 is 435 - may be it's timeto enable power saving?
Firmware version for port 5 is 435 - may be it's timeto enable power saving?
Use /dev/mtdblock2 instead of mtd:rootfs
VFS: Mounted root (squashfs_old filesystem) readonly on device 31:2.
Freeing unused kernel memory: 192k freed
init started: BusyBox v1.21.1 (2016-12-01 22:27:29 CET)
starting pid 311, tty '': '/etc/init.d/rcS'
real 0m 0.02s
user 0m 0.00s
sys 0m 0.02s
crm-cleanup: running...
iptables v1.4.6: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.6: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
grep: /proc/597/cmdline: No such file or directory
grep: /proc/613/cmdline: No such file or directory
All modules unloaded
crm-cleanup: done
pmem-name2path: Failed to map MTD device 'Environment2'
pmem-read.squashfs: Restoring /var/log from Log (/dev/mtd/4)
mount: mounting /dev/mtdblock/4 on /tmp/pmem.Vp3p1I failed: Invalid argument
mount: mounting /dev/mtdblock/8 on /tmp/pmem.9WEFal failed: Invalid argument
cat: can't open '/tmp/pmem.9WEFal/VERSION': No such file or directory
pmem-read.squashfs: Failed to read Config-A version file
pmem-name2path: Failed to map MTD device 'Config-B'
pmem-read.squashfs: Restoring /var/etc from Config-A (/dev/mtd/8)
mount: mounting /dev/mtdblock/8 on /tmp/pmem.9WEFal failed: Invalid argument
pmem-read.squashfs: Restoring /tmp/pmem.uYBBhB from Config-C (/dev/mtd/3)
mount: mounting /dev/mtdblock/3 on /tmp/pmem.9WEFal failed: Invalid argument
pmem-name2path: Failed to map MTD device 'Environment2'
pmem-name2path: Failed to map MTD device 'rootfs-ram'
pmem-name2path: Failed to map MTD device 'appfs-ram'
pmem-read.squashfs: Restoring /var/miscA from Misc-A (/dev/mtd/14)
mount: mounting /dev/mtdblock/14 on /tmp/pmem.NG6QwY failed: Invalid argument
pmem-name2path: Failed to map MTD device 'Misc-B'
pmem-name2path: Failed to map MTD device 'Config-B'
Jan 1 00:00:16 C Dispatcher: Init module logger OK