Day: January 9, 2013

Camera filesystem failing to start-up

………

U-Boot 1.1.6 (May 19 2011 – 16:36:28)

DRAM: 64 MB
Flash: 8 MB
In: serial
Out: serial
Err: serial
0

Starting kernel …

Uncompressing Linux…………………………………………………………………………………. done, booting the kernel.
[ 0.000000] Linux version 2.6.24ssl (root@localhost.localdomain) (gcc version 3.4.6) #200 PREEMPT Tue Apr 9 04:01:49 CST 2013
[ 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: 5080
[ 0.000000] Kernel command line: mem=20M console=ttyS0,115200n8 init=/sbin/init 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 80×30
[ 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: 20MB = 20MB total
[ 0.030000] Memory: 17248KB 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 or directory
[ 3.560000] JFFS2 notice: (185) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 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.720000] read ID by zqh
[ 3.740000] read ID end
[ 3.750000] hardware is init ok
[ 3.760000] device ok
[ 3.760000] init 1
[ 3.760000] ether setup
[ 3.760000] read mac
[ 3.770000] init proc ok
[ 3.890000] piu reg start addr 0xc1876000, phy addr 0xd0132000
[ 3.900000] PIU driver loaded – mem @ 0x503FFF00
[ 4.120000] vpp in maj=251
[ 4.330000] VIP: Module has been loaded into the kernel
[ 4.530000] DV Module loaded into the kernel
[ 5.160000] enter magus_init func
[ 5.170000] wm8731: WM8731 Audio Codec 0.13
[ 5.180000] asoc: WM8731 magus-i2s mapping ok
[ 5.200000] enter magus_wm8731_init func
[ 5.200000] exit magus_wm8731_init func
[ 5.340000] exit magus_init func OK, device added
[ 5.670000] ssli2c: do err – actual=-1 len=1. Reset I2C Host.
[ 5.670000] i2c: init info – ver=1,0
[ 5.680000] rtc-s35390a 0-0030: error resetting chip
[ 5.870000] 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.610000] 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.710000] 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
[ 7.960000] usb 1-1: Product: 802.11 n WLAN
[ 7.970000] usb 1-1: Manufacturer: Ralink
[ 7.970000] usb 1-1: SerialNumber: 1.0
encoder: error while loading shared libraries: libgpioctrl.so: cannot open shared object file: No such file or directory
/ #

Compartilhando a sua rede com seu amigo

Suponhamos que na empresa onde você trabalha a sua máquina é totalmente liberada para acessar a Internet, mas a do seu amigo é bloqueada, como ele pode resolver este problema? Simples, transforme a sua máquina no gateway para ser usado pelo seu amigo.

Na sua máquina execute:

# echo 1 > /proc/sys/net/ipv4/ip_forward 
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Na máquina do seu amigo execute:

# route add default gateway 192.168.0.107
# route del default gateway 192.168.0.1

Neste caso o IP 192.168.0.107 deve ser substituído pelo IP da sua máquina, para que todo o tráfego de rede do seu amigo passe por ela. O IP 192.168.0.1 é o gateway padrão da sua rede.

Simples, não?

Muito obrigado ao Vinicius Tinti por esta dica.