Skip to content

Commit 9b234f0

Browse files
author
ccj
committed
[linux_boot] linux增加跟文件系统
1 parent b06846d commit 9b234f0

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

bsp/qemu-virt64-aarch64/linux.dts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,17 @@
2929
compatible = "virtio,mmio";
3030
};
3131

32+
virtio_mmio@a000200 {
33+
dma-coherent;
34+
interrupts = <0x00 0x11 0x01>;
35+
reg = <0x00 0xa000200 0x00 0x200>;
36+
compatible = "virtio,mmio";
37+
};
38+
3239
intc: intc@8000000 {
3340
phandle = <0x8005>;
3441
interrupts = <0x01 0x09 0x04>;
35-
reg = <0x00 0x8000000 0x00 0x10000 0x00 0x8010000 0x00 0x10000 0x00 0x8030000 0x00 0x10000 0x00 0x8040000 0x00 0x10000>;
42+
reg = <0x00 0x8000000 0x00 0x10000 0x00 0x8010000 0x00 0x10000>;
3643
compatible = "arm,cortex-a15-gic";
3744
ranges;
3845
#size-cells = <0x02>;
@@ -69,6 +76,6 @@
6976
};
7077

7178
chosen {
72-
bootargs = "console=hvc0 maxcpus=1 nr_cpus=1 loglevel=8";
79+
bootargs = "console=hvc0 maxcpus=1 nr_cpus=1 loglevel=8 root=/dev/vda rw rootwait";
7380
};
7481
};

bsp/qemu-virt64-aarch64/xqemu.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ qemu-system-aarch64 ^
1010
-dtb rtt.dtb ^
1111
-device loader,file=Image,addr=0x48200000,force-raw=on ^
1212
-device loader,file=linux.dtb,addr=0x4f000000,force-raw=on ^
13+
-drive if=none,file=ubuntu-rootfs.img,format=raw,id=vdisk0 ^
14+
-device virtio-blk-device,drive=vdisk0,bus=virtio-mmio-bus.1 ^
1315
-nographic ^
1416
-serial mon:stdio ^
1517
-chardev socket,host=127.0.0.1,port=4322,server=on,wait=off,telnet=on,id=linux_console ^

0 commit comments

Comments
 (0)