Day: December 2, 2012

Accessing VStarcam H6837WI seeing kernel log

In my previous post I show some information about getting access to serial of H6837WI and U-Boot console.

Now let see the Linux kernel booting:

object$ bootm 10030000

Starting kernel ...

Uncompressing Linux.............................................................................................. done,.
init_gpio()
default key isn't press
[ 6.630000] rtc-s35390a 0-0030: error resetting chip
hwclock: can't open '/dev/misc/rtc': No such file or directory
init_gpio()
WDT enable.
main pid 317
init_gpio()
read system param from file
dns set
mac0:0 mac1:a9 mac2:c0 mac3:0 mac4:92 mac5:99
eth is start
size:0
system ie and ad init
ov7725 id1 id2:77-21
this is ov7725
reglen 97
ov7725 init ok
50hz reglen 76
ie param ppid 341
Ad init ok
video and audio is start
PIU sig thread parent PID 317
PIU Signal Handler Thread PID 345
piu_signal_thread_created !
GPT init ok
[ 11.660000] DV Module Opened
[ 11.660000] VIP Module Opened
bitrate 1048576 framerate 30 key 50 quant 26 ratemode 1
cbr=1

net service is start
cmd pid 357
media pid 358
livestream pid 359
encry
enc start...
tmp:ff-dc-a8-49-17-16
tmp:12-34-56-78-9a-bc
check key
adjust is ok
set done!
argc=3 argv=554=554
msginit
socket fd=6
create ipc(6667) socket successful!
socket fd=11
create ipc(6669) socket successful!
accept proc is start
network proc is start
socket fd=14
bind(6666) address successful!
socket fd=15
bind(6668) address successful!
route: SIOCDELRT: No such process
Sun Nov 25 22:32:39 UTC 2012
start upnp web...
upnpc : miniupnpc library test client. (c) 2006-2010 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Sun Nov 25 23:00:44 UTC 2012
write date ok

"H264" stream, from the file "test.264"
Play this stream using the URL "rtsp://0.0.0.0/H264"
curtime 1353884404
add alias
add alias
select loop
web socket 423
SD Record is start...
sd pid 424
enter main loop
mount: mounting /dev/mmcblk0 on /media/sd failed: No such file or directory
==========sd iRet=0=========
Alarm is start...
dns name:user.gocam.so
dns user:vsyw
dns pass:335085
dns port:808
start run ddns
No IGD UPnP Device found on the network !
upnpc : miniupnpc library test client. (c) 2006-2010 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
No IGD UPnP Device found on the network !
recive:3 data=e2-e5-23- 0- 0- 0- 0- 0
=========Get dns Ip failed============

dns name:user.gocam.so
dns user:vsyw
dns pass:335085
dns port:808
NTP=0
write date ok
=========Get dns Ip failed============
dns name:user.gocam.so
dns user:vsyw
dns pass:335085
dns port:808
start read

Too bad, by default the “console=” kernel command line parameter is not set. Then let do it:

object$ set bootargs 'mem=20M console=ttyS0,115200n8 init=/sbin/init root=/dev/mtdblock3'
object$ saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...Erasing sector 134 ... ok.
Erased 1 sectors
Writing to Flash... dest 107f0802
dest 107f1006
dest 107f180a
dest 107f200e
dest 107f2812
dest 107f3016
dest 107f381a
dest 107f401e
dest 107f4822
dest 107f5026
dest 107f582a
dest 107f602e
dest 107f6832
dest 107f7036
dest 107f783a
dest 107f803e
dest 107f8842
dest 107f9046
dest 107f984a
dest 107fa04e
dest 107fa852
dest 107fb056
dest 107fb85a
dest 107fc05e
dest 107fc862
dest 107fd066
dest 107fd86a
dest 107fe06e
dest 107fe872
dest 107ff076
dest 107ff87a
done
Protected 1 sectors
object$

Ouch, it is printing “dest ” debug messages, too noise!


object$ bootm

Starting kernel ...

