LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-26-2018, 09:12 PM   #1
decula
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
Question SlackwareARM 14.2 on Qemu - Noob needs a hand


I've run into a stopping point on installing SA14.2 on Qemu.
Think I've followed the excellent instructions (thank you MoZes).
I'm not sure what else can be done to debug this issue.
My notes follow:



following ftp://ftp.arm.slackware.com/slackwar...STALL_QEMU.TXT

used slackbuilds for the following:
qemu-arm version 2.11.1 MAINTAINER="Edward W. Koenig"
Version: DTC 1.4.4-dirty MAINTAINER="Robby Workman"

download slackwarearm-14.2
set up NFS
create 32GB raw image
install slackwarearm 14.2 to image (seems to like having swap mount before setup)
wait 10 hours for full install

no modifications to fdisk - followed advice for mmcblk0p1 = swap, mmcblk0p2 = linux

attempt to boot using disk_launch, stops at not finding root device (at least has a shell to debug with) init loaded and modules are showing as being insmod'd
looks like mmc block modules is loading, but no mmc* devices in /dev

/ # lsmod
Module Size Used by
rtc_ds1307 24576 0
rtc_pl031 16384 1
rtc_sunxi 16384 0
rtc_em3027 16384 0
sunxi_mmc 20480 0
mmc_block 32768 0
mvsdio 20480 0
mmc_core 102400 3 mvsdio,sunxi_mmc,mmc_block
nfs 192512 0
lockd 77824 1 nfs
grace 16384 1 lockd
sunrpc 258048 2 lockd,nfs
usbnet 24576 0
r8169 73728 0
mii 16384 2 r8169,usbnet
smsc911x 28672 0
raid1 36864 0
fscache 57344 1 nfs
xfs 929792 0
libcrc32c 16384 1 xfs
jfs 159744 0
reiserfs 212992 0
ext4 520192 0
fscrypto 24576 1 ext4
ext2 65536 0
mbcache 16384 2 ext4,ext2
dm_mod 98304 0
dax 20480 1 dm_mod
md_mod 110592 1 raid1
binfmt_misc 16384 0
jbd2 90112 1 ext4
vfat 20480 0
fat 57344 1 vfat
ehci_tegra 16384 0
phy_tegra_usb 20480 1 ehci_tegra
ahci_sunxi 16384 0
libahci_platform 16384 1 ahci_sunxi
libahci 28672 2 ahci_sunxi,libahci_platform
phy_sun4i_usb 16384 0
ehci_platform 16384 0
ums_onetouch 16384 0
ums_jumpshot 16384 0
ums_alauda 20480 0
ums_sddr55 16384 0
ums_sddr09 20480 0
ums_isd200 16384 0
ums_freecom 16384 0
ums_usbat 20480 0
ums_cypress 16384 0
usb_storage 45056 9 ums_isd200,ums_cypress,ums_usbat,ums_jumpshot,ums_freecom,ums_onetouch,ums_alauda,ums_sddr09,ums_sdd r55
ohci_hcd 36864 0
usbhid 45056 0
hid 81920 1 usbhid
uhci_hcd 28672 0
ehci_pci 16384 0
ehci_orion 16384 0
ehci_hcd 49152 4 ehci_orion,ehci_tegra,ehci_platform,ehci_pci
usbcore 163840 19 ehci_orion,usbnet,ehci_tegra,usbhid,ums_isd200,usb_storage,ums_cypress,ehci_hcd,ums_usbat,ums_jumpsh ot,ums_freecom,uhci_hcd,ums_onetouch,ums_alauda,ohci_hcd,ums_sddr09,ums_sddr55,ehci_platform,ehci_pc i
libata 176128 3 ahci_sunxi,libahci_platform,libahci
sr_mod 24576 0
cdrom 32768 1 sr_mod
sd_mod 40960 0
sg 28672 0
scsi_mod 176128 6 sd_mod,usb_storage,ums_cypress,libata,sr_mod,sg
xgifb 118784 0
ocfb 16384 0
i2c_ali1563 16384 0
sun6i_dma 20480 0
dwmac_sunxi 16384 0
stmmac_platform 16384 1 dwmac_sunxi
stmmac 94208 2 stmmac_platform,dwmac_sunxi
i2c_tegra 20480 0
crc32c_generic 16384 1

---

looks like these 2 lines in dmesg indicate an issue with 'dtc'. move all *.dtb files into /export/armhost/dtb (541 files)

looks like the script-called dtb exists and is in the correct place:
-rw-r--r-- 1 500 500 14692 Feb 20 04:51 dtb/vexpress-v2p-ca9.dtb

[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.


bash-4.3# ./disk_launch
qemu-system-arm: -net nic,vlan=0: 'vlan' is deprecated. Please use 'netdev' instead.
WARNING: Image format was not specified for 'sdcard.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.
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
qemu-system-arm: warning: hub port hub0port2 has no peer
qemu-system-arm: warning: netdev hub0port2 has no peer
qemu-system-arm: warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?)
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.20-armv7 (root@zippy.arm.slackware.com) (gcc version 7.3.0 (GCC)) #2 SMP Tue Feb 20 09:02:35 GMT 2018
[ 0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt: Machine model: V2P-CA9
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x9f000000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 17 pages/cpu @defa8000 s38540 r8192 d22900 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 261136
[ 0.000000] Kernel command line: vmalloc=512MB nofont root=/dev/mmcblk0p2 rootfstype=ext4 console=ttyAMA0,115200n8
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 1000024K/1048576K available (6144K kernel code, 1042K rwdata, 2272K rodata, 1024K init, 738K bss, 32168K reserved, 16384K cma-reserved, 516096K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdf800000 ( 504 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0208000 - 0xc0900000 (7136 kB)
[ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
[ 0.000000] .data : 0xc0d00000 - 0xc0e04afc (1043 kB)
[ 0.000000] .bss : 0xc0e0b2d4 - 0xc0ec3ddc ( 739 kB)
[ 0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] L2C: platform modifies aux control register: 0x02020000 -> 0x02420000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02420000
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9

[I think the above contains the relevant details from dmesg - have the whole thing if required]

Thank you for looking.
dec
 
Old 02-27-2018, 03:55 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 695

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
Hi

I suspect that some kernel modules need to be added to kernel.SlackBuild, and the run control scripts need modifying for the latest QEMU release.
The need I had for QEMU perished years ago, and it's slow and a pain for me to test (I don't think I've tested with -current since it was boot strapped).
Unless anybody wants to take it on as a community project, I'll remove the documentation from the tree in the near future (but all of the support in the Kernel will remain, as it's just another SOC).

Last edited by drmozes; 02-27-2018 at 03:57 AM.
 
  


Reply

Tags
slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why Microsoft's Linux lovefest goes hand-in-hand with its Azure cloud strategy LXer Syndicated Linux News 0 07-17-2016 07:06 PM
LXer: Install QEMU on ubuntu 15.04 and mange QEMU with Virt Manager LXer Syndicated Linux News 0 05-29-2015 04:41 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' Skaperen Linux - Virtualization and Cloud 8 06-09-2011 07:15 AM
LXer: Linux Training and Laptops Go Hand in Hand at LinuxCertified LXer Syndicated Linux News 0 01-31-2006 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration