...
 
Commits (3)
......@@ -121,6 +121,7 @@ IMAGE_ROOTFS_SIZE = "262144"
#IMAGE_FSTYPES = "ext2.gz.u-boot tar.gz"
IMAGE_FSTYPES = "tar.gz ubi ext4"
# OLD driver (4.14 and older) didn't support subpages
########################################################################
########################################################################
## root@elphel393:~# mtdinfo /dev/mtd4 -u
......@@ -142,8 +143,43 @@ IMAGE_FSTYPES = "tar.gz ubi ext4"
########################################################################
########################################################################
MKUBIFS_ARGS = " -m 2048 -e 126976 -c 2048"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 2048"
# NEW driver (4.19) supports subpages - 4 subpages in a page
########################################################################
########################################################################
## root@elphel393:~# mtdinfo /dev/mtd4 -u
## mtd4
## Name: rootfs
## Type: nand
## Eraseblock size: 131072 bytes, 128.0 KiB
## Amount of eraseblocks: 2048 (268435456 bytes, 256.0 MiB)
## Minimum input/output unit size: 2048 bytes
## Sub-page size: 512 bytes
## OOB size: 64 bytes
## Character device major/minor: 90:8
## Bad blocks are allowed: true
## Device is writable: true
## Default UBI VID header offset: 512
## Default UBI data offset: 2048
## Default UBI LEB size: 129024 bytes, 126.0 KiB
## Maximum UBI volumes count: 128
########################################################################
########################################################################
#https://bootlin.com/blog/creating-flashing-ubi-ubifs-images/
# m - min io size
# e - LEB size
# c - eraseblocks count
#MKUBIFS_ARGS = " -m 2048 -e 126976 -c 2048"
MKUBIFS_ARGS = " -m 2048 -e 129024 -c 2048"
# https://www.mankier.com/8/ubinize
# m - minimum i/o unit size
# s - minimum subpage size
# p - size of physical erase block
#UBINIZE_ARGS = " -m 2048 -p 128KiB -s 2048"
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 512"
create_symlinks_append(){
......
......@@ -44,6 +44,7 @@ CONFIG_UBIFS_FS=y
#CONFIG_UBIFS_FS_ZLIB=y - default
CONFIG_MTD_NAND_OTP=y
CONFIG_MTD_NAND_PL353=y
CONFIG_SENSORS_JC42=y
......
......@@ -2,13 +2,17 @@ FILESEXTRAPATHS_append := "${TOPDIR}/../../linux-elphel/src/patches:"
FILESEXTRAPATHS_prepend := "${THISDIR}/config:"
SRC_URI_append += " file://garmin_usb.c.patch"
#SRC_URI_append += " file://xilinx_emacps.c.patch"
#SRC_URI_append += " file://xilinx_uartps.c.patch"
#SRC_URI_append += " file://si5338_vsc330x.patch"
SRC_URI_append += " file://drivers-elphel.patch"
SRC_URI_append += " file://ahci.patch"
SRC_URI_append += " file://libahci.patch"
#SRC_URI_append += " file://libata-eh.c.patch"
SRC_URI_append += " file://libata-eh.c.patch"
SRC_URI_append += " file://rtc-m41t80.c.patch"
SRC_URI_append += " file://sdhci.c.patch"
SRC_URI_append += " file://macb_main.c.patch"
#SRC_URI_append += " file://xilinx_emacps.c.patch"
#SRC_URI_append += " file://xilinx_uartps.c.patch"
#SRC_URI_append += " file://si5338_vsc330x.patch"
SRC_URI_append += " file://${MACHINE}.scc"
KERNEL_FEATURES_append = " ${MACHINE}.scc"
......@@ -19,17 +23,10 @@ linux-elphel_label= "https://${ELPHELGITHOST}/Elphel/linux-elphel.git"
linux-elphel_branch= "master"
linux-elphel_gitdir= "${WORKDIR}/linux-elphel"
LINUX_VERSION = "4.14"
XILINX_RELEASE_VERSION = "v2018.3"
KBRANCH = "xlnx_rebase_v4.14"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
# linux xilinx hash
#SRCREV = "9c2e29b2c81dbb1efb7ee4944b18e12226b97513"
# for 4.14:
SRCREV = "eeab73d1207d6fc2082776c954eb19fd7290bfbe"
# for 4.19
#SRCREV = "9811303824b66a8db9a8ec61b570879336a9fde5"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
# linux xilinx hash for xlnx_rebase_v4.19
SRCREV = "9811303824b66a8db9a8ec61b570879336a9fde5"
# To use the latest leave: "" - (=empty)
linux-elphel_srcrev= ""
......