Skip to contentSkip to conversation

keystone-evm config: add ubifs support

PATCH In review [email protected] 2 participants 3 messages Feb 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 keystone-evm config: add ubifs support

From: Hao Zhang <[email protected]>

---
 conf/machine/keystone-evm.conf |   19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
conf/machine/keystone-evm.conf +18 -1
index e73d84b..3e44ddc 100644
@@ -14,7 +14,7 @@ require conf/machine/include/keystone.inc
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-keystone"
 
-IMAGE_FSTYPES += "tar.bz2 cpio"
+IMAGE_FSTYPES += "ubi tar.bz2 cpio"
 
 SERIAL_CONSOLE = "115200 ttyS0"
 
@@ -23,3 +23,20 @@ SYSVINIT_ENABLED_GETTYS = ""
 UBOOT_MACHINE = "tci6638_evm_config"
 
 MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: logical eraseblock size:    126976 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 857 LEBs
+# MKUBIFS_ARGS = "-m 2048 -e 129024 -c 857"
+MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 857"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: physical eraseblock size:   131072 bytes (128 KiB)
+# UBI: sub-page size:              2048
+UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
+
+
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · On Tue, Feb 26, 2013 at 02:48:50PM -0500, [email protected] wrote:

From: Hao Zhang <[email protected]>

I assume you double-checked the actual UBI ARGS values below for the Keystone. Other than that looks fine to me - I'll push it shortly.

Quoted 9 lines
---
 conf/machine/keystone-evm.conf |   19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
conf/machine/keystone-evm.conf +0 -0
index e73d84b..3e44ddc 100644

conf/machine/keystone-evm.conf require conf/machine/include/keystone.inc · line 17

Quoted 5 lines
conf/machine/keystone-evm.conf +1 -1
@@ -14,7 +14,7 @@ require conf/machine/include/keystone.inc
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-keystone"
 
-IMAGE_FSTYPES += "tar.bz2 cpio"
+IMAGE_FSTYPES += "ubi tar.bz2 cpio"

BTW, speaking of this - do you still need uncompressed cpio? Last time we talked, we were not sure if compressed cpio.gz would be sufficient.

Quoted 31 lines
conf/machine/keystone-evm.conf +17 -0
 SERIAL_CONSOLE = "115200 ttyS0"
 
@@ -23,3 +23,20 @@ SYSVINIT_ENABLED_GETTYS = ""
 UBOOT_MACHINE = "tci6638_evm_config"
 
 MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: logical eraseblock size:    126976 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 857 LEBs
+# MKUBIFS_ARGS = "-m 2048 -e 129024 -c 857"
+MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 857"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: physical eraseblock size:   131072 bytes (128 KiB)
+# UBI: sub-page size:              2048
+UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
+
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#2 lore raw
Quoted 6 lines · Denys Dmytriyenko
Quoted 1 line · On Tue, Feb 26, 2013 at 02:48:50PM -0500, [email protected] wrote:

From: Hao Zhang<[email protected]>

I assume you double-checked the actual UBI ARGS values below for the Keystone. Other than that looks fine to me - I'll push it shortly.

Yes, I did, thanks.

Quoted 50 lines
Quoted 9 lines
---
  conf/machine/keystone-evm.conf |   19 ++++++++++++++++++-
  1 file changed, 18 insertions(+), 1 deletion(-)
conf/machine/keystone-evm.conf +0 -0
index e73d84b..3e44ddc 100644

conf/machine/keystone-evm.conf require conf/machine/include/keystone.inc · line 17

Quoted 5 lines
conf/machine/keystone-evm.conf +1 -1
@@ -14,7 +14,7 @@ require conf/machine/include/keystone.inc
 
  PREFERRED_PROVIDER_virtual/kernel = "linux-keystone"
 
-IMAGE_FSTYPES += "tar.bz2 cpio"
+IMAGE_FSTYPES += "ubi tar.bz2 cpio"

BTW, speaking of this - do you still need uncompressed cpio? Last time we talked, we were not sure if compressed cpio.gz would be sufficient.

Quoted 31 lines
conf/machine/keystone-evm.conf +17 -1
  SERIAL_CONSOLE = "115200 ttyS0"
 
@@ -23,3 +23,20 @@ SYSVINIT_ENABLED_GETTYS = ""
  UBOOT_MACHINE = "tci6638_evm_config"
 
  MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: logical eraseblock size:    126976 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 857 LEBs
+# MKUBIFS_ARGS = "-m 2048 -e 129024 -c 857"
+MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 857"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    2048
+# UBI: physical eraseblock size:   131072 bytes (128 KiB)
+# UBI: sub-page size:              2048
+UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048 -O 2048"
+
+
--

1.7.9.5

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti