PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Image hangs on booting



satstyler
16.11.2012, 11:41
Guten Morgen

I have an issue at present ... image compiles all ok but when i install it and boot it hangs on boot ....
As i say the image compiles ok using Spark7162 and 0211

The log is as follows;


Board: STx7105-PDK [32-bit mode]


U-Boot 1.3.1 (Jun 19 2012 - 17:10:44) - stm23_0051 - YW_1.1.005 overclock

DRAM: 256 MiB
Panel: VFD
NAND: Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
512 MiB
SPI: info: found AT25DF161 (2MiB) device (page=256,erase=65536)
warning: SPI device may be write-protected (status=0x0c)
In: serial
Out: serial
Err: serial
Ident ic exist
Ident ic get stb id
IdentID : 0c 00 0a 00 00 15 c6
Hit ESC to stop autoboot: 0

Loading from NAND 512MiB 3,3V 8-bit, offset 0x18000000
Image Name: Linux-2.6.32.59_stm24_0211
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 2565491 Bytes = 2.4 MiB
Load Address: 80801000
Entry Point: 80802000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.59_stm24_0211
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 2565491 Bytes = 2.4 MiB
Load Address: 80801000
Entry Point: 80802000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
stmac_phy_get_addr(): id1 = 0xffff, id2 = 0xffff
found phy at addres = 2
stmac_phy_get_addr(): id1 = 0x7, id2 = 0xc0f1
stb_id = c0a0015c6

Starting kernel console=ttyAS0,115200 rw root=/dev/mtdblock6 rootfstype=jffs2 init=/bin/devinit coprocessor_mem=4m@0x40000000,4m@0x40400000 printk=1 ip=172.100.100.249:172.100.100.174:172.100.100.174 :255.255.0.0:Enigma2:eth0:off stmmaceth=msglvl:0,phyaddr:2,watchdog:5000 bigphysarea=6000 nwhwconf=device:eth0,hwaddr:30:00:0A:00:15:C6 Manufacture=Spark-Project STB_ID=0C:00:0A:00:00:15:C6 - 0x00000000 - 0 ...

Linux version 2.6.32.59_stm24_0211 (user@ubuntu) (gcc version 4.5.2 20110124 (STMicroelectronics/Linux Base 4.5.2-78) (GCC) ) #1 PREEMPT Thu Nov 15 15:26:12 EST 2012
Boot params:
... MOUNT_ROOT_RDONLY - 00000001
... RAMDISK_FLAGS - 00000000
... ORIG_ROOT_DEV - 00000200
... LOADER_TYPE - 00000000
... INITRD_START - 00000000
... INITRD_SIZE - 00000000
Booting machvec: hdk7105
Node 0: start_pfn = 0x40000, low = 0x50000
Zone PFN ranges:
Normal 0x00040000 -> 0x00050000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00040000 -> 0x00050000
STMicroelectronics HDK7105 board initialisation
STx7105 version 4.x
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyAS0,115200 rw root=/dev/mtdblock6 rootfstype=jffs2 init=/bin/devinit coprocessor_mem=4m@0x40000000,4m@0x40400000 printk=1 ip=172.100.100.249:172.100.100.174:172.100.100.174 :255.255.0.0:Enigma2:eth0:off stmmaceth=msglvl:0,phyaddr:2,watchdog:5000 bigphysarea=6000 nwhwconf=device:eth0,hwaddr:30:00:0A:00:15:C6 Manufacture=Spark-Project STB_ID=0C:00:0A:00:00:15:C6
bpa2: partition 'bigphysarea' created at 0x40e95000, size 24000 kB (0x01770000 B)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
PVR=04909200 CVR=60880000 PRR=00009e40
I-cache : n_ways=2 n_sets=512 way_incr=16384
I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Memory: 222848k/262144k available (3360k kernel code, 1045k data, 136k init)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:600
Failed to enable clk CLKA_REF, ignoring
Failed to enable clk CLKA_PLL0LS, ignoring
console [ttyAS0] enabled
sh_tmu: TMU0 used for clock events
sh_tmu: TMU0 used for periodic clock events
sh_tmu: TMU1 used as clock source
Calibrating delay loop... 538.62 BogoMIPS (lpj=1077248)
Mount-cache hash table entries: 512
CPU: STx7105
NET: Registered protocol family 16
Configuring FLASH for boot-from-SPI
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
DMA: Registering DMA API.
Switching to clocksource TMU1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.13)
JFS: nTxBlock = 1742, nTxLock = 13939
msgmni has been set to 435
io scheduler noop registered
io scheduler anticipatory registered (default)
lirc_dev: IR Remote Control driver registered, major 61
lirc-stm: probe found data for platform device lirc-stm
lirc-stm: STM LIRC plugin using IRQ 125 in IR mode
lirc_dev: lirc_register_driver: sample_rate: 0
STMicroelectronics LIRC driver initialized.
STMicroelectronics ASC driver initialized
stm-asc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stm-asc
stm-asc.1: ttyAS1 at MMIO 0xfd033000 (irq = 120) is a stm-asc
loop: module loaded
MiPHY driver style MiPHY3-65 probed successfully
MiPHY3-65, c1.5 Claimed by sata-stm

satstyler
16.11.2012, 11:49
I think there is a problem in this area ?



bpa2: partition 'bigphysarea' created at 0x40e95000, size 24000 kB (0x01770000 B)

DboxOldie
16.11.2012, 18:13
No, your problem is here:
MiPHY3-65, c1.5 Claimed by sata-stm ==> it hangs while initing the tap inteface

Decomment in /arch/sh/boards/mach-hdk7105 in setup.c this line : stx7105_configure_sata(0);

or use the right setup patch for the stm24_211_kernel from tdt git

Edit:
Yeah the bigphys seems also wrong, these are the original adresses:



static struct bpa2_partition_desc bpa2_parts_table[] = {
{
.name = "bigphysarea",
.start = 0x48000000,
.size = 0x02000000, /* 32 Mb */
.flags = 0,
.aka = NULL
},
{
.name = "LMI_IO",
.start = 0x4A000000,
.size = 0x06000000, /* 92 Mb */
.flags = 0,
.aka = LMI_IO_partalias

satstyler
16.11.2012, 19:10
Thanks. Will check that out. It does seem to be picking up the wrong patch so I'll check why that is happening.