[Gta04-owner] qtmoko-buildhost-armhf image - how to get@
Szymon Olewniczak
szymon.olewniczak at rid.pl
Tue Sep 3 10:28:44 CEST 2013
> Ahh ok,
>
> i cant give exactly step by step, but it should be fairly easy. You have to
> create qemu harddisk image. My image is 32GB. Mount the image and unpack armhf
> rootfs - qtmoko release tarbal [1] can be good start for the rootfs. Unmount
> the image and use start.sh script to launch it. For building qtmoko you'll have
> to install gcc and all other dependencies. The qemu commands for making image
> and mounting are quite well described here [2].
I've successfully created rootfs(using qtmoko quomu tarball) and booted it using start.sh but I've a
proplem with establishing ssh connection. When I run:
ssh -vvv -p 22222 root at localhost
I've get following error msg:
OpenSSH_6.2p2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 22222.
debug1: connect to address ::1 port 22222: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 22222.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/hafron/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/hafron/.ssh/id_rsa type 1
debug1: identity file /home/hafron/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
ssh_exchange_identification: read: Connection reset by peer
zsh: exit 255 ssh -vvv -p 22222 root at localhost
Do you know what am I doing wrong? Below I paste virtual machine boot output:
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: Connection refused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect:
Connection refused
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: Connection refused
audio: Failed to create voice `lm4549.out'
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-3-vexpress (Debian 3.2.23-1)
(debian-kernel at lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-8) )
#1 SMP Mon Jul 23 14:57:30 UTC 2012
[ 0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] Machine: ARM-Versatile Express
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps
every 178956ms
[ 0.000000] PERCPU: Embedded 8 pages/cpu @80c5e000 s9824 r8192 d14752
u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 260096
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 mem=1024M
console=ttyAMA0,38400n8 devtmpfs.mount=0 rw
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144
bytes)
[ 0.000000] Memory: 1024MB = 1024MB total
[ 0.000000] Memory: 1030464k/1030464k available, 18112k reserved, 0K
highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc0800000 - 0xf8000000 ( 888 MB)
[ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x80396c60 (3644 kB)
[ 0.000000] .init : 0x80397000 - 0x803bc660 ( 150 kB)
[ 0.000000] .data : 0x803be000 - 0x803ee5c8 ( 194 kB)
[ 0.000000] .bss : 0x803ee5ec - 0x804572c4 ( 420 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] NR_IRQS:128
[ 0.000000] Console: colour dummy device 80x30
[ 0.058259] Calibrating delay loop... 575.07 BogoMIPS (lpj=2875392)
[ 0.225106] pid_max: default: 32768 minimum: 301
[ 0.225998] Security Framework initialized
[ 0.227641] Mount-cache hash table entries: 512
[ 0.235590] Initializing cgroup subsys cpuacct
[ 0.235733] Initializing cgroup subsys memory
[ 0.236181] Initializing cgroup subsys devices
[ 0.236285] Initializing cgroup subsys freezer
[ 0.236359] Initializing cgroup subsys net_cls
[ 0.236427] Initializing cgroup subsys blkio
[ 0.236522] Initializing cgroup subsys perf_event
[ 0.237124] CPU: Testing write buffer coherency: ok
[ 0.244773] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.245320] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 1
counters available
[ 0.251493] Brought up 1 CPUs
[ 0.251610] SMP: Total of 1 processors activated (575.07 BogoMIPS).
[ 0.262553] devtmpfs: initialized
[ 0.277226] print_constraints: dummy:
[ 0.279121] NET: Registered protocol family 16
[ 0.286393] L310 cache controller enabled
[ 0.286459] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02420000,
Cache size: 131072 B
[ 0.287289] hw-breakpoint: debug architecture 0x0 unsupported.
[ 0.287589] Serial: AMBA PL011 UART driver
[ 0.289224] mb:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 37) is a
PL011 rev1
[ 0.303964] console [ttyAMA0] enabled
[ 0.307235] mb:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 38) is a
PL011 rev1
[ 0.308187] mb:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 39) is a
PL011 rev1
[ 0.309073] mb:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 40) is a
PL011 rev1
[ 0.318015] bio: create slab <bio-0> at 0
[ 0.327202] Switching to clocksource v2m-timer1
[ 0.385500] NET: Registered protocol family 2
[ 0.389307] IP route cache hash table entries: 32768 (order: 5,
131072 bytes)
[ 0.394585] TCP established hash table entries: 131072 (order: 8,
1048576 bytes)
[ 0.399085] TCP bind hash table entries: 65536 (order: 7, 524288
bytes)
[ 0.401733] TCP: Hash tables configured (established 131072 bind
65536)
[ 0.402287] TCP reno registered
[ 0.402610] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.403071] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.405189] NET: Registered protocol family 1
[ 0.409340] Unpacking initramfs...
[ 1.143434] Freeing initrd memory: 4620K
[ 1.147556] audit: initializing netlink socket (disabled)
[ 1.148778] type=2000 audit(1.090:1): initialized
[ 1.160189] VFS: Disk quotas dquot_6.5.2
[ 1.160929] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 1.162908] msgmni has been set to 2021
[ 1.172099] alg: No test for stdrng (krng)
[ 1.172856] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 1.173626] io scheduler noop registered
[ 1.209140] v2m_cfg_write: writing 00000000 to 00710000
[ 1.209188] v2m_cfg_write: writing 00000002 to 00b10000
[ 1.227382] Console: switching to colour frame buffer device 128x48
[ 1.248158] mousedev: PS/2 mouse device common for all mice
[ 1.253303] rtc-pl031 mb:rtc: rtc core: registered pl031 as rtc0
[ 1.254793] mmci-pl18x mb:mmci: mmc0: PL181 manf 41 rev0 at
0x10005000 irq 41,42 (pio)
[ 1.260501] TCP cubic registered
[ 1.260774] NET: Registered protocol family 17
[ 1.261304] Registering the dns_resolver key type
[ 1.263087] VFP support v0.3: implementor 41 architecture 3 part 30
variant 9 rev 0
[ 1.267079] Registering SWP/SWPB emulation handler
[ 1.290845] registered taskstats version 1
[ 1.293338] rtc-pl031 mb:rtc: setting system clock to 2013-09-03
10:09:50 UTC (1378202990)
[ 1.294044] Initializing network drop monitor service
[ 1.306486] Freeing init memory: 148K
[ 1.329786] mmc0: host does not support reading read-only switch.
assuming write-enable.
[ 1.330680] mmc0: new SDHC card at address 4567
[ 1.339353] mmcblk0: mmc0:4567 QEMU! 30.0 GiB
[ 1.351667] input: AT Raw Set 2 keyboard as
/devices/mb:kmi0/serio0/input/input0
[ 1.371425] mmcblk0: p1
Loading, please wait...
[ 1.958550] udevd[45]: starting version 175
[ 3.338236] smsc911x: Driver version 2008-10-21
[ 3.433480] SCSI subsystem initialized
[ 3.805656] smsc911x-mdio: probed
[ 3.806357] smsc911x smsc911x: eth0: attached PHY driver [SMSC
LAN911x Internal PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)
[ 3.808233] smsc911x smsc911x: eth0: MAC Address: 52:54:00:12:34:56
[ 3.822498] scsi0 : pata_platform
[ 3.824504] ata1: PATA max PIO0 no IRQ, using PIO polling mmio cmd
0x1001a000 ctl 0x1001a100
Begin: Loading essential drivers ... [ 4.299224] nbd: registered
device at major 43
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... done.
Begin: Running /scripts/local-premount ... done.
[ 5.332857] EXT4-fs (mmcblk0p1): recovery complete
[ 5.334371] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data
mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 36.604261]
udevd[238]: starting version 175
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[ 50.003116] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
/run/rootdev: clean, 22857/1966080 files, 283766/7864064 blocks
done.
[ 51.503728] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
[ ok ] Cleaning up temporary files... /tmp.
[info] Loading kernel module g_ether.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
[info] Loading kernel module joydev.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
[info] Loading kernel module hso.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
[info] Loading kernel module ledtrig-timer.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
[info] Loading kernel module bmp085.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[....] Mounting local filesystems...mount: special device /dev/mmcblk0p5
does not exist
failed.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Cannot find device "usb0"
Failed to bring up usb0.
done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting system message bus: dbus.
[....] Starting bluetooth: bluetoothdCan't open serial port: No such
file or directory
Can't initialize device: No such file or directory
rfcommCan't open RFCOMM control socket: Address family not supported by
protocol
. ok
[warn] PulseAudio configured for per-user sessions ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not
open moddep file '/lib/modules/3.2.0-3-vexpress/modules.dep.bin'
ip6tables v1.4.14: can't initialize ip6tables table `filter': Table
does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
[FAIL] startpar: service(s) returned failure: rc.local ... failed!
INIT: no more processes left in this runlevel
More information about the Gta04-owner
mailing list