Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 04:05:14 AM
News: Glomation introduced new wireless ready low cost GESBC-9260S
Pages: [1]
Topic Tools  
Read November 04, 2010, 03:07:16 PM #0
dave101010

"Kernel Panic - not syncing" with custom 2.6.27.4 kernel

Hello all,

I've successfully loaded on our GESBC-9260 kernel version 2.6.27.4 and the 9260rootfs.img from the glomation support page and it all works great.

However, I'm trying to load a custom kernel (again 2.6.27.4). I've followed the instructions from the user manual exactly, which lead to lots of problems as it didn't include the JFFS2 and MTD drivers. I've enabled those and although the kernel loads I'm now stuck with the message...

Code:
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00100000 : "bootloader"
0x00100000-0x00400000 : "kernel"
0x00400000-0x08000000 : "rootfs"
...
List of all partitions:
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

There are lots of kernel configuration options so I'm guessing I've missed something.

Any help is very much appreciated,

Cheers,
Dave
 
Read November 04, 2010, 03:12:03 PM #1
admin

Re: "Kernel Panic - not syncing" with custom 2.6.27.4 kernel

Please post full boot log and U-boot environment variables.  The U-boot environment variables can be displayed with printenv command at U-boot command prompt.
 
Read November 04, 2010, 03:32:02 PM #2
dave101010

Re: "Kernel Panic - not syncing" with custom 2.6.27.4 kernel

Cheers, here they are...

Full boot log:
Code:
RomBOOT
>

U-Boot 1.3.3 (Dec 21 2008 - 10:43:03)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x200000

Reading data from 0x2ff800 -- 100% complete.
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-2.6.27.4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1178960 Bytes =  1.1 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux............................................................................. done, booting the kernel.
Linux version 2.6.27.4 (david@shuttle) (gcc version 4.2.3) #1 Thu Nov 4 20:26:06 GMT 2010
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=atmel_nand:1M(bootloader),3M(kernel),-(rootfs)
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62420KB available (2132K code, 189K data, 112K init)
Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 122
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
ssc ssc.0: Atmel SSC device at 0xc4870000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (00:0c:20:02:0a:5b)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 493 at 0x03da0000
3 cmdlinepart partitions found on MTD device atmel_nand
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00100000 : "bootloader"
0x00100000-0x00400000 : "kernel"
0x00400000-0x08000000 : "rootfs"
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
at91sam9_wdt: invalid timeout (must be between 1 and 16)
TCP cubic registered
NET: Registered protocol family 17
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
List of all partitions:
No filesystem could mount root, tried:  jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

U-Boot environment variables:
Code:
U-Boot> printenv
bootdelay=1
baudrate=115200
ethaddr=00:0c:20:02:0a:5b
ethact=macb0
filesize=E40000
fileaddr=21000000
netmask=255.255.255.0
ipaddr=192.168.0.200
serverip=192.168.0.102
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=atmel_nand:1M(bootloader),3M(kernel),-(rootfs)
bootcmd=nand read.jffs2 0x21000000 0x100000 0x200000; bootm 0x21000000
stdin=serial
stdout=serial
stderr=serial

Environment size: 405/131067 bytes
 
Read November 04, 2010, 08:06:42 PM #3
admin

Re: "Kernel Panic - not syncing" with custom 2.6.27.4 kernel

Please try to re-program the root file system partition.  Everything else looks OK.
 
Read November 05, 2010, 05:45:15 AM #4
dave101010

Re: "Kernel Panic - not syncing" with custom 2.6.27.4 kernel

Solved it...

It was the kernel configuration - I found what I was looking for at: http://www.glomationinc.com/Support/9260/config-2.6.27.4

Looks like I was missing the CONFIG MTD BLKDEVS and CONFIG MTD BLOCK configuration options.

Thanks for your quick replies.

Cheers,
Dave
« Last Edit: November 05, 2010, 10:13:57 AM by dave101010 »
 
Read November 05, 2010, 02:07:38 PM #5
admin

Re: "Kernel Panic - not syncing" with custom 2.6.27.4 kernel

The factory built image configuration file is available in this discuusion thread, http://glomation.net/smf/index.php/topic,225.0.html
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re