Uncompressing Linux.............................................................................................. done,.
[ 0.000000] Linux version 2.6.24ssl (root@localhost.localdomain) (gcc version 3.4.6) #200 PREEMPT Tue Apr 9 04:01:493
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] Machine: object h264 ipcam
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU0: D VIVT write-back cache
[ 0.000000] CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
[ 0.000000] CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4572
[ 0.000000] Kernel command line: mem=18M console=ttyS0,115200n8 root=/dev/mtdblock3
[ 0.000000] intc: init info - ver=1,0
[ 0.000000] clock: init info - ver=1,0
[ 0.000000] MAGUS Clocks : ARM-240.000 MHz, HCLK-120.000 MHz, PCLK-60.000 MHz, PERCLK1-60.000 MHz, PERCLK2-24.000 MHz
[ 0.000000] PID hash table entries: 128 (order: 7, 512 bytes)
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.010000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.020000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.030000] Memory: 18MB = 18MB total
[ 0.030000] Memory: 15200KB available (2688K code, 213K data, 96K init)
[ 0.270000] Mount-cache hash table entries: 512
[ 0.270000] CPU: Testing write buffer coherency: ok
[ 0.290000] net_namespace: 64 bytes
[ 0.300000] NET: Registered protocol family 16
[ 0.310000] dma: init info - ver 1.0 fifosize=128, 8 channels
[ 0.320000] MAGUS cpu freq change driver v1.0
[ 0.330000]
[ 0.330000] cpufreq: magus_set_target: request for target_freq = 240000 KHz
[ 0.340000] cpufreq: magus_set_target: cur_pll_out = 240000 KHz, cur_arm_freq = 240000 KHz
[ 0.380000] SCSI subsystem initialized
[ 0.390000] usbcore: registered new interface driver usbfs
[ 0.400000] usbcore: registered new interface driver hub
[ 0.400000] usbcore: registered new device driver usb
[ 0.500000] NET: Registered protocol family 2
[ 0.600000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.610000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.620000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.620000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.630000] TCP reno registered
[ 0.660000] Power Management for MAGUS. V0.1.1
[ 0.660000] NetWinder Floating Point Emulator V0.97 (extended precision)
[ 0.680000] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.690000] io scheduler noop registered
[ 0.690000] io scheduler deadline registered (default)
[ 0.720000] Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
[ 0.730000] ttyS0: autoconf (0x0000, 0xf000300c): uart: id=7000041
[ 0.740000] type=16550A
[ 0.740000] serial8250: ttyS0 at MMIO 0x0 (irq = 16) is a 16550A
[ 0.750000] ttyS1: autoconf (0x0000, 0xf000400c): uart: id=7000041
[ 0.750000] type=16550A
[ 0.750000] serial8250: ttyS1 at MMIO 0x0 (irq = 17) is a 16550A
[ 0.760000] PPP generic driver version 2.4.2
[ 0.770000] PPP Deflate Compression module registered
[ 0.780000] PPP BSD Compression module registered
[ 0.780000] PPP MPPE Compression module registered
[ 0.790000] NET: Registered protocol family 24
[ 0.790000] PPPoL2TP kernel driver, V1.0
[ 0.800000] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
[ 0.800000] tun: Universal TUN/TAP device driver, 1.6
[ 0.810000] tun: (C) 1999-2004 Max Krasnyansky
[ 0.820000] Driver 'sd' needs updating - please use bus_type methods
[ 0.830000] SPAN-NOR:0x00800000 at 0x10000000
[ 0.830000] nor flash cfi probe
[ 0.830000] NOR flash on ipcam: Found 1 x16 devices at 0x0 in 16-bit bank
[ 0.840000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.850000] number of CFI chips: 1
[ 0.850000] cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
[ 0.860000] using static partition definition
[ 0.870000] Creating 5 MTD partitions on "NOR flash on ipcam":
[ 0.870000] 0x000000000000-0x000000030000 : "ARMboot"
[ 0.880000] 0x000000030000-0x0000001a0000 : "Kernel"
[ 0.890000] 0x0000001a0000-0x0000005a0000 : "RootFS"
[ 0.900000] 0x0000005a0000-0x0000007f0000 : "IpcamFS"
[ 0.910000] 0x0000007f0000-0x000000800000 : "param"
[ 0.920000] spi: init info - ver=1.0 fifo=16 slaves=5 master=1
[ 0.930000] spi: init info - ver=1.0 fifo=16 slaves=5 master=1
[ 0.940000] i2c /dev entries driver
[ 0.950000] i2c: init info - ver=1,0
[ 0.950000] MAGUS Watchdog Timer, (c) 2008 Solomon Systech
[ 0.960000] wdog wdog: watchdog inactive, reset disabled.
[ 0.970000]
[ 0.970000] cpufreq: magus_set_target: request for target_freq = 240000 KHz
[ 0.980000] cpufreq: magus_set_target: cur_pll_out = 240000 KHz, cur_arm_freq = 240000 KHz
[ 0.990000] Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
[ 1.000000] ASoC version 0.13.1
[ 1.010000] ALSA device list:
[ 1.010000] No soundcards found.
[ 1.010000] TCP cubic registered
[ 1.020000] NET: Registered protocol family 1
[ 1.020000] NET: Registered protocol family 17
[ 1.030000] ieee80211: 802.11 data/management/control stack, git-1.1.13
[ 1.030000] ieee80211: Copyright (C) 2004-2005 Intel Corporation
[ 1.060000] VFS: Mounted root (cramfs filesystem) readonly.
[ 1.060000] Freeing init memory: 96K
/usr/bin/sdupdate: error while loading shared libraries: libgpioctrl.so: cannot open shared object file: No such file oy
[ 3.560000] JFFS2 notice: (185) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unche.
[ 3.710000] Micrel KSZ8851 driver with MLL interface
[ 3.710000] io fc000000 fc000000
[ 3.720000] Micrel KSZ8851 1.0.4 (Apr 23, 2009)
[ 3.720000] zqh base:fc000000
[ 3.740000] read ID by zqh
[ 3.740000] read ID end
[ 3.750000] hardware is init ok
[ 3.750000] device ok
[ 3.750000] init 1
[ 3.760000] ether setup
[ 3.760000] read mac
[ 3.760000] init proc ok
[ 3.880000] piu reg start addr 0xc1876000, phy addr 0xd0132000
[ 3.880000] PIU driver loaded - mem @ 0x503FFF00
[ 4.100000] vpp in maj=251
[ 4.320000] VIP: Module has been loaded into the kernel
[ 4.520000] DV Module loaded into the kernel
[ 5.150000] enter magus_init func
[ 5.160000] wm8731: WM8731 Audio Codec 0.13
[ 5.170000] asoc: WM8731 magus-i2s mapping ok
[ 5.190000] enter magus_wm8731_init func
[ 5.190000] exit magus_wm8731_init func
[ 5.360000] exit magus_init func OK, device added
[ 5.690000] ssli2c: do err - actual=-1 len=1. Reset I2C Host.
[ 5.690000] i2c: init info - ver=1,0
[ 5.700000] rtc-s35390a 0-0030: error resetting chip
[ 5.840000] rtc-s35390a: probe of 0-0030 failed with error -5
[ 6.860000] sslotg: Set Magus as Host.
[ 6.860000] otg: init info - ver=0041
[ 6.880000] ehci ehci: ssl ehci
[ 6.890000] ehci ehci: new USB bus registered, assigned bus number 1
[ 6.890000] ehci ehci: irq 14, io mem 0x08403000
[ 6.920000] ehci ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
[ 6.970000] usb usb1: configuration #1 chosen from 1 choice
[ 6.990000] hub 1-0:1.0: USB hub found
[ 6.990000] hub 1-0:1.0: 1 port detected
[ 7.150000] usb usb1: Product: ssl ehci
[ 7.150000] usb usb1: Manufacturer: Linux 2.6.24ssl ssl ehci
[ 7.160000] usb usb1: SerialNumber: ssl_ehci
[ 7.380000] CI reset done
[ 7.440000] usb 1-1: new full speed USB device using ehci and address 2
[ 7.510000] CI reset done
[ 7.600000] usb 1-1: not running at top speed; connect to a high speed hub
hwclock: can't open '/dev/misc/rtc': No such file or directory
[ 7.700000] usb 1-1: configuration #1 chosen from 1 choice
daemon: error while loading shared libraries: libgpioctrl.so: cannot open shared object file: No such file or directory
[ 8.020000] usb 1-1: Product: 802.11 n WLAN
[ 8.020000] usb 1-1: Manufacturer: Ralink
[ 8.020000] usb 1-1: SerialNumber: 1.0
encoder: error while loading shared libraries: libgpioctrl.so: cannot open shared object file: No such file or directory
/ #

Great! I have a Linux terminal with “root” access.