Problem with kernel panic

131 views
Skip to first unread message

Konstantinos Aravanis

unread,
Aug 28, 2012, 8:06:18 AM8/28/12
to biffe...@googlegroups.com, Στράτος Παρασκευαΐδης
Hello,

I have ordered some new biffers but I have the following problem when I am flashing them with an image that it is running on several older biffers.

BIFFBOOT v3.3 00B3F6060071 32-bit Loader by bifferos (c) 2010
Redistribution prohibited, all rights reserved.
Press <ESC>
NIC up in: 1180 mS
Link up
Checking NIC
Booting...
00200000 loaded from flash.
Booting Linux with: console=uart,io,0x3f8 init=/etc/preinit rootfstype=squashfs,jffs2
Linux version 2.6.37.6 (devreports@stage) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #3 Tue Aug 28 14:18:18 EEST 2012
BIOS-provided physical RAM map:
 BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
Early serial console at I/O port 0x3f8 (options '115200')
bootconsole [uart0] enabled
Notice: NX (Execute Disable) protection missing in CPU or disabled in BIOS!
last_pfn = 0x2000 max_arch_pfn = 0x100000
init_memory_mapping: 0000000000000000-0000000002000000
32MB LOWMEM available.
  mapped low ram: 0 - 02000000
  low ram: 0 - 02000000
Zone PFN ranges:
  DMA      0x00000010 -> 0x00001000
  Normal   0x00001000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000010 -> 0x0000009f
    0: 0x00000100 -> 0x00002000
Allocating PCI resources starting at 2000000 (gap: 2000000:fe000000)
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8015
Kernel command line: console=uart,io,0x3f8 init=/etc/preinit rootfstype=squashfs,jffs2
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Initializing CPU#0
Memory: 30020k/32768k available (1351k kernel code, 2296k reserved, 360k data, 136k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfffe4000 - 0xfffff000   ( 108 kB)
    vmalloc : 0xc2800000 - 0xfffe2000   ( 983 MB)
    lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
      .init : 0xc02ac000 - 0xc02ce000   ( 136 kB)
      .data : 0xc0251c65 - 0xc02abfa0   ( 360 kB)
      .text : 0xc0100000 - 0xc0251c65   (1351 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
NR_IRQS:16
I-pipe 2.9-00: pipeline enabled.
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Calibrating delay loop... 49.02 BogoMIPS (lpj=98048)
pid_max: default: 4096 minimum: 301
Mount-cache hash table entries: 512
Performance Events: 
CPU: RDC R3210/R3211
Checking 'hlt' instruction... OK.
NET: Registered protocol family 16
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
PCI: Probing PCI hardware
Switching to clocksource pit
pci 0000:00:09.0: BAR 0: assigned [io  0x1000-0x10ff]
pci 0000:00:09.0: BAR 0: set to [io  0x1000-0x10ff] (PCI address [0x1000-0x10ff])
pci 0000:00:09.0: BAR 1: assigned [mem 0x04000000-0x040000ff]
pci 0000:00:09.0: BAR 1: set to [mem 0x04000000-0x040000ff] (PCI address [0x4000000-0x40000ff])
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
platform rtc_cmos: registered platform RTC device (no PNP device found)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
rdc321x-gpio rdc321x-gpio: registering 58 GPIOs
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <gre...@candelatech.com>
All bugs added by David S. Miller <da...@redhat.com>
rdc_flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x00007f Chip ID 0x0022cb
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
3 Bifferboard partitions found on MTD device rdc_flash
Creating 3 MTD partitions on "rdc_flash":
0x000000000000-0x000000200000 : "kernel"
0x000000200000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "rdc_flash"
0x0000007f0000-0x000000800000 : "biffboot"
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing unused kernel memory: 136k freed
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Pid: 1, comm: swapper Not tainted 2.6.37.6 #3
Call Trace:
 [<c024fb30>] ? 0xc024fb30
 [<c02ac5c0>] ? 0xc02ac5c0
 [<c010108b>] ? 0xc010108b
 [<c02ac6bd>] ? 0xc02ac6bd
 [<c0102a66>] ? 0xc0102a66

The file /etc/preinit is included on the image and it is executable too.

Do you have any idea which could be the problem?

Thanks in advance,
Kostas

--
Konstantinos Aravanis // sbosx
My site & blog: http://AravanisKostas.com
http://python.org.gr - Ελληνική Κοινότητα Προγραμματιστών Python

Andrew Scheller

unread,
Aug 28, 2012, 6:32:20 PM8/28/12
to biffe...@googlegroups.com
> I have ordered some new biffers but I have the following problem when I am
> flashing them with an image that it is running on several older biffers.
[snip]
> The file /etc/preinit is included on the image and it is executable too.
>
> Do you have any idea which could be the problem?

I've not looked at the kernel log in much detail, but I wonder if this
could be the classic case of the kernel cmndline (or other boot
parameters) being set wrong?
Different versions of biffboot use different kernel cmndlines...
https://sites.google.com/site/bifferboard/Home/bootloader/changelog

Andrew

Konstantinos Aravanis

unread,
Aug 29, 2012, 5:48:44 AM8/29/12
to biffe...@googlegroups.com
Hi,

I used to write on cmndline
console=uart,io,0x3f8 rootfstype=squashfs,jffs2

Now I have written:
console=uart,io,0x3f8 init=/etc/preinit rootfstype=squashfs,jffs2

And as you can see, the log the kernel log says:
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Pid: 1, comm: swapper Not tainted 2.6.37.6 #3
Call Trace:
 [<c024fb30>] ? 0xc024fb30
 [<c02ac5c0>] ? 0xc02ac5c0
 [<c010108b>] ? 0xc010108b
 [<c02ac6bd>] ? 0xc02ac6bd
 [<c0102a66>] ? 0xc0102a66

The file /etc/preinit is included on the image and it is executable too.

Kostas 

-- 
Konstantinos Aravanis // sbosx
My site & blog: http://AravanisKostas.com
http://python.org.gr - Ελληνική Κοινότητα Προγραμματιστών Python


Andrew

--
To unsubscribe send email to bifferboard...@googlegroups.com

Andrew Scheller

unread,
Aug 29, 2012, 6:12:57 AM8/29/12
to biffe...@googlegroups.com
And you say the same flash image definitely works fine on earlier
bifferboards (i.e. bifferboards with an earlier version of BiffBoot)?
Might not be the cause of your problem, but ISTR this same error
message appearing when one of the programs that preinit tried to
execute wasn't marked as executable.
What happens when you change the cmndline to init=/bin/sh ?
I guess the other thing to check is your kernelmax setting - if it's
'wrong' for your flash image Biffboot will pass the wrong MTD map to
the kernel, and the kernel will be unable to mount the rootfs.

Lurch

Konstantinos Aravanis

unread,
Aug 29, 2012, 7:14:17 AM8/29/12
to biffe...@googlegroups.com, Stratos Paraskevaidis
Thank you Andrew...

Everything was the same except from the kernelmax.

On the old biffers was 0x0010 and on the new one was 0x0020

:-)

Kostas
Reply all
Reply to author
Forward
0 new messages