Skip to contentSkip to conversation

configs/at91sam9g20dfc: add ubifs target filesystem

PATCH Superseded Joshua Henderson 2 participants 4 messages Apr 5, 2018 – Apr 6, 2018 Arm/Microchip (AT91) SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 configs/at91sam9g20dfc: add ubifs target filesystem

This is a required component to complete the configuration. It also makes sense to add ubifs so that this board can be flashed with the board/atmel/flasher.sh script.

---
 configs/at91sam9g20dfc_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/at91sam9g20dfc_defconfig +2 -0
index 0824868..f555b60 100644
@@ -15,6 +15,8 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g20ek"
 
 # Filesystem
 BR2_TARGET_ROOTFS_TAR=y
+BR2_TARGET_ROOTFS_UBI=y
+BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047
 
 # Bootloaders
 BR2_TARGET_AT91BOOTSTRAP3=y
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 atmel: add support for at91sam9g20ek to flasher.sh

From: Prasanthi Chellakumar <[email protected]>

Adds support for the at91sam9g20-ek board to the flasher.sh script.

---
 board/atmel/flasher.sh | 5 +++++
 1 file changed, 5 insertions(+)
board/atmel/flasher.sh +5 -0
index 99050e4..6f80e7e 100755
@@ -20,6 +20,10 @@ family_at91sam9g15ek="at91sam9x5ek"
 mach_at91sam9g15ek="at91sam9g15-ek"
 dtb_at91sam9g15ek="at91sam9g15ek.dtb"
 
+family_at91sam9g20ek="at91sam9g20ek"
+mach_at91sam9g20ek="at91sam9g20-ek"
+dtb_at91sam9g20ek="at91sam9g20ek.dtb"
+
 family_at91sam9g25ek="at91sam9x5ek"
 mach_at91sam9g25ek="at91sam9g25-ek"
 dtb_at91sam9g25ek="at91sam9g25ek.dtb"
@@ -97,6 +101,7 @@ Available boards:
   at91sam9g45m10ek
   at91sam9rlek
   at91sam9g15ek
+  at91sam9g20dfc
   at91sam9g25ek
   at91sam9x25ek
   at91sam9g35ek
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/2 configs/at91sam9g20dfc: add ubifs target filesystem

In reply to Joshua Henderson

Hello,

configs/at91sam9g20dfc_defconfig BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g20ek" · line 19

Quoted 4 lines · Joshua Henderson

# Filesystem
BR2_TARGET_ROOTFS_TAR=y

configs/at91sam9g20dfc_defconfig +2 -0
+BR2_TARGET_ROOTFS_UBI=y
+BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047

I guess these are the two options left after doing a "make savedefconfig". However, I would be more comfortable if you made explicit the other important options about UBI, like it is the case in other Atmel defconfigs:

BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x3e000
BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x1000
BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2082
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x40000
BR2_TARGET_ROOTFS_UBI_SUBSIZE=0

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/2 configs/at91sam9g20dfc: add ubifs target filesystem

Quoted 4 lines · Thomas Petazzoni

Hello,

On Thu, 5 Apr 2018 14:21:23 -0700, Joshua Henderson wrote:

Quoted 9 lines

configs/at91sam9g20dfc_defconfig BR2_LINUX_KERNEL_INTREE_DTS_NAME="at91sam9g20ek" · line 19

Quoted 4 lines

# Filesystem
BR2_TARGET_ROOTFS_TAR=y

configs/at91sam9g20dfc_defconfig +2 -0
+BR2_TARGET_ROOTFS_UBI=y
+BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047

I guess these are the two options left after doing a "make savedefconfig". However, I would be more comfortable if you made explicit the other important options about UBI, like it is the case in other Atmel defconfigs:

Yes, that's what's left after a savedefconfig. v2 patch sent with options added. Supports a good, known working defconfig after all. Hard to find consensus on this as the defconfigs are all over the place on whether or not to include these options.

Josh

Quoted 13 lines

BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x3e000
BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x1000
BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2082
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x40000
BR2_TARGET_ROOTFS_UBI_SUBSIZE=0

Thanks a lot!

Thomas