mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun5i-a13-olinuxino.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
size = 64M
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"sun5i-a13-olinuxino.dtb",
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
@@ -16,16 +17,15 @@ image sdcard.img {
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8192
|
||||
size = 1040384 # 1MB - 8192
|
||||
offset = 8K
|
||||
size = 1016K # 1MB - 8KB
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
|
||||
@@ -5,8 +5,8 @@ image sdcard.img {
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8192
|
||||
size = 1040384 # 1MB - 8192
|
||||
offset = 8K
|
||||
size = 1016K # 1MB - 8KB
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
|
||||
2
board/olimex/a20_olinuxino/linux-disable-lima.fragment
Normal file
2
board/olimex/a20_olinuxino/linux-disable-lima.fragment
Normal file
@@ -0,0 +1,2 @@
|
||||
# Disable LIMA in favour of Mali
|
||||
# CONFIG_DRM_LIMA is not set
|
||||
@@ -0,0 +1,4 @@
|
||||
label Olinuxino
|
||||
kernel /boot/zImage
|
||||
fdtdir /boot
|
||||
append console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 drm_kms_helper.drm_leak_fbdev_smem=1 drm_kms_helper.drm_fbdev_overalloc=200 ${extra}
|
||||
@@ -5,8 +5,8 @@ image sdcard.img {
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8192
|
||||
size = 1040384 # 1MB - 8192
|
||||
offset = 8K
|
||||
size = 1016K # 1MB - 8KB
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
|
||||
@@ -6,6 +6,7 @@ image boot.vfat {
|
||||
"boot.scr"
|
||||
}
|
||||
}
|
||||
|
||||
size = 64M
|
||||
}
|
||||
|
||||
@@ -13,17 +14,11 @@ image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition spl {
|
||||
in-partition-table = "no"
|
||||
image = "sunxi-spl.bin"
|
||||
offset = 8192
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot.itb"
|
||||
offset = 40K
|
||||
size = 1M # 1MB - 40K
|
||||
image = "u-boot-sunxi-with-spl.bin"
|
||||
offset = 8K
|
||||
size = 1032K # 1MB - 8KB + 16KB(GPT)
|
||||
}
|
||||
|
||||
partition boot {
|
||||
|
||||
25
board/olimex/stmp1_olinuxino/genimage.cfg
Normal file
25
board/olimex/stmp1_olinuxino/genimage.cfg
Normal file
@@ -0,0 +1,25 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
gpt = "true"
|
||||
}
|
||||
|
||||
partition fsbl1 {
|
||||
image = "u-boot-spl.stm32"
|
||||
size = 256K
|
||||
}
|
||||
|
||||
partition fsbl2 {
|
||||
image = "u-boot-spl.stm32"
|
||||
size = 256K
|
||||
}
|
||||
|
||||
partition ssbl {
|
||||
image = "u-boot.img"
|
||||
size = 2M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
image = "rootfs.ext4"
|
||||
bootable = "yes"
|
||||
}
|
||||
}
|
||||
125
board/olimex/stmp1_olinuxino/linux.config
Normal file
125
board/olimex/stmp1_olinuxino/linux.config
Normal file
@@ -0,0 +1,125 @@
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_PREEMPT=y
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_ARCH_STM32=y
|
||||
CONFIG_ARM_THUMBEE=y
|
||||
CONFIG_SMP=y
|
||||
CONFIG_HIGHMEM=y
|
||||
CONFIG_VFP=y
|
||||
CONFIG_NEON=y
|
||||
CONFIG_KERNEL_MODE_NEON=y
|
||||
CONFIG_ARM_CRYPTO=y
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_FORCE_LOAD=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_CAN=m
|
||||
CONFIG_CAN_M_CAN=m
|
||||
CONFIG_CAN_M_CAN_PLATFORM=m
|
||||
CONFIG_UEVENT_HELPER=y
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
CONFIG_OF_OVERLAY=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_RAM=y
|
||||
CONFIG_BLK_DEV_RAM_COUNT=4
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_STMMAC_ETH=y
|
||||
CONFIG_MICREL_PHY=y
|
||||
CONFIG_INPUT_MOUSEDEV=m
|
||||
CONFIG_INPUT_EVDEV=m
|
||||
CONFIG_INPUT_MISC=y
|
||||
CONFIG_INPUT_AXP20X_PEK=m
|
||||
CONFIG_SERIAL_STM32=y
|
||||
CONFIG_SERIAL_STM32_CONSOLE=y
|
||||
CONFIG_NULL_TTY=m
|
||||
CONFIG_SERIAL_DEV_BUS=m
|
||||
CONFIG_HW_RANDOM=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_STM32F7=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_MEM=y
|
||||
CONFIG_SPI_STM32=m
|
||||
CONFIG_SPI_STM32_QSPI=m
|
||||
CONFIG_PINCTRL_AXP209=m
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_RESET_GPIO=y
|
||||
CONFIG_POWER_RESET_GPIO_RESTART=y
|
||||
CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE=y
|
||||
CONFIG_CPU_THERMAL=y
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_MFD_AXP20X_I2C=y
|
||||
CONFIG_MFD_STM32_LPTIMER=y
|
||||
CONFIG_REGULATOR=y
|
||||
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
||||
CONFIG_REGULATOR_AXP20X=y
|
||||
CONFIG_REGULATOR_STM32_VREFBUF=y
|
||||
CONFIG_REGULATOR_STM32_PWR=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_STM=m
|
||||
CONFIG_DRM_STM_DSI=m
|
||||
CONFIG_DRM_PANEL_LVDS=m
|
||||
CONFIG_DRM_PANEL_SIMPLE=m
|
||||
CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO=m
|
||||
CONFIG_DRM_ITE_IT66121=m
|
||||
CONFIG_DRM_ETNAVIV=m
|
||||
CONFIG_BACKLIGHT_CLASS_DEVICE=y
|
||||
CONFIG_BACKLIGHT_PWM=m
|
||||
CONFIG_BACKLIGHT_GPIO=m
|
||||
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||
CONFIG_LOGO=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_OHCI_HCD=y
|
||||
CONFIG_MMC=y
|
||||
CONFIG_MMC_ARMMMCI=y
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_PLTFM=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_STM32=y
|
||||
CONFIG_DMADEVICES=y
|
||||
CONFIG_STM32_DMA=y
|
||||
CONFIG_STM32_DMAMUX=y
|
||||
CONFIG_STM32_MDMA=y
|
||||
CONFIG_UIO=m
|
||||
CONFIG_UIO_PDRV_GENIRQ=m
|
||||
CONFIG_UIO_DMEM_GENIRQ=m
|
||||
CONFIG_HWSPINLOCK=y
|
||||
CONFIG_HWSPINLOCK_STM32=y
|
||||
CONFIG_CLKSRC_STM32_LP=y
|
||||
CONFIG_STM32_IPCC=y
|
||||
CONFIG_REMOTEPROC=y
|
||||
CONFIG_STM32_RPROC=y
|
||||
CONFIG_IIO=y
|
||||
CONFIG_IIO_SW_TRIGGER=y
|
||||
CONFIG_SD_ADC_MODULATOR=y
|
||||
CONFIG_STM32_ADC_CORE=y
|
||||
CONFIG_STM32_ADC=y
|
||||
CONFIG_STM32_DFSDM_ADC=y
|
||||
CONFIG_STM32_DAC=y
|
||||
CONFIG_IIO_HRTIMER_TRIGGER=y
|
||||
CONFIG_IIO_STM32_LPTIMER_TRIGGER=y
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_STM32=m
|
||||
CONFIG_PWM_STM32_LP=m
|
||||
CONFIG_PHY_STM32_USBPHYC=y
|
||||
CONFIG_NVMEM_STM32_ROMEM=y
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_NLS_UTF8=y
|
||||
CONFIG_PRINTK_TIME=y
|
||||
53
board/olimex/stmp1_olinuxino/readme.txt
Normal file
53
board/olimex/stmp1_olinuxino/readme.txt
Normal file
@@ -0,0 +1,53 @@
|
||||
STMP157-OLinuXino-LIME2
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
These are open hardware boards, all based on the STmicro STMP157 SoC.
|
||||
|
||||
for more details about the board see the following pages:
|
||||
- https://www.olimex.com/Products/OLinuXino/open-source-hardware
|
||||
- https://www.olimex.com/Products/OLinuXino/STMP1/STMP157-OLinuXino-LIME2/
|
||||
|
||||
The following defconfigs are available:
|
||||
- olimex_stmp157_olinuxino_lime_defconfig
|
||||
|
||||
How to build it
|
||||
===============
|
||||
|
||||
Configure Buildroot:
|
||||
|
||||
$ make <board>_defconfig
|
||||
|
||||
Compile everything and build the rootfs image:
|
||||
|
||||
$ make
|
||||
|
||||
Result of the build
|
||||
-------------------
|
||||
|
||||
After building, you should get a tree like this:
|
||||
|
||||
output/images/
|
||||
+-- rootfs.ext2
|
||||
+-- rootfs.ext4 -> rootfs.ext2
|
||||
+-- sdcard.img
|
||||
+-- stm32mp1xx-olinuxino-lime.dtb
|
||||
+-- u-boot-spl.stm32
|
||||
+-- u-boot.img
|
||||
`-- zImage
|
||||
|
||||
|
||||
How to write the SD card
|
||||
========================
|
||||
|
||||
The sdcard.img file is a complete bootable image ready to be written
|
||||
on the boot medium. To install it, simply copy the image to a uSD
|
||||
card:
|
||||
|
||||
# dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where 'sdX' is the device node of the uSD.
|
||||
|
||||
Eject the SD card, insert it in the STMP1-OLinuXino board, and power it up.
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
label stmp1-olinuxino-buildroot
|
||||
kernel /boot/zImage
|
||||
devicetree /boot/stm32mp1xx-olinuxino-lime.dtb
|
||||
append root=/dev/mmcblk0p4 rootwait
|
||||
Reference in New Issue
Block a user