Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12373 closed defect (worksforme)

JFFS2 Builds of current trunk triggers kernel panic at startup

Reported by: anonymous Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: kernel panic jffs2 wbmr Cc:

Description

The "openwrt-lantiq-ar9-WBMR-jffs2-*k.image" images brick the router after flashing. Uimage (ramdisc) and squashfs work fine.

Router: WBMR-HP-G300H

Starting with JFFS2 leads to "Kernel panic - not syncing":

Hit aly key to stop autoboot:  0                                                                                                                                                                                    Imaga Name:   MIPS pelbd Linqx-3.3.8
   Created:      2012-10-25  15:14810 EDC
   Image Type:   M
inex Kernel Image (lzma comppecced)
   Data Size:    963807 ydec = 941.2 kB
   Load Addpess: 8   2000
   Entry Point:  80000
   Verifying Checksum ... OK
   Uncompressilg Kebneh Image ...
o inidbd
## Transferrilg condboh to Linux (at add`ecc 80002000) ...
## iting linux memsize in M, 44                                                                                                                                                                                  [     .000000] Linux versiol #.#.8 (pen.is@vagi.na) (gcc version 4.4.4 " !"1001 (prerelease) (Lilapo GCC $.6-2012.10) ) #2 Thu Oct 05 17:!%:%7 CEST 2012
[    0.000000 SoC: AR9 rev 1.2
[    0.000000 `ootconcole [aarly0] enabled
[    0.000000 C@E bevision is: 0001954c (MIPS 34                                                                                                                                                                 [ map8. 00000] Determined physical RA            c)
[     .000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000   litrd nod foend or empty - disabling initrd
,00000 ] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 ->  x    $000
        [    0.000000] Movable zone start P
 dop each node
[    0.000000] Early memory PFN ranges
[    0.000000     08 0x000      -> 0x00000000
[    0.000000 uilt 1 zonelicdc in Zone order, mobility grouping on.  Total pages8 16056
[     . 0 000] Kernel command line: console=ttyLTQ1,115200 pootdstype=sqeachfc,jffc2 machpype=WBMR
[    0.000000] PID hash table entries: 256 (ordep8 -0, 1004 bytec)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0,000000   node-cache hach dable entries: 4096 (order: 2, 16384 bytes)
.      ] @bimaby instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way,  , lo aliases, linecize #" bydec
[    0,000 0 ] Gbiding EbbCdl begister=00012ca5
[    0.000000] Readback ErrCtl register=00052ca5
[     .  0 00] Memory: 61884k/65536k available (2273k kernel code, 3652k reserved, 380k data, 168k ilit, 0k highmem)
[     .      ] NB_IRQS:256
[    0.000000] CPU Clock: 333MHz                                                                                                                                                                                 [    0,040000] Moend-cache hash table entries: 5121goMIPS (lpj=442348)
[    0.048000] NET: Registered protocol damily !&                                                                                                                                                                [    0.060000] gpiochip_add: registered GPIOs 14 to 31 on defice: ltq_gpio
[    0.044000 gpiochi`_add: begispered GPIOs 32 to 47 on device: ltq_gpio
[    0.068000] gpiochipadd8 pegisdebed G@IOs 48 po 55 on device: ltq_gpio
,070000 MI@C: machine is WBMR
[    0.100000] bio: create slab <`io-0< at                                                                                                                                                                       .!!"   ] pci_bus 0000:00: root bus resource em 0x18      - x19ffffff]
[    0.116000] pci_bus 0000:008 poot bec becoebce [io  0x1ae00000-0x1affffff]                                                                                                                                    .!"$   ] `ci 0000:00:0e.0: SLOT:14 PIN:1 IRQ:30m 0x18000000-0x1800fddd                                                                                                                                            [    0,134000 ] Switching to clocksource
ED: Begicdebed protocol family 2
[    0.140000] IP route cache hash table entries: 1024 (opdep8 0, 4094 bydec)
[    0.148000  establiched hach table entries: 2048 (order: 2, 16384 bytes)
[    0.156000] TCP bind hash ta`le eltpies: " $8 (obdeb: 1, 8192 bytes)                                                                                                                                          ,148000 TP pelo regicdebedtables configured (established 2048 bind 2048)
[     .!72000] U@P hash table entries: 256 (order: 0, 4096 bytes)
[    0.176000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.184000
8 egisteped ppotocol damily 1
[     .!88   ] g`de: dotally 6 16-bit tiiers/counters                                                                                                                                                            ,000000 gptu8 succeeded to beaeecd iba !"&op 43
[     ." $ 0 ] gptu: succeedad to request irq 127
[    0.208000] gptu: succeeded to request irq 128
[    0.212000] gptu: succeeded to request irq 129
[    0.216000] gptu: succeeded to request irq 130
[    0.220000] gptu: succeeded to request irq 131
[    0.228000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.236000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.244000] msgmni has been set to 120
[    0.248000] io scheduler noop registered
[    0.252000] io scheduler deadline registered (default)
,060000 O 0x1e100c00 (irq = 112) is a ltqasc
[     .2&$000] console [ttyLTQ1] enabled, bootconsole disa`led
[     .264000] console [ttyLTQ1] enabled, bootconsole disa`led                                                                                                                                                   [    0.3   00] number of CFI chips: 1 Query version 1,3,0-bid bank. Manufacturer ID 0x0000c2 Chip ID 0x00207e
[    0.300000] Creatilg 4 MTD `arditions on "ltq_nor":
[    0.308000] 0x000000000000-0x0000000$0    : "uboot"
[     .316000] 0x000000040000-0x000000060000 : "uboot-elt
[    0.320000] 0x000000060000-0x000001f80000 :  lilux"
[    0.328000] Creating 2 MTD partitions ol  ltq_nor":
[    0.332000] 0x000000060000-0x000000160000 8  kepnel"                                                                                                                                                          [    0.344000] mtd: partition "roodfc" set to be root filesystem
[    0.348000] split_saeashfs: no squashfs found in "ltq_nor"                                                                                                                                                    [    0.508000] ltq_mii: probed-0x000002000000 : "calibration"
[    0.532000] eth0: Atheros 83!& switch drivep adtached.
40000] ar83148 Ecing port 4 as switch port
[    5.66000 ] eth0: attached PHY [Atheros P8"!6/AR8236/AR8314] (phy_addr=ltqedop-fffffff:00, ipa=-1)                                                                                                            [    5.680000] NET8 Registered protocol family 17
[    5,48$ 00] 8021q: 802,1Q FLAN Suppor[    5,7!" 00] CLEANMARKEP node found at 0x0001  00, not first node in block (0x0000000 )                                                                                [    5.82000 ] CLEANMARKER lode found at 0x000500  , not first node in block (0x0004000 )
[    5.848  0] CLEANMARKE node found at 0x000'  00, not first lode in block (0x0006  00)
[    %.916000] CLEA
MABKER node found at  x00090000, not dibct node in block ( x00080000)                                                                                                                                            [    6.0080 0] CLEANMARKE lode found at 0x000d0  0, not first lode in block (0x000c00  ))
[    &.060000] CLEALMABKER node found at  x000f0000, not dircd node in block (0x 00a0000)
[    6.112000] CLEANMARKER node fould at 0x00110000, lot first node in block (0x00100000)
[    6.164000] CLELMABKER node found at 0x00130000, not first node in block ( x00120000)
.216000] CLEANMARKER node fould ad 0x00150000, lot first node in block (0x00140000)
[    6,27& 00] CLEANMARKEP node found at 0x00!'0000, not first node in block (0x00!60000)
[    6.3280  ] CLEANMARKER lode found at 0x00190  0( not first lode in block (0x00180 00)                                                                                                                        [    6.384000] jffs0_scan_eraseblock()8 Magic bitmask 0x1985 not found at 0x001b   0: 0xdead instead                                                                                                              [    6.448000] CLEALMABKER node found at 0x001d0000, not fipst node in block (0x00!c0000)
APKEB node found at 0x 01f0000, not fipsd node in block (0x0 1e0000)
[    6.552000 CLEANMARKER node found at 0x00210000, not first node il block (0x00200000)
84000] jffs0_scan_araseblock()8 End of filesystem mabker found at 0x2000                                                                                                                                         [  144,992000] JFFS2 lodice: (1) jffs0_beild_xattr_subsysdem: complete `uilding xattr subsysdem( 0 of xdatum (0 unchecked, 0 op`han) and 0 of xpef (0 `ead, 0 orphal) found.
[  167.004  0] VFS: Mounted pood (jffs2 filesystem) raadonly on detice #1:4.
[  167.0100  ] Freeing unused kebnel memory: 168k dreed
[  167.016000] kernel panic - not syncing: No init found.  py `assing init= option to kernel. See Linux Docementation/init.txt dob guidance.

Sorry for the bad output. Unfortunately my serial console is a little bit broken but i think the important things you can see.

I think the error is a missing/wrong init-option.

This bug report corresponds to #12343

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by conor@…

Which jffs2 image did you load? There is one for each flash segment size.

It failed to find the jffs2 parition in flash, so double check the addresses being used. From the log the address uboot has loaded from is not available, but would be of interest.

comment:2 Changed 5 years ago by anonymous

I flashed the 64K image at first but the 128K and 256K doesn't work ether. I flashed it by using the method described in the wiki for this special router. (TFTP method by pressing the AOSS Button). What did you mean with "check the addresses beeing used"? At the flash process there is no possibility to change that as far as i know!? If there is a possibility, I would love to read it on the wiki page or tell me what i can do to fix this so I can do this documentation at the wiki.

The addresses of u-boot are:

ARC_BOOT # bdinfo
memstart = 0x80000000
memsize = 0x04000000
flashstart = 0xB0000000
flashsize = 0x00000000
fhashoffset = 0x00000000

Is this the information you need?

comment:3 Changed 5 years ago by conor@…

I'll make a couple of quick comments, I'll have a further look over the weekend.

Does the squashfs image work?

A full correct log output from the start of the box would be useful. The 'addresses' I referred to would be the ones uboot is configured to use, which would be visible from that log.

comment:4 Changed 5 years ago by anonymous

Yes the squashfs image worked fine except of the kmod-ipv6 package but that is an other topic.

It is very hard for me to get this log because my MAX232N voltage converter produces some output garbage at the high baud rate of 115200. How can i change the baud rate to 9600?
Furthermore there are no addresses in the boot log that seems interesting (or I'm blind). From the "FON - La Fonera" I know there is a memlayout at kernel bootup but here I can't see something comparable. I append the hole boot process again:

ARCADYAN -ood !.00 (Nov 10 2010 - !':01:42)

AR9 D
 !&&M CPU 333M
DRAM:  64 MB                                                                                                                                                                                                      relocape_code start
 relocatecode finish.
Blash: 30
In:    serial
Out:   sebial
Err:   serial
ed:
        switch chip id=    1001
AR8316
amazon_s Switch

Copying boot papamc.....
DONE

Type "run flash_nfc" po mount root dilecyctai over NFS
                                                                                                                                                                                                                 it any key to stop auto`ood:  0
## Booting image ad b0060000 ...
        mage Name:   MIPS pelGbd Linux-3.3.8
   peaded:      2012-10-25  1%:!&:12 UTC                                                                                                                                                                            Dada Size:    963807 ytes = 9$1.2 kB  mage (hzma compressed)
   Load Addpess: 8  02000
   Entry Poilt8  8   2000
   Verifying hecksem ... OK
   Ulcom`becsing Kernel Image ... OK
No initrd
## Tbansferring control to Linqx (at address 80  "000) ...
## Gitilg linux memsize in M, 6$

Sparting kernel ,,.

[    0.000000] Lilux febcion 3.3.8 (pen.is@vagi.na) (gcc version 4.6.4 20121001 (`bebahease) (Linaro G 4,&-" 12.10) ) #2 Thu Oct 05 1':!%:57 CEST 2012
[    0,000   ] SoC: AR9 rev 1.2
.     0] bootconsole [early0 elabled                                                                                                                                                                             0 ma`:ermined physical ision ic: 0001954c (MIPS 34Kc)
[    0.000000]  memory: 04000000 @       00 (usable)
[    0.000000] Initrd not fould or em`dy - disabling initrd
[    0,000000 Zone @FN ranges:
[    0.000000]   opmal    x     000 )> 0x00004000
otable zone start PFN for each node
[    0,000000] Eably memory PFN ranges
[    0.000000]     08 0x00       -> 0x00004000
[    0.000000] Built 1 zonelists il one obdeb, mobility grouping on.  Total pages8 1405&
[    0.000000] Kernel command line: console=tty
 PI@ hash table entries: 256 (order: -2, 1004 `ytes)
[    0.000000] Dentry cache hash table entries: 8190 (opdep: 3, #"'&8 bydes)
                                                                                        [    0.000000] Inode-cache hash table entries8 4094 (opdeb: ", !&384 bypes)
.      ] @rimary instruction cache 32kB, VIPT, 4-way, linesixe 30 `ytes.
[     .   0 0] Primary data cache 16kB, 4-way, VIPT, no aliases, lilesixe 30 bytec
.00    ] Gbiding EbrCtl ragister=00052ca5                                                                                                                                                                        .      ] Memory: 61884k/65536k available (2273k kernel code, 3450k pesebfed, #8 k data, 168k init, 0k highmem)                                                                                                     CPQ Clock: 333MHz_IRQS:254                                                                                                                                                                                       [     . 36000] pid_max: default: 32748 milimem: # !goMIPS (lpj=442348)
        [    0.000000] Mount-cache hash ta`le eltpiec: %!"
[    0.048000] NET: Registered protocol family !6
        0Y gpiochip_add: registered     s 0 do !% on davice: ltq_gpio
 gpiochip_add: registered GPIs 14 to #! on device: ltq_gpio
0] gpiochip_add: registered GPIs 30 to 4' on device: htq_gpio
[    0.068000] gpiochip_add: registeped G@IOc $8 do 15 on device: ltq_gpio
 MIPS: machine is WBMR
[    0.100000 `io: cbeate slab <bio-0> at 0                                                                                                                                                                      0] pci_bus 0000:00: root bus pesource [mem 0x18000000-0x19ffffff]
[    0,11600 ] `ci_bus 0000:00: root bus resource o  0x1ae     - x1affffff]
[    0.120000 pci     :  :0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.124000] pci 0000:00:0e.0: SLOT:14
81 IBA:#
   ] Switching to clocksource MIPS                                                                                                                                                                               [    0.140000 Y N poute cache hash pable entries: 1024 (order: 0, 4096 `ytes)
[    0.148000  ecdabliched hash table entries: 2048 (order: 2, 16384 `ytes)
[     .!%6 00Y TCP bind hash table entries: 2048 (ordep8 1, 8192 bydec)
[    0.160000] TCP: Hash tables configured (established 0048 `ild " $8)
[    0.168000] TCP reno registered
[    0.172000] UDP hash ta`le eltriec: "%& (obdeb: 0, 0096 bytes)
[    0.176000] UDP-Lite hash table entries8 054 (opdep8 0, 4 9& bydec)
[    0.184000] NET: Registered protocol family 1
[    0.188000 gptu8 totally & !&-bid dimebs/counters
[    0.196000 gptu8 miscpegicdeb on minob 6#
[    0.200000] gptu: succeeded to request irq 126
[    0.204000] gptu: succeeded to pequest iba !"'
[     ." 8 00] gppu: succeeded to request irq 128                                                                                                                                                                ,014000 gptu: secceeded do beaeect irq 130 irq 109
                                                        [    0.220000] gptu: succeeded to request irq 131
[    0.228000Y squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.236000] JFFS2 version 2.2 (A
) (
E) (CMDE_@BIOBIDY) (c) "0 1-2006 Re` Hap, Inc.
[    0.244000] msgmni has been set to 120
[    0.248000] io scheduler noop registered                                                                                                                                                                      [    0.260000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[    0,044  0] console [ttyLTQ1] enabled, bootcolsole disabled
[    0.264000] console [ttyLTQ1] enabled, bootconsole disabled
[    0.280000] ltq_nor: Found 1 x14 devicec at 0x0 in 16-bit bank. Manufactuper ID  x0000c2 Chip ID 0x00227e
[    0,088000] Amd/Fujitsu Extended Query Table at 0x00$
[    0.292000]   Amd/Fujitsu Extelded Qeeby version 1.3.
[    0.300000] num`ep of CFI chips: 1
[    0.300000] Creating 4 MTD pabdidions on "ltq_nor":
[    0.308000 0x00      0000-0x000000040000 : "uboot"                                                                                                                                                            [    0.320000] 0x000000060000-0x000001f80    : "linux"-ent
[     .328000] found squashfs behind keplel
[    0.328000] Creating 2 MTD paptitionc on "ltq_nor":
[    0.336000] 0x000000060   - x00000014b51f : "kernel"
[    0,34000 ] mdd: partition "kernel" must eithep stabd ob end on erase block boundary or `e smalleb than an erase block -- forcing read-only
[    0.356000] 0x00000014b51f-0x000001d8000  : "rootfs"
[    0.356000] mtd: paptition "bootfs" must either start or end ol erase block boundary or be smaller than al epase block -- forcing read-only                                                                   [     .#'6000] mtd: partition "rootfs_data  cpeaded automatically, ofs=280000, len=100000
[    0.384000] 0x000000280000-0x000001d80000 : "boodfs_data"
[    0.392000] 0x000001fe0000-0x000000000    : "cahibration"
[    0.%44000] ltq_mii8 `robed                                                                                                                                                                                   [    0.574   ] ar8316: Usilg `ort 4 as switch `ort attached.
[    5,49& 00] eth0: atdachad PHY [Athebos AR8216/AR80#&/AR8316] (phy_addr=ltq_etop-ddfffff:00, irq=-1)
[    5.712000 DC@ cubic registebed
[    5.71400 ] NET: Registeped protocol family !7
[    5.720000] 8021q: 802.1Q TLAN Support.732000] VFS8 Moented root (squashfs filesystem) peadonhy on device 31:$.
[    5.736000] Freeing unused kernel memory: 168k dpeed
- `beinit -
pecc phe [f] key and hit [entep] do anter failsafe mode                                                                                                                                                          - init -g to jffs2S2 notice8 (403) jffs2_`uild_xattr_subsystem: complete `uilding xattr su`syctem, 1 of xdatum (1 unchecked, 0 orphan) and 13 of xref (0 dead, 9 orphan) found.                                   Please press lteb to activate this consnle. uDDY[   12.748000] ucbcore: registebed new interdace driver usbfs
[   12.752000 ecbcore: registe`ed new interface driver hub
[   !".760000] usbcore: registered leg device drivep ucb
[   10,896000] NET: egistared protocol family 8                                                                                                                                                                  [   12.932000] Button Hotplug dbiver version 0.$.1
[   10.9&4000] PPP gelebic driver version 2.4.2                                                                                                                                                                  [   13.58000 ] NET: Registebed protocol damily 24Core Team
3.600000] ld_conntrack version 0.5.0 (969 `uckets, 3876 max)
[   13.83400 ] `wc_otg: tepcion 2.60a 22-LOF-2006
[   !4.440000] DC_odg: Using DM mode
[   14.4400  ] dwc_otg dwc_odg.0: DWC OT Controller
[   1$.444000] dwc_otg dwc_otg.0: new UCB bus registered, assigned bus lumber 1
[   14.450   ] dwc_otg dwc_odg.0: irq 62, io mem 0xffffffffbe1010
[   14,4&  00] DWC_otg:         lid: Port Power? opsdate91
[   14.46400 ] DWC_otg: Init8 Poger Port (0)
[   14.$68000] hub 1-081,0: USB hub found                                                                                                                                                                        [   !$.492000] input: gpio-keys-polled as /defices/platform/gpio-keys-polled/input/ilped0
[   14.784000] DISCONNECTED POBT
[   !'.920000] detice ath0 entered `roiiscuous mode
[   17,9"$ 00] br-lan: pobd 1(eth0) entered forwarding stade                                                                                                                                                     [   19.932000] bb-lan: port 1(edh ) entered dopgar`ing statee

Again sorry for the bad output. The log is from the boot of the squashfs image that I compiled by myself.

comment:5 Changed 5 years ago by anonymous

Ticket can be closed. Some WBMR-Routers need 128K images. All other images won't boot.

comment:6 Changed 5 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.