Call: ['osascript', '-e', 'do shell script "diskutil unmountDisk /dev/disk2 && chmod -v o+w /dev/disk2" with administrator privileges']
Unmount of all volumes on disk2 was successful
/dev/disk2
Download Raspbian-lite image
download http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-03-03/2017-03-02-raspbian-jessie-lite.zip
[ ] 0%
[ ] 1%
[. ] 1%
[. ] 2%
[. ] 3%
[.. ] 3%
[.. ] 4%
[.. ] 5%
[... ] 5%
[... ] 6%
[.... ] 6%
[.... ] 7%
[.... ] 8%
[..... ] 8%
[..... ] 9%
[..... ] 10%
[...... ] 10%
[...... ] 11%
[...... ] 12%
[....... ] 12%
[....... ] 13%
[........ ] 13%
[........ ] 14%
[........ ] 15%
[......... ] 15%
[......... ] 16%
[......... ] 17%
[.......... ] 17%
[.......... ] 18%
[........... ] 18%
[........... ] 19%
[........... ] 20%
[............ ] 20%
[............ ] 21%
[............ ] 22%
[............. ] 22%
[............. ] 23%
[............. ] 24%
[.............. ] 24%
[.............. ] 25%
[............... ] 25%
[............... ] 26%
[............... ] 27%
[................ ] 27%
[................ ] 28%
[................ ] 29%
[................. ] 29%
[................. ] 30%
[................. ] 31%
[.................. ] 31%
[.................. ] 32%
[................... ] 32%
[................... ] 33%
[................... ] 34%
[.................... ] 34%
[.................... ] 35%
[.................... ] 36%
[..................... ] 36%
[..................... ] 37%
[...................... ] 37%
[...................... ] 38%
[...................... ] 39%
[....................... ] 39%
[....................... ] 40%
[....................... ] 41%
[........................ ] 41%
[........................ ] 42%
[........................ ] 43%
[......................... ] 43%
[......................... ] 44%
[.......................... ] 44%
[.......................... ] 45%
[.......................... ] 46%
[........................... ] 46%
[........................... ] 47%
[........................... ] 48%
[............................ ] 48%
[............................ ] 49%
[............................. ] 50%
[............................. ] 51%
[.............................. ] 51%
[.............................. ] 52%
[.............................. ] 53%
[............................... ] 53%
[............................... ] 54%
[............................... ] 55%
[................................ ] 55%
[................................ ] 56%
[................................. ] 56%
[................................. ] 57%
[................................. ] 58%
[.................................. ] 58%
[.................................. ] 59%
[.................................. ] 60%
[................................... ] 60%
[................................... ] 61%
[................................... ] 62%
[.................................... ] 62%
[.................................... ] 63%
[..................................... ] 63%
[..................................... ] 64%
[..................................... ] 65%
[...................................... ] 65%
[...................................... ] 66%
[...................................... ] 67%
[....................................... ] 67%
[....................................... ] 68%
[........................................ ] 68%
[........................................ ] 69%
[........................................ ] 70%
[......................................... ] 70%
[......................................... ] 71%
[......................................... ] 72%
[.......................................... ] 72%
[.......................................... ] 73%
[.......................................... ] 74%
[........................................... ] 74%
[........................................... ] 75%
[............................................ ] 75%
[............................................ ] 76%
[............................................ ] 77%
[............................................. ] 77%
[............................................. ] 78%
[............................................. ] 79%
[.............................................. ] 79%
[.............................................. ] 80%
[.............................................. ] 81%
[............................................... ] 81%
[............................................... ] 82%
[................................................ ] 82%
[................................................ ] 83%
[................................................ ] 84%
[................................................. ] 84%
[................................................. ] 85%
[................................................. ] 86%
[.................................................. ] 86%
[.................................................. ] 87%
[................................................... ] 87%
[................................................... ] 88%
[................................................... ] 89%
[.................................................... ] 89%
[.................................................... ] 90%
[.................................................... ] 91%
[..................................................... ] 91%
[..................................................... ] 92%
[..................................................... ] 93%
[...................................................... ] 93%
[...................................................... ] 94%
[....................................................... ] 94%
[....................................................... ] 95%
[....................................................... ] 96%
[........................................................ ] 96%
[........................................................ ] 97%
[........................................................ ] 98%
[......................................................... ] 98%
[......................................................... ] 99%
[..........................................................] 100%
extract 2017-03-02-raspbian-jessie-lite.img
Call: ['/var/folders/s7/frvr3wkd3_34_kkd353f70k40000gn/T/_MEITlDSSV/qemu-img', 'info', '-f', 'raw', '2017-03-02-raspbian-jessie-lite.img']
image: 2017-03-02-raspbian-jessie-lite.img
file format: raw
virtual size: 1.3G (1393557504 bytes)
disk size: 1.3G
Call: ['/var/folders/s7/frvr3wkd3_34_kkd353f70k40000gn/T/_MEITlDSSV/qemu-img', 'resize', '-f', 'raw', '2017-03-02-raspbian-jessie-lite.img', '7820279808']
Image resized.
Launch qemu
ssh on port 49355
qemu-system-arm: -redir tcp:49355::22: The -redir option is deprecated. Please use '-netdev user,hostfwd=...' instead.
WARNING: Image format was not specified for '2017-03-02-raspbian-jessie-lite.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Booting Linux on physical CPU 0x0
Linux version 4.10.0 (thiolliere@pluton) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #2 SMP Tue Jun 27 14:01:30 CEST 2017
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
OF: fdt:Machine model: V2P-CA9
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
percpu: Embedded 13 pages/cpu @bf7ba000 s23692 r8192 d21364 u53248
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/mmcblk0p2 console=ttyAMA0 console=tty
log_buf_len individual max cpu contribution: 4096 bytes
log_buf_len total cpu_extra contributions: 12288 bytes
log_buf_len min size: 16384 bytes
log_buf_len: 32768 bytes
early log buf free: 14992(91%)
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1029576K/1048576K available (6144K kernel code, 232K rwdata, 1364K rodata, 1024K init, 187K bss, 19000K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80700000 (7136 kB)
.init : 0x80900000 - 0x80a00000 (1024 kB)
.data : 0x80a00000 - 0x80a3a080 ( 233 kB)
.bss : 0x80a3c000 - 0x80a6ae44 ( 188 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
NR_IRQS:16 nr_irqs:16 16
GIC CPU mask not found - kernel will fail to boot.
GIC CPU mask not found - kernel will fail to boot.
L2C: platform modifies aux control register: 0x02020000 -> 0x02420000
L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02420000
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating disabled, standby mode disabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46420001
smp_twd: clock not found -2
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
Failed to initialize '/smb@04000000/motherboard/iofpga@7,00000000/timer@12000': -22
Console: colour dummy device 80x30
console [tty0] enabled
Calibrating local timer... 94.89MHz.
Calibrating delay loop... 634.88 BogoMIPS (lpj=3174400)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100058
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (634.88 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
hw-breakpoint: debug architecture 0x4 unsupported.
Serial: AMBA PL011 UART driver
OF: amba_device_add() failed (-19) for /memory-controller@100e0000
OF: amba_device_add() failed (-19) for /memory-controller@100e1000
OF: amba_device_add() failed (-19) for /watchdog@100e5000
irq: type mismatch, failed to map hwirq-75 for /interrupt-controller@1e001000!
10009000.uart: ttyAMA0 at MMIO 0x10009000 (irq = 38, base_baud = 0) is a PL011 rev1
console [ttyAMA0] enabled
1000a000.uart: ttyAMA1 at MMIO 0x1000a000 (irq = 39, base_baud = 0) is a PL011 rev1
1000b000.uart: ttyAMA2 at MMIO 0x1000b000 (irq = 40, base_baud = 0) is a PL011 rev1
1000c000.uart: ttyAMA3 at MMIO 0x1000c000 (irq = 41, base_baud = 0) is a PL011 rev1
OF: amba_device_add() failed (-19) for /smb@04000000/motherboard/iofpga@7,00000000/wdt@0f000
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm,sp804
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 1 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
9p: Installing v9fs 9p2000 file system support
io scheduler noop registered (default)
clcd-pl11x 10020000.clcd: PL111 designer 41 rev2 at 0x10020000
clcd-pl11x 10020000.clcd: /clcd@10020000 hardware, 1024x768@59 display
Console: switching to colour frame buffer device 128x48
clcd-pl11x 1001f000.clcd: PL111 designer 41 rev2 at 0x1001f000
clcd-pl11x 1001f000.clcd: /smb@04000000/motherboard/iofpga@7,00000000/clcd@1f000 hardware, 640x480@59 display
40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
Concatenating MTD devices:
(0): "40000000.flash"
(1): "40000000.flash"
into device "40000000.flash"
libphy: Fixed MDIO Bus: probed
libphy: smsc911x-mdio: probed
smsc911x 4e000000.ethernet eth0: MAC Address: 52:54:00:12:34:56
isp1760 4f000000.usb: bus width: 32, oc: digital
isp1760 4f000000.usb: NXP ISP1760 USB Host Controller
isp1760 4f000000.usb: new USB bus registered, assigned bus number 1
isp1760 4f000000.usb: Scratch test failed.
isp1760 4f000000.usb: can't setup: -19
isp1760 4f000000.usb: USB bus 1 deregistered
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
rtc-pl031 10017000.rtc: rtc core: registered pl031 as rtc0
mmci-pl18x 10005000.mmci: Got CD GPIO
mmci-pl18x 10005000.mmci: Got WP GPIO
mmci-pl18x 10005000.mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 34,35 (pio)
input: AT Raw Set 2 keyboard as /devices/platform/smb@04000000/smb@04000000:motherboard/smb@04000000:motherboard:iofpga@7,00000000/10006000.kmi/serio0/input/input0
mmc0: new SDHC card at address 4567
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmcblk0: mmc0:4567 QEMU! 7.28 GiB
mmcblk0: p1 p2
aaci-pl041 10004000.aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
aaci-pl041 10004000.aaci: FIFO 512 entries
oprofile: using arm/armv7-ca9
Netfilter messages via NETLINK v0.30.
nfnl_acct: registering with nfnetlink.
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ctnetlink v0.93: registering with nfnetlink.
nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
xt_time: kernel timezone is -0000
ip_set: protocol 6
IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: Creating netns size=1296 id=0
IPVS: ipvs loaded.
IPVS: [rr] scheduler registered.
IPVS: [wrr] scheduler registered.
IPVS: [lc] scheduler registered.
IPVS: [wlc] scheduler registered.
IPVS: [fo] scheduler registered.
IPVS: [ovf] scheduler registered.
IPVS: [lblc] scheduler registered.
IPVS: [lblcr] scheduler registered.
IPVS: [dh] scheduler registered.
IPVS: [sh] scheduler registered.
IPVS: [sed] scheduler registered.
IPVS: [nq] scheduler registered.
IPVS: ftp: loaded support on port[0] = 21
IPVS: [sip] pe registered.
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
arp_tables: arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 10
Segment Routing with IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
Registering SWP/SWPB emulation handler
rtc-pl031 10017000.rtc: setting system clock to 2017-07-15 10:32:19 UTC (1500114739)
ALSA device list:
#0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/smb@04000000/smb@04000000:motherboard/smb@04000000:motherboard:iofpga@7,00000000/10007000.kmi/serio1/input/input2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
random: fast init done
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
Freeing unused kernel memory: 1024K
random: crng init done
systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.
systemd[1]: Failed to insert module 'autofs4'
systemd[1]: Set hostname to <raspberrypi>.
systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
systemd[1]: Expecting device dev-ttyAMA0.device...
systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Starting Remote File Systems (Pre).
systemd[1]: Reached target Remote File Systems (Pre).
systemd[1]: Started Increase datagram queue length.
systemd[1]: Mounted Debug File System.
systemd[1]: Starting Syslog Socket.
systemd[1]: Listening on Syslog Socket.
systemd[1]: Starting Journal Service...
systemd[1]: Started Journal Service.
[[32m OK [0m] Started Show Plymouth Boot Screen.
[[32m OK [0m] Reached target Paths.
[[32m OK [0m] Started Remount Root and Kernel File Systems.
Starting Various fixups to make systemd work better on Debian...
[[32m OK [0m] Reached target Local File Systems (Pre).
Mounting /boot...
Starting Load/Save Random Seed...
[[32m OK [0m] Started Load/Save Random Seed.
[[32m OK [0m] Mounted /boot.
[[32m OK [0m] Started Various fixups to make systemd work better on Debian.
[[32m OK [0m] Reached target Local File Systems.
Starting Tell Plymouth To Write Out Runtime Data...
Starting Create Volatile Files and Directories...
[[32m OK [0m] Reached target Remote File Systems.
Starting Trigger Flushing of Journal to Persistent Storage...
Starting LSB: Prepare console...
Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)...
Starting LSB: Raise network interfaces....
[[32m OK [0m] Started Tell Plymouth To Write Out Runtime Data.
[[32m OK [0m] Started Trigger Flushing of Journal to Persistent Storage.
[[32m OK [0m] Started Create Volatile Files and Directories.
[[32m OK [0m] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
Starting Update UTMP about System Boot/Shutdown...
[[32m OK [0m] Started Update UTMP about System Boot/Shutdown.
[[32m OK [0m] Started LSB: Prepare console.
Starting LSB: Set console font and keymap...
[[32m OK [0m] Started LSB: Raise network interfaces..
[[32m OK [0m] Started LSB: Set console font and keymap.
[[32m OK [0m] Reached target System Initialization.
[[32m OK [0m] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[[32m OK [0m] Listening on D-Bus System Message Bus Socket.
[[32m OK [0m] Reached target Sockets.
[[32m OK [0m] Reached target Timers.
[[32m OK [0m] Reached target Basic System.
Starting LSB: Apply config from /boot/os_config.json...
Starting LSB: Resize the root filesystem to fill partition...
Starting dhcpcd on all interfaces...
Starting Regenerate SSH host keys...
Starting Avahi mDNS/DNS-SD Stack...
Starting System Logging Service...
Starting Regular background program processing daemon...
[[32m OK [0m] Started Regular background program processing daemon.
Starting D-Bus System Message Bus...
[[32m OK [0m] Started D-Bus System Message Bus.
[[32m OK [0m] Started Avahi mDNS/DNS-SD Stack.
Starting Login Service...
Starting LSB: triggerhappy hotkey daemon...
Starting LSB: Autogenerate and use a swap file...
[[32m OK [0m] Started System Logging Service.
[[32m OK [0m] Started Login Service.
[[32m OK [0m] Started LSB: triggerhappy hotkey daemon.
[[1;31m*[0m[31m* [0m] (1 of 5) A start job is running for LSB: Autogenerate and use a swap file (50s / 5min 41s)
[K[[31m*[1;31m*[0m[31m* [0m] (1 of 5) A start job is running for LSB: Autogenerate and use a swap file (51s / 5min 41s)
[K[ [31m*[1;31m*[0m[31m* [0m] (2 of 5) A start job is running for dhcpcd on all interfaces (51s / 2min 5s)
[K[ [31m*[1;31m*[0m[31m* [0m] (2 of 5) A start job is running for dhcpcd on all interfaces (52s / 2min 5s)
[K[ [31m*[1;31m*[0m[31m*[0m] (2 of 5) A start job is running for dhcpcd on all interfaces (52s / 2min 5s)
[K[ [31m*[1;31m*[0m] (3 of 5) A start job is running for Regenerate SSH host keys (53s / no limit)
[K[ [31m*[0m] (3 of 5) A start job is running for Regenerate SSH host keys (53s / no limit)
[K[[32m OK [0m] Started LSB: Apply config from /boot/os_config.json.
[[32m OK [0m] Started LSB: Resize the root filesystem to fill partition.
[[32m OK [0m] Started dhcpcd on all interfaces.
[[32m OK [0m] Reached target Network.
Starting /etc/rc.local Compatibility...
Starting Permit User Sessions...
[[32m OK [0m] Reached target Network is Online.
Starting LSB: Start NTP daemon...
My IP address is 10.0.2.15 fec0::cd4e:6e23:f7a5:5067
[[32m OK [0m] Started /etc/rc.local Compatibility.
[[32m OK [0m] Started Permit User Sessions.
Starting Hold until boot process finishes up...
Starting Terminate Plymouth Boot Screen...
Raspbian GNU/Linux 8 raspberrypi ttyAMA0
raspberrypi login: pi
Password:
Linux raspberrypi 4.10.0 #2 SMP Tue Jun 27 14:01:30 CEST 2017 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
pi@raspberrypi:~$ sudo systemctl start ssh; exit
logout
Raspbian GNU/Linux 8 raspberrypi ttyAMA0
raspberrypi login: Resize partition
sudo LANG=C fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 7.3 GiB, 7820279808 bytes, 15273984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb2455b06
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 137215 129024 63M c W95 FAT32 (LBA)
/dev/mmcblk0p2 137216 2721791 2584576 1.2G 83 Linux
sudo LANG=C fdisk /dev/mmcblk0 <<END_OF_CMD
d
2
n
p
2
137216
w
END_OF_CMD
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.
Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-15273983, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (137216-15273983, default 15273983):
Created a new partition 2 of type 'Linux' and of size 7.2 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
STDERR: Re-reading the partition table failed.: Device or resource busy
reboot qemu
sudo shutdown 0
STDERR: Shutdown scheduled for Sat 2017-07-15 10:34:22 UTC, use 'shutdown -c' to cancel.
Launch qemu
ssh on port 49360
qemu-system-arm: -redir tcp:49360::22: The -redir option is deprecated. Please use '-netdev user,hostfwd=...' instead.
WARNING: Image format was not specified for '2017-03-02-raspbian-jessie-lite.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Booting Linux on physical CPU 0x0
Linux version 4.10.0 (thiolliere@pluton) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #2 SMP Tue Jun 27 14:01:30 CEST 2017
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
OF: fdt:Machine model: V2P-CA9
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
percpu: Embedded 13 pages/cpu @bf7ba000 s23692 r8192 d21364 u53248
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/mmcblk0p2 console=ttyAMA0 console=tty
log_buf_len individual max cpu contribution: 4096 bytes
log_buf_len total cpu_extra contributions: 12288 bytes
log_buf_len min size: 16384 bytes
log_buf_len: 32768 bytes
early log buf free: 14992(91%)
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1029576K/1048576K available (6144K kernel code, 232K rwdata, 1364K rodata, 1024K init, 187K bss, 19000K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80700000 (7136 kB)
.init : 0x80900000 - 0x80a00000 (1024 kB)
.data : 0x80a00000 - 0x80a3a080 ( 233 kB)
.bss : 0x80a3c000 - 0x80a6ae44 ( 188 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
NR_IRQS:16 nr_irqs:16 16
GIC CPU mask not found - kernel will fail to boot.
GIC CPU mask not found - kernel will fail to boot.
L2C: platform modifies aux control register: 0x02020000 -> 0x02420000
L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02420000
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating disabled, standby mode disabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46420001
smp_twd: clock not found -2
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
Failed to initialize '/smb@04000000/motherboard/iofpga@7,00000000/timer@12000': -22
Console: colour dummy device 80x30
console [tty0] enabled
Calibrating local timer... 86.54MHz.
Calibrating delay loop... 437.45 BogoMIPS (lpj=2187264)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x60100000 - 0x60100058
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (437.45 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
hw-breakpoint: debug architecture 0x4 unsupported.
Serial: AMBA PL011 UART driver
OF: amba_device_add() failed (-19) for /memory-controller@100e0000
OF: amba_device_add() failed (-19) for /memory-controller@100e1000
OF: amba_device_add() failed (-19) for /watchdog@100e5000
irq: type mismatch, failed to map hwirq-75 for /interrupt-controller@1e001000!
10009000.uart: ttyAMA0 at MMIO 0x10009000 (irq = 38, base_baud = 0) is a PL011 rev1
console [ttyAMA0] enabled
1000a000.uart: ttyAMA1 at MMIO 0x1000a000 (irq = 39, base_baud = 0) is a PL011 rev1
1000b000.uart: ttyAMA2 at MMIO 0x1000b000 (irq = 40, base_baud = 0) is a PL011 rev1
1000c000.uart: ttyAMA3 at MMIO 0x1000c000 (irq = 41, base_baud = 0) is a PL011 rev1
OF: amba_device_add() failed (-19) for /smb@04000000/motherboard/iofpga@7,00000000/wdt@0f000
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm,sp804
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 1 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
9p: Installing v9fs 9p2000 file system support
io scheduler noop registered (default)
clcd-pl11x 10020000.clcd: PL111 designer 41 rev2 at 0x10020000
clcd-pl11x 10020000.clcd: /clcd@10020000 hardware, 1024x768@59 display
Console: switching to colour frame buffer device 128x48
clcd-pl11x 1001f000.clcd: PL111 designer 41 rev2 at 0x1001f000
clcd-pl11x 1001f000.clcd: /smb@04000000/motherboard/iofpga@7,00000000/clcd@1f000 hardware, 640x480@59 display
40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
40000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
Concatenating MTD devices:
(0): "40000000.flash"
(1): "40000000.flash"
into device "40000000.flash"
libphy: Fixed MDIO Bus: probed
libphy: smsc911x-mdio: probed
smsc911x 4e000000.ethernet eth0: MAC Address: 52:54:00:12:34:56
isp1760 4f000000.usb: bus width: 32, oc: digital
isp1760 4f000000.usb: NXP ISP1760 USB Host Controller
isp1760 4f000000.usb: new USB bus registered, assigned bus number 1
isp1760 4f000000.usb: Scratch test failed.
isp1760 4f000000.usb: can't setup: -19
isp1760 4f000000.usb: USB bus 1 deregistered
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
rtc-pl031 10017000.rtc: rtc core: registered pl031 as rtc0
mmci-pl18x 10005000.mmci: Got CD GPIO
mmci-pl18x 10005000.mmci: Got WP GPIO
mmci-pl18x 10005000.mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 34,35 (pio)
input: AT Raw Set 2 keyboard as /devices/platform/smb@04000000/smb@04000000:motherboard/smb@04000000:motherboard:iofpga@7,00000000/10006000.kmi/serio0/input/input0
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmc0: new SDHC card at address 4567
mmcblk0: mmc0:4567 QEMU! 7.28 GiB
mmcblk0: p1 p2
aaci-pl041 10004000.aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
aaci-pl041 10004000.aaci: FIFO 512 entries
oprofile: using arm/armv7-ca9
Netfilter messages via NETLINK v0.30.
nfnl_acct: registering with nfnetlink.
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ctnetlink v0.93: registering with nfnetlink.
nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
xt_time: kernel timezone is -0000
ip_set: protocol 6
IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: Creating netns size=1296 id=0
IPVS: ipvs loaded.
IPVS: [rr] scheduler registered.
IPVS: [wrr] scheduler registered.
IPVS: [lc] scheduler registered.
IPVS: [wlc] scheduler registered.
IPVS: [fo] scheduler registered.
IPVS: [ovf] scheduler registered.
IPVS: [lblc] scheduler registered.
IPVS: [lblcr] scheduler registered.
IPVS: [dh] scheduler registered.
IPVS: [sh] scheduler registered.
IPVS: [sed] scheduler registered.
IPVS: [nq] scheduler registered.
IPVS: ftp: loaded support on port[0] = 21
IPVS: [sip] pe registered.
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
arp_tables: arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 10
Segment Routing with IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
Registering SWP/SWPB emulation handler
rtc-pl031 10017000.rtc: setting system clock to 2017-07-15 10:34:44 UTC (1500114884)
ALSA device list:
#0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 33
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/smb@04000000/smb@04000000:motherboard/smb@04000000:motherboard:iofpga@7,00000000/10007000.kmi/serio1/input/input2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
random: fast init done.
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
Freeing unused kernel memory: 1024K
random: crng init done
systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.
systemd[1]: Failed to insert module 'autofs4'
systemd[1]: Set hostname to <raspberrypi>.
systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.
systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
systemd[1]: Expecting device dev-ttyAMA0.device...
systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Starting Remote File Systems (Pre).
systemd[1]: Started Increase datagram queue length.
systemd[1]: Mounted Debug File System.
systemd[1]: Starting Syslog Socket.
systemd[1]: Listening on Syslog Socket.
systemd[1]: Starting Journal Service...
systemd[1]: Started Journal Service.
[[32m OK [0m] Started Remount Root and Kernel File Systems.
[[32m OK [0m] Reached target Local File Systems (Pre).
Mounting /boot...
Starting Load/Save Random Seed...
[[32m OK [0m] Started Show Plymouth Boot Screen.
[[32m OK [0m] Mounted /boot.
[[32m OK [0m] Started Load/Save Random Seed.
[[32m OK [0m] Reached target Local File Systems.
Starting Tell Plymouth To Write Out Runtime Data...
Starting Create Volatile Files and Directories...
[[32m OK [0m] Reached target Remote File Systems.
Starting Trigger Flushing of Journal to Persistent Storage...
Starting LSB: Prepare console...
Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)...
Starting LSB: Raise network interfaces....
[[32m OK [0m] Reached target Paths.
[[32m OK [0m] Started Tell Plymouth To Write Out Runtime Data.
[[32m OK [0m] Started Trigger Flushing of Journal to Persistent Storage.
[[32m OK [0m] Started Create Volatile Files and Directories.
[[32m OK [0m] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
Starting Update UTMP about System Boot/Shutdown...
[[32m OK [0m] Started Update UTMP about System Boot/Shutdown.
[[32m OK [0m] Started LSB: Prepare console.
Starting LSB: Set console font and keymap...
[[31m*[1;31m*[0m[31m* [0m] (1 of 2) A start job is running for LSB: Set console font and keymap (1h 11min 58s / no limit)
[K[ [31m*[1;31m*[0m[31m* [0m] (2 of 2) A start job is running for LSB: Raise network interfaces. (1h 11min 59s / no limit)
[K[[32m OK [0m] Started LSB: Raise network interfaces..
piboxinstaller timeoutsudo shutdown 0
Failed
'NoneType' object has no attribute 'open_session'