Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
c7e5d3e9
Commit
c7e5d3e9
authored
Sep 26, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated UBI parameters to 4.19 with 512B subpages
parent
64fe3aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
core-image-elphel393.bb
recipes-core/images/core-image-elphel393.bb
+38
-2
No files found.
recipes-core/images/core-image-elphel393.bb
View file @
c7e5d3e9
...
@@ -121,6 +121,7 @@ IMAGE_ROOTFS_SIZE = "262144"
...
@@ -121,6 +121,7 @@ IMAGE_ROOTFS_SIZE = "262144"
#IMAGE_FSTYPES = "ext2.gz.u-boot tar.gz"
#IMAGE_FSTYPES = "ext2.gz.u-boot tar.gz"
IMAGE_FSTYPES = "tar.gz ubi ext4"
IMAGE_FSTYPES = "tar.gz ubi ext4"
# OLD driver (4.14 and older) didn't support subpages
########################################################################
########################################################################
########################################################################
########################################################################
## root@elphel393:~# mtdinfo /dev/mtd4 -u
## root@elphel393:~# mtdinfo /dev/mtd4 -u
...
@@ -142,8 +143,43 @@ IMAGE_FSTYPES = "tar.gz ubi ext4"
...
@@ -142,8 +143,43 @@ IMAGE_FSTYPES = "tar.gz ubi ext4"
########################################################################
########################################################################
########################################################################
########################################################################
MKUBIFS_ARGS = " -m 2048 -e 126976 -c 2048"
# NEW driver (4.19) supports subpages - 4 subpages in a page
UBINIZE_ARGS = " -m 2048 -p 128KiB -s 2048"
########################################################################
########################################################################
## 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(){
create_symlinks_append(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment