New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#2226 - zyxel P-2812HNU-F1 initramfs has been broken with LZMA: uncompress or overwrite error 7 since R47026 #7081
Comments
wvdakker: Also here the same case. Can the priority rise? |
Hauke: You could try to set the loadaddr in U-Boot to a higher address. It looks like the kernel located at 0x81000000 gets overwritten when it gets unpacked. |
wvdakker: Changed the loader address. LZMA: uncompress or overwrite error 7 - must RESET b However if I use my custom build the router will boot ok. |
Mafketel: ..... always copy text before pressing send... maybe your custom build is a bit smaller. do you have a log? since there is 128mb of memory could you try or even 32mb jump my test modem is still in box after move and while working at home I am not trying this on the working modem even if I should be able to make it work again later. |
wvdakker: My log is exactly the same as topic starter except ofcourse for the loading address My custombuild is 7.7MB against 6.2Mb of the original (distributed) image. Just to be clear (and perhaps I have the open a different bug) Hope you can unbox your modem. There is also another bug for which I can use help (#3829(. |
Mafketel: ps I am the topic starter interesting you say the log is the same as in your config I had tried back then all of these options and none would actually make a difference. so why does ur cutom compile generate a functional initfsram |
Mafketel:
Supply the following if possible:
zyxel P-2812HNU-F1
since r47026 up to the latest trunk
Steps to reproduce
boot with serial connection stop autoboot, load initramfs, boot from ram get error
Reason it is important
initramfs is needed for a first install.
include/configs/p2812hnufx.h
probably needs:
#define CONFIG_SYS_BOOTM_LEN 0x1000000 /* 16 MB */
like in this commit for a similar modem
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=ea12a80276c0aca680d67515e7f651e2cef3f3ee
"recent" trunk snapshot(I threw away the last compiled version for it still gave the same error)
ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK
U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot
U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx
Board: ZyXEL P-2812HNU-Fx
SoC: Lantiq VRX288 v1.1
CPU: 500 MHz
IO: 250 MHz
BUS: 250 MHz
BOOT: NAND
DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: ltq-eth
Hit any key to stop autoboot: 0
P-2812HNU-Fx # tftpboot openwrt-lantiq-xrx200-zyxel_p-2812hnu-f1-initramfs-kernel.bin
ltq_phy: addr 0, link 1, speed 1000, duplex 1
ltq_phy: addr 1, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
ltq_phy: addr 5, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-lantiq-xrx200-zyxel_p-2812hnu-f1-initramfs-kernel.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################
done
Bytes transferred = 6183929 (5e5bf9 hex)
P-2812HNU-Fx # bootm $fileaddr
Booting kernel from Legacy Image at 81000000 ...
Image Name: MIPS OpenWrt Linux-4.14.103
Created: 2019-02-27 11:12:48 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 6183865 Bytes = 5.9 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b
ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK
U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
last known working version
ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK
U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot
U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx
Board: ZyXEL P-2812HNU-Fx
SoC: Lantiq VRX288 v1.1
CPU: 500 MHz
IO: 250 MHz
BUS: 250 MHz
BOOT: NAND
DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: ltq-eth
Hit any key to stop autoboot: 0
P-2812HNU-Fx # tftpboot openwrt-lantiq-xrx200-P2812HNUF1-uImage-initramfs
ltq_phy: addr 0, link 0, speed 10, duplex 0
ltq_phy: addr 1, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
ltq_phy: addr 5, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-lantiq-xrx200-P2812HNUF1-uImage-initramfs'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
ltq_phy: addr 0, link 1, speed 1000, duplex 1
ltq_phy: addr 1, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 0, speed 10, duplex 0
ltq_phy: addr 5, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-lantiq-xrx200-P2812HNUF1-uImage-initramfs'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##########
1.6 MiB/s
done
Bytes transferred = 4707233 (47d3a1 hex)
P-2812HNU-Fx # bootm $fileaddr
Booting kernel from Legacy Image at 81000000 ...
Image Name: MIPS OpenWrt Linux-3.18.11
Created: 2015-04-25 1:54:58 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 4707169 Bytes = 4.5 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 3.18.11 (sylwek@WRT) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44945) ) #2 Sat Apr 25 03:54:35 CEST 2015
[ 0.000000] SoC: VR9 rev 1.1
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[ 0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[ 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=00021000
[ 0.000000] Readback ErrCtl register=00021000
[ 0.000000] Memory: 121772K/131072K available (3506K kernel code, 149K rwdata, 1036K rodata, 3160K init, 206K bss, 9300K reserved)
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 500MHz
[ 0.000000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[ 0.032000] pid_max: default: 32768 minimum: 301
[ 0.036000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.040000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.044000] pinctrl core: initialized pinctrl subsystem
[ 0.048000] NET: Registered protocol family 16
[ 0.056000] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.060000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[ 0.164000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[ 0.168000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[ 0.172000] MEM 0x0000000018000000..0x0000000019ffffff
[ 0.176000] IO 0x000000001ae00000..0x000000001affffff
[ 0.188000] gpio-stp-xway 1e100bb0.stp: Init done
[ 0.192000] usbcore: registered new interface driver usbfs
[ 0.196000] usbcore: registered new interface driver hub
[ 0.200000] usbcore: registered new device driver usb
[ 0.204000] PCI host bridge to bus 0000:00
[ 0.208000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[ 0.212000] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.216000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.220000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[ 0.224000] Switched to clocksource MIPS
[ 0.228000] NET: Registered protocol family 2
[ 0.232000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.240000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.248000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.252000] TCP: reno registered
[ 0.256000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.268000] NET: Registered protocol family 1
[ 5.124000] gptu: totally 6 16-bit timers/counters
[ 5.132000] gptu: misc_register on minor 63
[ 5.136000] gptu: succeeded to request irq 126
[ 5.140000] gptu: succeeded to request irq 127
[ 5.144000] gptu: succeeded to request irq 128
[ 5.148000] gptu: succeeded to request irq 129
[ 5.152000] gptu: succeeded to request irq 130
[ 5.156000] gptu: succeeded to request irq 131
[ 5.164000] ralink,eeprom ralink_eep: using RT3062.eeprom as eeprom
[ 5.168000] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
[ 5.176000] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 6A60000
[ 5.184000] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 6A60000
[ 5.288000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 5.296000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 5.304000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 5.312000] msgmni has been set to 237
[ 5.316000] io scheduler noop registered
[ 5.320000] io scheduler deadline registered (default)
[ 5.328000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[ 5.336000] console [ttyLTQ0] enabled
[ 5.336000] console [ttyLTQ0] enabled
[ 5.344000] bootconsole [early0] disabled
[ 5.344000] bootconsole [early0] disabled
[ 5.352000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[ 5.352000] nand: Samsung NAND 128MiB 3,3V 8-bit
[ 5.352000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[ 5.368000] Scanning device for bad blocks
[ 5.424000] Bad eraseblock 591 at 0x0000049e0000
[ 5.428000] Bad eraseblock 616 at 0x000004d00000
[ 5.464000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[ 5.468000] Creating 4 MTD partitions on "10000000.nand-parts":
[ 5.476000] 0x000000000000-0x000000040000 : "uboot"
[ 5.480000] 0x000000040000-0x000000060000 : "uboot-env"
[ 5.488000] 0x000000060000-0x000000260000 : "kernel"
[ 5.492000] 0x000000260000-0x000008000000 : "ubi"
[ 5.600000] libphy: lantiq,xrx200-mdio: probed
[ 5.620000] net-xrx200: invalid MAC, using random
[ 5.688000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:00, irq=-1)
[ 5.756000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:01, irq=-1)
[ 5.824000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[ 5.892000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[ 5.960000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:05, irq=-1)
[ 5.968000] wdt 1f8803f0.watchdog: Init done
[ 5.972000] TCP: cubic registered
[ 5.976000] NET: Registered protocol family 17
[ 5.980000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 5.992000] Bridge firewalling registered
[ 5.996000] 8021q: 802.1Q VLAN Support v1.8
[ 6.004000] UBI error: ubi_auto_attach: no valid UBI magic found [ 6.016000] Freeing unused kernel memory: 3160K (8049a000 - 807b0000)
[ 6.036000] init: failed to symlink /tmp -> /var
[ 6.040000] init: Console is alive
[ 6.048000] init: - watchdog -
[ 6.076000] dwc2 1e101000.ifxhcd: requested GPIO 489
[ 6.936000] dwc2 1e101000.ifxhcd: DWC OTG Controller
[ 6.936000] dwc2 1e101000.ifxhcd: new USB bus registered, assigned bus number 1
[ 6.944000] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000
[ 6.952000] dwc2 1e101000.ifxhcd: Hardware does not support descriptor DMA mode -
[ 6.952000] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode.
[ 6.964000] hub 1-0:1.0: USB hub found
[ 6.968000] hub 1-0:1.0: 1 port detected
[ 7.832000] dwc2 1e106000.ifxhcd: DWC OTG Controller
[ 7.832000] dwc2 1e106000.ifxhcd: new USB bus registered, assigned bus number 2
[ 7.840000] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000
[ 7.848000] dwc2 1e106000.ifxhcd: Hardware does not support descriptor DMA mode -
[ 7.848000] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode.
[ 7.860000] hub 2-0:1.0: USB hub found
[ 7.864000] hub 2-0:1.0: 1 port detected
[ 8.048000] init: - preinit -
[ 8.160000] random: procd urandom read with 31 bits of entropy available
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
[ 9.688000] eth0: port 0 got link
[ 11.280000] procd: - early -
[ 11.280000] procd: - watchdog -
[ 11.852000] procd: - ubus -
[ 12.864000] procd: - init -
Please press Enter to activate this console.
[ 13.884000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH
[ 13.908000] NET: Registered protocol family 10
[ 13.916000] NET: Registered protocol family 8
[ 13.920000] NET: Registered protocol family 20
[ 13.932000] PPP generic driver version 2.4.2
[ 13.940000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 13.964000] MEI CPE Driver, Version 1.2.0
[ 13.964000] (c) Copyright 2009, Infineon Technologies AG
MEI CPE - MEI CPE - MEI CPE - MEI CPE
Lantiq CPE API Driver version: DSL CPE API V4.11.4
[ 13.988000]
[ 13.988000] Predefined debug level: 2
[ 14.000000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[ 14.004000] Backport generated by backports.git backports-20150129-0-gdd4a670
[ 14.016000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 14.028000] Infineon Technologies DEU driver version 2.0.0
[ 14.032000] IFX DEU DES initialized (multiblock).
[ 14.036000] IFX DEU AES initialized (multiblock).
[ 14.040000] IFX DEU ARC4 initialized (multiblock).
[ 14.044000] IFX DEU SHA1 initialized.
[ 14.048000] IFX DEU MD5 initialized.
[ 14.052000] IFX DEU SHA1_HMAC initialized.
[ 14.056000] IFX DEU MD5_HMAC initialized.
[ 14.068000] nf_conntrack version 0.5.0 (1952 buckets, 7808 max)
[ 14.092000] NET: Registered protocol family 24
[ 14.116000] xt_time: kernel timezone is -0000
[ 14.140000] cfg80211: Calling CRDA to update world regulatory domain
[ 14.164000] cfg80211: World regulatory domain updated:
[ 14.168000] cfg80211: DFS Master region: unset
[ 14.172000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 14.180000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 14.188000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 14.196000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 14.204000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 14.212000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 14.220000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 14.232000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 14.240000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 14.328000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[ 14.332000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[ 14.336000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[ 14.348000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[ 14.356000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
ioctl ATM_SETESI: No such device
[ 20.824000] PTM 1.0.27 PTM (E1) firmware version 0.30
[ 20.828000] ifxmips_ptm: PTM init succeed
[ 22.760000] device eth0.1 entered promiscuous mode
[ 22.764000] device eth0 entered promiscuous mode
[ 22.776000] br-lan: port 1(eth0.1) entered forwarding state
[ 22.780000] br-lan: port 1(eth0.1) entered forwarding state
[ 24.784000] br-lan: port 1(eth0.1) entered forwarding state
[ 31.808000] random: nonblocking pool is initialized
BusyBox v1.23.2 (2015-04-25 03:40:56 CEST) built-in shell (ash)
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|_____|| |||||___||| |____|
|| W I R E L E S S F R E E D O M
CHAOS CALMER (Bleeding Edge, r45578)
root@OpenWrt:/#
The text was updated successfully, but these errors were encountered: