11-13-2013 08:39 AM
Hello, sorry for may be stupid question, just learning Zynq.
I have got zynq_linux.tar.gz file unpacked.
I'm trying to run qemu with -append option:
./arm-softmmu/qemu-system-arm -hda ./file.img -M xilinx-zynq-a9 -m 1024 -serial null -serial mon:stdio -kern-dtb ./xilinx_zynq.dtb -smp 2 -nographic -kernel kernel/zImage -initrd filesystem/ramdisk.img -append "root=/dev/hda rw rootfs=ext2 panic=1"
In qemu output:
ram size=40000000
error reading QSPI block device
error no mtd drive for nand flash
a0mpcore_priv: smp_priv_base f8f00000
error no sd drive for sdhci controller (0)
error no sd drive for sdhci controller (1)
Number of configured NICs 0x1
ram_size 40000000, board_id d32, loader_start 0
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.0-01282-g90e010b-dirty (linnj@xsjlinnj40) (gcc version 4.5.2 (Sourcery CodeBench Lite 2011.07-57) ) #289 SMP PREEMPT Tue Feb 14 09:54:05 PST 2012
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Xilinx Zynq Platform, model: Xilinx Zynq EP107
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @c0610000 s4928 r8192 d15552 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 60928
Kernel command line: console=ttyPS0,115200 root=/dev/ram rw initrd=0x800000,8M earlyprintk ip=:::::eth0:dhcp
...
the kernel command line is not what I have expected (-append "root=/dev/hda rw rootfs=ext2 panic=1")? Why?
Second question:
As it comes start_qemu.sh;
./arm-softmmu/qemu-system-arm -M xilinx-zynq-a9 -m 1024 -serial null -serial mon:stdio -kern-dtb ./xilinx_zynq.dtb -smp 2 -nographic -kernel kernel/zImage ...
has got option -m 1024
when qemu start bash:
zynq> free -m
total used free shared buffers
Mem: 233 17 216 0 0
-/+ buffers: 16 216
Swap: 0 0 0
returns about 256MB, so is the output of the kernel
ram size=40000000
error reading QSPI block device
error no mtd drive for nand flash
a0mpcore_priv: smp_priv_base f8f00000
error no sd drive for sdhci controller (0)
error no sd drive for sdhci controller (1)
Number of configured NICs 0x1
ram_size 40000000, board_id d32, loader_start 0
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.0-01282-g90e010b-dirty (linnj@xsjlinnj40) (gcc version 4.5.2 (Sourcery CodeBench Lite 2011.07-57) ) #289 SMP PREEMPT Tue Feb 14 09:54:05 PST 2012
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Xilinx Zynq Platform, model: Xilinx Zynq EP107
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @c0610000 s4928 r8192 d15552 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 60928
Kernel command line: console=ttyPS0,115200 root=/dev/ram rw initrd=0x800000,8M earlyprintk ip=:::::eth0:dhcp
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 240MB = 240MB total
Memory: 231072k/231072k available, 31072k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xd0800000 - 0xe0000000 ( 248 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.init : 0xc0008000 - 0xc002c000 ( 144 kB)
.text : 0xc002c000 - 0xc03c9428 (3702 kB)
.data : 0xc03ca000 - 0xc03f25a0 ( 162 kB)
.bss : 0xc03f25c4 - 0xc040a3cc ( 96 kB)
Why 256MB and not 1G?