ARM: orion5x/dove/mv78xx0 multiplatform
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 5 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 5 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] ARM: orion5x/dove/mv78xx0 multiplatform
Quoted 9 lines · Arnd Bergmann
Quoted 4 lines · On Thursday 10 December 2015 14:39:27 Detlef Vollmann wrote:
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.4.0-rc3 Kernel Configuration
#Just for fun, a few things you can probably disable without much downsides:
Quoted 6 lines
Quoted 4 lines
CONFIG_DEFAULT_HOSTNAME="dns-323"CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=ySYSVIPC could be disabled in principle for most embedded systems
I was a big fan of SYSV IPC and still sometimes prefer SYSV shm over mmap. But yes, for this system I probably don't need it. (Though I have a dim memory that one of the userspace programs required it, but I will try without again.)
I need swap for the case I have hard disks mounted and run checks on them.
Quoted 7 lines
Quoted 5 lines
CONFIG_SYSFS_DEPRECATED=yCONFIG_SYSFS_DEPRECATED_V2=y
#CONFIG_RELAYis not setCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""
SYSFS_DEPRECATEDcan probably go,
Probably yes.
Quoted 1 line
initramfs would be smaller than initrd
But initramfs doesn't accept a squashfs.
The trick here is that the same squashfs is first used as initrd and then as rootfs directly from flash (and the RAM of the initrd is freed then).
Quoted 10 lines
Quoted 8 lines
CONFIG_COMPAT_BRK=yCONFIG_SLAB=y
#CONFIG_SLUBis not set
#CONFIG_SLOBis not set
#CONFIG_SYSTEM_DATA_VERIFICATIONis not set
#CONFIG_PROFILINGis not setCONFIG_KEXEC_CORE=yCONFIG_HAVE_OPROFILE=ySLOB would be smaller than SLAB,
I didn't know this.
Quoted 1 line
kexec is often not needed.
This is the way I test new kernels.
I don't have JTAG mounted on this device and therefore don't want to risk to replace the U-Boot. Unfortunately the installed U-Boot doesn't support the network and uploading kernel and initrd through the serial port isn't very reliable...
Quoted 5 lines
Quoted 2 lines
CONFIG_SWIOTLB=yCONFIG_IOMMU_HELPER=yI have no idea why SWIOTLB is always enabled on ARM, I suspect that's a bug, and disabling it would save some space (need to change arm/Kconfig)
Ok, I'll test it.
Quoted 7 lines
Quoted 5 lines
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=yCONFIG_MTD_BLOCK=yI suspect you don't use
MTD_BLOCK
I believe SQUASHFS as well as MINIX FS require it.
Quoted 15 lines
Quoted 6 lines
CONFIG_BLK_DEV=y
#CONFIG_BLK_DEV_NULL_BLKis not set
#CONFIG_BLK_DEV_PCIESSD_MTIP32XXis not set
#CONFIG_BLK_CPQ_CISS_DAis not set
#CONFIG_BLK_DEV_DAC960is not set
#CONFIG_BLK_DEV_UMEMis not setQuoted 8 lines
#
CONFIG_BLK_DEV_COW_COMMONis not setCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_LOOP_MIN_COUNT=4
#CONFIG_BLK_DEV_CRYPTOLOOPis not set
#CONFIG_BLK_DEV_DRBDis not set
#CONFIG_BLK_DEV_NBDis not set
#CONFIG_BLK_DEV_SX8is not setCONFIG_BLK_DEV_RAM=y
Quoted 2 lines
Loop and RAM could be loadable modules, if that saves space in the end. If modules are actually larger, you can have everything built-in.
The flash partitioning is fix on this system (without my own U-Boot). So I pushed as much as possible into the kernel binary to save the other partition for real userspace programs. I didn't succeed (XFS and btrfs are too big) but still try to cram as much as possible into the kernel binary. My current rootfs spare is less than 100K and I need to care for updates...
Quoted 14 lines
Quoted 5 lines
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yQuoted 8 lines
#
CONFIG_SERIAL_8250_DEPRECATED_OPTIONSis not setCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=y
#CONFIG_SERIAL_8250_PCIis not setCONFIG_SERIAL_8250_NR_UARTS=2CONFIG_SERIAL_8250_RUNTIME_UARTS=2
#CONFIG_SERIAL_8250_EXTENDEDis not setCONFIG_SERIAL_8250_FSL=y
Quoted 1 line
No need for 8250_FSL or 8250_DMA on your hardware
Thanks (I don't have proper documentation for this CPU).
Quoted 15 lines
Quoted 6 lines
#
# Memory mapped GPIO drivers
#
#CONFIG_GPIO_74XX_MMIOis not set
#CONFIG_GPIO_ALTERAis not set
#CONFIG_GPIO_DWAPBis not setQuoted 8 lines
#
CONFIG_GPIO_EMis not set
#CONFIG_GPIO_GENERIC_PLATFORMis not set
#CONFIG_GPIO_GRGPIOis not setCONFIG_GPIO_MVEBU=y
#CONFIG_GPIO_VX855is not set
#CONFIG_GPIO_XILINXis not set
#CONFIG_GPIO_ZEVIOis not set
#CONFIG_GPIO_ZXis not set
Quoted 2 lines
It looks like you get two GPIO drivers for the same hardware. We should probably change this so you only need one of the two.
Yes. I was surprised when I saw GPIO_MVEBU but ARCH_ORION5X turns it always on.
Quoted 11 lines
Quoted 10 lines
#
# USB Host Controller Drivers
#
#CONFIG_USB_C67X00_HCDis not set
#CONFIG_USB_XHCI_HCDis not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=y
#CONFIG_USB_EHCI_TT_NEWSCHEDis not setCONFIG_USB_EHCI_PCI=yCONFIG_USB_EHCI_HCD_ORION=y
Quoted 5 lines
You probably don't have a PCI EHCI
Quoted 1 line
CONFIG_USB_STORAGE=ymodule
I want to be able to run the rootfs from USB as a fallback.
Quoted 6 lines
Quoted 4 lines
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=yprobably not needed since you have no specific driver for it.
Thanks.
Quoted 9 lines
Quoted 6 lines
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yEXT2 no longer needs to be built when EXT4 is enabled, you can just use the EXT4 code to mount EXT2 file systems.
Right now I have a bug with EXT4 (I can't delete a 200GB file). So I probably trust the EXT2 code more (but I still want to be able to have an EXT4 FS).
Quoted 5 lines
Quoted 2 lines
CONFIG_XFS_FS=y
#CONFIG_XFS_QUOTAis not setXFS is huge. If you don't need it, that would likely save more than anything else.
I know. And btrfs is even worse (most features can't be configured off). But this is a backup station and I want the options of the different filesystems.
Quoted 3 lines
Quoted 1 line
CONFIG_MINIX_FS=yminixfs is almost never needed, but small.
There are two flash partitions with the persistent system parameters. These use MINIX FS (not my design).
Quoted 13 lines
Quoted 4 lines
#
CONFIG_OMFS_FSis not set
#CONFIG_HPFS_FSis not set
#CONFIG_QNX4FS_FSis not set
#CONFIG_QNX6FS_FSis not setQuoted 8 lines
#
CONFIG_ROMFS_FSis not set
#CONFIG_PSTOREis not set
#CONFIG_SYSV_FSis not set
#CONFIG_UFS_FSis not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=yCONFIG_NFS_V2=yCONFIG_NFS_V3=y
Quoted 1 line
NFS and NFSD are also pretty big, but I assume you need them.
Yes.
Thanks for your effort, but some time ago I hoped to get rid of all modules (to save some space for userspace) and went through the whole configuration. So there are at least no big chunks to be removed...
Detlef