Hi,
See below the reason why the unconfigured kernel 2.6 sources stuck at boot.
Reason: It tries to startup from sffdca1 which is not recognized as a bootable
root fs.
----------------------------------------------------------------------------------------------------------
NAND SPL
Starting U-Boot ...
U-Boot 1.1.6 (Apr 1 2008 - 13:52:15)
Board: Ingenic PMP Ver 1.x (CPU Speed 335 MHz)
DRAM: 64 MB
Flash: 0 kB
NAND:1024 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Net: JZ ETHERNET
### main_loop: bootcmd="mmcinit;fatload mmc 0 0x80600000 uimage;bootm"
Hit any key to stop autoboot: 1 \0x08\0x08\0x08 0
MMC card found
MMC card is ready
reading uimage
filesize: 1898031, got: 1898031
1898031 bytes read
## Booting image at 80600000 ...
Image Name: Linux-2.6.24.3
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1897967 Bytes = 1.8 MB
Load Address: 80010000
Entry Point: 803330e0
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
Linux version 2.6.24.3 (r...@sjakie-laptop) (gcc version 4.3.3 (Debian
4.3.3-13) ) #1 Sun Sep 20 21:48:39 CEST 2009
CPU revision is: 02d0024f (Ingenic JZRISC)
CPU clock: 335MHz, System clock: 112MHz, Memory clock: 112MHz, Peripheral
clock: 112MHz
JZ4730 MINIPC board setup
Determined physical RAM map:
memory: 00000040 @ 00000000 (usable)
User-defined physical RAM map:
memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0 -> 32768
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=ttyS0,115200n8 root=/dev/ssfdca1 rw
noatime
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Synthesized clear page handler (25 instructions).
Synthesized copy page handler (44 instructions).
Synthesized TLB refill handler (24 instructions).
Synthesized TLB load handler fastpath (37 instructions).
Synthesized TLB store handler fastpath (37 instructions).
Synthesized TLB modify handler fastpath (36 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x25
console [ttyS0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 125412k/131072k available (3231k kernel code, 5528k reserved, 808k
data, 172k init, 0k highmem)
Mount-cache hash table entries: 512
net_namespace: 64 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: 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
Power Management for JZ
yaffs Sep 20 2009 21:42:33 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
MiniPC BL, set intensity to 250
MiniPC Backlight Driver Initialized.
jzlcd use 1 framebuffer:
jzlcd fb[0] phys addr =0x07d00000
LCDC: PixClock:27955200 LcdClock:83865600
Console: switching to colour frame buffer device 100x30
fb0: jz-lcd frame buffer device, using 1024K of video memory
PCF8563 RTC installed !!!
JzSOC: char device family.
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
\0xbf\0xaeY\0xaeZX\0xb6\0x9c250: ttyS0 at MMIO 0x0 (irq = 9) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 8) is a 16550A
serial8250: ttyS2 at MMIO 0x0 (irq = 7) is a 16550A
serial8250: ttyS3 at MMIO 0x0 (irq = 6) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
ethaddr not set in boot prom
WARNING: There is not MAC address, use default ..
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver net1080
usbcore: registered new interface driver plusb
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver zd1211rw
Driver 'sd' needs updating - please use bus_type methods
SSFDC read-only Flash Translation layer
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 741 at 0x05ca0000
Bad eraseblock 875 at 0x06d60000
Bad eraseblock 1441 at 0x0b420000
Bad eraseblock 2003 at 0x0fa60000
Bad eraseblock 3068 at 0x17f80000
Creating 5 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x00000000-0x00100000 : "bootloader partition"
0x00100000-0x00400000 : "kernel partition"
0x00400000-0x00500000 : "mac partition"
0x00500000-0x00a00000 : "mini rootfs partition"
0x00a00000-0x40000000 : "yaffs2 rootfs partition"
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 2941 at 0x16fa0000
Bad eraseblock 4499 at 0x23260000
Bad eraseblock 5853 at 0x2dba0000
Bad eraseblock 6592 at 0x33800000
Creating 1 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x00000000-0x40000000 : "extend 1G flash"
jz-ohci jz-ohci.0: JZ OHCI
jz-ohci jz-ohci.0: new USB bus registered, assigned bus number 1
jz-ohci jz-ohci.0: irq 13, io mem 0x13030000
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...
usb 1-2: new full speed USB device using jz-ohci and address 2
usb 1-2: configuration #1 chosen from 1 choice
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 4 ports detected
usb 1-2.3: new low speed USB device using jz-ohci and address 3
usb 1-2.3: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
usbcore: registered new interface driver cp2101
drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor
driver v0.07
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB
Serial Device
usbcore: registered new interface driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
input: JZ Keypad as /class/input/input0
JzSOC Watchdog Timer: timer margin 60 sec
JZ SD/MMC card driver registered
usbcore: registered new interface driver hiddev
input: CHESEN PS2 to USB Converter as /class/input/input1
mmc0: new high speed SD card at address e624
mmcblk0: mmc0:e624 1985024KiB
mmcblk0: p1 p2
input: USB HID v1.10 Keyboard [CHESEN PS2 to USB Converter] on usb-jz-2.3
input: CHESEN PS2 to USB Converter as /class/input/input2
input: USB HID v1.10 Mouse [CHESEN PS2 to USB Converter] on usb-jz-2.3
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
---> ak4642en initialization!
JzSOC On-Chip I2S controller registered (DAC: DMA(play):2/IRQ34,
ADC: DMA(record):3/IRQ35)
JZ I2S OSS audio driver initialized
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42
2007 UTC).
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketr...@linux.intel.com>
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "ssfdca1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 1024 mtdblock0 (driver?)
1f01 3072 mtdblock1 (driver?)
1f02 1024 mtdblock2 (driver?)
1f03 5120 mtdblock3 (driver?)
1f04 1038336 mtdblock4 (driver?)
1f05 1048576 mtdblock5 (driver?)
b300 1985024 mmcblk0 driver: mmcblk
b301 305203 mmcblk0p1
b302 1678792 mmcblk0p2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
---------------------------------------------------------------------------------------------------------------------------------
What I did as a work-around is to modify init/do_mounts.c (issue 5) to boot
from mmcblk0p2.
Change line 442
if (saved_root_name[0]) {
root_device_name = "/dev/mmcblk0p2" ;
Afterwards it boots ok:
---------------------------------------------------------------------------------------
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing unused kernel memory: 172k freed
Algorithmics/MIPS FPU Emulator v1.5
INIT: version 2.86 booting
----------------------------------------------------------------------------------------
A better way would be to modify the Kernel command line and fix the mtdblock
driver issue
Anyone any advice on this ?
Grt Ruben.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel