2013-09-28 11:27:17

by Ramkumar Ramachandra

[permalink] [raw]
Subject: [PATCH 0/2] Lower entry barrier for arm64 development

Hi,

So I got this far after many hours of scratching my head. Let's make
EXT4, VIRTIO_MMIO, and VIRTIO_BLK part of the default configuration so
users have a pleasant ride when attempting to run their freshly built
AArch64 kernel. My boot wrapper has diverged from Catalin's quite
significantly [1], and it works well for me. I intend to address more
papercuts in future patches.

Thanks.

[1]: https://github.com/artagnon/boot-wrapper-aarch64

Ramkumar Ramachandra (2):
arm64: include EXT4 in defconfig
arm64: include VIRTIO_{MMIO,BLK} in defconfig

arch/arm64/configs/defconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

--
1.8.4.477.g4cae6f5


2013-09-28 11:26:50

by Ramkumar Ramachandra

[permalink] [raw]
Subject: [PATCH 1/2] arm64: include EXT4 in defconfig

Most readily available root filesystems are formatted as EXT4 these
days. For example, see the raring rootfs that the Debian folk is
preparing [1].

[1]: http://people.debian.org/~wookey/bootstrap/rootfs/

Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Andreas Schwab <[email protected]>
Signed-off-by: Ramkumar Ramachandra <[email protected]>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 5b3e832..798bcbb 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -72,6 +72,7 @@ CONFIG_LOGO=y
# CONFIG_IOMMU_SUPPORT is not set
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
+CONFIG_EXT4_FS=y
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
# CONFIG_EXT3_FS_XATTR is not set
CONFIG_FUSE_FS=y
--
1.8.4.477.g4cae6f5

2013-09-28 11:27:14

by Ramkumar Ramachandra

[permalink] [raw]
Subject: [PATCH 2/2] arm64: include VIRTIO_{MMIO,BLK} in defconfig

Currently, development on arm64 is aided by a Foundation_v8 emulator
distributed by ARM [1]. To run their kernels, users will execute:

$ ./Foundation_v8 --image linux-system.axf --block-device raring-rootfs

To mount the raring-rootfs filesystem, the kernel parameter should
typically include:

root=/dev/vda

For this device to be present, the kernel must be compiled with
VIRTIO_{MMIO,BLK}. To make this work out-of-the-box, make it part of the
default configuration.

[1]: https://silver.arm.com/browse/FM00A

Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Andreas Schwab <[email protected]>
Signed-off-by: Ramkumar Ramachandra <[email protected]>
---
arch/arm64/configs/defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 798bcbb..31c81e9 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -42,7 +42,7 @@ CONFIG_IP_PNP_BOOTP=y
# CONFIG_WIRELESS is not set
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
-# CONFIG_BLK_DEV is not set
+CONFIG_BLK_DEV=y
CONFIG_SCSI=y
# CONFIG_SCSI_PROC_FS is not set
CONFIG_BLK_DEV_SD=y
@@ -91,3 +91,5 @@ CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_INFO=y
# CONFIG_FTRACE is not set
CONFIG_ATOMIC64_SELFTEST=y
+CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_BLK=y
--
1.8.4.477.g4cae6f5

2013-09-30 14:54:31

by Catalin Marinas

[permalink] [raw]
Subject: Re: [PATCH 0/2] Lower entry barrier for arm64 development

On Sat, Sep 28, 2013 at 12:19:54PM +0100, Ramkumar Ramachandra wrote:
> So I got this far after many hours of scratching my head. Let's make
> EXT4, VIRTIO_MMIO, and VIRTIO_BLK part of the default configuration so
> users have a pleasant ride when attempting to run their freshly built
> AArch64 kernel. My boot wrapper has diverged from Catalin's quite
> significantly [1], and it works well for me. I intend to address more
> papercuts in future patches.
>
> Thanks.
>
> [1]: https://github.com/artagnon/boot-wrapper-aarch64
>
> Ramkumar Ramachandra (2):
> arm64: include EXT4 in defconfig
> arm64: include VIRTIO_{MMIO,BLK} in defconfig

Thanks. Both patches applied.

--
Catalin